// // SetGroupIDLayer::determineStartValues from 0x63a060 to 0x63a24e (494 bytes) // // 2 xrefs: // > SetGroupIDLayer::onPaste @ 0x63b138 // > SetGroupIDLayer::init @ 0x63dc7a // // 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:55:23 +0000 // unsigned int __fastcall SetGroupIDLayer::determineStartValues(SetGroupIDLayer *this) { cocos2d::CCArray *v2; // r9 int v3; // r6 _BOOL4 v4; // r5 int v5; // r7 int ObjectZLayer; // r11 unsigned int v7; // r8 GameObject *v8; // r0 GameObject *v9; // r10 unsigned int v10; // r5 int v11; // r6 int v12; // r0 unsigned int v13; // r5 int v14; // r6 int v15; // r0 GameObject *v16; // r0 unsigned int result; // r0 int v18; // r6 unsigned int i; // r5 GameObject *v20; // r0 int v21; // [sp+4h] [bp-8h] *((_DWORD *)this + 151) = 0; *((_DWORD *)this + 142) = 0; *((_BYTE *)this + 617) = 0; *((_BYTE *)this + 618) = 0; if ( *((_DWORD *)this + 131) ) { v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(this); cocos2d::CCArray::addObject(v2, *((cocos2d::CCObject **)this + 131)); } else { v2 = *((cocos2d::CCArray **)this + 132); } if ( v2 && cocos2d::CCArray::count(v2) ) { v3 = -100; v4 = 1; v5 = -100; ObjectZLayer = -100; v7 = 0; *((_BYTE *)this + 617) = 1; v21 = 0; while ( v7 < cocos2d::CCArray::count(v2) ) { v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(v2, v7); v9 = v8; if ( !v21 ) { if ( ObjectZLayer == -100 ) { ObjectZLayer = GameObject::getObjectZLayer(v8); } else if ( ObjectZLayer != GameObject::getObjectZLayer(v8) ) { ObjectZLayer = -100; v21 = 1; } } if ( v4 ) v4 = GameObject::getCustomZLayer(v9) == 0; if ( *((_DWORD *)v9 + 271) == 1 ) { *((_BYTE *)this + 564) = 1; if ( v5 == -100 ) { v5 = *((_DWORD *)v9 + 397); } else if ( v5 == *((_DWORD *)v9 + 397) ) { v5 = *((_DWORD *)v9 + 397); } else { v5 = 0; } if ( v3 == -100 ) { v3 = *((_DWORD *)v9 + 398); } else if ( v3 == *((_DWORD *)v9 + 398) ) { v3 = *((_DWORD *)v9 + 398); } else { v3 = 0; } } ++v7; } if ( v5 != -100 ) *((_DWORD *)this + 151) = v5; if ( v3 != -100 ) *((_DWORD *)this + 142) = v3; } else { v4 = 0; ObjectZLayer = -100; } *((_DWORD *)this + 150) = ObjectZLayer; if ( v4 && ObjectZLayer == -100 ) *((_DWORD *)this + 150) = 0; v10 = *((_DWORD *)this + 131); if ( v10 ) { v11 = *(__int16 *)(v10 + 1038); } else { v11 = -1; while ( v10 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)) ) { v12 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v10); if ( v11 != -1 && v11 != *(__int16 *)(v12 + 1038) ) goto LABEL_40; ++v10; v11 = *(__int16 *)(v12 + 1038); } if ( v11 == -1 ) LABEL_40: v11 = -1; } v13 = *((_DWORD *)this + 131); *((_DWORD *)this + 145) = v11; if ( v13 ) { v14 = *(__int16 *)(v13 + 1040); } else { v14 = -1; while ( v13 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)) ) { v15 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v13); if ( v14 != -1 && v14 != *(__int16 *)(v15 + 1040) ) goto LABEL_49; ++v13; v14 = *(__int16 *)(v15 + 1040); } if ( v14 == -1 ) LABEL_49: v14 = -1; } v16 = *((GameObject **)this + 131); *((_DWORD *)this + 146) = v14; if ( v16 ) { result = GameObject::getObjectZOrder(v16); v18 = result; } else { v18 = -1000; for ( i = 0; ; ++i ) { result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)); if ( i >= result ) break; v20 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), i); if ( v18 == -1000 ) { result = GameObject::getObjectZOrder(v20); } else { result = GameObject::getObjectZOrder(v20); if ( v18 != result ) goto LABEL_59; } v18 = result; } if ( v18 == -1000 ) LABEL_59: v18 = -1000; } *((_DWORD *)this + 147) = v18; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source