// // UILayer::resetUINodeState from 0x1004c8be0 to 0x1004c8cb7 (215 bytes) // // 1 xrefs: // > UILayer::handleKeypress @ 0x1004c922c // // 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::resetUINodeState(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 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