// // cocos2d::CCAtlasNode::calculateMaxItems from 0x100316490 to 0x100316517 (135 bytes) // // 0 xrefs: // // 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 12:28:40 +0000 // _QWORD *__fastcall cocos2d::CCAtlasNode::calculateMaxItems(__int64 a1) { __int64 v1; // rax __int64 v2; // rax _QWORD *result; // rax __int64 v4; // rax _QWORD *ContentSizeInPixels; // rax __m128d si128; // xmm1 _QWORD v7[2]; // [rsp+0h] [rbp-10h] BYREF v7[0] = v1; v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376)); result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*(_QWORD *)v2 + 144LL))(v7, v2); if ( *(_BYTE *)(a1 + 404) == 1 ) { v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 96LL))(*(_QWORD *)(a1 + 376)); ContentSizeInPixels = (_QWORD *)cocos2d::CCTexture2D::getContentSizeInPixels(v4); result = sub_100278660(v7, ContentSizeInPixels); } si128 = (__m128d)_mm_load_si128((const __m128i *)&xmmword_100A061F0); _mm_storel_ps( (double *)(a1 + 352), (__m128)_mm_cvttps_epi32( _mm_div_ps( (__m128)v7[0], _mm_cvtpd_ps(_mm_sub_pd((__m128d)_mm_or_si128(_mm_cvtepu32_epi64(*(__m64 *)(a1 + 360)), (__m128i)si128), si128))))); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source