; ; 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 ; push rbx ; +0x0, 0x1800018d0 sub rsp, 20h ; +0x2, 0x1800018d2 mov rbx, rcx ; +0x6, 0x1800018d6 mov rcx, [rcx+178h] ; +0x9, 0x1800018d9 mov rax, [rcx] ; +0x10, 0x1800018e0 call qword ptr [rax+58h] ; +0x13, 0x1800018e3 mov rcx, rax ; +0x16, 0x1800018e6 mov rdx, [rax] ; +0x19, 0x1800018e9 mov r8, [rdx+88h] ; +0x1c, 0x1800018ec lea rdx, [rsp+28h+arg_0] ; +0x23, 0x1800018f3 call r8 ; +0x28, 0x1800018f8 cmp byte ptr [rbx+194h], 0 ; +0x2b, 0x1800018fb jz short loc_180001926 ; +0x32, 0x180001902 mov rcx, [rbx+178h] ; +0x34, 0x180001904 mov rax, [rcx] ; +0x3b, 0x18000190b call qword ptr [rax+58h] ; +0x3e, 0x18000190e mov rcx, rax; this ; +0x41, 0x180001911 call ?getContentSizeInPixels@CCTexture2D@cocos2d@@QEAAAEBVCCSize@2@XZ; cocos2d::CCTexture2D::getContentSizeInPixels(void) ; +0x44, 0x180001914 mov rdx, rax ; +0x49, 0x180001919 lea rcx, [rsp+28h+arg_0] ; +0x4c, 0x18000191c call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x51, 0x180001921 mov eax, [rbx+16Ch] ; +0x56, 0x180001926 xorps xmm0, xmm0 ; +0x5c, 0x18000192c movss xmm1, [rsp+28h+arg_4] ; +0x5f, 0x18000192f cvtsi2ss xmm0, rax ; +0x65, 0x180001935 divss xmm1, xmm0 ; +0x6a, 0x18000193a xorps xmm0, xmm0 ; +0x6e, 0x18000193e cvttss2si eax, xmm1 ; +0x71, 0x180001941 movss xmm1, [rsp+28h+arg_0] ; +0x75, 0x180001945 mov [rbx+164h], eax ; +0x7b, 0x18000194b mov eax, [rbx+168h] ; +0x81, 0x180001951 cvtsi2ss xmm0, rax ; +0x87, 0x180001957 divss xmm1, xmm0 ; +0x8c, 0x18000195c cvttss2si eax, xmm1 ; +0x90, 0x180001960 mov [rbx+160h], eax ; +0x94, 0x180001964 add rsp, 20h ; +0x9a, 0x18000196a pop rbx ; +0x9e, 0x18000196e retn ; +0x9f, 0x18000196f