// // UILayer::resetAllButtons from 0x1004c98c0 to 0x1004c99a7 (231 bytes) // // 5 xrefs: // > PlayLayer::showEndLayer @ 0x1000b5282 // > PlayLayer::showRetryLayer @ 0x1000b6982 // > PlayLayer::pauseGame @ 0x1000bf3b3 // > PlayLayer::resumeAndRestart @ 0x1000bf4b5 // > PlayLayer::resume @ 0x1000bf6b5 // // 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 // void __fastcall UILayer::resetAllButtons(UILayer *a1) { cocos2d::CCArray *m_uiNodes; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r15 unsigned __int64 v4; // r12 cocos2d::CCObject *v5; // r13 __int64 v6; // rdi __int64 v7; // rdi _QWORD v8[7]; // [rsp-38h] [rbp-38h] BYREF *(_QWORD *)&a1->m_p1TouchId = -1; *(_WORD *)&a1->m_p1Jumping = 0; a1->m_checkpointBtnDown = 0; m_uiNodes = a1->m_uiNodes; if ( m_uiNodes ) { v8[0] = a1->m_uiNodes; data = m_uiNodes->data; if ( data->num ) { arr = data->arr; v4 = (unsigned __int64)&arr[data->num - 1]; do { v5 = *arr; if ( !*arr ) break; v5[6].m_nTag = -1; *(_WORD *)((char *)&v5[6].m_nZOrder + 3) = 0; v6 = *(_QWORD *)&v5[5].m_unknown2; if ( v6 ) { BYTE6(v8[0]) = -1; WORD2(v8[0]) = -1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 944LL))(v6, (char *)v8 + 4); } v7 = *((_QWORD *)&v5[5].m_unknown2 + (BYTE1(v5[6].m_nZOrder) ^ 1u)); if ( v7 ) { BYTE2(v8[0]) = -1; LOWORD(v8[0]) = -1; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v7 + 944LL))(v7, v8); } ++arr; } while ( (unsigned __int64)arr <= v4 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source