; ; cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup from 0x18008ed50 to 0x18008edfa (170 bytes) ; ; 7 xrefs: ; > @ 0x1800ec4b0 ; > @ 0x180103eb0 ; > @ 0x180105c18 ; > @ 0x18013d89c ; > @ 0x18013d8d0 ; > @ 0x1801438a8 ; > @ 0x1801b6090 ; ; 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_10], rbp ; +0x0, 0x18008ed50 push rdi ; +0x5, 0x18008ed55 sub rsp, 20h ; +0x6, 0x18008ed56 mov rdi, rcx ; +0xa, 0x18008ed5a movzx ebp, dl ; +0xd, 0x18008ed5d mov rcx, [rcx+158h]; this ; +0x10, 0x18008ed60 test rcx, rcx ; +0x17, 0x18008ed67 jz short loc_18008EDCC ; +0x1a, 0x18008ed6a call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c, 0x18008ed6c test eax, eax ; +0x21, 0x18008ed71 jz short loc_18008EDCC ; +0x23, 0x18008ed73 mov rax, [rdi+158h] ; +0x25, 0x18008ed75 test rax, rax ; +0x2c, 0x18008ed7c jz short loc_18008EDCC ; +0x2f, 0x18008ed7f mov [rsp+28h+arg_0], rbx ; +0x31, 0x18008ed81 mov rbx, [rax+38h] ; +0x36, 0x18008ed86 mov eax, [rbx] ; +0x3a, 0x18008ed8a test eax, eax ; +0x3c, 0x18008ed8c jz short loc_18008EDC7 ; +0x3e, 0x18008ed8e mov rbx, [rbx+10h] ; +0x40, 0x18008ed90 mov [rsp+28h+arg_8], rsi ; +0x44, 0x18008ed94 lea rsi, [rax-1] ; +0x49, 0x18008ed99 lea rsi, [rbx+rsi*8] ; +0x4d, 0x18008ed9d cmp rbx, rsi ; +0x51, 0x18008eda1 ja short loc_18008EDC2 ; +0x54, 0x18008eda4 mov rcx, [rbx] ; +0x56, 0x18008eda6 test rcx, rcx ; +0x59, 0x18008eda9 jz short loc_18008EDC2 ; +0x5c, 0x18008edac mov rax, [rcx] ; +0x5e, 0x18008edae xor edx, edx ; +0x61, 0x18008edb1 call qword ptr [rax+3B8h] ; +0x63, 0x18008edb3 add rbx, 8 ; +0x69, 0x18008edb9 cmp rbx, rsi ; +0x6d, 0x18008edbd jbe short loc_18008EDA6 ; +0x70, 0x18008edc0 mov rsi, [rsp+28h+arg_8] ; +0x72, 0x18008edc2 mov rbx, [rsp+28h+arg_0] ; +0x77, 0x18008edc7 movzx edx, bpl; bool ; +0x7c, 0x18008edcc mov rcx, rdi; this ; +0x80, 0x18008edd0 call ?removeAllChildrenWithCleanup@CCNode@cocos2d@@UEAAX_N@Z; cocos2d::CCNode::removeAllChildrenWithCleanup(bool) ; +0x83, 0x18008edd3 mov rcx, [rdi+158h]; this ; +0x88, 0x18008edd8 call ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x8f, 0x18008eddf mov rcx, [rdi+148h]; this ; +0x94, 0x18008ede4 mov rbp, [rsp+28h+arg_10] ; +0x9b, 0x18008edeb add rsp, 20h ; +0xa0, 0x18008edf0 pop rdi ; +0xa4, 0x18008edf4 jmp ?removeAllQuads@CCTextureAtlas@cocos2d@@QEAAXXZ; cocos2d::CCTextureAtlas::removeAllQuads(void) ; +0xa5, 0x18008edf5