{"type": "func", "start": 6442457296, "end": 6442457456, "name": "cocos2d::CCAtlasNode::calculateMaxItems", "pseudocode": "// \n// cocos2d::CCAtlasNode::calculateMaxItems from 0x1800018d0 to 0x180001970 (160 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cb1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b70cc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:15 +0000\n// \n\nvoid __fastcall cocos2d::CCAtlasNode::calculateMaxItems(cocos2d::CCAtlasNode *this)\n{\n  __int64 v2; // rax\n  cocos2d::CCTexture2D *v3; // rax\n  const struct cocos2d::CCSize *ContentSizeInPixels; // rax\n  float v5; // xmm1_4\n  float v6; // [rsp+30h] [rbp+8h] BYREF\n  float v7; // [rsp+34h] [rbp+Ch]\n\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 88LL))(*((_QWORD *)this + 47));\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 136LL))(v2, &v6);\n  if ( *((_BYTE *)this + 404) )\n  {\n    v3 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 88LL))(*((_QWORD *)this + 47));\n    ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3);\n    cocos2d::CCSize::operator=(&v6, ContentSizeInPixels);\n  }\n  v5 = v6;\n  *((_DWORD *)this + 89) = (int)(float)(v7 / (float)*((int *)this + 91));\n  *((_DWORD *)this + 88) = (int)(float)(v5 / (float)*((int *)this + 90));\n}", "assembly": "; \n; cocos2d::CCAtlasNode::calculateMaxItems from 0x1800018d0 to 0x180001970 (160 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cb1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b70cc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:15 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800018d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800018d2\nmov     rbx, rcx                                                       ; +0x6, 0x1800018d6\nmov     rcx, [rcx+178h]                                                ; +0x9, 0x1800018d9\nmov     rax, [rcx]                                                     ; +0x10, 0x1800018e0\ncall    qword ptr [rax+58h]                                            ; +0x13, 0x1800018e3\nmov     rcx, rax                                                       ; +0x16, 0x1800018e6\nmov     rdx, [rax]                                                     ; +0x19, 0x1800018e9\nmov     r8, [rdx+88h]                                                  ; +0x1c, 0x1800018ec\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x23, 0x1800018f3\ncall    r8                                                             ; +0x28, 0x1800018f8\ncmp     byte ptr [rbx+194h], 0                                         ; +0x2b, 0x1800018fb\njz      short loc_180001926                                            ; +0x32, 0x180001902\nmov     rcx, [rbx+178h]                                                ; +0x34, 0x180001904\nmov     rax, [rcx]                                                     ; +0x3b, 0x18000190b\ncall    qword ptr [rax+58h]                                            ; +0x3e, 0x18000190e\nmov     rcx, rax; this                                                 ; +0x41, 0x180001911\ncall    ?getContentSizeInPixels@CCTexture2D@cocos2d@@QEAAAEBVCCSize@2@XZ; cocos2d::CCTexture2D::getContentSizeInPixels(void) ; +0x44, 0x180001914\nmov     rdx, rax                                                       ; +0x49, 0x180001919\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x4c, 0x18000191c\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x51, 0x180001921\nmov     eax, [rbx+16Ch]                                                ; +0x56, 0x180001926\nxorps   xmm0, xmm0                                                     ; +0x5c, 0x18000192c\nmovss   xmm1, [rsp+28h+arg_4]                                          ; +0x5f, 0x18000192f\ncvtsi2ss xmm0, rax                                                     ; +0x65, 0x180001935\ndivss   xmm1, xmm0                                                     ; +0x6a, 0x18000193a\nxorps   xmm0, xmm0                                                     ; +0x6e, 0x18000193e\ncvttss2si eax, xmm1                                                    ; +0x71, 0x180001941\nmovss   xmm1, [rsp+28h+arg_0]                                          ; +0x75, 0x180001945\nmov     [rbx+164h], eax                                                ; +0x7b, 0x18000194b\nmov     eax, [rbx+168h]                                                ; +0x81, 0x180001951\ncvtsi2ss xmm0, rax                                                     ; +0x87, 0x180001957\ndivss   xmm1, xmm0                                                     ; +0x8c, 0x18000195c\ncvttss2si eax, xmm1                                                    ; +0x90, 0x180001960\nmov     [rbx+160h], eax                                                ; +0x94, 0x180001964\nadd     rsp, 20h                                                       ; +0x9a, 0x18000196a\npop     rbx                                                            ; +0x9e, 0x18000196e\nretn                                                                   ; +0x9f, 0x18000196f", "xrefs": ["cocos2d::CCAtlasNode::initWithTexture @ 0x180001cb1", "<???> @ 0x18014cf68", "<???> @ 0x1801b70cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}