// // SetGroupIDLayer::onZLayerShift from 0x63962a to 0x63969a (112 bytes) // // 0 xrefs: // // 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::onZLayerShift(cocos2d::CCArray **this, cocos2d::CCObject *a2) { unsigned int result; // r0 unsigned int v4; // r6 unsigned int v5; // r9 GameObject *v6; // r0 int v7; // r5 int ObjectZLayer; // r0 int v9; // r1 int v10; // r1 result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); v4 = result; if ( *(this + 132) ) { v5 = 0; while ( 1 ) { result = cocos2d::CCArray::count(*(this + 132)); if ( v5 >= result ) break; v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 132), v5++); v7 = (int)v6; ObjectZLayer = GameObject::getObjectZLayer(v6); if ( v4 == 1 ) v9 = 2; else v9 = -2; v10 = ObjectZLayer + v9; if ( v10 >= 11 ) v10 = 11; if ( v10 < -5 ) v10 = -5; GameObject::setCustomZLayer(v7, v10); *(_BYTE *)(v7 + 1004) = 1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source