; ; GJBaseGameLayer::checkSpawnObjects from 0x140322080 to 0x14032235a (730 bytes) ; ; 8 xrefs: ; > GJBaseGameLayer::loadUpToPosition @ 0x14033e97e ; > GJBaseGameLayer::loadUpToPosition @ 0x14033e994 ; > GJBaseGameLayer::update @ 0x140341334 ; > LevelEditorLayer::onPlaytest @ 0x1403fefc7 ; > PlayLayer::setupHasCompleted @ 0x140505acf ; > PlayLayer::resetLevel @ 0x14051954a ; > @ 0x14091ee78 ; > @ 0x14091ee84 ; ; 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:23 +0000 ; push rbp ; +0x0, 0x140322080 push rbx ; +0x2, 0x140322082 push rsi ; +0x3, 0x140322083 push rdi ; +0x4, 0x140322084 push r12 ; +0x5, 0x140322085 push r13 ; +0x7, 0x140322087 push r14 ; +0x9, 0x140322089 push r15 ; +0xb, 0x14032208b lea rbp, [rsp-1Fh] ; +0xd, 0x14032208d sub rsp, 98h ; +0x12, 0x140322092 mov rdi, rcx ; +0x19, 0x140322099 mov rcx, [rcx+0DB8h] ; +0x1c, 0x14032209c cmp byte ptr [rcx+0B78h], 0 ; +0x23, 0x1403220a3 jz short loc_1403220CA ; +0x2a, 0x1403220aa movsd xmm2, qword ptr [rdi+3D0h] ; +0x2c, 0x1403220ac cvtpd2ps xmm2, xmm2 ; +0x34, 0x1403220b4 mov rax, [rdi] ; +0x38, 0x1403220b8 lea rdx, [rbp+57h+arg_0] ; +0x3b, 0x1403220bb mov rcx, rdi ; +0x3f, 0x1403220bf call qword ptr [rax+4F0h] ; +0x42, 0x1403220c2 jmp short loc_1403220E0 ; +0x48, 0x1403220c8 mov rax, [rcx] ; +0x4a, 0x1403220ca call qword ptr [rax+0C8h] ; +0x4d, 0x1403220cd mov rdx, rax ; +0x53, 0x1403220d3 lea rcx, [rbp+57h+arg_10] ; +0x56, 0x1403220d6 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5a, 0x1403220da mov rdx, rax ; +0x60, 0x1403220e0 lea rcx, [rbp+57h+arg_8] ; +0x63, 0x1403220e3 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x67, 0x1403220e7 mov r15b, 1 ; +0x6d, 0x1403220ed movsxd rdx, dword ptr [rdi+33Ch] ; +0x70, 0x1403220f0 mov rcx, [rdi+0DF0h] ; +0x77, 0x1403220f7 call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x7e, 0x1403220fe mov rbx, rax ; +0x84, 0x140322104 test rax, rax ; +0x87, 0x140322107 jnz short loc_140322115 ; +0x8a, 0x14032210a call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x8c, 0x14032210c mov rbx, rax ; +0x92, 0x140322112 mov eax, [rdi+33Ch] ; +0x95, 0x140322115 mov [rbp+57h+arg_0], eax ; +0x9b, 0x14032211b lea r8, [rbp+57h+arg_0] ; +0x9e, 0x14032211e lea rdx, [rbp+57h+var_88] ; +0xa2, 0x140322122 lea rcx, [rdi+348h] ; +0xa6, 0x140322126 call sub_140067F60 ; +0xad, 0x14032212d mov rcx, [rax] ; +0xb2, 0x140322132 mov r14d, [rcx+14h] ; +0xb5, 0x140322135 lea r8, [rbp+57h+arg_0] ; +0xb9, 0x140322139 lea rdx, [rbp+57h+var_78] ; +0xbd, 0x14032213d lea rcx, [rdi+388h] ; +0xc1, 0x140322141 call sub_140358A00 ; +0xc8, 0x140322148 mov rcx, [rax] ; +0xcd, 0x14032214d movzx esi, byte ptr [rcx+14h] ; +0xd0, 0x140322150 mov rcx, rbx ; +0xd4, 0x140322154 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd7, 0x140322157 cmp eax, r14d ; +0xdd, 0x14032215d jbe loc_140322203 ; +0xe0, 0x140322160 mov edx, r14d ; +0xe6, 0x140322166 mov rcx, rbx ; +0xe9, 0x140322169 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xec, 0x14032216c mov rbx, rax ; +0xf2, 0x140322172 xor r14b, r14b ; +0xf5, 0x140322175 cmp [rax+5D0h], r14b ; +0xf8, 0x140322178 jnz loc_140322277 ; +0xff, 0x14032217f lea rdx, [rax+708h] ; +0x105, 0x140322185 cmp [rdi+317Eh], r14b ; +0x10c, 0x14032218c jz short loc_1403221B4 ; +0x113, 0x140322193 lea rcx, [rbp+57h+arg_10] ; +0x115, 0x140322195 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x119, 0x140322199 movss xmm0, [rbp+57h+arg_8] ; +0x11f, 0x14032219f comiss xmm0, [rbp+57h+arg_10] ; +0x124, 0x1403221a4 setnb al ; +0x128, 0x1403221a8 test al, al ; +0x12b, 0x1403221ab jz short loc_1403221E5 ; +0x12d, 0x1403221ad jmp loc_140322287 ; +0x12f, 0x1403221af mov rax, [rdi+0DB8h] ; +0x134, 0x1403221b4 cmp [rax+9CBh], r14b ; +0x13b, 0x1403221bb jz short loc_140322242 ; +0x142, 0x1403221c2 test sil, sil ; +0x144, 0x1403221c4 jnz short loc_14032222B ; +0x147, 0x1403221c7 lea rcx, [rbp+57h+arg_18] ; +0x149, 0x1403221c9 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x14d, 0x1403221cd movss xmm0, [rbp+57h+arg_C] ; +0x153, 0x1403221d3 comiss xmm0, [rbp+57h+arg_1C] ; +0x158, 0x1403221d8 jnb loc_140322287 ; +0x15f, 0x1403221df xor r15b, r15b ; +0x165, 0x1403221e5 xor ecx, ecx ; +0x168, 0x1403221e8 movzx eax, r15b ; +0x16a, 0x1403221ea cmp [rdi+3550h], cl ; +0x16e, 0x1403221ee cmovz ecx, eax ; +0x174, 0x1403221f4 movzx r15d, cl ; +0x177, 0x1403221f7 test cl, cl ; +0x17b, 0x1403221fb jnz loc_1403220F0 ; +0x17d, 0x1403221fd mov rax, [rdi] ; +0x183, 0x140322203 movss xmm1, dword ptr [rdi+330h] ; +0x186, 0x140322206 mov rcx, rdi ; +0x18e, 0x14032220e call qword ptr [rax+528h] ; +0x191, 0x140322211 add rsp, 98h ; +0x197, 0x140322217 pop r15 ; +0x19e, 0x14032221e pop r14 ; +0x1a0, 0x140322220 pop r13 ; +0x1a2, 0x140322222 pop r12 ; +0x1a4, 0x140322224 pop rdi ; +0x1a6, 0x140322226 pop rsi ; +0x1a7, 0x140322227 pop rbx ; +0x1a8, 0x140322228 pop rbp ; +0x1a9, 0x140322229 retn ; +0x1aa, 0x14032222a lea rcx, [rbp+57h+var_A0] ; +0x1ab, 0x14032222b call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1af, 0x14032222f movss xmm0, [rbp+57h+var_9C] ; +0x1b5, 0x140322235 comiss xmm0, [rbp+57h+arg_C] ; +0x1ba, 0x14032223a jb short loc_1403221E5 ; +0x1be, 0x14032223e jmp short loc_140322287 ; +0x1c0, 0x140322240 test sil, sil ; +0x1c2, 0x140322242 jnz short loc_14032225C ; +0x1c5, 0x140322245 lea rcx, [rbp+57h+var_98] ; +0x1c7, 0x140322247 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1cb, 0x14032224b movss xmm0, [rbp+57h+arg_8] ; +0x1d1, 0x140322251 comiss xmm0, [rbp+57h+var_98] ; +0x1d6, 0x140322256 jmp short loc_1403221DF ; +0x1da, 0x14032225a lea rcx, [rbp+57h+var_90] ; +0x1dc, 0x14032225c call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1e0, 0x140322260 movss xmm0, [rbp+57h+var_90] ; +0x1e6, 0x140322266 comiss xmm0, [rbp+57h+arg_8] ; +0x1eb, 0x14032226b jb loc_1403221E5 ; +0x1ef, 0x14032226f jmp short loc_140322287 ; +0x1f5, 0x140322275 cmp [rax+5B3h], r14b ; +0x1f7, 0x140322277 jz loc_1403221E5 ; +0x1fe, 0x14032227e mov r14b, 1 ; +0x204, 0x140322284 cmp byte ptr [rbx+28Eh], 0 ; +0x207, 0x140322287 jnz loc_140322325 ; +0x20e, 0x14032228e test r14b, r14b ; +0x214, 0x140322294 jnz loc_140322325 ; +0x217, 0x140322297 cmp [rdi+3599h], r14b ; +0x21d, 0x14032229d jz short loc_1403222AF ; +0x224, 0x1403222a4 cmp [rbx+4F3h], r14b ; +0x226, 0x1403222a6 jnz short loc_140322325 ; +0x22d, 0x1403222ad cmp dword ptr [rbx+40Ch], 4F4h ; +0x22f, 0x1403222af jnz short loc_140322310 ; +0x239, 0x1403222b9 xorps xmm0, xmm0 ; +0x23b, 0x1403222bb movdqu [rbp+57h+var_58], xmm0 ; +0x23e, 0x1403222be xor esi, esi ; +0x243, 0x1403222c3 mov [rbp+57h+var_48], rsi ; +0x245, 0x1403222c5 lea rdx, [rbp+57h+var_58] ; +0x249, 0x1403222c9 mov rcx, rbx ; +0x24d, 0x1403222cd call SpawnTriggerGameObject__updateRemapKeys ; +0x250, 0x1403222d0 nop ; +0x255, 0x1403222d5 mov rcx, qword ptr [rbp+57h+var_58] ; +0x256, 0x1403222d6 test rcx, rcx ; +0x25a, 0x1403222da jz short loc_140322310 ; +0x25d, 0x1403222dd mov rdx, [rbp+57h+var_48] ; +0x25f, 0x1403222df sub rdx, rcx ; +0x263, 0x1403222e3 and rdx, 0FFFFFFFFFFFFFFFCh ; +0x266, 0x1403222e6 mov rax, rcx ; +0x26a, 0x1403222ea cmp rdx, 1000h ; +0x26d, 0x1403222ed jb short loc_14032230B ; +0x274, 0x1403222f4 add rdx, 27h ; ''' ; +0x276, 0x1403222f6 mov rcx, [rcx-8]; Block ; +0x27a, 0x1403222fa sub rax, rcx ; +0x27e, 0x1403222fe sub rax, 8 ; +0x281, 0x140322301 cmp rax, 1Fh ; +0x285, 0x140322305 ja short loc_140322344 ; +0x289, 0x140322309 call j_j_free ; +0x28b, 0x14032230b mov rax, [rbx] ; +0x290, 0x140322310 xor r9d, r9d ; +0x293, 0x140322313 xor r8d, r8d ; +0x296, 0x140322316 mov rdx, rdi ; +0x299, 0x140322319 mov rcx, rbx ; +0x29c, 0x14032231c call qword ptr [rax+478h] ; +0x29f, 0x14032231f lea r8, [rbp+57h+arg_0] ; +0x2a5, 0x140322325 lea rdx, [rbp+57h+var_68] ; +0x2a9, 0x140322329 lea rcx, [rdi+348h] ; +0x2ad, 0x14032232d call sub_140067F60 ; +0x2b4, 0x140322334 mov rcx, [rax] ; +0x2b9, 0x140322339 inc dword ptr [rcx+14h] ; +0x2bc, 0x14032233c jmp loc_1403221E8 ; +0x2bf, 0x14032233f mov [rsp+0D0h+Reserved], rsi; Reserved ; +0x2c4, 0x140322344 xor r9d, r9d; LineNo ; +0x2c9, 0x140322349 xor r8d, r8d; FileName ; +0x2cc, 0x14032234c xor edx, edx; FunctionName ; +0x2cf, 0x14032234f xor ecx, ecx; Expression ; +0x2d1, 0x140322351 call cs:_invoke_watson ; +0x2d3, 0x140322353 db 0CCh ; +0x2d9, 0x140322359