; ; GJBaseGameLayer::resetSpawnChannelIndex from 0x140350130 to 0x1403501de (174 bytes) ; ; 6 xrefs: ; > GJBaseGameLayer::resetLevelVariables @ 0x1403458d1 ; > LevelEditorLayer::updateGameObjects @ 0x1403fb174 ; > LevelEditorLayer::onPlaytest @ 0x1403fed84 ; > @ 0x1408b881c ; > @ 0x1408b882c ; > @ 0x140920228 ; ; 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:30:46 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x140350130 push rsi ; +0x5, 0x140350135 push rdi ; +0x6, 0x140350136 push r14 ; +0x7, 0x140350137 sub rsp, 40h ; +0x9, 0x140350139 mov rbx, rcx ; +0xd, 0x14035013d xor r14d, r14d ; +0x10, 0x140350140 mov [rcx+33Ch], r14d ; +0x13, 0x140350143 mov rcx, [rcx+0DF0h] ; +0x1a, 0x14035014a call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x21, 0x140350151 mov rcx, rax ; +0x27, 0x140350157 mov rsi, rax ; +0x2a, 0x14035015a mov edi, r14d ; +0x2d, 0x14035015d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x30, 0x140350160 test eax, eax ; +0x36, 0x140350166 jz short loc_1403501D0 ; +0x38, 0x140350168 mov [rsp+58h+arg_8], rbp ; +0x3a, 0x14035016a nop ; +0x3f, 0x14035016f mov edx, edi ; +0x40, 0x140350170 mov rcx, rsi ; +0x42, 0x140350172 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x45, 0x140350175 lea r8, [rsp+58h+arg_0] ; +0x4b, 0x14035017b lea rdx, [rsp+58h+var_38] ; +0x50, 0x140350180 mov ecx, [rax+38h] ; +0x55, 0x140350185 mov [rsp+58h+arg_0], ecx ; +0x58, 0x140350188 lea rcx, [rbx+348h] ; +0x5c, 0x14035018c call sub_140067F60 ; +0x63, 0x140350193 lea r8, [rsp+58h+arg_0] ; +0x68, 0x140350198 lea rdx, [rsp+58h+var_28] ; +0x6d, 0x14035019d mov rcx, [rax] ; +0x72, 0x1403501a2 mov [rcx+14h], r14d ; +0x75, 0x1403501a5 lea rcx, [rbx+388h] ; +0x79, 0x1403501a9 call sub_140358A00 ; +0x80, 0x1403501b0 inc edi ; +0x85, 0x1403501b5 mov rcx, [rax] ; +0x87, 0x1403501b7 mov [rcx+14h], r14b ; +0x8a, 0x1403501ba mov rcx, rsi ; +0x8e, 0x1403501be call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x91, 0x1403501c1 cmp edi, eax ; +0x97, 0x1403501c7 jb short loc_140350170 ; +0x99, 0x1403501c9 mov rbp, [rsp+58h+arg_8] ; +0x9b, 0x1403501cb mov rbx, [rsp+58h+arg_10] ; +0xa0, 0x1403501d0 add rsp, 40h ; +0xa5, 0x1403501d5 pop r14 ; +0xa9, 0x1403501d9 pop rdi ; +0xab, 0x1403501db pop rsi ; +0xac, 0x1403501dc retn ; +0xad, 0x1403501dd