; ; cocos2d::CCDirector::popToSceneInStack from 0x1800bece0 to 0x1800bed49 (105 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b9234 ; ; 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, 0x1800bece0 mov rax, [rcx+120h] ; +0x2, 0x1800bece2 xor ebx, ebx ; +0x9, 0x1800bece9 xor r10b, r10b ; +0xb, 0x1800beceb mov r9, rdx ; +0xe, 0x1800becee mov r11, rcx ; +0x11, 0x1800becf1 mov edx, ebx ; +0x14, 0x1800becf4 test rax, rax ; +0x16, 0x1800becf6 jz short loc_1800BED34 ; +0x19, 0x1800becf9 mov rax, [rax+38h] ; +0x1b, 0x1800becfb mov r8d, [rax] ; +0x1f, 0x1800becff test r8d, r8d ; +0x22, 0x1800bed02 jz short loc_1800BED34 ; +0x25, 0x1800bed05 mov rax, [rax+10h] ; +0x27, 0x1800bed07 dec r8 ; +0x2b, 0x1800bed0b lea r8, [rax+r8*8] ; +0x2e, 0x1800bed0e cmp rax, r8 ; +0x32, 0x1800bed12 ja short loc_1800BED34 ; +0x35, 0x1800bed15 mov rcx, [rax] ; +0x37, 0x1800bed17 test rcx, rcx ; +0x3a, 0x1800bed1a jz short loc_1800BED34 ; +0x3d, 0x1800bed1d inc edx ; +0x3f, 0x1800bed1f cmp rcx, r9 ; +0x41, 0x1800bed21 jz short loc_1800BED31 ; +0x44, 0x1800bed24 add rax, 8 ; +0x46, 0x1800bed26 cmp rax, r8 ; +0x4a, 0x1800bed2a jbe short loc_1800BED17 ; +0x4d, 0x1800bed2d pop rbx ; +0x4f, 0x1800bed2f retn ; +0x50, 0x1800bed30 mov r10b, 1 ; +0x51, 0x1800bed31 test r10b, r10b ; +0x54, 0x1800bed34 cmovz edx, ebx; int ; +0x57, 0x1800bed37 test edx, edx ; +0x5a, 0x1800bed3a jle short loc_1800BED47 ; +0x5c, 0x1800bed3c mov rcx, r11; this ; +0x5e, 0x1800bed3e pop rbx ; +0x61, 0x1800bed41 jmp ?popToSceneStackLevel@CCDirector@cocos2d@@QEAAXH@Z; cocos2d::CCDirector::popToSceneStackLevel(int) ; +0x62, 0x1800bed42 pop rbx ; +0x67, 0x1800bed47 retn ; +0x68, 0x1800bed48