// // SetGroupIDLayer::determineStartValues from 0xaba308 to 0xaba618 (784 bytes) // // 3 xrefs: // > SetGroupIDLayer::onPaste @ 0xabba30 // > SetGroupIDLayer::init @ 0xac02dc // > @ 0x63c10 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:01 +0000 // __int64 __fastcall SetGroupIDLayer::determineStartValues(SetGroupIDLayer *this) { cocos2d::CCArray *v2; // x0 cocos2d::CCArray *v3; // x22 unsigned int v4; // w20 int v5; // w24 int v6; // w26 int v7; // w27 int ObjectZLayer; // w23 _BOOL4 v9; // w25 GameObject *v10; // x0 GameObject *v11; // x21 __int16 *v12; // x0 unsigned int v13; // w20 int v14; // w21 int v15; // w0 unsigned int v16; // w20 int v17; // w21 int v18; // w0 unsigned int v19; // w20 unsigned int v20; // w21 unsigned int ObjectZOrder; // w0 GameObject *v22; // x0 __int64 result; // x0 v2 = *((cocos2d::CCArray **)this + 84); *((_DWORD *)this + 198) = 0; *((_DWORD *)this + 189) = 0; *((_BYTE *)this + 805) = 0; *((_BYTE *)this + 806) = 0; if ( v2 ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(v3, *((cocos2d::CCObject **)this + 84)); } else { v3 = *((cocos2d::CCArray **)this + 85); } if ( !v3 || !(unsigned int)cocos2d::CCArray::count(v3) ) { *((_DWORD *)this + 197) = -100; goto LABEL_44; } *((_BYTE *)this + 805) = 1; v4 = 0; v5 = -100; v6 = 0; v7 = -100; ObjectZLayer = -100; v9 = 1; while ( v4 < (unsigned int)cocos2d::CCArray::count(v3) ) { v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(v3, v4); v11 = v10; if ( !v6 ) { if ( ObjectZLayer == -100 ) { ObjectZLayer = GameObject::getObjectZLayer(v10); } else if ( ObjectZLayer != (unsigned int)GameObject::getObjectZLayer(v10) ) { v6 = 1; ObjectZLayer = -100; } } if ( v9 ) v9 = GameObject::getCustomZLayer(v11) == 0; if ( *((_DWORD *)v11 + 312) == 1 ) { *((_BYTE *)this + 752) = 1; if ( v7 == -100 ) { v7 = *((_DWORD *)v11 + 443); } else if ( v7 != *((_DWORD *)v11 + 443) ) { v7 = 0; } if ( v5 == -100 ) { v5 = *((_DWORD *)v11 + 444); ++v4; } else { ++v4; if ( v5 != *((_DWORD *)v11 + 444) ) v5 = 0; } } else { ++v4; } } if ( v7 != -100 ) *((_DWORD *)this + 198) = v7; if ( v5 != -100 ) *((_DWORD *)this + 189) = v5; if ( ObjectZLayer == -100 ) { if ( v9 ) ObjectZLayer = 0; *((_DWORD *)this + 197) = ObjectZLayer; LABEL_44: v12 = *((__int16 **)this + 84); if ( !v12 ) goto LABEL_21; LABEL_45: *((_DWORD *)this + 192) = v12[601]; LABEL_46: *((_DWORD *)this + 193) = v12[602]; LABEL_47: result = GameObject::getObjectZOrder((GameObject *)v12); LABEL_48: *((_DWORD *)this + 194) = result; return result; } v12 = *((__int16 **)this + 84); *((_DWORD *)this + 197) = ObjectZLayer; if ( v12 ) goto LABEL_45; LABEL_21: v13 = 0; v14 = -1; while ( v13 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85)) ) { v15 = *(__int16 *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v13) + 1202); if ( v14 != -1 && v14 != v15 ) goto LABEL_64; ++v13; v14 = v15; } if ( v14 != -1 ) { v12 = *((__int16 **)this + 84); goto LABEL_28; } LABEL_64: v12 = *((__int16 **)this + 84); v14 = -1; LABEL_28: *((_DWORD *)this + 192) = v14; v16 = 0; v17 = -1; if ( v12 ) goto LABEL_46; while ( v16 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85)) ) { v18 = *(__int16 *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v16) + 1204); if ( v17 != -1 && v17 != v18 ) goto LABEL_65; ++v16; v17 = v18; } if ( v17 != -1 ) { v12 = *((__int16 **)this + 84); goto LABEL_36; } LABEL_65: v12 = *((__int16 **)this + 84); v17 = -1; LABEL_36: *((_DWORD *)this + 193) = v17; v19 = 0; v20 = -1000; if ( v12 ) goto LABEL_47; while ( v19 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85)) ) { v22 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v19); if ( v20 == -1000 ) { ObjectZOrder = GameObject::getObjectZOrder(v22); } else { ObjectZOrder = GameObject::getObjectZOrder(v22); if ( v20 != ObjectZOrder ) goto LABEL_63; } ++v19; v20 = ObjectZOrder; } result = v20; if ( v20 != -1000 ) goto LABEL_48; LABEL_63: *((_DWORD *)this + 194) = -1000; return 4294966296LL; }
GD Web Decomp Icon

GD Web Decomp

Raw Source