; ; GJBaseGameLayer::generateSpawnRemap from 0x14021dfb0 to 0x14021e181 (465 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::updateSpecialGroupData @ 0x14020df39 ; > LevelEditorLayer::getLevelString @ 0x1402d6c91 ; > @ 0x1406cd3ec ; ; 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, 0x14021dfb0 mov [rsp+arg_8], rbp ; +0x5, 0x14021dfb5 mov [rsp+arg_10], rsi ; +0xa, 0x14021dfba push rdi ; +0xf, 0x14021dfbf push r12 ; +0x10, 0x14021dfc0 push r13 ; +0x12, 0x14021dfc2 push r14 ; +0x14, 0x14021dfc4 push r15 ; +0x16, 0x14021dfc6 sub rsp, 70h ; +0x18, 0x14021dfc8 mov r15, rcx ; +0x1c, 0x14021dfcc lea rsi, [rcx+8F8h] ; +0x1f, 0x14021dfcf mov rbx, [rsi] ; +0x26, 0x14021dfd6 mov rdi, [rsi+8] ; +0x29, 0x14021dfd9 cmp rbx, rdi ; +0x2d, 0x14021dfdd jz short loc_14021E004 ; +0x30, 0x14021dfe0 lea rcx, [rbx+18h] ; +0x32, 0x14021dfe2 call sub_14005D100 ; +0x36, 0x14021dfe6 lea rcx, [rbx+8] ; +0x3b, 0x14021dfeb call sub_14005D870 ; +0x3f, 0x14021dfef add rbx, 40h ; '@' ; +0x44, 0x14021dff4 cmp rbx, rdi ; +0x48, 0x14021dff8 jnz short loc_14021DFE2 ; +0x4b, 0x14021dffb mov rax, [rsi] ; +0x4d, 0x14021dffd mov [rsi+8], rax ; +0x50, 0x14021e000 lea rcx, [rsp+98h+var_68] ; +0x54, 0x14021e004 call sub_14005D660 ; +0x59, 0x14021e009 nop ; +0x5e, 0x14021e00e mov rcx, [rsi+8] ; +0x5f, 0x14021e00f cmp rcx, [rsi+10h] ; +0x63, 0x14021e013 jz short loc_14021E028 ; +0x67, 0x14021e017 mov rdx, rax ; +0x69, 0x14021e019 call sub_140254B90 ; +0x6c, 0x14021e01c add qword ptr [rsi+8], 40h ; '@' ; +0x71, 0x14021e021 jmp short loc_14021E037 ; +0x76, 0x14021e026 mov r8, rax ; +0x78, 0x14021e028 mov rdx, rcx ; +0x7b, 0x14021e02b mov rcx, rsi ; +0x7e, 0x14021e02e call sub_140253320 ; +0x81, 0x14021e031 nop ; +0x86, 0x14021e036 lea rcx, [rsp+98h+var_50] ; +0x87, 0x14021e037 call sub_14005D100 ; +0x8c, 0x14021e03c lea rcx, [rsp+98h+var_60] ; +0x91, 0x14021e041 call sub_14005D870 ; +0x96, 0x14021e046 mov rax, [r15+0DB8h] ; +0x9b, 0x14021e04b test rax, rax ; +0xa2, 0x14021e052 jz loc_14021E163 ; +0xa5, 0x14021e055 mov r14, [rax+38h] ; +0xab, 0x14021e05b mov eax, [r14] ; +0xaf, 0x14021e05f test eax, eax ; +0xb2, 0x14021e062 jz loc_14021E163 ; +0xb4, 0x14021e064 mov r14, [r14+10h] ; +0xba, 0x14021e06a lea r12, [rax-1] ; +0xbe, 0x14021e06e lea r12, [r14+r12*8] ; +0xc2, 0x14021e072 cmp r14, r12 ; +0xc6, 0x14021e076 ja loc_14021E163 ; +0xc9, 0x14021e079 xor r13d, r13d ; +0xcf, 0x14021e07f mov rdi, [r14] ; +0xd2, 0x14021e082 test rdi, rdi ; +0xd5, 0x14021e085 jz loc_14021E163 ; +0xd8, 0x14021e088 cmp dword ptr [rdi+40Ch], 4F4h ; +0xde, 0x14021e08e jnz loc_14021E156 ; +0xe8, 0x14021e098 mov rax, [rdi+748h] ; +0xee, 0x14021e09e cmp [rdi+740h], rax ; +0xf5, 0x14021e0a5 jz loc_14021E14F ; +0xfc, 0x14021e0ac lea rcx, [rsp+98h+var_68] ; +0x102, 0x14021e0b2 call sub_14005D660 ; +0x107, 0x14021e0b7 nop ; +0x10c, 0x14021e0bc mov rcx, [rsi+8] ; +0x10d, 0x14021e0bd cmp rcx, [rsi+10h] ; +0x111, 0x14021e0c1 jz short loc_14021E0D6 ; +0x115, 0x14021e0c5 mov rdx, rax ; +0x117, 0x14021e0c7 call sub_140254B90 ; +0x11a, 0x14021e0ca add qword ptr [rsi+8], 40h ; '@' ; +0x11f, 0x14021e0cf jmp short loc_14021E0E5 ; +0x124, 0x14021e0d4 mov r8, rax ; +0x126, 0x14021e0d6 mov rdx, rcx ; +0x129, 0x14021e0d9 mov rcx, rsi ; +0x12c, 0x14021e0dc call sub_140253320 ; +0x12f, 0x14021e0df nop ; +0x134, 0x14021e0e4 lea rcx, [rsp+98h+var_50] ; +0x135, 0x14021e0e5 call sub_14005D100 ; +0x13a, 0x14021e0ea lea rcx, [rsp+98h+var_60] ; +0x13f, 0x14021e0ef call sub_14005D870 ; +0x144, 0x14021e0f4 mov rbp, [rdi+748h] ; +0x149, 0x14021e0f9 mov rbx, [rdi+740h] ; +0x150, 0x14021e100 cmp rbx, rbp ; +0x157, 0x14021e107 jz short loc_14021E13A ; +0x15a, 0x14021e10a nop dword ptr [rax+00h] ; +0x15c, 0x14021e10c mov rcx, [r15+900h] ; +0x160, 0x14021e110 sub rcx, 40h ; '@' ; +0x167, 0x14021e117 mov r8, rbx ; +0x16b, 0x14021e11b lea rdx, [rsp+98h+var_78] ; +0x16e, 0x14021e11e call sub_140060B20 ; +0x173, 0x14021e123 mov rcx, [rax] ; +0x178, 0x14021e128 mov eax, [rbx+8] ; +0x17b, 0x14021e12b mov [rcx+14h], eax ; +0x17e, 0x14021e12e add rbx, 10h ; +0x181, 0x14021e131 cmp rbx, rbp ; +0x185, 0x14021e135 jnz short loc_14021E110 ; +0x188, 0x14021e138 mov rax, [rsi+8] ; +0x18a, 0x14021e13a sub rax, [rsi] ; +0x18e, 0x14021e13e sar rax, 6 ; +0x191, 0x14021e141 dec eax ; +0x195, 0x14021e145 mov [rdi+758h], eax ; +0x197, 0x14021e147 jmp short loc_14021E156 ; +0x19d, 0x14021e14d mov [rdi+758h], r13d ; +0x19f, 0x14021e14f add r14, 8 ; +0x1a6, 0x14021e156 cmp r14, r12 ; +0x1aa, 0x14021e15a jbe loc_14021E082 ; +0x1ad, 0x14021e15d lea r11, [rsp+98h+var_28] ; +0x1b3, 0x14021e163 mov rbx, [r11+30h] ; +0x1b8, 0x14021e168 mov rbp, [r11+38h] ; +0x1bc, 0x14021e16c mov rsi, [r11+40h] ; +0x1c0, 0x14021e170 mov rsp, r11 ; +0x1c4, 0x14021e174 pop r15 ; +0x1c7, 0x14021e177 pop r14 ; +0x1c9, 0x14021e179 pop r13 ; +0x1cb, 0x14021e17b pop r12 ; +0x1cd, 0x14021e17d pop rdi ; +0x1cf, 0x14021e17f retn ; +0x1d0, 0x14021e180