// // cocos2d::CCAtlasNode::calculateMaxItems from 0xd3c0cc to 0xd3c19c (208 bytes) // // 2 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0xd3c2b4 // > @ 0xaab78 // // 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:07:26 +0000 // __int64 __fastcall cocos2d::CCAtlasNode::calculateMaxItems(cocos2d::CCAtlasNode *this) { __int64 v2; // x0 cocos2d::CCTexture2D *v3; // x0 __int64 ContentSizeInPixels; // x0 float v5; // s0 __int64 v7; // [xsp+30h] [xbp+30h] BYREF v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 96LL))(*((_QWORD *)this + 47)); (*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)v2 + 144LL))(&v7); if ( *((_BYTE *)this + 404) ) { v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 96LL))(*((_QWORD *)this + 47)); ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=(&v7, ContentSizeInPixels); } v5 = *(float *)&v7 / (float)*((unsigned int *)this + 90); *((_DWORD *)this + 89) = (int)(float)(*((float *)&v7 + 1) / (float)*((unsigned int *)this + 91)); *((_DWORD *)this + 88) = (int)v5; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source