// // cocos2d::CCAtlasNode::calculateMaxItems from 0x1800018d0 to 0x180001970 (160 bytes) // // 3 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cb1 // > @ 0x18014cf68 // > @ 0x1801b70cc // // 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:21:15 +0000 // void __fastcall cocos2d::CCAtlasNode::calculateMaxItems(cocos2d::CCAtlasNode *this) { __int64 v2; // rax cocos2d::CCTexture2D *v3; // rax const struct cocos2d::CCSize *ContentSizeInPixels; // rax float v5; // xmm1_4 float v6; // [rsp+30h] [rbp+8h] BYREF float v7; // [rsp+34h] [rbp+Ch] v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 88LL))(*((_QWORD *)this + 47)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 136LL))(v2, &v6); if ( *((_BYTE *)this + 404) ) { v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 88LL))(*((_QWORD *)this + 47)); ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=(&v6, ContentSizeInPixels); } v5 = v6; *((_DWORD *)this + 89) = (int)(float)(v7 / (float)*((int *)this + 91)); *((_DWORD *)this + 88) = (int)(float)(v5 / (float)*((int *)this + 90)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source