// // UILayer::processUINodeTouch from 0x1404ce5f0 to 0x1404ceaa6 (1206 bytes) // // 2 xrefs: // > UILayer::processUINodesTouch @ 0x1404ce5b2 // > @ 0x1406dd508 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool UILayer::processUINodeTouch(UILayer *a1, GJUITouchEvent a2, int a3, cocos2d::CCPoint a4, GJUINode *a5, double a6) { struct cocos2d::CCPoint v8; // rax int v9; // eax __int32 v10; // esi bool m_player2; // al std::vector *p_m_queuedButtons; // rcx std::_Vector_val>::pointer Mylast; // rdx double v15; // xmm1_8 bool v16; // al std::vector *v17; // rcx double v18; // xmm6_8 std::_Vector_val>::pointer v19; // rdx __int128 v20; // xmm0 double v21; // xmm1_8 struct cocos2d::CCPoint v22; // rax int active; // eax PlayerButton m_currentButton; // eax std::vector *v25; // rcx bool v26; // al std::_Vector_val>::pointer v27; // rdx double v28; // xmm1_8 bool v29; // al std::vector *v30; // rcx std::_Vector_val>::pointer v31; // rdx double v32; // xmm1_8 bool v33; // al std::vector *v34; // rcx std::_Vector_val>::pointer v35; // rdx double v36; // xmm1_8 GJBaseGameLayer *m_gameLayer; // rcx std::vector *v38; // rcx bool v39; // al std::_Vector_val>::pointer v40; // rdx double v41; // xmm1_8 std::vector *v42; // rcx std::_Vector_val>::pointer v43; // rdx double v44; // xmm1_8 struct cocos2d::CCPoint v45; // [rsp+20h] [rbp-30h] BYREF __int128 v46; // [rsp+28h] [rbp-28h] BYREF double v47; // [rsp+38h] [rbp-18h] if ( a2 == Pressed ) { v8 = cocos2d::CCNode::convertToNodeSpace(a5, &v45); v9 = GJUINode::touchTest(a5, v8); v10 = v9; if ( v9 ) { a5->m_touchID = a3; if ( v9 == 1 ) { GJUINode::toggleHighlight(a5, 1, 1); m_player2 = a5->m_player2; p_m_queuedButtons = &a1->m_gameLayer->m_queuedButtons; v47 = a6; *(_QWORD *)((char *)&v46 + 6) = 0; Mylast = p_m_queuedButtons->_Mypair._Myval2._Mylast; HIWORD(v46) = 0; LODWORD(v46) = v10; BYTE4(v46) = v10; BYTE5(v46) = m_player2; if ( Mylast == p_m_queuedButtons->_Mypair._Myval2._Myend ) { sub_140253010(p_m_queuedButtons, Mylast, (__int64)&v46); return 1; } else { v15 = v47; *(_OWORD *)&Mylast->m_button = v46; Mylast->m_timestamp = v15; ++p_m_queuedButtons->_Mypair._Myval2._Mylast; return v10; } } if ( (unsigned int)(v9 - 2) > 1 ) { a5->m_moving = 1; a5->m_currentButton = 0; return 1; } GJUINode::toggleHighlight(a5, v9, 1); v16 = a5->m_player2; v17 = &a1->m_gameLayer->m_queuedButtons; v18 = a6; v47 = a6; *(_QWORD *)((char *)&v46 + 6) = 0; v19 = v17->_Mypair._Myval2._Mylast; HIWORD(v46) = 0; LODWORD(v46) = v10; BYTE4(v46) = 1; BYTE5(v46) = v16; if ( v19 == v17->_Mypair._Myval2._Myend ) { sub_140253010(v17, v19, (__int64)&v46); LODWORD(v46) = 5; BYTE4(v46) = 1; } else { v20 = v46; LODWORD(v46) = 5; v21 = v47; *(_OWORD *)&v19->m_button = v20; BYTE4(v46) = 1; v19->m_timestamp = v21; ++v17->_Mypair._Myval2._Mylast; } goto LABEL_34; } return 0; } if ( a5->m_touchID != a3 ) return 0; if ( a2 != Moved ) { if ( a2 == Ended ) { if ( a5->m_oneButton ) { m_gameLayer = a1->m_gameLayer; v47 = a6; LODWORD(v46) = 1; } else { if ( a5->m_currentButton ) { v38 = &a1->m_gameLayer->m_queuedButtons; LODWORD(v46) = a5->m_currentButton; v39 = a5->m_player2; v47 = a6; *(_QWORD *)((char *)&v46 + 6) = 0; v40 = v38->_Mypair._Myval2._Mylast; HIWORD(v46) = 0; BYTE4(v46) = 0; BYTE5(v46) = v39; if ( v40 == v38->_Mypair._Myval2._Myend ) { sub_140253010(v38, v40, (__int64)&v46); } else { v41 = v47; *(_OWORD *)&v40->m_button = v46; v40->m_timestamp = v41; ++v38->_Mypair._Myval2._Mylast; } } m_gameLayer = a1->m_gameLayer; v47 = a6; LODWORD(v46) = 5; } v42 = &m_gameLayer->m_queuedButtons; BYTE5(v46) = a5->m_player2; BYTE4(v46) = 0; HIWORD(v46) = 0; v43 = v42->_Mypair._Myval2._Mylast; *(_QWORD *)((char *)&v46 + 6) = 0; if ( v43 != v42->_Mypair._Myval2._Myend ) { v44 = v47; *(_OWORD *)&v43->m_button = v46; v43->m_timestamp = v44; ++v42->_Mypair._Myval2._Mylast; GJUINode::touchEnded(a5); return 1; } sub_140253010(v42, v43, (__int64)&v46); GJUINode::touchEnded(a5); } return 1; } if ( a5->m_oneButton || a5->m_split ) return 1; v22 = cocos2d::CCNode::convertToNodeSpace(a5, &v45); active = GJUINode::activeTouchTest(a5, v22); v10 = active; if ( (unsigned int)(active - 2) <= 1 ) { if ( a5->m_currentButton != active ) { a5->m_moving = 0; if ( !a5->m_modeB ) { GJUINode::toggleHighlight(a5, active, 1); GJUINode::toggleHighlight(a5, (v10 == 2) + 2, 0); } v18 = a6; if ( v10 ) { v29 = a5->m_player2; v30 = &a1->m_gameLayer->m_queuedButtons; v47 = a6; *(_QWORD *)((char *)&v46 + 6) = 0; HIWORD(v46) = 0; v31 = v30->_Mypair._Myval2._Mylast; LODWORD(v46) = v10; BYTE4(v46) = 1; BYTE5(v46) = v29; if ( v31 == v30->_Mypair._Myval2._Myend ) { sub_140253010(v30, v31, (__int64)&v46); } else { v32 = v47; *(_OWORD *)&v31->m_button = v46; v31->m_timestamp = v32; ++v30->_Mypair._Myval2._Mylast; } } if ( !a5->m_currentButton ) { LABEL_37: a5->m_currentButton = v10; return 1; } LODWORD(v46) = a5->m_currentButton; BYTE4(v46) = 0; LABEL_34: v33 = a5->m_player2; v34 = &a1->m_gameLayer->m_queuedButtons; v47 = v18; HIWORD(v46) = 0; *(_QWORD *)((char *)&v46 + 6) = 0; v35 = v34->_Mypair._Myval2._Mylast; BYTE5(v46) = v33; if ( v35 != v34->_Mypair._Myval2._Myend ) { v36 = v47; *(_OWORD *)&v35->m_button = v46; v35->m_timestamp = v36; ++v34->_Mypair._Myval2._Mylast; a5->m_currentButton = v10; return 1; } sub_140253010(v34, v35, (__int64)&v46); goto LABEL_37; } return 1; } if ( a5->m_moving ) return 1; m_currentButton = a5->m_currentButton; a5->m_moving = 1; if ( m_currentButton ) { v25 = &a1->m_gameLayer->m_queuedButtons; LODWORD(v46) = m_currentButton; v26 = a5->m_player2; v47 = a6; v27 = v25->_Mypair._Myval2._Mylast; *(_QWORD *)((char *)&v46 + 6) = 0; HIWORD(v46) = 0; BYTE4(v46) = 0; BYTE5(v46) = v26; if ( v27 == v25->_Mypair._Myval2._Myend ) { sub_140253010(v25, v27, (__int64)&v46); } else { v28 = v47; *(_OWORD *)&v27->m_button = v46; v27->m_timestamp = v28; ++v25->_Mypair._Myval2._Mylast; } } if ( !a5->m_modeB ) GJUINode::touchEnded(a5); a5->m_currentButton = 0; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source