; ; cocos2d::CCAtlasNode::calculateMaxItems from 0x180001920 to 0x1800019bd (157 bytes) ; ; 3 xrefs: ; > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cf1 ; > @ 0x1801438a8 ; > @ 0x1801ad0c0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbx ; +0x0, 0x180001920 sub rsp, 20h ; +0x2, 0x180001922 mov rbx, rcx ; +0x6, 0x180001926 mov rcx, [rcx+178h] ; +0x9, 0x180001929 mov rax, [rcx] ; +0x10, 0x180001930 call qword ptr [rax+58h] ; +0x13, 0x180001933 lea rdx, [rsp+28h+arg_0] ; +0x16, 0x180001936 mov rcx, rax ; +0x1b, 0x18000193b mov r8, [rax] ; +0x1e, 0x18000193e call qword ptr [r8+88h] ; +0x21, 0x180001941 cmp byte ptr [rbx+194h], 0 ; +0x28, 0x180001948 jz short loc_180001973 ; +0x2f, 0x18000194f mov rcx, [rbx+178h] ; +0x31, 0x180001951 mov rax, [rcx] ; +0x38, 0x180001958 call qword ptr [rax+58h] ; +0x3b, 0x18000195b mov rcx, rax; this ; +0x3e, 0x18000195e call ?getContentSizeInPixels@CCTexture2D@cocos2d@@QEAAAEBVCCSize@2@XZ; cocos2d::CCTexture2D::getContentSizeInPixels(void) ; +0x41, 0x180001961 mov rdx, rax ; +0x46, 0x180001966 lea rcx, [rsp+28h+arg_0] ; +0x49, 0x180001969 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x4e, 0x18000196e mov eax, [rbx+16Ch] ; +0x53, 0x180001973 xorps xmm0, xmm0 ; +0x59, 0x180001979 movss xmm1, [rsp+28h+arg_4] ; +0x5c, 0x18000197c cvtsi2ss xmm0, rax ; +0x62, 0x180001982 divss xmm1, xmm0 ; +0x67, 0x180001987 xorps xmm0, xmm0 ; +0x6b, 0x18000198b cvttss2si eax, xmm1 ; +0x6e, 0x18000198e movss xmm1, [rsp+28h+arg_0] ; +0x72, 0x180001992 mov [rbx+164h], eax ; +0x78, 0x180001998 mov eax, [rbx+168h] ; +0x7e, 0x18000199e cvtsi2ss xmm0, rax ; +0x84, 0x1800019a4 divss xmm1, xmm0 ; +0x89, 0x1800019a9 cvttss2si eax, xmm1 ; +0x8d, 0x1800019ad mov [rbx+160h], eax ; +0x91, 0x1800019b1 add rsp, 20h ; +0x97, 0x1800019b7 pop rbx ; +0x9b, 0x1800019bb retn ; +0x9c, 0x1800019bc