; ; GJBaseGameLayer::processCommands from 0x140239c60 to 0x140239e19 (441 bytes) ; ; 2 xrefs: ; > GJBaseGameLayer::update @ 0x140238090 ; > @ 0x1406ce1d8 ; ; 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, 0x140239c60 mov [rsp+arg_8], rsi ; +0x5, 0x140239c65 push rdi ; +0xa, 0x140239c6a sub rsp, 40h ; +0xb, 0x140239c6b mov eax, [rcx+3E0h] ; +0xf, 0x140239c6f movzx esi, r9b ; +0x15, 0x140239c75 movaps [rsp+48h+var_18], xmm6 ; +0x19, 0x140239c79 movzx edi, r8b ; +0x1e, 0x140239c7e movaps [rsp+48h+var_28], xmm7 ; +0x22, 0x140239c82 xorps xmm6, xmm6 ; +0x27, 0x140239c87 movaps xmm7, xmm1 ; +0x2a, 0x140239c8a mov [rcx+3ECh], eax ; +0x2d, 0x140239c8d comiss xmm7, xmm6 ; +0x33, 0x140239c93 mov rbx, rcx ; +0x36, 0x140239c96 jbe short loc_140239D02 ; +0x39, 0x140239c99 movss xmm0, dword ptr [rcx+330h] ; +0x3b, 0x140239c9b mulss xmm0, cs:dword_14062350C; X ; +0x43, 0x140239ca3 call cs:__imp_roundf ; +0x4b, 0x140239cab mov eax, [rbx+3E0h] ; +0x51, 0x140239cb1 mov edx, [rbx+3F4h] ; +0x57, 0x140239cb7 cvttss2si ecx, xmm0 ; +0x5d, 0x140239cbd test dil, dil ; +0x61, 0x140239cc1 jz short loc_140239CF0 ; +0x64, 0x140239cc4 inc eax ; +0x66, 0x140239cc6 movd xmm1, ecx ; +0x68, 0x140239cc8 cvtdq2ps xmm1, xmm1 ; +0x6c, 0x140239ccc mov [rbx+3E0h], eax ; +0x6f, 0x140239ccf xorps xmm0, xmm0 ; +0x75, 0x140239cd5 mulss xmm1, cs:dword_140622B08 ; +0x78, 0x140239cd8 cvtsi2ss xmm0, rdx ; +0x80, 0x140239ce0 addss xmm1, xmm0 ; +0x85, 0x140239ce5 cvttss2si rax, xmm1 ; +0x89, 0x140239ce9 jmp short loc_140239CFC ; +0x8e, 0x140239cee add eax, 2 ; +0x90, 0x140239cf0 mov [rbx+3E0h], eax ; +0x93, 0x140239cf3 lea eax, [rdx+rcx] ; +0x99, 0x140239cf9 mov [rbx+3F4h], eax ; +0x9c, 0x140239cfc cmp byte ptr [rbx+324Ah], 0 ; +0xa2, 0x140239d02 jnz loc_140239DD9 ; +0xa9, 0x140239d09 comiss xmm7, xmm6 ; +0xaf, 0x140239d0f jbe short loc_140239D2C ; +0xb2, 0x140239d12 mov eax, [rbx+3E8h] ; +0xb4, 0x140239d14 test dil, dil ; +0xba, 0x140239d1a jz short loc_140239D23 ; +0xbd, 0x140239d1d inc eax ; +0xbf, 0x140239d1f jmp short loc_140239D26 ; +0xc1, 0x140239d21 add eax, 2 ; +0xc3, 0x140239d23 mov [rbx+3E8h], eax ; +0xc6, 0x140239d26 cmp byte ptr [rbx+3799h], 0 ; +0xcc, 0x140239d2c jnz short loc_140239D3E ; +0xd3, 0x140239d33 cmp byte ptr [rbx+379Ah], 0 ; +0xd5, 0x140239d35 jz short loc_140239D48 ; +0xdc, 0x140239d3c test sil, sil ; +0xde, 0x140239d3e jnz short loc_140239D48 ; +0xe1, 0x140239d41 xor r8d, r8d ; +0xe3, 0x140239d43 jmp short loc_140239D4B ; +0xe6, 0x140239d46 mov r8b, 1 ; +0xe8, 0x140239d48 movaps xmm1, xmm7 ; +0xeb, 0x140239d4b mov rcx, rbx ; +0xee, 0x140239d4e call GJBaseGameLayer__processQueuedButtons ; +0xf1, 0x140239d51 mov r8, [rbx+3318h] ; +0xf6, 0x140239d56 mov rax, [rbx+3320h] ; +0xfd, 0x140239d5d movsxd rdx, dword ptr [rbx+3400h] ; +0x104, 0x140239d64 sub rax, r8 ; +0x10b, 0x140239d6b sar rax, 4 ; +0x10e, 0x140239d6e cmp rdx, rax ; +0x112, 0x140239d72 jnb short loc_140239DD9 ; +0x115, 0x140239d75 mov eax, [rbx+3ECh] ; +0x117, 0x140239d77 mov r9d, eax ; +0x11d, 0x140239d7d sub r9d, [rbx+32FCh] ; +0x120, 0x140239d80 mov [rbx+32FCh], eax ; +0x127, 0x140239d87 mov rax, [rbx+3320h] ; +0x12d, 0x140239d8d sub rax, r8 ; +0x134, 0x140239d94 sar rax, 4 ; +0x137, 0x140239d97 cmp rdx, rax ; +0x13b, 0x140239d9b jnb short loc_140239DD9 ; +0x13e, 0x140239d9e movsxd rax, edx ; +0x140, 0x140239da0 add rax, rax ; +0x143, 0x140239da3 mov [r8+rax*8+8], r9d ; +0x146, 0x140239da6 xor r9d, r9d ; +0x14b, 0x140239dab mov edx, [rbx+3400h] ; +0x14e, 0x140239dae inc edx ; +0x154, 0x140239db4 mov [rbx+3400h], edx ; +0x156, 0x140239db6 mov r8, [rbx+3318h] ; +0x15c, 0x140239dbc mov rcx, [rbx+3320h] ; +0x163, 0x140239dc3 sub rcx, r8 ; +0x16a, 0x140239dca movsxd rax, edx ; +0x16d, 0x140239dcd sar rcx, 4 ; +0x170, 0x140239dd0 cmp rax, rcx ; +0x174, 0x140239dd4 jb short loc_140239DA0 ; +0x177, 0x140239dd7 mov ecx, [rbx+86Ch] ; +0x179, 0x140239dd9 test ecx, ecx ; +0x17f, 0x140239ddf jle short loc_140239DFF ; +0x181, 0x140239de1 sub dword ptr [rbx+870h], 1 ; +0x183, 0x140239de3 jns short loc_140239DFF ; +0x18a, 0x140239dea lea eax, [rcx-1] ; +0x18c, 0x140239dec mov dword ptr [rbx+870h], 78h ; 'x' ; +0x18f, 0x140239def mov [rbx+86Ch], eax ; +0x199, 0x140239df9 mov rbx, [rsp+48h+arg_0] ; +0x19f, 0x140239dff mov rsi, [rsp+48h+arg_8] ; +0x1a4, 0x140239e04 movaps xmm6, [rsp+48h+var_18] ; +0x1a9, 0x140239e09 movaps xmm7, [rsp+48h+var_28] ; +0x1ae, 0x140239e0e add rsp, 40h ; +0x1b3, 0x140239e13 pop rdi ; +0x1b7, 0x140239e17 retn ; +0x1b8, 0x140239e18