// // cocos2d::CCTMXLayer::atlasIndexForNewZ from 0x1800abfa0 to 0x1800abfc3 (35 bytes) // // 1 xrefs: // > @ 0x1801438a8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall cocos2d::CCTMXLayer::atlasIndexForNewZ(cocos2d::CCTMXLayer *this, int a2) { __int64 v2; // r9 __int64 result; // rax unsigned int v4; // r8d __int64 v5; // r9 v2 = *((_QWORD *)this + 59); result = 0; v4 = *(_DWORD *)v2; if ( *(_DWORD *)v2 ) { v5 = *(_QWORD *)(v2 + 16); do { if ( a2 < *(_DWORD *)(v5 + 8 * result) ) break; result = (unsigned int)(result + 1); } while ( (unsigned int)result < v4 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source