; ; GJBaseGameLayer::resetSpawnChannelIndex from 0x140245e20 to 0x140245ece (174 bytes) ; ; 6 xrefs: ; > GJBaseGameLayer::resetLevelVariables @ 0x14023b93b ; > LevelEditorLayer::updateGameObjects @ 0x1402dc8cd ; > LevelEditorLayer::onPlaytest @ 0x1402e01c6 ; > @ 0x14068246c ; > @ 0x14068247c ; > @ 0x1406ce610 ; ; 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, 0x140245e20 push rsi ; +0x5, 0x140245e25 push rdi ; +0x6, 0x140245e26 push r14 ; +0x7, 0x140245e27 sub rsp, 40h ; +0x9, 0x140245e29 mov rbx, rcx ; +0xd, 0x140245e2d xor r14d, r14d ; +0x10, 0x140245e30 mov [rcx+33Ch], r14d ; +0x13, 0x140245e33 mov rcx, [rcx+0DD0h] ; +0x1a, 0x140245e3a call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x21, 0x140245e41 mov rcx, rax ; +0x27, 0x140245e47 mov rsi, rax ; +0x2a, 0x140245e4a mov edi, r14d ; +0x2d, 0x140245e4d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x30, 0x140245e50 test eax, eax ; +0x36, 0x140245e56 jz short loc_140245EC0 ; +0x38, 0x140245e58 mov [rsp+58h+arg_8], rbp ; +0x3a, 0x140245e5a nop ; +0x3f, 0x140245e5f mov edx, edi ; +0x40, 0x140245e60 mov rcx, rsi ; +0x42, 0x140245e62 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x45, 0x140245e65 lea r8, [rsp+58h+arg_0] ; +0x4b, 0x140245e6b lea rdx, [rsp+58h+var_38] ; +0x50, 0x140245e70 mov ecx, [rax+38h] ; +0x55, 0x140245e75 mov [rsp+58h+arg_0], ecx ; +0x58, 0x140245e78 lea rcx, [rbx+348h] ; +0x5c, 0x140245e7c call sub_140060B20 ; +0x63, 0x140245e83 lea r8, [rsp+58h+arg_0] ; +0x68, 0x140245e88 lea rdx, [rsp+58h+var_28] ; +0x6d, 0x140245e8d mov rcx, [rax] ; +0x72, 0x140245e92 mov [rcx+14h], r14d ; +0x75, 0x140245e95 lea rcx, [rbx+388h] ; +0x79, 0x140245e99 call sub_140250920 ; +0x80, 0x140245ea0 inc edi ; +0x85, 0x140245ea5 mov rcx, [rax] ; +0x87, 0x140245ea7 mov [rcx+14h], r14b ; +0x8a, 0x140245eaa mov rcx, rsi ; +0x8e, 0x140245eae call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x91, 0x140245eb1 cmp edi, eax ; +0x97, 0x140245eb7 jb short loc_140245E60 ; +0x99, 0x140245eb9 mov rbp, [rsp+58h+arg_8] ; +0x9b, 0x140245ebb mov rbx, [rsp+58h+arg_10] ; +0xa0, 0x140245ec0 add rsp, 40h ; +0xa5, 0x140245ec5 pop r14 ; +0xa9, 0x140245ec9 pop rdi ; +0xab, 0x140245ecb pop rsi ; +0xac, 0x140245ecc retn ; +0xad, 0x140245ecd