; ; cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas from 0x18008ee50 to 0x18008efaa (346 bytes) ; ; 9 xrefs: ; > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x18008c078 ; > cocos2d::CCSprite::removeChild @ 0x18008c0e5 ; > cocos2d::CCSpriteBatchNode::removeChild @ 0x18008ee1e ; > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ef23 ; > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18008ef8c ; > @ 0x18013d80c ; > @ 0x18013d81c ; > @ 0x1801438a8 ; > @ 0x1801b60d8 ; ; 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_8], rbx ; +0x0, 0x18008ee50 mov [rsp+arg_10], rsi ; +0x5, 0x18008ee55 push rdi ; +0xa, 0x18008ee5a sub rsp, 20h ; +0xb, 0x18008ee5b cmp byte ptr [rdx+22Fh], 0 ; +0xf, 0x18008ee5f mov rbx, rdx ; +0x16, 0x18008ee66 mov rdi, rcx ; +0x19, 0x18008ee69 jnz loc_18008EF46 ; +0x1c, 0x18008ee6c mov [rsp+28h+arg_0], rbp ; +0x22, 0x18008ee72 mov ebp, [rdx+28h] ; +0x27, 0x18008ee77 cmp ebp, 0FFFFFFFFh ; +0x2a, 0x18008ee7a jz loc_18008EF31 ; +0x2d, 0x18008ee7d mov rcx, [rcx+158h]; this ; +0x33, 0x18008ee83 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3a, 0x18008ee8a lea esi, [rax-1] ; +0x3f, 0x18008ee8f cmp ebp, esi ; +0x42, 0x18008ee92 jnb short loc_18008EEA3 ; +0x44, 0x18008ee94 mov r8d, esi; int ; +0x46, 0x18008ee96 mov edx, ebp; int ; +0x49, 0x18008ee99 mov rcx, rdi; this ; +0x4b, 0x18008ee9b call ?swap@CCSpriteBatchNode@cocos2d@@AEAAXHH@Z; cocos2d::CCSpriteBatchNode::swap(int,int) ; +0x4e, 0x18008ee9e mov rcx, [rdi+148h]; this ; +0x53, 0x18008eea3 mov edx, esi; unsigned int ; +0x5a, 0x18008eeaa call ?removeQuadAtIndex@CCTextureAtlas@cocos2d@@QEAAXI@Z; cocos2d::CCTextureAtlas::removeQuadAtIndex(uint) ; +0x5c, 0x18008eeac mov byte ptr [rdi+120h], 1 ; +0x61, 0x18008eeb1 xor edx, edx ; +0x68, 0x18008eeb8 mov rax, [rbx] ; +0x6a, 0x18008eeba mov rcx, rbx ; +0x6d, 0x18008eebd call qword ptr [rax+3B8h] ; +0x70, 0x18008eec0 mov rax, [rdi+158h] ; +0x76, 0x18008eec6 mov r8b, 1 ; +0x7d, 0x18008eecd mov rcx, [rax+38h] ; +0x80, 0x18008eed0 mov edx, [rcx] ; +0x84, 0x18008eed4 dec edx ; +0x86, 0x18008eed6 call sub_18009DF50 ; +0x88, 0x18008eed8 mov rax, [rbx] ; +0x8d, 0x18008eedd mov rcx, rbx ; +0x90, 0x18008eee0 call qword ptr [rax+1D0h] ; +0x93, 0x18008eee3 mov rbx, rax ; +0x99, 0x18008eee9 test rax, rax ; +0x9c, 0x18008eeec jz short loc_18008EF31 ; +0x9f, 0x18008eeef mov rcx, rax; this ; +0xa1, 0x18008eef1 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x18008eef4 test eax, eax ; +0xa9, 0x18008eef9 jz short loc_18008EF31 ; +0xab, 0x18008eefb mov rbx, [rbx+38h] ; +0xad, 0x18008eefd mov eax, [rbx] ; +0xb1, 0x18008ef01 test eax, eax ; +0xb3, 0x18008ef03 jz short loc_18008EF31 ; +0xb5, 0x18008ef05 mov rbx, [rbx+10h] ; +0xb7, 0x18008ef07 lea rsi, [rax-1] ; +0xbb, 0x18008ef0b lea rsi, [rbx+rsi*8] ; +0xbf, 0x18008ef0f cmp rbx, rsi ; +0xc3, 0x18008ef13 ja short loc_18008EF31 ; +0xc6, 0x18008ef16 mov rdx, [rbx]; struct cocos2d::CCSprite * ; +0xc8, 0x18008ef18 test rdx, rdx ; +0xcb, 0x18008ef1b jz short loc_18008EF31 ; +0xce, 0x18008ef1e mov rcx, rdi; this ; +0xd0, 0x18008ef20 call ?removeSpriteFromAtlas@CCSpriteBatchNode@cocos2d@@QEAAXPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas(cocos2d::CCSprite *) ; +0xd3, 0x18008ef23 add rbx, 8 ; +0xd8, 0x18008ef28 cmp rbx, rsi ; +0xdc, 0x18008ef2c jbe short loc_18008EF18 ; +0xdf, 0x18008ef2f mov rbp, [rsp+28h+arg_0] ; +0xe1, 0x18008ef31 mov rbx, [rsp+28h+arg_8] ; +0xe6, 0x18008ef36 mov rsi, [rsp+28h+arg_10] ; +0xeb, 0x18008ef3b add rsp, 20h ; +0xf0, 0x18008ef40 pop rdi ; +0xf4, 0x18008ef44 retn ; +0xf5, 0x18008ef45 mov rax, [rdx] ; +0xf6, 0x18008ef46 mov rcx, rbx ; +0xf9, 0x18008ef49 call qword ptr [rax+1D0h] ; +0xfc, 0x18008ef4c mov rbx, rax ; +0x102, 0x18008ef52 test rax, rax ; +0x105, 0x18008ef55 jz short loc_18008EF36 ; +0x108, 0x18008ef58 mov rcx, rax; this ; +0x10a, 0x18008ef5a call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10d, 0x18008ef5d test eax, eax ; +0x112, 0x18008ef62 jz short loc_18008EF36 ; +0x114, 0x18008ef64 mov rbx, [rbx+38h] ; +0x116, 0x18008ef66 mov eax, [rbx] ; +0x11a, 0x18008ef6a test eax, eax ; +0x11c, 0x18008ef6c jz short loc_18008EF36 ; +0x11e, 0x18008ef6e mov rbx, [rbx+10h] ; +0x120, 0x18008ef70 lea rsi, [rax-1] ; +0x124, 0x18008ef74 lea rsi, [rbx+rsi*8] ; +0x128, 0x18008ef78 cmp rbx, rsi ; +0x12c, 0x18008ef7c ja short loc_18008EF36 ; +0x12f, 0x18008ef7f mov rdx, [rbx]; struct cocos2d::CCSprite * ; +0x131, 0x18008ef81 test rdx, rdx ; +0x134, 0x18008ef84 jz short loc_18008EF36 ; +0x137, 0x18008ef87 mov rcx, rdi; this ; +0x139, 0x18008ef89 call ?removeSpriteFromAtlas@CCSpriteBatchNode@cocos2d@@QEAAXPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas(cocos2d::CCSprite *) ; +0x13c, 0x18008ef8c add rbx, 8 ; +0x141, 0x18008ef91 cmp rbx, rsi ; +0x145, 0x18008ef95 jbe short loc_18008EF81 ; +0x148, 0x18008ef98 mov rbx, [rsp+28h+arg_8] ; +0x14a, 0x18008ef9a mov rsi, [rsp+28h+arg_10] ; +0x14f, 0x18008ef9f add rsp, 20h ; +0x154, 0x18008efa4 pop rdi ; +0x158, 0x18008efa8 retn ; +0x159, 0x18008efa9