; ; cocos2d::CCDirector::popToSceneStackLevel from 0x1800bed50 to 0x1800bee42 (242 bytes) ; ; 6 xrefs: ; > cocos2d::CCDirector::popToRootScene @ 0x1800becd5 ; > cocos2d::CCDirector::popToSceneInStack @ 0x1800bed42 ; > @ 0x180141efc ; > @ 0x180141f0c ; > @ 0x1801438a8 ; > @ 0x1801b9240 ; ; 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], rbx ; +0x0, 0x1800bed50 push rdi ; +0x5, 0x1800bed55 sub rsp, 20h ; +0x6, 0x1800bed56 mov rbx, rcx ; +0xa, 0x1800bed5a mov edi, edx ; +0xd, 0x1800bed5d mov rcx, [rcx+120h]; this ; +0xf, 0x1800bed5f call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x1800bed66 test edi, edi ; +0x1b, 0x1800bed6b jnz short loc_1800BED81 ; +0x1d, 0x1800bed6d mov byte ptr [rbx+0B0h], 1 ; +0x1f, 0x1800bed6f mov rbx, [rsp+28h+arg_10] ; +0x26, 0x1800bed76 add rsp, 20h ; +0x2b, 0x1800bed7b pop rdi ; +0x2f, 0x1800bed7f retn ; +0x30, 0x1800bed80 cmp edi, eax ; +0x31, 0x1800bed81 jge loc_1800BEE37 ; +0x33, 0x1800bed83 mov [rsp+28h+arg_0], rbp ; +0x39, 0x1800bed89 sub eax, edi ; +0x3e, 0x1800bed8e mov [rsp+28h+arg_8], rsi ; +0x40, 0x1800bed90 xor ebp, ebp ; +0x45, 0x1800bed95 mov esi, eax ; +0x47, 0x1800bed97 nop dword ptr [rax+00000000h] ; +0x49, 0x1800bed99 mov rcx, [rbx+120h]; this ; +0x50, 0x1800beda0 call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x57, 0x1800beda7 mov rcx, rax ; +0x5c, 0x1800bedac mov rdi, rax ; +0x5f, 0x1800bedaf mov rdx, [rax] ; +0x62, 0x1800bedb2 call qword ptr [rdx+290h] ; +0x65, 0x1800bedb5 test al, al ; +0x6b, 0x1800bedbb jz short loc_1800BEDD7 ; +0x6d, 0x1800bedbd mov rdx, [rdi] ; +0x6f, 0x1800bedbf mov rcx, rdi ; +0x72, 0x1800bedc2 call qword ptr [rdx+2C0h] ; +0x75, 0x1800bedc5 mov rdx, [rdi] ; +0x7b, 0x1800bedcb mov rcx, rdi ; +0x7e, 0x1800bedce call qword ptr [rdx+2B8h] ; +0x81, 0x1800bedd1 mov rax, [rdi] ; +0x87, 0x1800bedd7 mov rcx, rdi ; +0x8a, 0x1800bedda call qword ptr [rax+2C8h] ; +0x8d, 0x1800beddd cmp [rbx+60h], rbp ; +0x93, 0x1800bede3 jz short loc_1800BEDFF ; +0x97, 0x1800bede7 mov rcx, [rbx+120h]; this ; +0x99, 0x1800bede9 call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0xa0, 0x1800bedf0 cmp [rbx+60h], rax ; +0xa5, 0x1800bedf5 jnz short loc_1800BEDFF ; +0xa9, 0x1800bedf9 mov [rbx+60h], rbp ; +0xab, 0x1800bedfb mov rcx, [rbx+120h]; this ; +0xaf, 0x1800bedff mov dl, 1; bool ; +0xb6, 0x1800bee06 call ?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0xb8, 0x1800bee08 sub rsi, 1 ; +0xbd, 0x1800bee0d jnz short loc_1800BEDA0 ; +0xc1, 0x1800bee11 mov rcx, [rbx+120h]; this ; +0xc3, 0x1800bee13 mov rsi, [rsp+28h+arg_8] ; +0xca, 0x1800bee1a mov rbp, [rsp+28h+arg_0] ; +0xcf, 0x1800bee1f call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0xd4, 0x1800bee24 mov [rbx+110h], rax ; +0xd9, 0x1800bee29 mov byte ptr [rbx+118h], 0 ; +0xe0, 0x1800bee30 mov rbx, [rsp+28h+arg_10] ; +0xe7, 0x1800bee37 add rsp, 20h ; +0xec, 0x1800bee3c pop rdi ; +0xf0, 0x1800bee40 retn ; +0xf1, 0x1800bee41