; ; cocos2d::CCDirector::replaceScene from 0x1800bf130 to 0x1800bf238 (264 bytes) ; ; 5 xrefs: ; > cocos2d::CCTransitionScene::setNewScene @ 0x1800569af ; > @ 0x180141f34 ; > @ 0x180141f44 ; > @ 0x1801438a8 ; > @ 0x1801b9288 ; ; 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, 0x1800bf130 mov [rsp+arg_10], rbp ; +0x5, 0x1800bf135 mov [rsp+arg_18], rsi ; +0xa, 0x1800bf13a push rdi ; +0xf, 0x1800bf13f sub rsp, 30h ; +0x10, 0x1800bf140 mov rdi, rdx ; +0x14, 0x1800bf144 mov [rsp+38h+var_18], 0 ; +0x17, 0x1800bf147 mov rbx, rcx ; +0x1f, 0x1800bf14f lea r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x22, 0x1800bf152 mov rcx, rdi ; +0x29, 0x1800bf159 lea r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x2c, 0x1800bf15c xor edx, edx ; +0x33, 0x1800bf163 call __RTDynamicCast ; +0x35, 0x1800bf165 test rax, rax ; +0x3a, 0x1800bf16a mov rsi, rax ; +0x3d, 0x1800bf16d setnz bpl ; +0x40, 0x1800bf170 cmp byte ptr [rbx+0A8h], 0 ; +0x44, 0x1800bf174 jz short loc_1800BF189 ; +0x4b, 0x1800bf17b test rax, rax ; +0x4d, 0x1800bf17d jz short loc_1800BF189 ; +0x50, 0x1800bf180 xor al, al ; +0x52, 0x1800bf182 jmp loc_1800BF223 ; +0x54, 0x1800bf184 mov rcx, [rbx+120h]; this ; +0x59, 0x1800bf189 mov [rsp+38h+arg_0], r14 ; +0x60, 0x1800bf190 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x65, 0x1800bf195 cmp qword ptr [rbx+60h], 0 ; +0x6a, 0x1800bf19a mov r14d, eax ; +0x6f, 0x1800bf19f mov byte ptr [rbx+118h], 1 ; +0x72, 0x1800bf1a2 jz short loc_1800BF1C5 ; +0x79, 0x1800bf1a9 mov rcx, [rbx+120h]; this ; +0x7b, 0x1800bf1ab call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x82, 0x1800bf1b2 cmp [rbx+60h], rax ; +0x87, 0x1800bf1b7 jnz short loc_1800BF1C5 ; +0x8b, 0x1800bf1bb mov qword ptr [rbx+60h], 0 ; +0x8d, 0x1800bf1bd mov rcx, [rbx+120h]; this ; +0x95, 0x1800bf1c5 lea edx, [r14-1]; unsigned int ; +0x9c, 0x1800bf1cc mov r9b, 1; bool ; +0xa0, 0x1800bf1d0 mov r8, rdi; struct cocos2d::CCObject * ; +0xa3, 0x1800bf1d3 call ?replaceObjectAtIndex@CCArray@cocos2d@@QEAAXIPEAVCCObject@2@_N@Z; cocos2d::CCArray::replaceObjectAtIndex(uint,cocos2d::CCObject *,bool) ; +0xa6, 0x1800bf1d6 mov r14, [rsp+38h+arg_0] ; +0xab, 0x1800bf1db mov [rbx+110h], rdi ; +0xb0, 0x1800bf1e0 test rsi, rsi ; +0xb7, 0x1800bf1e7 jnz short loc_1800BF21A ; +0xba, 0x1800bf1ea cmp [rbx+18Ch], sil ; +0xbc, 0x1800bf1ec jnz short loc_1800BF21A ; +0xc3, 0x1800bf1f3 mov rcx, [rbx+160h] ; +0xc5, 0x1800bf1f5 test rcx, rcx ; +0xcc, 0x1800bf1fc jz short loc_1800BF209 ; +0xcf, 0x1800bf1ff mov rax, [rcx] ; +0xd1, 0x1800bf201 mov rdx, rdi ; +0xd4, 0x1800bf204 call qword ptr [rax] ; +0xd7, 0x1800bf207 mov rcx, [rdi+140h] ; +0xd9, 0x1800bf209 test rcx, rcx ; +0xe0, 0x1800bf210 jz short loc_1800BF21A ; +0xe3, 0x1800bf213 mov rax, [rcx] ; +0xe5, 0x1800bf215 call qword ptr [rax] ; +0xe8, 0x1800bf218 mov [rbx+0A8h], bpl ; +0xea, 0x1800bf21a mov al, 1 ; +0xf1, 0x1800bf221 mov rbx, [rsp+38h+arg_8] ; +0xf3, 0x1800bf223 mov rbp, [rsp+38h+arg_10] ; +0xf8, 0x1800bf228 mov rsi, [rsp+38h+arg_18] ; +0xfd, 0x1800bf22d add rsp, 30h ; +0x102, 0x1800bf232 pop rdi ; +0x106, 0x1800bf236 retn ; +0x107, 0x1800bf237