// // SetGroupIDLayer::onZLayerShift from 0x140593540 to 0x140593613 (211 bytes) // // 5 xrefs: // > SetGroupIDLayer::init @ 0x14058fab3 // > @ 0x1408ddab4 // > @ 0x1408ddae8 // > @ 0x14092ce7c // > @ 0x14092ce88 // // This function is hookable on this platform (idp: pc, 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 11:34:32 +0000 // unsigned int __fastcall SetGroupIDLayer::onZLayerShift(__int64 a1, __int64 a2) { unsigned int result; // eax cocos2d::CCArray *v4; // rcx unsigned int v5; // ebp unsigned int v6; // ebx int v7; // esi struct cocos2d::CCObject *v8; // rcx int v9; // eax int v10; // eax result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = *(cocos2d::CCArray **)(a1 + 680); v5 = result; if ( v4 ) { v6 = 0; result = cocos2d::CCArray::count(v4); if ( result ) { v7 = -2; if ( v5 == 1 ) v7 = 2; do { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v6); v9 = *((_DWORD *)v8 + 283); if ( !v9 ) v9 = *((_DWORD *)v8 + 281); v10 = v7 + v9; if ( v10 >= -5 ) { if ( v10 > 11 ) v10 = 11; } else { v10 = -5; } if ( !*((_BYTE *)v8 + 1128) ) *((_DWORD *)v8 + 283) = v10; *((_BYTE *)v8 + 1156) = 1; ++v6; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)); } while ( v6 < result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source