; ; GJBaseGameLayer::processAreaMoveGroupAction from 0x14022a4d0 to 0x14022aaac (1500 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::processAreaEffects @ 0x140228ecd ; > @ 0x140680790 ; > @ 0x1406807e4 ; > @ 0x1406cdb00 ; ; 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_18], r9 ; +0x0, 0x14022a4d0 push rbx ; +0x5, 0x14022a4d5 push rdi ; +0x6, 0x14022a4d6 push r13 ; +0x7, 0x14022a4d7 push r14 ; +0x9, 0x14022a4d9 sub rsp, 138h ; +0xb, 0x14022a4db mov r13, [r8+0A0h] ; +0x12, 0x14022a4e2 mov r14, r8 ; +0x19, 0x14022a4e9 movaps [rsp+158h+var_A8], xmm11 ; +0x1c, 0x14022a4ec mov rbx, rdx ; +0x25, 0x14022a4f5 movaps [rsp+158h+var_B8], xmm12 ; +0x28, 0x14022a4f8 xorps xmm11, xmm11 ; +0x31, 0x14022a501 movaps [rsp+158h+var_C8], xmm13 ; +0x35, 0x14022a505 mov rdi, rcx ; +0x3e, 0x14022a50e movss xmm13, dword ptr [r13+78Ch] ; +0x41, 0x14022a511 comiss xmm11, xmm13 ; +0x4a, 0x14022a51a movaps [rsp+158h+var_D8], xmm14 ; +0x4e, 0x14022a51e jbe short loc_14022A52D ; +0x57, 0x14022a527 xorps xmm13, xmm13 ; +0x59, 0x14022a529 movss xmm12, cs:flt_140622C24 ; +0x5d, 0x14022a52d mov rcx, rbx ; +0x66, 0x14022a536 movaps xmm14, xmm12 ; +0x69, 0x14022a539 divss xmm14, xmm13 ; +0x6d, 0x14022a53d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x72, 0x14022a542 add [rdi+3704h], eax ; +0x78, 0x14022a548 xor edx, edx ; +0x7e, 0x14022a54e xor r8d, r8d ; +0x80, 0x14022a550 mov [rsp+158h+arg_8], edx ; +0x83, 0x14022a553 test rbx, rbx ; +0x8a, 0x14022a55a jz loc_14022AA6A ; +0x8d, 0x14022a55d mov rax, [rbx+38h] ; +0x93, 0x14022a563 mov ecx, [rax] ; +0x97, 0x14022a567 test ecx, ecx ; +0x99, 0x14022a569 jz loc_14022AA6A ; +0x9b, 0x14022a56b mov [rsp+158h+var_40], r15 ; +0xa1, 0x14022a571 mov r15, [rax+10h] ; +0xa9, 0x14022a579 lea rax, [rcx-1] ; +0xad, 0x14022a57d lea rax, [r15+rax*8] ; +0xb1, 0x14022a581 mov [rsp+158h+var_110], rax ; +0xb5, 0x14022a585 cmp r15, rax ; +0xba, 0x14022a58a ja loc_14022AA62 ; +0xbd, 0x14022a58d movsxd rax, [rsp+158h+arg_40] ; +0xc3, 0x14022a593 mov [rsp+158h+var_28], rbp ; +0xcb, 0x14022a59b mov [rsp+158h+var_30], rsi ; +0xd3, 0x14022a5a3 mov [rsp+158h+var_38], r12 ; +0xdb, 0x14022a5ab movaps [rsp+158h+var_58], xmm6 ; +0xe3, 0x14022a5b3 lea r12d, [rax-1] ; +0xeb, 0x14022a5bb movaps [rsp+158h+var_98], xmm10 ; +0xef, 0x14022a5bf lea rbx, ds:0FFFFFFFFFFFFFFFCh[rax*4] ; +0xf8, 0x14022a5c8 movaps [rsp+158h+var_E8], xmm15 ; +0x100, 0x14022a5d0 movss xmm15, cs:dword_140623294 ; +0x106, 0x14022a5d6 movaps [rsp+158h+var_68], xmm7 ; +0x10f, 0x14022a5df movaps [rsp+158h+var_78], xmm8 ; +0x117, 0x14022a5e7 movaps [rsp+158h+var_88], xmm9 ; +0x120, 0x14022a5f0 nop dword ptr [rax+00000000h] ; +0x129, 0x14022a5f9 mov rsi, [r15] ; +0x130, 0x14022a600 test rsi, rsi ; +0x133, 0x14022a603 jz loc_14022AA12 ; +0x136, 0x14022a606 add rbx, 4 ; +0x13c, 0x14022a60c inc r12d ; +0x140, 0x14022a610 cmp byte ptr [rsi+305h], 0 ; +0x143, 0x14022a613 mov [rsp+158h+var_118], rbx ; +0x14a, 0x14022a61a jnz short loc_14022A661 ; +0x14f, 0x14022a61f mov eax, [rsi+278h] ; +0x151, 0x14022a621 cmp eax, [rsp+158h+arg_28] ; +0x157, 0x14022a627 jg loc_14022AA03 ; +0x15e, 0x14022a62e cmp eax, [rsp+158h+arg_20] ; +0x164, 0x14022a634 jl loc_14022AA03 ; +0x16b, 0x14022a63b mov eax, [rsi+27Ch] ; +0x171, 0x14022a641 cmp eax, [rsp+158h+arg_38] ; +0x177, 0x14022a647 jg loc_14022AA03 ; +0x17e, 0x14022a64e cmp eax, [rsp+158h+arg_30] ; +0x184, 0x14022a654 jl loc_14022AA03 ; +0x18b, 0x14022a65b inc r8d ; +0x191, 0x14022a661 mov rdx, rsi ; +0x194, 0x14022a664 mov [rsp+158h+arg_10], r8d ; +0x197, 0x14022a667 mov rcx, rdi ; +0x19f, 0x14022a66f mov r8b, 1 ; +0x1a2, 0x14022a672 call GJBaseGameLayer__resetAreaObjectValues ; +0x1a5, 0x14022a675 mov r9, [rsp+158h+arg_18] ; +0x1aa, 0x14022a67a movzx ebp, al ; +0x1b2, 0x14022a682 mov [rsp+158h+arg_0], al ; +0x1b5, 0x14022a685 mov r8, rsi ; +0x1bc, 0x14022a68c lea rax, [rsp+158h+arg_50] ; +0x1bf, 0x14022a68f mov [rsp+158h+arg_50], 0 ; +0x1c7, 0x14022a697 mov rdx, r14 ; +0x1cf, 0x14022a69f mov [rsp+158h+var_138], rax ; +0x1d2, 0x14022a6a2 mov rcx, rdi ; +0x1d7, 0x14022a6a7 call GJBaseGameLayer__getAreaObjectValue ; +0x1da, 0x14022a6aa comiss xmm12, xmm0 ; +0x1df, 0x14022a6af jbe loc_14022A9CF ; +0x1e3, 0x14022a6b3 mov rax, [r14+0A0h] ; +0x1e9, 0x14022a6b9 movaps xmm10, xmm11 ; +0x1f0, 0x14022a6c0 movaps xmm6, xmm11 ; +0x1f4, 0x14022a6c4 cmp byte ptr [rax+7C4h], 0 ; +0x1f8, 0x14022a6c8 jz short loc_14022A74C ; +0x1ff, 0x14022a6cf movsx rcx, word ptr [rsi+3F4h] ; +0x201, 0x14022a6d1 movss xmm8, dword ptr [rdi+rcx*4+10ECh] ; +0x209, 0x14022a6d9 mulss xmm8, dword ptr [r14+48h] ; +0x213, 0x14022a6e3 movss xmm7, dword ptr [rdi+rcx*4+10F0h] ; +0x219, 0x14022a6e9 mulss xmm7, dword ptr [r14+50h] ; +0x222, 0x14022a6f2 addss xmm8, dword ptr [r14+44h] ; +0x228, 0x14022a6f8 addss xmm7, dword ptr [r14+4Ch] ; +0x22e, 0x14022a6fe ucomiss xmm8, xmm11 ; +0x234, 0x14022a704 jp short loc_14022A718 ; +0x238, 0x14022a708 jnz short loc_14022A718 ; +0x23a, 0x14022a70a ucomiss xmm7, xmm11 ; +0x23c, 0x14022a70c jp short loc_14022A718 ; +0x240, 0x14022a710 jz loc_14022A8ED ; +0x242, 0x14022a712 movzx eax, [rsp+158h+arg_50] ; +0x248, 0x14022a718 movaps xmm3, xmm0 ; +0x250, 0x14022a720 mov [rsp+158h+var_130], r12d ; +0x253, 0x14022a723 mov r8, r14 ; +0x258, 0x14022a728 mov rcx, rdi ; +0x25b, 0x14022a72b mov byte ptr [rsp+158h+var_138], al ; +0x25e, 0x14022a72e call GJBaseGameLayer__getEasedAreaValue ; +0x262, 0x14022a732 movaps xmm6, xmm12 ; +0x267, 0x14022a737 subss xmm6, xmm0 ; +0x26b, 0x14022a73b movaps xmm10, xmm6 ; +0x26f, 0x14022a73f mulss xmm6, xmm7 ; +0x273, 0x14022a743 jmp loc_14022A8E8 ; +0x277, 0x14022a747 movss xmm7, dword ptr [r14+38h] ; +0x27c, 0x14022a74c ucomiss xmm7, xmm11 ; +0x282, 0x14022a752 jp short loc_14022A760 ; +0x286, 0x14022a756 jnz short loc_14022A760 ; +0x288, 0x14022a758 movaps xmm7, xmm11 ; +0x28a, 0x14022a75a jmp short loc_14022A771 ; +0x28e, 0x14022a75e movsx rax, word ptr [rsi+3F4h] ; +0x290, 0x14022a760 mulss xmm7, dword ptr [rdi+rax*4+10F4h] ; +0x298, 0x14022a768 addss xmm7, dword ptr [r14+34h] ; +0x2a1, 0x14022a771 ucomiss xmm7, xmm11 ; +0x2a7, 0x14022a777 jp short loc_14022A783 ; +0x2ab, 0x14022a77b jz loc_14022A8ED ; +0x2ad, 0x14022a77d movzx eax, [rsp+158h+arg_50] ; +0x2b3, 0x14022a783 movaps xmm3, xmm0 ; +0x2bb, 0x14022a78b mov [rsp+158h+var_130], r12d ; +0x2be, 0x14022a78e mov r8, r14 ; +0x2c3, 0x14022a793 mov rcx, rdi ; +0x2c6, 0x14022a796 mov byte ptr [rsp+158h+var_138], al ; +0x2c9, 0x14022a799 call GJBaseGameLayer__getEasedAreaValue ; +0x2cd, 0x14022a79d lea rcx, [rsp+158h+var_128] ; +0x2d2, 0x14022a7a2 movaps xmm10, xmm0 ; +0x2d7, 0x14022a7a7 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2db, 0x14022a7ab cmp byte ptr [r13+788h], 0 ; +0x2e1, 0x14022a7b1 jz loc_14022A86E ; +0x2e9, 0x14022a7b9 mov rax, [rsi] ; +0x2ef, 0x14022a7bf lea rdx, [rsp+158h+var_108] ; +0x2f2, 0x14022a7c2 mov rcx, rsi ; +0x2f7, 0x14022a7c7 call qword ptr [rax+4A8h] ; +0x2fa, 0x14022a7ca mov r8, [rsp+158h+arg_18] ; +0x300, 0x14022a7d0 lea rdx, [rsp+158h+var_120] ; +0x308, 0x14022a7d8 mov rcx, rax ; +0x30d, 0x14022a7dd call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x310, 0x14022a7e0 lea rdx, [rsp+158h+var_120] ; +0x316, 0x14022a7e6 lea rcx, [rsp+158h+var_128] ; +0x31b, 0x14022a7eb call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x320, 0x14022a7f0 movss xmm8, [rsp+158h+var_128] ; +0x326, 0x14022a7f6 movss xmm9, [rsp+158h+var_124] ; +0x32d, 0x14022a7fd movaps xmm1, xmm8 ; +0x334, 0x14022a804 movaps xmm0, xmm9 ; +0x338, 0x14022a808 mulss xmm1, xmm8 ; +0x33c, 0x14022a80c mulss xmm0, xmm9 ; +0x341, 0x14022a811 addss xmm1, xmm0 ; +0x346, 0x14022a816 xorps xmm0, xmm0 ; +0x34a, 0x14022a81a ucomiss xmm0, xmm1 ; +0x34d, 0x14022a81d ja short loc_14022A82B ; +0x350, 0x14022a820 xorps xmm0, xmm0 ; +0x352, 0x14022a822 sqrtss xmm0, xmm1 ; +0x355, 0x14022a825 jmp short loc_14022A833 ; +0x359, 0x14022a829 movaps xmm0, xmm1; X ; +0x35b, 0x14022a82b call sqrtf ; +0x35e, 0x14022a82e comiss xmm13, xmm0 ; +0x363, 0x14022a833 jbe short loc_14022A845 ; +0x367, 0x14022a837 movaps xmm2, xmm0 ; +0x369, 0x14022a839 mulss xmm2, xmm14 ; +0x36c, 0x14022a83c mulss xmm7, xmm2 ; +0x371, 0x14022a841 comiss xmm0, xmm11 ; +0x375, 0x14022a845 jbe loc_14022A8D2 ; +0x379, 0x14022a849 divss xmm9, xmm0 ; +0x37f, 0x14022a84f lea rcx, [rsp+158h+var_100] ; +0x384, 0x14022a854 divss xmm8, xmm0 ; +0x389, 0x14022a859 movaps xmm2, xmm9 ; +0x38e, 0x14022a85e movaps xmm1, xmm8 ; +0x392, 0x14022a862 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x396, 0x14022a866 jmp short loc_14022A8B6 ; +0x39c, 0x14022a86c cmp byte ptr [r13+77Ch], 0 ; +0x39e, 0x14022a86e jz short loc_14022A881 ; +0x3a6, 0x14022a876 lea rdx, [r13+780h] ; +0x3a8, 0x14022a878 jmp short loc_14022A8B9 ; +0x3af, 0x14022a87f movsx rax, word ptr [rsi+3F4h] ; +0x3b1, 0x14022a881 lea rcx, [rsp+158h+var_F8] ; +0x3b9, 0x14022a889 movss xmm1, dword ptr [rdi+rax*4+10F8h] ; +0x3be, 0x14022a88e mulss xmm1, dword ptr [r14+40h] ; +0x3c7, 0x14022a897 addss xmm1, dword ptr [r14+3Ch] ; +0x3cd, 0x14022a89d subss xmm1, xmm15 ; +0x3d3, 0x14022a8a3 mulss xmm1, cs:dword_1406229BC ; +0x3d8, 0x14022a8a8 call cs:?ccpForAngle@cocos2d@@YA?AVCCPoint@1@M@Z; cocos2d::ccpForAngle(float) ; +0x3e0, 0x14022a8b0 mov rdx, rax ; +0x3e6, 0x14022a8b6 lea rcx, [rsp+158h+var_128] ; +0x3e9, 0x14022a8b9 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x3ee, 0x14022a8be movss xmm9, [rsp+158h+var_124] ; +0x3f4, 0x14022a8c4 movss xmm8, [rsp+158h+var_128] ; +0x3fb, 0x14022a8cb movaps xmm6, xmm12 ; +0x402, 0x14022a8d2 subss xmm6, xmm10 ; +0x406, 0x14022a8d6 mulss xmm6, xmm7 ; +0x40b, 0x14022a8db movaps xmm10, xmm6 ; +0x40f, 0x14022a8df mulss xmm6, xmm9 ; +0x413, 0x14022a8e3 mulss xmm10, xmm8 ; +0x418, 0x14022a8e8 cmp [rsp+158h+arg_48], 0 ; +0x41d, 0x14022a8ed jnz short loc_14022A90E ; +0x425, 0x14022a8f5 movaps xmm3, xmm6 ; +0x427, 0x14022a8f7 movaps xmm2, xmm10 ; +0x42a, 0x14022a8fa mov rdx, rsi ; +0x42e, 0x14022a8fe mov rcx, rdi ; +0x431, 0x14022a901 call GJBaseGameLayer__moveAreaObject ; +0x434, 0x14022a904 jmp loc_14022A9E7 ; +0x439, 0x14022a909 mov edx, [r14+0C0h] ; +0x43e, 0x14022a90e mov rcx, [rdi+0F78h] ; +0x445, 0x14022a915 inc edx ; +0x44c, 0x14022a91c movsxd rbx, dword ptr [rsi+39Ch] ; +0x44e, 0x14022a91e call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x455, 0x14022a925 mov rcx, rax ; +0x45b, 0x14022a92b mov rdx, rbx ; +0x45e, 0x14022a92e call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x461, 0x14022a931 mov rcx, rax ; +0x467, 0x14022a937 mov rbx, rax ; +0x46a, 0x14022a93a call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x46d, 0x14022a93d mov ecx, [rsp+158h+arg_8] ; +0x473, 0x14022a943 dec ecx ; +0x47a, 0x14022a94a add ecx, eax ; +0x47c, 0x14022a94c mov [rsp+158h+arg_8], ecx ; +0x47e, 0x14022a94e mov rcx, [r14+0A0h] ; +0x485, 0x14022a955 cmp byte ptr [rcx+7F5h], 0 ; +0x48c, 0x14022a95c jz short loc_14022A96C ; +0x493, 0x14022a963 mov byte ptr [rsi+520h], 1 ; +0x495, 0x14022a965 test rbx, rbx ; +0x49c, 0x14022a96c jz short loc_14022A9C1 ; +0x49f, 0x14022a96f mov rbx, [rbx+38h] ; +0x4a1, 0x14022a971 mov eax, [rbx] ; +0x4a5, 0x14022a975 test eax, eax ; +0x4a7, 0x14022a977 jz short loc_14022A9C1 ; +0x4a9, 0x14022a979 mov rbx, [rbx+10h] ; +0x4ab, 0x14022a97b lea rbp, [rax-1] ; +0x4af, 0x14022a97f lea rbp, [rbx+rbp*8] ; +0x4b3, 0x14022a983 cmp rbx, rbp ; +0x4b7, 0x14022a987 ja short loc_14022A9B9 ; +0x4ba, 0x14022a98a nop dword ptr [rax+00h] ; +0x4bc, 0x14022a98c mov rdx, [rbx] ; +0x4c0, 0x14022a990 test rdx, rdx ; +0x4c3, 0x14022a993 jz short loc_14022A9B9 ; +0x4c6, 0x14022a996 cmp byte ptr [rdx+520h], 0 ; +0x4c8, 0x14022a998 jnz short loc_14022A9B0 ; +0x4cf, 0x14022a99f movaps xmm3, xmm6 ; +0x4d1, 0x14022a9a1 movaps xmm2, xmm10 ; +0x4d4, 0x14022a9a4 mov rcx, rdi ; +0x4d8, 0x14022a9a8 call GJBaseGameLayer__moveAreaObject ; +0x4db, 0x14022a9ab add rbx, 8 ; +0x4e0, 0x14022a9b0 cmp rbx, rbp ; +0x4e4, 0x14022a9b4 jbe short loc_14022A990 ; +0x4e7, 0x14022a9b7 movzx ebp, [rsp+158h+arg_0] ; +0x4e9, 0x14022a9b9 mov rbx, [rsp+158h+var_118] ; +0x4f1, 0x14022a9c1 mov byte ptr [rsi+520h], 0 ; +0x4f6, 0x14022a9c6 jmp short loc_14022A9E7 ; +0x4fd, 0x14022a9cd cmp byte ptr [r13+7C5h], 0 ; +0x4ff, 0x14022a9cf jz short loc_14022A9E7 ; +0x507, 0x14022a9d7 mov rax, [r14+0C8h] ; +0x509, 0x14022a9d9 mov dword ptr [rbx+rax], 0 ; +0x510, 0x14022a9e0 test bpl, bpl ; +0x517, 0x14022a9e7 jz short loc_14022A9FB ; +0x51a, 0x14022a9ea mov rax, [rdi] ; +0x51c, 0x14022a9ec mov rdx, rsi ; +0x51f, 0x14022a9ef mov rcx, rdi ; +0x522, 0x14022a9f2 call qword ptr [rax+490h] ; +0x525, 0x14022a9f5 mov r8d, [rsp+158h+arg_10] ; +0x52b, 0x14022a9fb add r15, 8 ; +0x533, 0x14022aa03 cmp r15, [rsp+158h+var_110] ; +0x537, 0x14022aa07 jbe loc_14022A600 ; +0x53c, 0x14022aa0c mov edx, [rsp+158h+arg_8] ; +0x542, 0x14022aa12 movaps xmm15, [rsp+158h+var_E8] ; +0x549, 0x14022aa19 movaps xmm10, [rsp+158h+var_98] ; +0x54f, 0x14022aa1f movaps xmm9, [rsp+158h+var_88] ; +0x558, 0x14022aa28 movaps xmm8, [rsp+158h+var_78] ; +0x561, 0x14022aa31 movaps xmm7, [rsp+158h+var_68] ; +0x56a, 0x14022aa3a movaps xmm6, [rsp+158h+var_58] ; +0x572, 0x14022aa42 mov r12, [rsp+158h+var_38] ; +0x57a, 0x14022aa4a mov rsi, [rsp+158h+var_30] ; +0x582, 0x14022aa52 mov rbp, [rsp+158h+var_28] ; +0x58a, 0x14022aa5a mov r15, [rsp+158h+var_40] ; +0x592, 0x14022aa62 add [rdi+3704h], edx ; +0x59a, 0x14022aa6a lea eax, [rdx+r8] ; +0x5a0, 0x14022aa70 add [rdi+3714h], eax ; +0x5a4, 0x14022aa74 movaps xmm11, [rsp+158h+var_A8] ; +0x5aa, 0x14022aa7a movaps xmm12, [rsp+158h+var_B8] ; +0x5b3, 0x14022aa83 movaps xmm13, [rsp+158h+var_C8] ; +0x5bc, 0x14022aa8c movaps xmm14, [rsp+158h+var_D8] ; +0x5c5, 0x14022aa95 add rsp, 138h ; +0x5ce, 0x14022aa9e pop r14 ; +0x5d5, 0x14022aaa5 pop r13 ; +0x5d7, 0x14022aaa7 pop rdi ; +0x5d9, 0x14022aaa9 pop rbx ; +0x5da, 0x14022aaaa retn ; +0x5db, 0x14022aaab