// // UILayer::resolveLevelControls from 0x3fd6dc to 0x3fd78c (176 bytes) // // 2 xrefs: // > UILayer::refreshDpad @ 0x3fd7ac // > UILayer::editorPlaytest @ 0x3fddbc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:22 +0000 // cocos2d::CCObject *__fastcall UILayer::resolveLevelControls(cocos2d::CCObject **this, int a2, int a3, int a4) { cocos2d::CCObject *result; // r0 int v6; // r3 int v7; // r3 unsigned int v8; // r2 size_t v9; // r2 int *v10; // r3 int v11; // r1 int v12; // r2 int v13; // r3 cocos2d::CCObject *v14; // r0 cocos2d::CCObject **v15; // [sp+0h] [bp-10h] BYREF int v16; // [sp+4h] [bp-Ch] int v17; // [sp+8h] [bp-8h] int v18; // [sp+Ch] [bp-4h] v15 = this; v16 = a2; v17 = a3; v18 = a4; result = *(this + 125); if ( result ) { result = (cocos2d::CCObject *)cocos2d::CCObject::release(result); *(this + 125) = nullptr; } v6 = (int)*(this + 120); if ( v6 ) { v7 = *(_DWORD *)(v6 + 1408); if ( v7 ) { if ( *(_DWORD *)(v7 + 1356) == 1 ) { v8 = *(unsigned __int8 *)(v7 + 1344); if ( (v8 & 1) != 0 ) { v9 = *(_DWORD *)(v7 + 1348); if ( !v9 ) return result; v15 = nullptr; v16 = 0; v17 = 0; std::string::__init((int *)&v15, *(const void **)(v7 + 1352), v9); } else { if ( !(v8 >> 1) ) return result; v10 = (int *)(v7 + 1344); v11 = v10[1]; v12 = v10[2]; v15 = (cocos2d::CCObject **)*v10; v16 = v11; v17 = v12; } if ( ((unsigned __int8)v15 & 1) != 0 ) v13 = v16; else v13 = (int)(unsigned __int8)v15 >> 1; if ( v13 ) { v14 = (cocos2d::CCObject *)LevelControlConfig::createFromB64(&v15); *(this + 125) = v14; if ( v14 ) cocos2d::CCObject::retain(v14); } return (cocos2d::CCObject *)std::string::~string((int)&v15); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source