; ; GJBaseGameLayer::playerWillSwitchMode from 0x14031a210 to 0x14031a49d (653 bytes) ; ; 12 xrefs: ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c22c ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c307 ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c3bf ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c484 ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c53c ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c643 ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c6fb ; > GJBaseGameLayer::collisionCheckObjects @ 0x14031c7f5 ; > GJBaseGameLayer::toggleDualMode @ 0x14031e0ba ; > @ 0x1408b5108 ; > @ 0x1408b5118 ; > @ 0x14091ebb4 ; ; 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:19 +0000 ; test r8, r8 ; +0x0, 0x14031a210 jz locret_14031A456 ; +0x3, 0x14031a213 mov [rsp+arg_10], rsi ; +0x9, 0x14031a219 mov [rsp+arg_18], rdi ; +0xe, 0x14031a21e push r14 ; +0x13, 0x14031a223 sub rsp, 30h ; +0x15, 0x14031a225 mov [rcx+400h], r8 ; +0x19, 0x14031a229 mov rsi, r8 ; +0x20, 0x14031a230 cmp dword ptr [r8+4E8h], 1 ; +0x23, 0x14031a233 mov r14, rdx ; +0x2b, 0x14031a23b mov rdi, rcx ; +0x2e, 0x14031a23e jnz short loc_14031A2B2 ; +0x31, 0x14031a241 movzx eax, byte ptr [r8+6E4h] ; +0x33, 0x14031a243 mov [rcx+311h], al ; +0x3b, 0x14031a24b movzx eax, byte ptr [r8+6F0h] ; +0x41, 0x14031a251 mov [rcx+312h], al ; +0x49, 0x14031a259 cmp byte ptr [r8+6E5h], 0 ; +0x4f, 0x14031a25f jz short loc_14031A2B2 ; +0x57, 0x14031a267 movss xmm0, dword ptr [r8+6E8h] ; +0x59, 0x14031a269 movss dword ptr [rcx+2D0h], xmm0 ; +0x62, 0x14031a272 movss xmm2, dword ptr [r8+6ECh] ; +0x6a, 0x14031a27a maxss xmm0, cs:flt_140835080 ; +0x73, 0x14031a283 minss xmm0, cs:dword_140835674 ; +0x7b, 0x14031a28b movss dword ptr [rcx+2D0h], xmm0 ; +0x83, 0x14031a293 xorps xmm0, xmm0 ; +0x8b, 0x14031a29b maxss xmm2, xmm0 ; +0x8e, 0x14031a29e minss xmm2, cs:flt_140835080 ; +0x92, 0x14031a2a2 movss dword ptr [rcx+2CCh], xmm2 ; +0x9a, 0x14031a2aa mov rax, [r8] ; +0xa2, 0x14031a2b2 mov rcx, rsi ; +0xa5, 0x14031a2b5 call qword ptr [rax+670h] ; +0xa8, 0x14031a2b8 xor r9d, r9d ; +0xae, 0x14031a2be mov rdx, r14 ; +0xb1, 0x14031a2c1 mov r8d, eax ; +0xb4, 0x14031a2c4 mov rcx, rdi ; +0xb7, 0x14031a2c7 call GJBaseGameLayer__updateDualGround ; +0xba, 0x14031a2ca mov rax, [rsi] ; +0xbf, 0x14031a2cf mov rcx, rsi ; +0xc2, 0x14031a2d2 call qword ptr [rax+670h] ; +0xc5, 0x14031a2d5 mov edx, eax ; +0xcb, 0x14031a2db call GJBaseGameLayer__objectTypeToGameEvent ; +0xcd, 0x14031a2dd mov edx, eax ; +0xd2, 0x14031a2e2 mov rcx, rdi ; +0xd4, 0x14031a2e4 xor r9d, r9d ; +0xd7, 0x14031a2e7 xor r8d, r8d ; +0xda, 0x14031a2ea call GJBaseGameLayer__gameEventTriggered ; +0xdd, 0x14031a2ed mov rax, [rsi] ; +0xe2, 0x14031a2f2 mov rcx, rsi ; +0xe5, 0x14031a2f5 call qword ptr [rax+670h] ; +0xe8, 0x14031a2f8 cmp eax, 29h ; ')' ; +0xee, 0x14031a2fe ja short loc_14031A313 ; +0xf1, 0x14031a301 mov rcx, 20004080020h ; +0xf3, 0x14031a303 bt rcx, rax ; +0xfd, 0x14031a30d jb short loc_14031A321 ; +0x101, 0x14031a311 mov rax, [rdi] ; +0x103, 0x14031a313 xor edx, edx ; +0x106, 0x14031a316 mov rcx, rdi ; +0x108, 0x14031a318 call qword ptr [rax+470h] ; +0x10b, 0x14031a31b cmp byte ptr [rdi+422h], 0 ; +0x111, 0x14031a321 jz loc_14031A446 ; +0x118, 0x14031a328 mov rax, [rdi+0DC8h] ; +0x11e, 0x14031a32e cmp byte ptr [rax+154h], 0 ; +0x125, 0x14031a335 jnz loc_14031A446 ; +0x12c, 0x14031a33c mov [rsp+38h+arg_0], rbx ; +0x132, 0x14031a342 mov rbx, [rdi+0DB8h] ; +0x137, 0x14031a347 mov [rsp+38h+arg_8], rbp ; +0x13e, 0x14031a34e mov eax, [rbx+39Ch] ; +0x143, 0x14031a353 cmp [r14+39Ch], eax ; +0x149, 0x14031a359 jnz short loc_14031A369 ; +0x150, 0x14031a360 mov rbx, [rdi+0DC0h] ; +0x152, 0x14031a362 mov rax, [rsi] ; +0x159, 0x14031a369 mov rcx, rsi ; +0x15c, 0x14031a36c xor bpl, bpl ; +0x15f, 0x14031a36f call qword ptr [rax+670h] ; +0x162, 0x14031a372 add eax, 0FFFFFFFBh; switch 37 cases ; +0x168, 0x14031a378 cmp eax, 24h ; +0x16b, 0x14031a37b ja def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x16e, 0x14031a37e lea rdx, cs:140000000h ; +0x174, 0x14031a384 cdqe ; +0x17b, 0x14031a38b movzx eax, ds:(byte_14031A478 - 140000000h)[rdx+rax] ; +0x17d, 0x14031a38d mov ecx, ds:(jpt_14031A39F - 140000000h)[rdx+rax*4] ; +0x185, 0x14031a395 add rcx, rdx ; +0x18c, 0x14031a39c jmp rcx; switch jump ; +0x18f, 0x14031a39f cmp [rbx+9C1h], bpl; jumptable 000000014031A39F case 6 ; +0x191, 0x14031a3a1 jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x198, 0x14031a3a8 cmp [rbx+9C2h], bpl ; +0x19a, 0x14031a3aa jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1a1, 0x14031a3b1 cmp [rbx+9C4h], bpl ; +0x1a3, 0x14031a3b3 jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1aa, 0x14031a3ba cmp [rbx+9CCh], bpl ; +0x1ac, 0x14031a3bc jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1b3, 0x14031a3c3 cmp [rbx+9C3h], bpl ; +0x1b5, 0x14031a3c5 jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1bc, 0x14031a3cc cmp [rbx+9C5h], bpl ; +0x1be, 0x14031a3ce jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1c5, 0x14031a3d5 cmp [rbx+9C6h], bpl ; +0x1c7, 0x14031a3d7 jnz short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1ce, 0x14031a3de mov bpl, 1 ; +0x1d0, 0x14031a3e0 jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1d3, 0x14031a3e3 movzx ebp, byte ptr [rbx+9C1h]; jumptable 000000014031A39F case 5 ; +0x1d5, 0x14031a3e5 jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1dc, 0x14031a3ec movzx ebp, byte ptr [rbx+9C2h]; jumptable 000000014031A39F case 19 ; +0x1de, 0x14031a3ee jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1e5, 0x14031a3f5 movzx ebp, byte ptr [rbx+9CCh]; jumptable 000000014031A39F case 41 ; +0x1e7, 0x14031a3f7 jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1ee, 0x14031a3fe movzx ebp, byte ptr [rbx+9C3h]; jumptable 000000014031A39F case 16 ; +0x1f0, 0x14031a400 jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x1f7, 0x14031a407 movzx ebp, byte ptr [rbx+9C5h]; jumptable 000000014031A39F case 27 ; +0x1f9, 0x14031a409 jmp short def_14031A39F; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x200, 0x14031a410 movzx ebp, byte ptr [rbx+9C6h]; jumptable 000000014031A39F case 33 ; +0x202, 0x14031a412 cmp byte ptr [rdi+860h], 0; jumptable 000000014031A39F default case, cases 7-15,17,18,20-26,28-32,34-40 ; +0x209, 0x14031a419 jnz short loc_14031A43C ; +0x210, 0x14031a420 test bpl, bpl ; +0x212, 0x14031a422 jz short loc_14031A43C ; +0x215, 0x14031a425 cmp byte ptr [rbx+9C7h], 0 ; +0x217, 0x14031a427 mov r8b, 1 ; +0x21e, 0x14031a42e mov rcx, r14 ; +0x221, 0x14031a431 setz dl ; +0x224, 0x14031a434 call PlayerObject__flipGravity ; +0x227, 0x14031a437 mov rbx, [rsp+38h+arg_0] ; +0x22c, 0x14031a43c mov rbp, [rsp+38h+arg_8] ; +0x231, 0x14031a441 mov rsi, [rsp+38h+arg_10] ; +0x236, 0x14031a446 mov rdi, [rsp+38h+arg_18] ; +0x23b, 0x14031a44b add rsp, 30h ; +0x240, 0x14031a450 pop r14 ; +0x244, 0x14031a454 retn ; +0x246, 0x14031a456 align 8 ; +0x247, 0x14031a457 dd offset loc_14031A3E5 - 140000000h; jump table for switch statement ; +0x248, 0x14031a458 db 0, 1, 7, 7; indirect table for switch statement ; +0x268, 0x14031a478