// // SetGroupIDLayer::onZLayerShift from 0xab906c to 0xab9130 (196 bytes) // // 3 xrefs: // > @ 0xf8e00 // > SetGroupIDLayer::init @ 0xac09dc // > @ 0x15478e8 // // 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:00 +0000 // cocos2d::CCArray *__fastcall SetGroupIDLayer::onZLayerShift(SetGroupIDLayer *this, cocos2d::CCObject *a2) { int v3; // w21 cocos2d::CCArray *result; // x0 unsigned int v5; // w27 GameObject *v6; // x19 int ObjectZLayer; // w0 int v8; // w1 int v9; // w1 bool v10; // cf unsigned int v11; // w1 v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); result = *((cocos2d::CCArray **)this + 85); if ( result ) { v5 = 0; while ( 1 ) { result = (cocos2d::CCArray *)cocos2d::CCArray::count(result); v10 = v5 >= (unsigned int)result; v11 = v5++; if ( v10 ) break; v6 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v11); ObjectZLayer = GameObject::getObjectZLayer(v6); if ( v3 == 1 ) v8 = 2; else v8 = -2; v9 = v8 + ObjectZLayer; if ( v9 > 11 ) v9 = 11; if ( v9 < -5 ) v9 = -5; GameObject::setCustomZLayer((__int64)v6, v9); *((_BYTE *)v6 + 1148) = 1; result = *((cocos2d::CCArray **)this + 85); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source