; ; GJBaseGameLayer::triggerMoveCommand from 0x14021ea40 to 0x14021efa3 (1379 bytes) ; ; 4 xrefs: ; > EffectGameObject::triggerObject @ 0x1404a63fd ; > @ 0x14067fb04 ; > @ 0x14067fb14 ; > @ 0x1406cd410 ; ; 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 rax, rsp ; +0x0, 0x14021ea40 push rbp ; +0x3, 0x14021ea43 push rbx ; +0x4, 0x14021ea44 push rsi ; +0x5, 0x14021ea45 push rdi ; +0x6, 0x14021ea46 push r12 ; +0x7, 0x14021ea47 push r14 ; +0x9, 0x14021ea49 push r15 ; +0xb, 0x14021ea4b lea rbp, [rax-5Fh] ; +0xd, 0x14021ea4d sub rsp, 0B0h ; +0x11, 0x14021ea51 mov rdi, rdx ; +0x18, 0x14021ea58 movaps xmmword ptr [rax-58h], xmm7 ; +0x1b, 0x14021ea5b mov rsi, rcx ; +0x1f, 0x14021ea5f movaps xmmword ptr [rax-68h], xmm8 ; +0x22, 0x14021ea62 add rdx, 5E0h ; +0x27, 0x14021ea67 lea rcx, [rbp+57h+arg_10] ; +0x2e, 0x14021ea6e call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x32, 0x14021ea72 movss xmm1, cs:flt_140622C24 ; +0x38, 0x14021ea78 maxss xmm1, dword ptr [rdi+5BCh] ; +0x40, 0x14021ea80 movss xmm0, [rbp+57h+arg_10] ; +0x48, 0x14021ea88 movzx ebx, byte ptr [rdi+5F0h] ; +0x4d, 0x14021ea8d movzx r14d, byte ptr [rdi+5F1h] ; +0x54, 0x14021ea94 movzx r15d, byte ptr [rdi+5F2h] ; +0x5c, 0x14021ea9c movzx r12d, byte ptr [rdi+5F3h] ; +0x64, 0x14021eaa4 movss xmm7, dword ptr [rdi+5FCh] ; +0x6c, 0x14021eaac movss xmm8, dword ptr [rdi+600h] ; +0x74, 0x14021eab4 divss xmm0, xmm1 ; +0x7d, 0x14021eabd cvttss2si eax, xmm0 ; +0x81, 0x14021eac1 add eax, 0F423Fh ; +0x85, 0x14021eac5 cmp eax, 1E847Eh ; +0x8a, 0x14021eaca ja loc_14021EF80 ; +0x8f, 0x14021eacf movss xmm1, dword ptr cs:xmmword_1406243C0 ; +0x95, 0x14021ead5 movss xmm2, cs:dword_14062365C ; +0x9d, 0x14021eadd movaps [rsp+0E0h+var_48+8], xmm6 ; +0xa5, 0x14021eae5 test bl, bl ; +0xad, 0x14021eaed jnz short loc_14021EAF6 ; +0xaf, 0x14021eaef test r15b, r15b ; +0xb1, 0x14021eaf1 jz short loc_14021EB05 ; +0xb4, 0x14021eaf4 movaps xmm0, xmm7 ; +0xb6, 0x14021eaf6 andps xmm0, xmm1 ; +0xb9, 0x14021eaf9 comiss xmm0, xmm2 ; +0xbc, 0x14021eafc ja loc_14021EF78 ; +0xbf, 0x14021eaff test r14b, r14b ; +0xc5, 0x14021eb05 jnz short loc_14021EB0F ; +0xc8, 0x14021eb08 test r12b, r12b ; +0xca, 0x14021eb0a jz short loc_14021EB1F ; +0xcd, 0x14021eb0d movaps xmm0, xmm8 ; +0xcf, 0x14021eb0f andps xmm0, xmm1 ; +0xd3, 0x14021eb13 comiss xmm0, xmm2 ; +0xd6, 0x14021eb16 ja loc_14021EF78 ; +0xd9, 0x14021eb19 cmp byte ptr [rdi+610h], 0 ; +0xdf, 0x14021eb1f jz loc_14021EC51 ; +0xe6, 0x14021eb26 cmp byte ptr [rdi+5F4h], 0 ; +0xec, 0x14021eb2c jnz short loc_14021EB42 ; +0xf3, 0x14021eb33 cmp byte ptr [rdi+605h], 0 ; +0xf5, 0x14021eb35 jz loc_14021EC51 ; +0xfc, 0x14021eb3c mov edx, [rdi+608h] ; +0x102, 0x14021eb42 mov [rbp+57h+var_70], rdi ; +0x108, 0x14021eb48 test edx, edx ; +0x10c, 0x14021eb4c jg short loc_14021EB56 ; +0x10e, 0x14021eb4e mov edx, [rdi+5C8h] ; +0x110, 0x14021eb50 mov rcx, rsi ; +0x116, 0x14021eb56 call GJBaseGameLayer__tryGetObject ; +0x119, 0x14021eb59 cmp byte ptr [rdi+6A4h], 0 ; +0x11e, 0x14021eb5e mov rbx, rax ; +0x125, 0x14021eb65 mov [rbp+57h+arg_18], rax ; +0x128, 0x14021eb68 jnz short loc_14021EB9C ; +0x12c, 0x14021eb6c cmp byte ptr [rdi+6A5h], 0 ; +0x12e, 0x14021eb6e jnz short loc_14021EB8A ; +0x135, 0x14021eb75 mov edx, [rdi+5CCh] ; +0x137, 0x14021eb77 mov rcx, rsi ; +0x13d, 0x14021eb7d call GJBaseGameLayer__tryGetObject ; +0x140, 0x14021eb80 mov rcx, rax ; +0x145, 0x14021eb85 jmp short loc_14021EBA3 ; +0x148, 0x14021eb88 cmp byte ptr [rsi+422h], 0 ; +0x14a, 0x14021eb8a jz short loc_14021EB9C ; +0x151, 0x14021eb91 mov rcx, [rsi+0DA8h] ; +0x153, 0x14021eb93 jmp short loc_14021EBA3 ; +0x15a, 0x14021eb9a mov rcx, [rsi+0DA0h] ; +0x15c, 0x14021eb9c mov [rbp+57h+arg_8], rcx ; +0x163, 0x14021eba3 test rbx, rbx ; +0x167, 0x14021eba7 jz loc_14021EF78 ; +0x16a, 0x14021ebaa test rcx, rcx ; +0x170, 0x14021ebb0 jz loc_14021EF78 ; +0x173, 0x14021ebb3 mov rdx, [rsi+738h] ; +0x179, 0x14021ebb9 cmp rdx, [rsi+740h] ; +0x180, 0x14021ebc0 jz short loc_14021EC2F ; +0x187, 0x14021ebc7 xor eax, eax ; +0x189, 0x14021ebc9 mov dword ptr [rdx+4Ch], 1 ; +0x18b, 0x14021ebcb mov [rdx+50h], rax ; +0x192, 0x14021ebd2 mov [rdx+8], rax ; +0x196, 0x14021ebd6 mov [rdx+10h], rax ; +0x19a, 0x14021ebda mov [rdx+58h], eax ; +0x19e, 0x14021ebde mov [rdx+18h], rax ; +0x1a1, 0x14021ebe1 mov [rdx+20h], rax ; +0x1a5, 0x14021ebe5 mov [rdx+28h], rax ; +0x1a9, 0x14021ebe9 mov [rdx+30h], rax ; +0x1ad, 0x14021ebed mov [rdx+38h], rax ; +0x1b1, 0x14021ebf1 mov [rdx+40h], rax ; +0x1b5, 0x14021ebf5 mov [rdx+48h], eax ; +0x1b9, 0x14021ebf9 mov [rdx], rdi ; +0x1bc, 0x14021ebfc mov eax, [rdi+698h] ; +0x1bf, 0x14021ebff mov [rdx+50h], eax ; +0x1c5, 0x14021ec05 mov eax, [rdi+5C8h] ; +0x1c8, 0x14021ec08 mov [rdx+54h], eax ; +0x1ce, 0x14021ec0e mov eax, [rdi+5CCh] ; +0x1d1, 0x14021ec11 mov [rdx+58h], eax ; +0x1d7, 0x14021ec17 mov [rdx+8], rbx ; +0x1da, 0x14021ec1a mov [rdx+10h], rcx ; +0x1de, 0x14021ec1e add qword ptr [rsi+738h], 60h ; '`' ; +0x1e2, 0x14021ec22 jmp loc_14021EF78 ; +0x1ea, 0x14021ec2a lea rax, [rbp+57h+arg_8] ; +0x1ef, 0x14021ec2f lea r9, [rbp+57h+arg_18] ; +0x1f3, 0x14021ec33 mov qword ptr [rsp+0E0h+var_C0], rax ; +0x1f7, 0x14021ec37 lea r8, [rbp+57h+var_70] ; +0x1fc, 0x14021ec3c lea rcx, [rsi+730h] ; +0x200, 0x14021ec40 call sub_1402518B0 ; +0x207, 0x14021ec47 jmp loc_14021EF78 ; +0x20c, 0x14021ec4c cmp byte ptr [rdi+5F4h], 0 ; +0x211, 0x14021ec51 jnz short loc_14021EC67 ; +0x218, 0x14021ec58 cmp byte ptr [rdi+605h], 0 ; +0x21a, 0x14021ec5a jz loc_14021EDC1 ; +0x221, 0x14021ec61 mov edx, [rdi+608h] ; +0x227, 0x14021ec67 movzx r14d, byte ptr [rsi+887h] ; +0x22d, 0x14021ec6d test edx, edx ; +0x235, 0x14021ec75 jg short loc_14021EC7F ; +0x237, 0x14021ec77 mov edx, [rdi+5C8h] ; +0x239, 0x14021ec79 mov rcx, rsi ; +0x23f, 0x14021ec7f test r14b, r14b ; +0x242, 0x14021ec82 jnz short loc_14021EC8E ; +0x245, 0x14021ec85 call GJBaseGameLayer__tryGetMainObject ; +0x247, 0x14021ec87 jmp short loc_14021EC93 ; +0x24c, 0x14021ec8c call GJBaseGameLayer__tryGetObject ; +0x24e, 0x14021ec8e cmp byte ptr [rdi+6A4h], 0 ; +0x253, 0x14021ec93 mov rbx, rax ; +0x25a, 0x14021ec9a jnz short loc_14021ECDC ; +0x25d, 0x14021ec9d cmp byte ptr [rdi+6A5h], 0 ; +0x25f, 0x14021ec9f jnz short loc_14021ECCA ; +0x266, 0x14021eca6 mov edx, [rdi+5CCh] ; +0x268, 0x14021eca8 mov rcx, rsi ; +0x26e, 0x14021ecae test r14b, r14b ; +0x271, 0x14021ecb1 jnz short loc_14021ECC0 ; +0x274, 0x14021ecb4 call GJBaseGameLayer__tryGetMainObject ; +0x276, 0x14021ecb6 mov r14, rax ; +0x27b, 0x14021ecbb jmp short loc_14021ECE3 ; +0x27e, 0x14021ecbe call GJBaseGameLayer__tryGetObject ; +0x280, 0x14021ecc0 mov r14, rax ; +0x285, 0x14021ecc5 jmp short loc_14021ECE3 ; +0x288, 0x14021ecc8 cmp byte ptr [rsi+422h], 0 ; +0x28a, 0x14021ecca jz short loc_14021ECDC ; +0x291, 0x14021ecd1 mov r14, [rsi+0DA8h] ; +0x293, 0x14021ecd3 jmp short loc_14021ECE3 ; +0x29a, 0x14021ecda mov r14, [rsi+0DA0h] ; +0x29c, 0x14021ecdc test rbx, rbx ; +0x2a3, 0x14021ece3 jz short loc_14021ED32 ; +0x2a6, 0x14021ece6 test r14, r14 ; +0x2a8, 0x14021ece8 jz short loc_14021ED32 ; +0x2ab, 0x14021eceb mov eax, [r14+39Ch] ; +0x2ad, 0x14021eced cmp [rbx+39Ch], eax ; +0x2b4, 0x14021ecf4 jz short loc_14021ED32 ; +0x2ba, 0x14021ecfa mov rax, [rbx] ; +0x2bc, 0x14021ecfc lea rdx, [rbp+57h+arg_18] ; +0x2bf, 0x14021ecff mov rcx, rbx ; +0x2c3, 0x14021ed03 call qword ptr [rax+4A8h] ; +0x2c6, 0x14021ed06 mov r8, [r14] ; +0x2cc, 0x14021ed0c lea rdx, [rbp+57h+var_70] ; +0x2cf, 0x14021ed0f mov rcx, r14 ; +0x2d3, 0x14021ed13 mov rbx, rax ; +0x2d6, 0x14021ed16 call qword ptr [r8+4A8h] ; +0x2d9, 0x14021ed19 mov r8, rbx ; +0x2e0, 0x14021ed20 lea rdx, [rbp+57h+arg_8] ; +0x2e3, 0x14021ed23 mov rcx, rax ; +0x2e7, 0x14021ed27 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x2ea, 0x14021ed2a jmp short loc_14021ED43 ; +0x2f0, 0x14021ed30 lea rdx, dword_1406C1D28 ; +0x2f2, 0x14021ed32 lea rcx, [rbp+57h+arg_8] ; +0x2f9, 0x14021ed39 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x2fd, 0x14021ed3d lea rdx, [rbp+57h+arg_8] ; +0x303, 0x14021ed43 lea rcx, [rbp+57h+arg_10] ; +0x307, 0x14021ed47 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x30b, 0x14021ed4b cmp byte ptr [rdi+605h], 0 ; +0x311, 0x14021ed51 jz short loc_14021ED8E ; +0x318, 0x14021ed58 movss xmm6, dword ptr [rdi+60Ch] ; +0x31a, 0x14021ed5a lea rdx, [rbp+57h+arg_10] ; +0x322, 0x14021ed62 lea rcx, [rbp+57h+arg_18] ; +0x326, 0x14021ed66 call cs:?ccpNormalize@cocos2d@@YA?AVCCPoint@1@AEBV21@@Z; cocos2d::ccpNormalize(cocos2d::CCPoint const &) ; +0x32a, 0x14021ed6a movaps xmm2, xmm6 ; +0x330, 0x14021ed70 lea rdx, [rbp+57h+arg_8] ; +0x333, 0x14021ed73 mov rcx, rax ; +0x337, 0x14021ed77 call cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x33a, 0x14021ed7a lea rdx, [rbp+57h+arg_8] ; +0x340, 0x14021ed80 lea rcx, [rbp+57h+arg_10] ; +0x344, 0x14021ed84 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x348, 0x14021ed88 xor bl, bl ; +0x34e, 0x14021ed8e xor r14b, r14b ; +0x350, 0x14021ed90 xor r15b, r15b ; +0x353, 0x14021ed93 xor r12b, r12b ; +0x356, 0x14021ed96 cmp [rdi+5F4h], bl ; +0x359, 0x14021ed99 jz short loc_14021EDC1 ; +0x35f, 0x14021ed9f mov eax, [rdi+5F8h] ; +0x361, 0x14021eda1 cmp eax, 1 ; +0x367, 0x14021eda7 jnz short loc_14021EDB5 ; +0x36a, 0x14021edaa mov [rbp+57h+arg_14], 0 ; +0x36c, 0x14021edac jmp short loc_14021EDC1 ; +0x373, 0x14021edb3 cmp eax, 2 ; +0x375, 0x14021edb5 jnz short loc_14021EDC1 ; +0x378, 0x14021edb8 mov [rbp+57h+arg_10], 0 ; +0x37a, 0x14021edba cmp byte ptr [rdi+611h], 0 ; +0x381, 0x14021edc1 jz loc_14021EF00 ; +0x388, 0x14021edc8 movss xmm7, [rbp+57h+arg_14] ; +0x38e, 0x14021edce mov rcx, rsi ; +0x393, 0x14021edd3 movss xmm6, [rbp+57h+arg_10] ; +0x396, 0x14021edd6 mov r12d, [rdi+5C8h] ; +0x39b, 0x14021eddb mov edx, r12d ; +0x3a2, 0x14021ede2 cvtps2pd xmm7, xmm7 ; +0x3a5, 0x14021ede5 cvtps2pd xmm6, xmm6 ; +0x3a8, 0x14021ede8 call GJBaseGameLayer__getGroup ; +0x3ab, 0x14021edeb test rax, rax ; +0x3b0, 0x14021edf0 jz loc_14021EEB1 ; +0x3b3, 0x14021edf3 mov r14, [rax+38h] ; +0x3b9, 0x14021edf9 mov eax, [r14] ; +0x3bd, 0x14021edfd test eax, eax ; +0x3c0, 0x14021ee00 jz loc_14021EEB1 ; +0x3c2, 0x14021ee02 mov r14, [r14+10h] ; +0x3c8, 0x14021ee08 lea r15, [rax-1] ; +0x3cc, 0x14021ee0c lea r15, [r14+r15*8] ; +0x3d0, 0x14021ee10 cmp r14, r15 ; +0x3d4, 0x14021ee14 ja loc_14021EEB1 ; +0x3d7, 0x14021ee17 nop dword ptr [rax] ; +0x3dd, 0x14021ee1d mov rbx, [r14] ; +0x3e0, 0x14021ee20 test rbx, rbx ; +0x3e3, 0x14021ee23 jz loc_14021EEB1 ; +0x3e6, 0x14021ee26 cmp byte ptr [rbx+2C8h], 0 ; +0x3ec, 0x14021ee2c jnz short loc_14021EE48 ; +0x3f3, 0x14021ee33 movaps xmm0, xmm6 ; +0x3f5, 0x14021ee35 addsd xmm0, qword ptr [rbx+3B8h] ; +0x3f8, 0x14021ee38 movsd qword ptr [rbx+3B8h], xmm0 ; +0x400, 0x14021ee40 movaps xmm0, xmm7 ; +0x408, 0x14021ee48 mov word ptr [rbx+368h], 101h ; +0x40b, 0x14021ee4b addsd xmm0, qword ptr [rbx+3C0h] ; +0x414, 0x14021ee54 mov word ptr [rbx+351h], 101h ; +0x41c, 0x14021ee5c mov rdx, rbx ; +0x425, 0x14021ee65 mov rcx, rsi ; +0x428, 0x14021ee68 movsd qword ptr [rbx+3C0h], xmm0 ; +0x42b, 0x14021ee6b mov rax, [rsi] ; +0x433, 0x14021ee73 call qword ptr [rax+490h] ; +0x436, 0x14021ee76 movsd xmm0, qword ptr [rbx+3B8h] ; +0x43c, 0x14021ee7c add r14, 8 ; +0x444, 0x14021ee84 movsd xmm1, qword ptr [rbx+3C0h] ; +0x448, 0x14021ee88 cvtpd2ps xmm0, xmm0 ; +0x450, 0x14021ee90 cvtpd2ps xmm1, xmm1 ; +0x454, 0x14021ee94 movss dword ptr [rbx+4D0h], xmm0 ; +0x458, 0x14021ee98 movss dword ptr [rbx+4D4h], xmm1 ; +0x460, 0x14021eea0 cmp r14, r15 ; +0x468, 0x14021eea8 jbe loc_14021EE20 ; +0x46b, 0x14021eeab mov rbx, [rsi+950h] ; +0x471, 0x14021eeb1 lea r8, [rbp+57h+arg_8] ; +0x478, 0x14021eeb8 lea rdx, [rbp+57h+var_70] ; +0x47c, 0x14021eebc mov dword ptr [rbp+57h+arg_8], r12d ; +0x480, 0x14021eec0 lea rcx, [rbx+620h] ; +0x484, 0x14021eec4 call sub_1402675E0 ; +0x48b, 0x14021eecb lea r8, [rbp+57h+arg_8] ; +0x490, 0x14021eed0 lea rcx, [rbx+620h] ; +0x494, 0x14021eed4 mov rdx, [rax] ; +0x49b, 0x14021eedb addsd xmm6, qword ptr [rdx+18h] ; +0x49e, 0x14021eede movsd qword ptr [rdx+18h], xmm6 ; +0x4a3, 0x14021eee3 lea rdx, [rbp+57h+var_70] ; +0x4a8, 0x14021eee8 call sub_1402675E0 ; +0x4ac, 0x14021eeec mov rcx, [rax] ; +0x4b1, 0x14021eef1 addsd xmm7, qword ptr [rcx+20h] ; +0x4b4, 0x14021eef4 movsd qword ptr [rcx+20h], xmm7 ; +0x4b9, 0x14021eef9 jmp short loc_14021EF78 ; +0x4be, 0x14021eefe lea rdx, [rbp+57h+arg_10] ; +0x4c0, 0x14021ef00 lea rcx, [rbp+57h+arg_8] ; +0x4c4, 0x14021ef04 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x4c8, 0x14021ef08 movss xmm0, dword ptr [rdi+5ECh] ; +0x4ce, 0x14021ef0e mov rdx, rax ; +0x4d6, 0x14021ef16 mov eax, [rdi+698h] ; +0x4d9, 0x14021ef19 movss xmm3, dword ptr [rdi+5BCh] ; +0x4df, 0x14021ef1f mov r8d, [rdi+5C8h] ; +0x4e7, 0x14021ef27 mov rcx, [rsi+950h] ; +0x4ee, 0x14021ef2e mov [rsp+68h], eax ; +0x4f5, 0x14021ef35 mov eax, [rdi+39Ch] ; +0x4f9, 0x14021ef39 mov [rsp+0E0h+var_80], eax ; +0x4ff, 0x14021ef3f mov eax, [rdi+5E8h] ; +0x503, 0x14021ef43 movss [rsp+0E0h+var_88], xmm8 ; +0x509, 0x14021ef49 movss [rsp+0E0h+var_90], xmm7 ; +0x510, 0x14021ef50 mov byte ptr [rsp+0E0h+var_98], r12b ; +0x516, 0x14021ef56 mov [rsp+0E0h+var_A0], r15b ; +0x51b, 0x14021ef5b mov [rsp+0E0h+var_A8], r14b ; +0x520, 0x14021ef60 mov [rsp+0E0h+var_B0], bl ; +0x525, 0x14021ef65 movss dword ptr [rsp+0E0h+var_B8], xmm0 ; +0x529, 0x14021ef69 mov [rsp+0E0h+var_C0], eax ; +0x52f, 0x14021ef6f call GJEffectManager__createMoveCommand ; +0x533, 0x14021ef73 movaps xmm6, [rsp+0E0h+var_48+8] ; +0x538, 0x14021ef78 movaps xmm7, [rsp+0E0h+var_58+8] ; +0x540, 0x14021ef80 movaps xmm8, [rsp+0E0h+var_68+8] ; +0x548, 0x14021ef88 add rsp, 0B0h ; +0x551, 0x14021ef91 pop r15 ; +0x558, 0x14021ef98 pop r14 ; +0x55a, 0x14021ef9a pop r12 ; +0x55c, 0x14021ef9c pop rdi ; +0x55e, 0x14021ef9e pop rsi ; +0x55f, 0x14021ef9f pop rbx ; +0x560, 0x14021efa0 pop rbp ; +0x561, 0x14021efa1 retn ; +0x562, 0x14021efa2