; ; GJBaseGameLayer::buttonIsRelevant from 0x10014ae70 to 0x10014afd5 (357 bytes) ; ; 2 xrefs: ; > GJBaseGameLayer::shouldUseSubstepForButton @ 0x10014ae2e ; > GJBaseGameLayer::update @ 0x1001519c0 ; ; 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 ; cmp dword ptr [rsi], 1 ; +0x0, 0x10014ae70 jnz loc_10014AF2E ; +0x3, 0x10014ae73 push rbp ; +0x9, 0x10014ae79 mov rbp, rsp ; +0xa, 0x10014ae7a push r15 ; +0xd, 0x10014ae7d push r14 ; +0xf, 0x10014ae7f push r13 ; +0x11, 0x10014ae81 push r12 ; +0x13, 0x10014ae83 push rbx ; +0x15, 0x10014ae85 push rax ; +0x16, 0x10014ae86 mov rbx, rsi ; +0x17, 0x10014ae87 mov r14, rdi ; +0x1a, 0x10014ae8a movzx r13d, byte ptr [rsi+5] ; +0x1d, 0x10014ae8d mov r12d, r13d ; +0x22, 0x10014ae92 xor r12b, 1 ; +0x25, 0x10014ae95 mov rax, [rdi+0CB0h] ; +0x29, 0x10014ae99 movzx r15d, byte ptr [rax+154h] ; +0x30, 0x10014aea0 cmp byte ptr [rdi+2F36h], 0 ; +0x38, 0x10014aea8 jnz short loc_10014AEDD ; +0x3f, 0x10014aeaf cmp byte ptr [r14+2FF8h], 0 ; +0x41, 0x10014aeb1 jnz short loc_10014AEDD ; +0x49, 0x10014aeb9 call GameManager__sharedState ; +0x4b, 0x10014aebb lea rsi, a0010; "0010" ; +0x50, 0x10014aec0 mov rdi, rax ; +0x57, 0x10014aec7 call GameManager__getGameVariable ; +0x5a, 0x10014aeca movzx ecx, r13b ; +0x5f, 0x10014aecf movzx r12d, r12b ; +0x63, 0x10014aed3 test al, al ; +0x67, 0x10014aed7 cmovnz r12d, ecx ; +0x69, 0x10014aed9 mov rdi, [r14+850h] ; +0x6d, 0x10014aedd call GJEffectManager__hasActiveDualTouch ; +0x74, 0x10014aee4 movzx ecx, byte ptr [rbx+4] ; +0x79, 0x10014aee9 test cl, cl ; +0x7d, 0x10014aeed jnz short loc_10014AEF8 ; +0x7f, 0x10014aeef and al, [r14+2F14h] ; +0x81, 0x10014aef1 test r12b, r12b ; +0x88, 0x10014aef8 jnz short loc_10014AF05 ; +0x8b, 0x10014aefb test al, al ; +0x8d, 0x10014aefd jnz loc_10014AFC4 ; +0x8f, 0x10014aeff mov eax, r15d ; +0x95, 0x10014af05 xor al, 1 ; +0x98, 0x10014af08 or al, r12b ; +0x9a, 0x10014af0a cmp byte ptr [r14+2F14h], 0 ; +0x9d, 0x10014af0d jnz short loc_10014AF31 ; +0xa5, 0x10014af15 cmp byte ptr [r14+3F2h], 1 ; +0xa7, 0x10014af17 jnz short loc_10014AF31 ; +0xaf, 0x10014af1f and r12b, r15b ; +0xb1, 0x10014af21 xor r12b, 1 ; +0xb4, 0x10014af24 test al, 1 ; +0xb8, 0x10014af28 jnz short loc_10014AF38 ; +0xba, 0x10014af2a jmp short loc_10014AF84 ; +0xbc, 0x10014af2c xor eax, eax ; +0xbe, 0x10014af2e retn ; +0xc0, 0x10014af30 xor r12d, r12d ; +0xc1, 0x10014af31 test al, 1 ; +0xc4, 0x10014af34 jz short loc_10014AF84 ; +0xc6, 0x10014af36 mov r15, [r14+0CA0h] ; +0xc8, 0x10014af38 test cl, cl ; +0xcf, 0x10014af3f jz short loc_10014AF57 ; +0xd1, 0x10014af41 mov rdi, [r15+9E8h] ; +0xd3, 0x10014af43 call sub_100720070 ; +0xda, 0x10014af4a mov ecx, eax ; +0xdf, 0x10014af4f mov al, 1 ; +0xe1, 0x10014af51 test ecx, ecx ; +0xe3, 0x10014af53 jnz short loc_10014AFC6 ; +0xe5, 0x10014af55 mov rdi, r15 ; +0xe7, 0x10014af57 call PlayerObject__isFlying ; +0xea, 0x10014af5a mov ecx, eax ; +0xef, 0x10014af5f mov al, 1 ; +0xf1, 0x10014af61 test cl, cl ; +0xf3, 0x10014af63 jnz short loc_10014AFC6 ; +0xf5, 0x10014af65 movzx ecx, byte ptr [rbx+4] ; +0xf7, 0x10014af67 cmp cl, 1 ; +0xfb, 0x10014af6b jnz short loc_10014AF84 ; +0xfe, 0x10014af6e movzx eax, byte ptr [r15+971h] ; +0x100, 0x10014af70 test al, al ; +0x108, 0x10014af78 jnz short loc_10014AFC6 ; +0x10a, 0x10014af7a xor r12b, 1 ; +0x10c, 0x10014af7c jz short loc_10014AF89 ; +0x110, 0x10014af80 jmp short loc_10014AFC6 ; +0x112, 0x10014af82 test r12b, r12b ; +0x114, 0x10014af84 jz short loc_10014AFC4 ; +0x117, 0x10014af87 mov r14, [r14+0CA8h] ; +0x119, 0x10014af89 test cl, cl ; +0x120, 0x10014af90 jz short loc_10014AFA4 ; +0x122, 0x10014af92 mov rdi, [r14+9E8h] ; +0x124, 0x10014af94 call sub_100720070 ; +0x12b, 0x10014af9b test eax, eax ; +0x130, 0x10014afa0 jnz short loc_10014AFB0 ; +0x132, 0x10014afa2 mov rdi, r14 ; +0x134, 0x10014afa4 call PlayerObject__isFlying ; +0x137, 0x10014afa7 test al, al ; +0x13c, 0x10014afac jz short loc_10014AFB4 ; +0x13e, 0x10014afae mov al, 1 ; +0x140, 0x10014afb0 jmp short loc_10014AFC6 ; +0x142, 0x10014afb2 cmp byte ptr [rbx+4], 1 ; +0x144, 0x10014afb4 jnz short loc_10014AFC4 ; +0x148, 0x10014afb8 cmp byte ptr [r14+971h], 1 ; +0x14a, 0x10014afba jz short loc_10014AFB0 ; +0x152, 0x10014afc2 xor eax, eax ; +0x154, 0x10014afc4 add rsp, 8 ; +0x156, 0x10014afc6 pop rbx ; +0x15a, 0x10014afca pop r12 ; +0x15b, 0x10014afcb pop r13 ; +0x15d, 0x10014afcd pop r14 ; +0x15f, 0x10014afcf pop r15 ; +0x161, 0x10014afd1 pop rbp ; +0x163, 0x10014afd3 retn ; +0x164, 0x10014afd4