; ; GJBaseGameLayer::orderSpawnObjects from 0x140245d70 to 0x140245e1c (172 bytes) ; ; 5 xrefs: ; > LevelEditorLayer::onPlaytest @ 0x1402e01be ; > PlayLayer::createObjectsFromSetupFinished @ 0x1403adc1a ; > @ 0x140682414 ; > @ 0x140682448 ; > @ 0x1406ce5d4 ; ; 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_18], rsi ; +0x0, 0x140245d70 push rdi ; +0x5, 0x140245d75 sub rsp, 20h ; +0x6, 0x140245d76 mov rsi, rcx ; +0xa, 0x140245d7a mov rcx, [rcx+0DD0h] ; +0xd, 0x140245d7d call cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x14, 0x140245d84 mov rdi, [rsi+0DC8h] ; +0x1a, 0x140245d8a test rdi, rdi ; +0x21, 0x140245d91 jz short loc_140245DFC ; +0x24, 0x140245d94 mov rdi, [rdi+38h] ; +0x26, 0x140245d96 mov eax, [rdi] ; +0x2a, 0x140245d9a test eax, eax ; +0x2c, 0x140245d9c jz short loc_140245DFC ; +0x2e, 0x140245d9e mov rdi, [rdi+10h] ; +0x30, 0x140245da0 mov [rsp+28h+arg_10], rbp ; +0x34, 0x140245da4 lea rbp, [rax-1] ; +0x39, 0x140245da9 lea rbp, [rdi+rbp*8] ; +0x3d, 0x140245dad cmp rdi, rbp ; +0x41, 0x140245db1 ja short loc_140245DF7 ; +0x44, 0x140245db4 mov [rsp+28h+arg_8], rbx ; +0x46, 0x140245db6 nop dword ptr [rax+rax+00h] ; +0x4b, 0x140245dbb mov rbx, [rdi] ; +0x50, 0x140245dc0 test rbx, rbx ; +0x53, 0x140245dc3 jz short loc_140245DF2 ; +0x56, 0x140245dc6 mov rax, [rbx] ; +0x58, 0x140245dc8 lea rdx, [rsp+28h+arg_0] ; +0x5b, 0x140245dcb mov rcx, rbx ; +0x60, 0x140245dd0 call qword ptr [rax+670h] ; +0x63, 0x140245dd3 mov rdx, rax ; +0x69, 0x140245dd9 lea rcx, [rbx+708h] ; +0x6c, 0x140245ddc call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x73, 0x140245de3 add rdi, 8 ; +0x79, 0x140245de9 cmp rdi, rbp ; +0x7d, 0x140245ded jbe short loc_140245DC0 ; +0x80, 0x140245df0 mov rbx, [rsp+28h+arg_8] ; +0x82, 0x140245df2 mov rbp, [rsp+28h+arg_10] ; +0x87, 0x140245df7 mov rdx, [rsi+0DD0h] ; +0x8c, 0x140245dfc xor r8d, r8d ; +0x93, 0x140245e03 mov rcx, [rsi+0DC8h] ; +0x96, 0x140245e06 mov rsi, [rsp+28h+arg_18] ; +0x9d, 0x140245e0d add rsp, 20h ; +0xa2, 0x140245e12 pop rdi ; +0xa6, 0x140245e16 jmp LevelTools__sortChannelOrderObjects ; +0xa7, 0x140245e17