; ; GJBaseGameLayer::spawnGroup from 0x14021ab80 to 0x14021adfa (634 bytes) ; ; 5 xrefs: ; > @ 0x140566700 ; > @ 0x140585978 ; > @ 0x1405ca540 ; > @ 0x1406cd38c ; > @ 0x1406cd398 ; ; 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_0], rbx ; +0x0, 0x14021ab80 mov [rsp+arg_8], rbp ; +0x5, 0x14021ab85 mov [rsp+arg_18], rsi ; +0xa, 0x14021ab8a mov [rsp+arg_10], r8b ; +0xf, 0x14021ab8f push rdi ; +0x14, 0x14021ab94 push r12 ; +0x15, 0x14021ab95 push r13 ; +0x17, 0x14021ab97 push r14 ; +0x19, 0x14021ab99 push r15 ; +0x1b, 0x14021ab9b sub rsp, 70h ; +0x1d, 0x14021ab9d movaps [rsp+98h+var_38], xmm6 ; +0x21, 0x14021aba1 movaps xmm6, xmm3 ; +0x26, 0x14021aba6 mov esi, edx ; +0x29, 0x14021aba9 mov r14, rcx ; +0x2b, 0x14021abab mov rdx, [rcx+7B8h] ; +0x2e, 0x14021abae mov eax, esi ; +0x35, 0x14021abb5 xor r9d, r9d ; +0x37, 0x14021abb7 test esi, esi ; +0x3a, 0x14021abba cmovs eax, r9d ; +0x3c, 0x14021abbc mov ecx, 270Fh ; +0x40, 0x14021abc0 cmp eax, ecx ; +0x45, 0x14021abc5 cmovg eax, ecx ; +0x47, 0x14021abc7 movsxd rcx, eax ; +0x4a, 0x14021abca mov r8, rcx ; +0x4d, 0x14021abcd shr r8, 5 ; +0x50, 0x14021abd0 mov rdx, [rdx+4F8h] ; +0x54, 0x14021abd4 and ecx, 1Fh ; +0x5b, 0x14021abdb mov eax, 1 ; +0x5e, 0x14021abde shl eax, cl ; +0x63, 0x14021abe3 test [rdx+r8*4], eax ; +0x65, 0x14021abe5 jz loc_14021ADD1 ; +0x69, 0x14021abe9 mov r15, [rsp+98h+arg_20] ; +0x6f, 0x14021abef mov rbp, [r15+8] ; +0x77, 0x14021abf7 cmp [r15], rbp ; +0x7b, 0x14021abfb jnz short loc_14021AC05 ; +0x7e, 0x14021abfe mov ebp, r9d ; +0x80, 0x14021ac00 jmp short loc_14021AC0A ; +0x83, 0x14021ac03 mov ebp, [rbp-4] ; +0x85, 0x14021ac05 neg ebp ; +0x88, 0x14021ac08 mov edi, r9d ; +0x8a, 0x14021ac0a mov r13d, [rsp+98h+arg_28] ; +0x8d, 0x14021ac0d cmp [r14+6EFh], r9b ; +0x95, 0x14021ac15 cmovnz edi, r13d ; +0x9c, 0x14021ac1c mov rdx, [r14+0F20h] ; +0xa0, 0x14021ac20 mov rax, [rdx+8] ; +0xa7, 0x14021ac27 cmp [rax+19h], r9b ; +0xab, 0x14021ac2b jnz short loc_14021AC56 ; +0xaf, 0x14021ac2f cmp [rax+24h], esi ; +0xb1, 0x14021ac31 jl short loc_14021AC4C ; +0xb4, 0x14021ac34 jg short loc_14021AC44 ; +0xb6, 0x14021ac36 cmp [rax+20h], edi ; +0xb8, 0x14021ac38 jl short loc_14021AC4C ; +0xbb, 0x14021ac3b jg short loc_14021AC44 ; +0xbd, 0x14021ac3d cmp [rax+1Ch], ebp ; +0xbf, 0x14021ac3f jl short loc_14021AC4C ; +0xc2, 0x14021ac42 mov rdx, rax ; +0xc4, 0x14021ac44 mov rax, [rax] ; +0xc7, 0x14021ac47 jmp short loc_14021AC50 ; +0xca, 0x14021ac4a mov rax, [rax+10h] ; +0xcc, 0x14021ac4c cmp [rax+19h], r9b ; +0xd0, 0x14021ac50 jz short loc_14021AC31 ; +0xd4, 0x14021ac54 cmp [rdx+19h], r9b ; +0xd6, 0x14021ac56 jnz short loc_14021AC7B ; +0xda, 0x14021ac5a cmp esi, [rdx+24h] ; +0xdc, 0x14021ac5c jl short loc_14021AC7B ; +0xdf, 0x14021ac5f jg loc_14021ADD1 ; +0xe1, 0x14021ac61 cmp edi, [rdx+20h] ; +0xe7, 0x14021ac67 jl short loc_14021AC7B ; +0xea, 0x14021ac6a jg loc_14021ADD1 ; +0xec, 0x14021ac6c cmp ebp, [rdx+1Ch] ; +0xf2, 0x14021ac72 jge loc_14021ADD1 ; +0xf5, 0x14021ac75 lea r12, [r14+0F20h] ; +0xfb, 0x14021ac7b mov rdx, [r12] ; +0x102, 0x14021ac82 mov rax, [rdx+8] ; +0x106, 0x14021ac86 mov qword ptr [rsp+98h+var_58], rax ; +0x10a, 0x14021ac8a mov dword ptr [rsp+98h+var_58+8], r9d ; +0x10f, 0x14021ac8f cmp [rax+19h], r9b ; +0x114, 0x14021ac94 jnz short loc_14021ACD7 ; +0x118, 0x14021ac98 nop word ptr [rax+rax+00h] ; +0x11a, 0x14021ac9a mov qword ptr [rsp+98h+var_58], rax ; +0x120, 0x14021aca0 cmp [rax+24h], esi ; +0x125, 0x14021aca5 jl short loc_14021ACC8 ; +0x128, 0x14021aca8 jg short loc_14021ACB8 ; +0x12a, 0x14021acaa cmp [rax+20h], edi ; +0x12c, 0x14021acac jl short loc_14021ACC8 ; +0x12f, 0x14021acaf jg short loc_14021ACB8 ; +0x131, 0x14021acb1 cmp [rax+1Ch], ebp ; +0x133, 0x14021acb3 jl short loc_14021ACC8 ; +0x136, 0x14021acb6 mov dword ptr [rsp+98h+var_58+8], 1 ; +0x138, 0x14021acb8 mov rdx, rax ; +0x140, 0x14021acc0 mov rax, [rax] ; +0x143, 0x14021acc3 jmp short loc_14021ACD1 ; +0x146, 0x14021acc6 mov dword ptr [rsp+98h+var_58+8], r9d ; +0x148, 0x14021acc8 mov rax, [rax+10h] ; +0x14d, 0x14021accd cmp [rax+19h], r9b ; +0x151, 0x14021acd1 jz short loc_14021ACA0 ; +0x155, 0x14021acd5 cmp [rdx+19h], r9b ; +0x157, 0x14021acd7 jnz short loc_14021ACF0 ; +0x15b, 0x14021acdb cmp esi, [rdx+24h] ; +0x15d, 0x14021acdd jl short loc_14021ACF0 ; +0x160, 0x14021ace0 jg short loc_14021AD52 ; +0x162, 0x14021ace2 cmp edi, [rdx+20h] ; +0x164, 0x14021ace4 jl short loc_14021ACF0 ; +0x167, 0x14021ace7 jg short loc_14021AD52 ; +0x169, 0x14021ace9 cmp ebp, [rdx+1Ch] ; +0x16b, 0x14021aceb jge short loc_14021AD52 ; +0x16e, 0x14021acee mov rax, 666666666666666h ; +0x170, 0x14021acf0 cmp [r12+8], rax ; +0x17a, 0x14021acfa jz loc_14021ADF4 ; +0x17f, 0x14021acff mov rbx, [r12] ; +0x185, 0x14021ad05 mov qword ptr [rsp+98h+var_68], r12 ; +0x189, 0x14021ad09 mov qword ptr [rsp+98h+var_68+8], r9 ; +0x18e, 0x14021ad0e mov ecx, 28h ; '('; Size ; +0x193, 0x14021ad13 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x198, 0x14021ad18 nop ; +0x19d, 0x14021ad1d mov [rax+1Ch], ebp ; +0x19e, 0x14021ad1e mov [rax+20h], edi ; +0x1a1, 0x14021ad21 mov [rax+24h], esi ; +0x1a4, 0x14021ad24 mov [rax], rbx ; +0x1a7, 0x14021ad27 mov [rax+8], rbx ; +0x1aa, 0x14021ad2a mov [rax+10h], rbx ; +0x1ae, 0x14021ad2e mov word ptr [rax+18h], 0 ; +0x1b2, 0x14021ad32 movups xmm0, [rsp+98h+var_58] ; +0x1b8, 0x14021ad38 movaps [rsp+98h+var_68], xmm0 ; +0x1bd, 0x14021ad3d mov r8, rax ; +0x1c2, 0x14021ad42 lea rdx, [rsp+98h+var_68] ; +0x1c5, 0x14021ad45 mov rcx, r12 ; +0x1ca, 0x14021ad4a call sub_1400636D0 ; +0x1cd, 0x14021ad4d mov edx, esi ; +0x1d2, 0x14021ad52 lea rcx, [r14-198h] ; +0x1d4, 0x14021ad54 call GJBaseGameLayer__getGroup ; +0x1db, 0x14021ad5b cmp [rsp+98h+arg_10], 0 ; +0x1e0, 0x14021ad60 jz short loc_14021AD91 ; +0x1e8, 0x14021ad68 mov edx, [rsp+98h+arg_30] ; +0x1ea, 0x14021ad6a mov [rsp+98h+var_70], edx ; +0x1f1, 0x14021ad71 mov [rsp+98h+var_78], r13d ; +0x1f5, 0x14021ad75 mov r9, r15 ; +0x1fa, 0x14021ad7a movaps xmm2, xmm6 ; +0x1fd, 0x14021ad7d mov rdx, rax ; +0x200, 0x14021ad80 lea rcx, [r14-198h] ; +0x203, 0x14021ad83 call GJBaseGameLayer__spawnObjectsInOrder ; +0x20a, 0x14021ad8a jmp short loc_14021ADD1 ; +0x20f, 0x14021ad8f test rax, rax ; +0x211, 0x14021ad91 jz short loc_14021ADD1 ; +0x214, 0x14021ad94 mov rbx, [rax+38h] ; +0x216, 0x14021ad96 mov eax, [rbx] ; +0x21a, 0x14021ad9a test eax, eax ; +0x21c, 0x14021ad9c jz short loc_14021ADD1 ; +0x21e, 0x14021ad9e mov rbx, [rbx+10h] ; +0x220, 0x14021ada0 lea rdi, [rax-1] ; +0x224, 0x14021ada4 lea rdi, [rbx+rdi*8] ; +0x228, 0x14021ada8 cmp rbx, rdi ; +0x22c, 0x14021adac ja short loc_14021ADD1 ; +0x22f, 0x14021adaf mov rdx, [rbx] ; +0x231, 0x14021adb1 test rdx, rdx ; +0x234, 0x14021adb4 jz short loc_14021ADD1 ; +0x237, 0x14021adb7 mov rax, [r14] ; +0x239, 0x14021adb9 mov r9, r15 ; +0x23c, 0x14021adbc movaps xmm2, xmm6 ; +0x23f, 0x14021adbf mov rcx, r14 ; +0x242, 0x14021adc2 call qword ptr [rax+10h] ; +0x245, 0x14021adc5 add rbx, 8 ; +0x248, 0x14021adc8 cmp rbx, rdi ; +0x24c, 0x14021adcc jbe short loc_14021ADB1 ; +0x24f, 0x14021adcf lea r11, [rsp+98h+var_28] ; +0x251, 0x14021add1 mov rbx, [r11+30h] ; +0x256, 0x14021add6 mov rbp, [r11+38h] ; +0x25a, 0x14021adda mov rsi, [r11+48h] ; +0x25e, 0x14021adde movaps xmm6, [rsp+98h+var_38] ; +0x262, 0x14021ade2 mov rsp, r11 ; +0x267, 0x14021ade7 pop r15 ; +0x26a, 0x14021adea pop r14 ; +0x26c, 0x14021adec pop r13 ; +0x26e, 0x14021adee pop r12 ; +0x270, 0x14021adf0 pop rdi ; +0x272, 0x14021adf2 retn ; +0x273, 0x14021adf3 call sub_140052E40 ; +0x274, 0x14021adf4 db 0CCh ; +0x279, 0x14021adf9