; ; cocos2d::CCDirector::replaceScene from 0x1800c2980 to 0x1800c2a88 (264 bytes) ; ; 5 xrefs: ; > cocos2d::CCTransitionScene::setNewScene @ 0x18005888f ; > @ 0x18014b28c ; > @ 0x18014b29c ; > @ 0x18014cf68 ; > @ 0x1801c354c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:22:25 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1800c2980 mov [rsp+arg_10], rbp ; +0x5, 0x1800c2985 mov [rsp+arg_18], rsi ; +0xa, 0x1800c298a push rdi ; +0xf, 0x1800c298f sub rsp, 30h ; +0x10, 0x1800c2990 mov rdi, rdx ; +0x14, 0x1800c2994 mov [rsp+38h+var_18], 0 ; +0x17, 0x1800c2997 mov rbx, rcx ; +0x1f, 0x1800c299f lea r9, ??_R0?AVCCTransitionScene@cocos2d@@@8; cocos2d::CCTransitionScene `RTTI Type Descriptor' ; +0x22, 0x1800c29a2 mov rcx, rdi ; +0x29, 0x1800c29a9 lea r8, ??_R0?AVCCScene@cocos2d@@@8; cocos2d::CCScene `RTTI Type Descriptor' ; +0x2c, 0x1800c29ac xor edx, edx ; +0x33, 0x1800c29b3 call __RTDynamicCast ; +0x35, 0x1800c29b5 test rax, rax ; +0x3a, 0x1800c29ba mov rsi, rax ; +0x3d, 0x1800c29bd setnz bpl ; +0x40, 0x1800c29c0 cmp byte ptr [rbx+0B0h], 0 ; +0x44, 0x1800c29c4 jz short loc_1800C29D9 ; +0x4b, 0x1800c29cb test rax, rax ; +0x4d, 0x1800c29cd jz short loc_1800C29D9 ; +0x50, 0x1800c29d0 xor al, al ; +0x52, 0x1800c29d2 jmp loc_1800C2A73 ; +0x54, 0x1800c29d4 mov rcx, [rbx+128h]; this ; +0x59, 0x1800c29d9 mov [rsp+38h+arg_0], r14 ; +0x60, 0x1800c29e0 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x65, 0x1800c29e5 cmp qword ptr [rbx+60h], 0 ; +0x6a, 0x1800c29ea mov r14d, eax ; +0x6f, 0x1800c29ef mov byte ptr [rbx+120h], 1 ; +0x72, 0x1800c29f2 jz short loc_1800C2A15 ; +0x79, 0x1800c29f9 mov rcx, [rbx+128h]; this ; +0x7b, 0x1800c29fb call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x82, 0x1800c2a02 cmp [rbx+60h], rax ; +0x87, 0x1800c2a07 jnz short loc_1800C2A15 ; +0x8b, 0x1800c2a0b mov qword ptr [rbx+60h], 0 ; +0x8d, 0x1800c2a0d mov rcx, [rbx+128h]; this ; +0x95, 0x1800c2a15 lea edx, [r14-1]; unsigned int ; +0x9c, 0x1800c2a1c mov r9b, 1; bool ; +0xa0, 0x1800c2a20 mov r8, rdi; struct cocos2d::CCObject * ; +0xa3, 0x1800c2a23 call ?replaceObjectAtIndex@CCArray@cocos2d@@QEAAXIPEAVCCObject@2@_N@Z; cocos2d::CCArray::replaceObjectAtIndex(uint,cocos2d::CCObject *,bool) ; +0xa6, 0x1800c2a26 mov r14, [rsp+38h+arg_0] ; +0xab, 0x1800c2a2b mov [rbx+118h], rdi ; +0xb0, 0x1800c2a30 test rsi, rsi ; +0xb7, 0x1800c2a37 jnz short loc_1800C2A6A ; +0xba, 0x1800c2a3a cmp [rbx+194h], sil ; +0xbc, 0x1800c2a3c jnz short loc_1800C2A6A ; +0xc3, 0x1800c2a43 mov rcx, [rbx+168h] ; +0xc5, 0x1800c2a45 test rcx, rcx ; +0xcc, 0x1800c2a4c jz short loc_1800C2A59 ; +0xcf, 0x1800c2a4f mov rax, [rcx] ; +0xd1, 0x1800c2a51 mov rdx, rdi ; +0xd4, 0x1800c2a54 call qword ptr [rax] ; +0xd7, 0x1800c2a57 mov rcx, [rdi+140h] ; +0xd9, 0x1800c2a59 test rcx, rcx ; +0xe0, 0x1800c2a60 jz short loc_1800C2A6A ; +0xe3, 0x1800c2a63 mov rax, [rcx] ; +0xe5, 0x1800c2a65 call qword ptr [rax] ; +0xe8, 0x1800c2a68 mov [rbx+0B0h], bpl ; +0xea, 0x1800c2a6a mov al, 1 ; +0xf1, 0x1800c2a71 mov rbx, [rsp+38h+arg_8] ; +0xf3, 0x1800c2a73 mov rbp, [rsp+38h+arg_10] ; +0xf8, 0x1800c2a78 mov rsi, [rsp+38h+arg_18] ; +0xfd, 0x1800c2a7d add rsp, 30h ; +0x102, 0x1800c2a82 pop rdi ; +0x106, 0x1800c2a86 retn ; +0x107, 0x1800c2a87