; ; cocos2d::CCSpriteBatchNode::insertQuadFromSprite from 0x18008ea50 to 0x18008eba7 (343 bytes) ; ; 4 xrefs: ; > cocos2d::CCTMXLayer::appendTileForGID @ 0x1800abf0a ; > cocos2d::CCTMXLayer::insertTileForGID @ 0x1800ac564 ; > @ 0x1801438a8 ; > @ 0x1801b603c ; ; 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 ; mov [rsp+arg_18], rbx ; +0x0, 0x18008ea50 push rsi ; +0x5, 0x18008ea55 push rdi ; +0x6, 0x18008ea56 push r14 ; +0x7, 0x18008ea57 sub rsp, 90h ; +0x9, 0x18008ea59 mov rax, cs:__security_cookie ; +0x10, 0x18008ea60 xor rax, rsp ; +0x17, 0x18008ea67 mov [rsp+0A8h+var_28], rax ; +0x1a, 0x18008ea6a mov esi, r8d ; +0x22, 0x18008ea72 mov r14, rdx ; +0x25, 0x18008ea75 mov rbx, rcx ; +0x28, 0x18008ea78 nop dword ptr [rax+rax+00h] ; +0x2b, 0x18008ea7b mov rcx, [rbx+148h] ; +0x30, 0x18008ea80 mov rax, [rcx] ; +0x37, 0x18008ea87 call qword ptr [rax+50h] ; +0x3a, 0x18008ea8a cmp esi, eax ; +0x3d, 0x18008ea8d jnb short loc_18008EAB1 ; +0x3f, 0x18008ea8f mov rcx, [rbx+148h] ; +0x41, 0x18008ea91 mov rax, [rcx] ; +0x48, 0x18008ea98 call qword ptr [rax+50h] ; +0x4b, 0x18008ea9b mov rcx, [rbx+148h] ; +0x4e, 0x18008ea9e mov edi, eax ; +0x55, 0x18008eaa5 mov rdx, [rcx] ; +0x57, 0x18008eaa7 call qword ptr [rdx+48h] ; +0x5a, 0x18008eaaa cmp edi, eax ; +0x5d, 0x18008eaad jnz short loc_18008EAF1 ; +0x5f, 0x18008eaaf mov rcx, [rbx+148h] ; +0x61, 0x18008eab1 mov rax, [rcx] ; +0x68, 0x18008eab8 call qword ptr [rax+50h] ; +0x6b, 0x18008eabb lea ecx, ds:4[rax*4] ; +0x6e, 0x18008eabe mov eax, 0AAAAAAABh ; +0x75, 0x18008eac5 mul ecx ; +0x7a, 0x18008eaca mov rcx, [rbx+148h] ; +0x7c, 0x18008eacc mov edi, edx ; +0x83, 0x18008ead3 shr edi, 1 ; +0x85, 0x18008ead5 mov rax, [rcx] ; +0x87, 0x18008ead7 call qword ptr [rax+50h] ; +0x8a, 0x18008eada cmp eax, edi ; +0x8d, 0x18008eadd jnb short loc_18008EA80 ; +0x8f, 0x18008eadf mov rcx, [rbx+148h]; this ; +0x91, 0x18008eae1 mov edx, edi; unsigned int ; +0x98, 0x18008eae8 call ?resizeCapacity@CCTextureAtlas@cocos2d@@QEAA_NI@Z; cocos2d::CCTextureAtlas::resizeCapacity(uint) ; +0x9a, 0x18008eaea jmp short loc_18008EA80 ; +0x9f, 0x18008eaef mov rax, [r14] ; +0xa1, 0x18008eaf1 mov rdx, rbx ; +0xa4, 0x18008eaf4 mov rcx, r14 ; +0xa7, 0x18008eaf7 call qword ptr [rax+3B8h] ; +0xaa, 0x18008eafa movups xmm0, xmmword ptr [r14+1CCh] ; +0xb0, 0x18008eb00 mov [r14+168h], esi ; +0xb8, 0x18008eb08 mov r8d, esi; unsigned int ; +0xbf, 0x18008eb0f movups xmm1, xmmword ptr [r14+1DCh] ; +0xc2, 0x18008eb12 mov rcx, [rbx+148h]; this ; +0xca, 0x18008eb1a lea rdx, [rsp+0A8h+var_88]; struct cocos2d::_ccV3F_C4B_T2F_Quad * ; +0xd1, 0x18008eb21 movaps [rsp+0A8h+var_88], xmm0 ; +0xd6, 0x18008eb26 movups xmm0, xmmword ptr [r14+1ECh] ; +0xdb, 0x18008eb2b movaps [rsp+0A8h+var_78], xmm1 ; +0xe3, 0x18008eb33 movups xmm1, xmmword ptr [r14+1FCh] ; +0xe8, 0x18008eb38 movaps [rsp+0A8h+var_68], xmm0 ; +0xf0, 0x18008eb40 movups xmm0, xmmword ptr [r14+20Ch] ; +0xf5, 0x18008eb45 movaps [rsp+0A8h+var_58], xmm1 ; +0xfd, 0x18008eb4d movups xmm1, xmmword ptr [r14+21Ch] ; +0x102, 0x18008eb52 movaps [rsp+0A8h+var_48], xmm0 ; +0x10a, 0x18008eb5a movaps [rsp+0A8h+var_38], xmm1 ; +0x10f, 0x18008eb5f call ?insertQuad@CCTextureAtlas@cocos2d@@QEAAXPEAU_ccV3F_C4B_T2F_Quad@2@I@Z; cocos2d::CCTextureAtlas::insertQuad(cocos2d::_ccV3F_C4B_T2F_Quad *,uint) ; +0x114, 0x18008eb64 mov rax, [r14] ; +0x119, 0x18008eb69 mov dl, 1 ; +0x11c, 0x18008eb6c mov rcx, r14 ; +0x11e, 0x18008eb6e call qword ptr [rax+408h] ; +0x121, 0x18008eb71 mov rax, [r14] ; +0x127, 0x18008eb77 mov rcx, r14 ; +0x12a, 0x18008eb7a call qword ptr [rax+300h] ; +0x12d, 0x18008eb7d mov rcx, [rsp+0A8h+var_28] ; +0x133, 0x18008eb83 xor rcx, rsp; StackCookie ; +0x13b, 0x18008eb8b call __security_check_cookie ; +0x13e, 0x18008eb8e mov rbx, [rsp+0A8h+arg_18] ; +0x143, 0x18008eb93 add rsp, 90h ; +0x14b, 0x18008eb9b pop r14 ; +0x152, 0x18008eba2 pop rdi ; +0x154, 0x18008eba4 pop rsi ; +0x155, 0x18008eba5 retn ; +0x156, 0x18008eba6