; ; GJBaseGameLayer::activatePlayerControlTrigger from 0x1402174e0 to 0x1402178b3 (979 bytes) ; ; 2 xrefs: ; > EffectGameObject::triggerObject @ 0x1404a6f41 ; > @ 0x1406cd1a0 ; ; 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, 0x1402174e0 mov [rsp+arg_10], rbp ; +0x5, 0x1402174e5 push rsi ; +0xa, 0x1402174ea push rdi ; +0xb, 0x1402174eb push r12 ; +0xc, 0x1402174ec push r14 ; +0xe, 0x1402174ee push r15 ; +0x10, 0x1402174f0 sub rsp, 30h ; +0x12, 0x1402174f2 cmp byte ptr [rdx+6A4h], 0 ; +0x16, 0x1402174f6 mov rbp, rdx ; +0x1d, 0x1402174fd movzx esi, byte ptr [rdx+6A5h] ; +0x20, 0x140217500 mov rdi, rcx ; +0x27, 0x140217507 movzx r14d, byte ptr [rdx+740h] ; +0x2a, 0x14021750a movzx r15d, byte ptr [rdx+741h] ; +0x32, 0x140217512 movzx r12d, byte ptr [rdx+742h] ; +0x3a, 0x14021751a movaps [rsp+58h+var_38], xmm6 ; +0x42, 0x140217522 xorps xmm6, xmm6 ; +0x47, 0x140217527 jnz short loc_140217538 ; +0x4a, 0x14021752a test sil, sil ; +0x4c, 0x14021752c jnz loc_1402176E8 ; +0x4f, 0x14021752f mov sil, 1 ; +0x55, 0x140217535 test r14b, r14b ; +0x58, 0x140217538 jz short loc_1402175A4 ; +0x5b, 0x14021753b mov rbx, [rcx+0DA0h] ; +0x5d, 0x14021753d cmp byte ptr [rbx+0BC8h], 0 ; +0x64, 0x140217544 jnz short loc_140217569 ; +0x6b, 0x14021754b lea rcx, [rbx+0BB8h] ; +0x6d, 0x14021754d mov [rsp+58h+arg_8], 1 ; +0x74, 0x140217554 lea rdx, [rsp+58h+arg_8] ; +0x7c, 0x14021755c call sub_1400CDBF0 ; +0x81, 0x140217561 mov byte ptr [rax], 0 ; +0x86, 0x140217566 cmp byte ptr [rbx+0A2Bh], 0 ; +0x89, 0x140217569 jnz short loc_1402175A4 ; +0x90, 0x140217570 cmp byte ptr [rbx+985h], 0 ; +0x92, 0x140217572 jz short loc_140217583 ; +0x99, 0x140217579 mov rcx, rbx ; +0x9b, 0x14021757b call PlayerObject__placeStreakPoint ; +0x9e, 0x14021757e cmp byte ptr [rbx+9E4h], 0 ; +0xa3, 0x140217583 mov word ptr [rbx+985h], 0 ; +0xaa, 0x14021758a mov byte ptr [rbx+99Ch], 1 ; +0xb3, 0x140217593 jz short loc_1402175A4 ; +0xba, 0x14021759a mov rcx, rbx ; +0xbc, 0x14021759c call PlayerObject__stopDashing ; +0xbf, 0x14021759f cmp byte ptr [rdi+309Eh], 0 ; +0xc4, 0x1402175a4 jz loc_14021769B ; +0xcb, 0x1402175ab test r15b, r15b ; +0xd1, 0x1402175b1 jz loc_14021769B ; +0xd4, 0x1402175b4 mov rbx, [rdi+0DA0h] ; +0xda, 0x1402175ba mov edx, 2 ; +0xe1, 0x1402175c1 mov rcx, rbx ; +0xe6, 0x1402175c6 call PlayerObject__releaseButton ; +0xe9, 0x1402175c9 mov edx, 3 ; +0xee, 0x1402175ce mov rcx, rbx ; +0xf3, 0x1402175d3 call PlayerObject__releaseButton ; +0xf6, 0x1402175d6 mov rbx, [rdi+0DA0h] ; +0xfb, 0x1402175db cmp byte ptr [rbx+0BC8h], 0 ; +0x102, 0x1402175e2 jnz short loc_140217607 ; +0x109, 0x1402175e9 lea rcx, [rbx+0BB8h] ; +0x10b, 0x1402175eb mov [rsp+58h+arg_8], 2 ; +0x112, 0x1402175f2 lea rdx, [rsp+58h+arg_8] ; +0x11a, 0x1402175fa call sub_1400CDBF0 ; +0x11f, 0x1402175ff mov byte ptr [rax], 0 ; +0x124, 0x140217604 cmp byte ptr [rbx+0A2Bh], 0 ; +0x127, 0x140217607 jnz short loc_140217639 ; +0x12e, 0x14021760e cmp byte ptr [rbx+985h], 0 ; +0x130, 0x140217610 jz short loc_140217621 ; +0x137, 0x140217617 mov rcx, rbx ; +0x139, 0x140217619 call PlayerObject__placeStreakPoint ; +0x13c, 0x14021761c comisd xmm6, qword ptr [rbx+0AF8h] ; +0x141, 0x140217621 mov byte ptr [rbx+0B01h], 0 ; +0x149, 0x140217629 jbe short loc_140217639 ; +0x150, 0x140217630 mov byte ptr [rbx+0B58h], 0 ; +0x152, 0x140217632 mov rbx, [rdi+0DA0h] ; +0x159, 0x140217639 cmp byte ptr [rbx+0BC8h], 0 ; +0x160, 0x140217640 jnz short loc_140217665 ; +0x167, 0x140217647 lea rcx, [rbx+0BB8h] ; +0x169, 0x140217649 mov [rsp+58h+arg_8], 3 ; +0x170, 0x140217650 lea rdx, [rsp+58h+arg_8] ; +0x178, 0x140217658 call sub_1400CDBF0 ; +0x17d, 0x14021765d mov byte ptr [rax], 0 ; +0x182, 0x140217662 cmp byte ptr [rbx+0A2Bh], 0 ; +0x185, 0x140217665 jnz short loc_14021769B ; +0x18c, 0x14021766c cmp byte ptr [rbx+985h], 0 ; +0x18e, 0x14021766e jz short loc_14021767F ; +0x195, 0x140217675 mov rcx, rbx ; +0x197, 0x140217677 call PlayerObject__placeStreakPoint ; +0x19a, 0x14021767a movsd xmm0, qword ptr [rbx+0AF8h] ; +0x19f, 0x14021767f comisd xmm0, xmm6 ; +0x1a7, 0x140217687 mov byte ptr [rbx+0B00h], 0 ; +0x1ab, 0x14021768b jbe short loc_14021769B ; +0x1b2, 0x140217692 mov byte ptr [rbx+0B58h], 0 ; +0x1b4, 0x140217694 test r12b, r12b ; +0x1bb, 0x14021769b jz short loc_1402176C1 ; +0x1be, 0x14021769e mov rax, [rdi+0DA0h] ; +0x1c0, 0x1402176a0 mov word ptr [rax+728h], 0 ; +0x1c7, 0x1402176a7 mov byte ptr [rax+668h], 0 ; +0x1d0, 0x1402176b0 mov dword ptr [rax+720h], 0 ; +0x1d7, 0x1402176b7 cmp byte ptr [rbp+743h], 0 ; +0x1e1, 0x1402176c1 jz short loc_1402176DF ; +0x1e8, 0x1402176c8 mov rax, [rdi+0DA0h] ; +0x1ea, 0x1402176ca mov byte ptr [rax+952h], 0 ; +0x1f1, 0x1402176d1 mov byte ptr [rax+0B94h], 0 ; +0x1f8, 0x1402176d8 test sil, sil ; +0x1ff, 0x1402176df jz loc_140217897 ; +0x202, 0x1402176e2 test r14b, r14b ; +0x208, 0x1402176e8 jz short loc_140217754 ; +0x20b, 0x1402176eb mov rbx, [rdi+0DA8h] ; +0x20d, 0x1402176ed cmp byte ptr [rbx+0BC8h], 0 ; +0x214, 0x1402176f4 jnz short loc_140217719 ; +0x21b, 0x1402176fb lea rcx, [rbx+0BB8h] ; +0x21d, 0x1402176fd mov [rsp+58h+arg_8], 1 ; +0x224, 0x140217704 lea rdx, [rsp+58h+arg_8] ; +0x22c, 0x14021770c call sub_1400CDBF0 ; +0x231, 0x140217711 mov byte ptr [rax], 0 ; +0x236, 0x140217716 cmp byte ptr [rbx+0A2Bh], 0 ; +0x239, 0x140217719 jnz short loc_140217754 ; +0x240, 0x140217720 cmp byte ptr [rbx+985h], 0 ; +0x242, 0x140217722 jz short loc_140217733 ; +0x249, 0x140217729 mov rcx, rbx ; +0x24b, 0x14021772b call PlayerObject__placeStreakPoint ; +0x24e, 0x14021772e cmp byte ptr [rbx+9E4h], 0 ; +0x253, 0x140217733 mov word ptr [rbx+985h], 0 ; +0x25a, 0x14021773a mov byte ptr [rbx+99Ch], 1 ; +0x263, 0x140217743 jz short loc_140217754 ; +0x26a, 0x14021774a mov rcx, rbx ; +0x26c, 0x14021774c call PlayerObject__stopDashing ; +0x26f, 0x14021774f cmp byte ptr [rdi+309Eh], 0 ; +0x274, 0x140217754 jz loc_140217853 ; +0x27b, 0x14021775b test r15b, r15b ; +0x281, 0x140217761 jz loc_140217853 ; +0x284, 0x140217764 lea rsi, [rdi+0DA8h] ; +0x28a, 0x14021776a mov edx, 2 ; +0x291, 0x140217771 mov rbx, [rsi] ; +0x296, 0x140217776 mov rcx, rbx ; +0x299, 0x140217779 call PlayerObject__releaseButton ; +0x29c, 0x14021777c mov edx, 3 ; +0x2a1, 0x140217781 mov rcx, rbx ; +0x2a6, 0x140217786 call PlayerObject__releaseButton ; +0x2a9, 0x140217789 mov rbx, [rsi] ; +0x2ae, 0x14021778e cmp byte ptr [rbx+0BC8h], 0 ; +0x2b1, 0x140217791 jnz short loc_1402177B6 ; +0x2b8, 0x140217798 lea rcx, [rbx+0BB8h] ; +0x2ba, 0x14021779a mov [rsp+58h+arg_8], 2 ; +0x2c1, 0x1402177a1 lea rdx, [rsp+58h+arg_8] ; +0x2c9, 0x1402177a9 call sub_1400CDBF0 ; +0x2ce, 0x1402177ae mov byte ptr [rax], 0 ; +0x2d3, 0x1402177b3 cmp byte ptr [rbx+0A2Bh], 0 ; +0x2d6, 0x1402177b6 jnz short loc_1402177F5 ; +0x2dd, 0x1402177bd cmp byte ptr [rbx+985h], 0 ; +0x2df, 0x1402177bf mov rax, rsi ; +0x2e6, 0x1402177c6 jz short loc_1402177DA ; +0x2e9, 0x1402177c9 mov rcx, rbx ; +0x2eb, 0x1402177cb call PlayerObject__placeStreakPoint ; +0x2ee, 0x1402177ce lea rax, [rdi+0DA8h] ; +0x2f3, 0x1402177d3 comisd xmm6, qword ptr [rbx+0AF8h] ; +0x2fa, 0x1402177da mov byte ptr [rbx+0B01h], 0 ; +0x302, 0x1402177e2 jbe short loc_1402177F5 ; +0x309, 0x1402177e9 mov byte ptr [rbx+0B58h], 0 ; +0x30b, 0x1402177eb mov rsi, rax ; +0x312, 0x1402177f2 mov rbx, [rsi] ; +0x315, 0x1402177f5 cmp byte ptr [rbx+0BC8h], 0 ; +0x318, 0x1402177f8 jnz short loc_14021781D ; +0x31f, 0x1402177ff lea rcx, [rbx+0BB8h] ; +0x321, 0x140217801 mov [rsp+58h+arg_8], 3 ; +0x328, 0x140217808 lea rdx, [rsp+58h+arg_8] ; +0x330, 0x140217810 call sub_1400CDBF0 ; +0x335, 0x140217815 mov byte ptr [rax], 0 ; +0x33a, 0x14021781a cmp byte ptr [rbx+0A2Bh], 0 ; +0x33d, 0x14021781d jnz short loc_140217853 ; +0x344, 0x140217824 cmp byte ptr [rbx+985h], 0 ; +0x346, 0x140217826 jz short loc_140217837 ; +0x34d, 0x14021782d mov rcx, rbx ; +0x34f, 0x14021782f call PlayerObject__placeStreakPoint ; +0x352, 0x140217832 movsd xmm0, qword ptr [rbx+0AF8h] ; +0x357, 0x140217837 comisd xmm0, xmm6 ; +0x35f, 0x14021783f mov byte ptr [rbx+0B00h], 0 ; +0x363, 0x140217843 jbe short loc_140217853 ; +0x36a, 0x14021784a mov byte ptr [rbx+0B58h], 0 ; +0x36c, 0x14021784c test r12b, r12b ; +0x373, 0x140217853 jz short loc_140217879 ; +0x376, 0x140217856 mov rax, [rdi+0DA8h] ; +0x378, 0x140217858 mov word ptr [rax+728h], 0 ; +0x37f, 0x14021785f mov byte ptr [rax+668h], 0 ; +0x388, 0x140217868 mov dword ptr [rax+720h], 0 ; +0x38f, 0x14021786f cmp byte ptr [rbp+743h], 0 ; +0x399, 0x140217879 jz short loc_140217897 ; +0x3a0, 0x140217880 mov rax, [rdi+0DA8h] ; +0x3a2, 0x140217882 mov byte ptr [rax+952h], 0 ; +0x3a9, 0x140217889 mov byte ptr [rax+0B94h], 0 ; +0x3b0, 0x140217890 mov rbx, [rsp+58h+arg_0] ; +0x3b7, 0x140217897 mov rbp, [rsp+58h+arg_10] ; +0x3bc, 0x14021789c movaps xmm6, [rsp+58h+var_38] ; +0x3c1, 0x1402178a1 add rsp, 30h ; +0x3c6, 0x1402178a6 pop r15 ; +0x3ca, 0x1402178aa pop r14 ; +0x3cc, 0x1402178ac pop r12 ; +0x3ce, 0x1402178ae pop rdi ; +0x3d0, 0x1402178b0 pop rsi ; +0x3d1, 0x1402178b1 retn ; +0x3d2, 0x1402178b2