; ; GJBaseGameLayer::rotateAreaObjects from 0x14022a100 to 0x14022a4cf (975 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229ff5 ; > @ 0x1406806ec ; > @ 0x14068075c ; > @ 0x1406cdaa0 ; ; 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 r11, rsp ; +0x0, 0x14022a100 push rbx ; +0x3, 0x14022a103 push rdi ; +0x4, 0x14022a104 push r13 ; +0x5, 0x14022a105 sub rsp, 100h ; +0x7, 0x14022a107 movaps xmmword ptr [r11-58h], xmm7 ; +0xe, 0x14022a10e movaps xmmword ptr [r11-68h], xmm8 ; +0x13, 0x14022a113 mov rax, cs:__security_cookie ; +0x18, 0x14022a118 xor rax, rsp ; +0x1f, 0x14022a11f mov [rsp+118h+var_78], rax ; +0x22, 0x14022a122 movaps xmm7, xmm3 ; +0x2a, 0x14022a12a movaps xmmword ptr [r11-48h], xmm6 ; +0x2d, 0x14022a12d mov r13, r8 ; +0x32, 0x14022a132 shufps xmm7, xmm7, 0 ; +0x35, 0x14022a135 mov r8b, 1 ; +0x39, 0x14022a139 mov rbx, rdx ; +0x3c, 0x14022a13c mov rdi, rcx ; +0x3f, 0x14022a13f call GJBaseGameLayer__resetAreaObjectValues ; +0x42, 0x14022a142 test al, al ; +0x47, 0x14022a147 jz short loc_14022A15A ; +0x49, 0x14022a149 mov rax, [rdi] ; +0x4b, 0x14022a14b mov rdx, rbx ; +0x4e, 0x14022a14e mov rcx, rdi ; +0x51, 0x14022a151 call qword ptr [rax+490h] ; +0x54, 0x14022a154 mov rax, [rbx] ; +0x5a, 0x14022a15a lea rdx, [rsp+118h+var_F0] ; +0x5d, 0x14022a15d mov rcx, rbx ; +0x62, 0x14022a162 call qword ptr [rax+4A8h] ; +0x65, 0x14022a165 mov rcx, [rdi+8C8h] ; +0x6b, 0x14022a16b lea rdx, [rsp+118h+var_F0] ; +0x72, 0x14022a172 mov rax, [rcx] ; +0x77, 0x14022a177 call qword ptr [rax+0B8h] ; +0x7a, 0x14022a17a mov rcx, [rdi+8C8h] ; +0x80, 0x14022a180 movss xmm6, cs:flt_140622C24 ; +0x87, 0x14022a187 movaps xmm1, xmm6 ; +0x8f, 0x14022a18f mov rax, [rcx] ; +0x92, 0x14022a192 call qword ptr [rax+78h] ; +0x95, 0x14022a195 mov rcx, [rdi+8C8h] ; +0x98, 0x14022a198 movaps xmm1, xmm6 ; +0x9f, 0x14022a19f mov rax, [rcx] ; +0xa2, 0x14022a1a2 call qword ptr [rax+88h] ; +0xa5, 0x14022a1a5 mov rcx, [rdi+8C8h] ; +0xab, 0x14022a1ab xorps xmm1, xmm1 ; +0xb2, 0x14022a1b2 xorps xmm8, xmm8 ; +0xb5, 0x14022a1b5 mov rax, [rcx] ; +0xb9, 0x14022a1b9 call qword ptr [rax+0F0h] ; +0xbc, 0x14022a1bc mov rcx, [rdi+8C8h] ; +0xc2, 0x14022a1c2 xorps xmm1, xmm1 ; +0xc9, 0x14022a1c9 mov rax, [rcx] ; +0xcc, 0x14022a1cc call qword ptr [rax+100h] ; +0xcf, 0x14022a1cf mov rcx, [rdi+8C8h] ; +0xd5, 0x14022a1d5 movaps xmm1, xmm7 ; +0xdc, 0x14022a1dc mov rax, [rcx] ; +0xdf, 0x14022a1df call qword ptr [rax+150h] ; +0xe2, 0x14022a1e2 mov rcx, [rdi+8E8h] ; +0xe8, 0x14022a1e8 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xef, 0x14022a1ef mov rcx, [rdi+8E8h] ; +0xf5, 0x14022a1f5 xor edx, edx ; +0xfc, 0x14022a1fc mov rax, [rcx] ; +0xfe, 0x14022a1fe call qword ptr [rax+1F8h] ; +0x101, 0x14022a201 mov rcx, [rdi+8C8h] ; +0x107, 0x14022a207 mov rdx, [rdi+8E8h] ; +0x10e, 0x14022a20e mov rax, [rcx] ; +0x115, 0x14022a215 call qword ptr [rax+1C0h] ; +0x118, 0x14022a218 mov rcx, [rdi+8E8h] ; +0x11e, 0x14022a21e call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x125, 0x14022a225 mov rcx, [rdi+8C8h] ; +0x12b, 0x14022a22b lea rdx, [rsp+118h+var_A8] ; +0x132, 0x14022a232 mov rax, [rcx] ; +0x137, 0x14022a237 call qword ptr [rax+320h] ; +0x13a, 0x14022a23a mov rcx, [rdi+8E8h] ; +0x140, 0x14022a240 movaps xmm1, xmm6 ; +0x147, 0x14022a247 movups xmm0, xmmword ptr [rax] ; +0x14a, 0x14022a24a movups [rsp+118h+var_C0], xmm0 ; +0x14d, 0x14022a24d movsd xmm2, qword ptr [rax+10h] ; +0x152, 0x14022a252 movsd [rsp+118h+var_B0], xmm2 ; +0x157, 0x14022a257 mov rax, [rcx] ; +0x15d, 0x14022a25d call qword ptr [rax+78h] ; +0x160, 0x14022a260 mov rcx, [rdi+8E8h] ; +0x163, 0x14022a263 movaps xmm1, xmm6 ; +0x16a, 0x14022a26a mov rax, [rcx] ; +0x16d, 0x14022a26d call qword ptr [rax+88h] ; +0x170, 0x14022a270 mov rcx, [rdi+8E8h] ; +0x176, 0x14022a276 xorps xmm1, xmm1 ; +0x17d, 0x14022a27d mov rax, [rcx] ; +0x180, 0x14022a280 call qword ptr [rax+0F0h] ; +0x183, 0x14022a283 mov rcx, [rdi+8E8h] ; +0x189, 0x14022a289 xorps xmm1, xmm1 ; +0x190, 0x14022a290 mov rax, [rcx] ; +0x193, 0x14022a293 call qword ptr [rax+100h] ; +0x196, 0x14022a296 mov rcx, [rdi+8E8h] ; +0x19c, 0x14022a29c xorps xmm1, xmm1 ; +0x1a3, 0x14022a2a3 mov rax, [rcx] ; +0x1a6, 0x14022a2a6 call qword ptr [rax+150h] ; +0x1a9, 0x14022a2a9 lea rcx, [rsp+118h+var_F8] ; +0x1af, 0x14022a2af call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1b4, 0x14022a2b4 movaps xmm6, [rsp+118h+var_48] ; +0x1ba, 0x14022a2ba test r13, r13 ; +0x1c2, 0x14022a2c2 jz loc_14022A493 ; +0x1c5, 0x14022a2c5 mov [rsp+118h+var_28], rsi ; +0x1cb, 0x14022a2cb mov rsi, [r13+38h] ; +0x1d3, 0x14022a2d3 mov eax, [rsi] ; +0x1d7, 0x14022a2d7 test eax, eax ; +0x1d9, 0x14022a2d9 jz loc_14022A48B ; +0x1db, 0x14022a2db mov rsi, [rsi+10h] ; +0x1e1, 0x14022a2e1 mov [rsp+118h+var_30], r14 ; +0x1e5, 0x14022a2e5 lea r14, [rax-1] ; +0x1ed, 0x14022a2ed lea r14, [rsi+r14*8] ; +0x1f1, 0x14022a2f1 cmp rsi, r14 ; +0x1f5, 0x14022a2f5 ja loc_14022A483 ; +0x1f8, 0x14022a2f8 mov [rsp+118h+var_38], r15 ; +0x1fe, 0x14022a2fe movzx r15d, [rsp+118h+arg_20] ; +0x206, 0x14022a306 mov [rsp+118h+var_20], rbp ; +0x20f, 0x14022a30f nop word ptr [rax+rax+00000000h] ; +0x217, 0x14022a317 mov rbx, [rsi] ; +0x220, 0x14022a320 test rbx, rbx ; +0x223, 0x14022a323 jz loc_14022A473 ; +0x226, 0x14022a326 cmp byte ptr [rbx+520h], 0 ; +0x22c, 0x14022a32c jnz loc_14022A466 ; +0x233, 0x14022a333 mov r8b, 1 ; +0x239, 0x14022a339 mov rdx, rbx ; +0x23c, 0x14022a33c mov rcx, rdi ; +0x23f, 0x14022a33f call GJBaseGameLayer__resetAreaObjectValues ; +0x242, 0x14022a342 mov r8, [rbx] ; +0x247, 0x14022a347 lea rdx, [rsp+118h+var_E0] ; +0x24a, 0x14022a34a mov rcx, rbx ; +0x24f, 0x14022a34f mov byte ptr [rbx+350h], 1 ; +0x252, 0x14022a352 movzx ebp, al ; +0x259, 0x14022a359 call qword ptr [r8+4A8h] ; +0x25c, 0x14022a35c mov rdx, rax ; +0x263, 0x14022a363 lea rcx, [rsp+118h+var_F8] ; +0x266, 0x14022a366 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x26b, 0x14022a36b lea r8, [rsp+118h+var_F0] ; +0x271, 0x14022a371 lea rdx, [rsp+118h+var_E8] ; +0x276, 0x14022a376 lea rcx, [rsp+118h+var_F8] ; +0x27b, 0x14022a37b call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x280, 0x14022a380 mov rcx, [rdi+8E8h] ; +0x286, 0x14022a386 lea rdx, [rsp+118h+var_E8] ; +0x28d, 0x14022a38d mov r8, [rcx] ; +0x292, 0x14022a392 call qword ptr [r8+0B8h] ; +0x295, 0x14022a395 mov rcx, [rdi+8E8h] ; +0x29c, 0x14022a39c lea rdx, [rsp+118h+var_90] ; +0x2a3, 0x14022a3a3 mov rax, [rcx] ; +0x2ab, 0x14022a3ab call qword ptr [rax+308h] ; +0x2ae, 0x14022a3ae mov rdx, rax ; +0x2b4, 0x14022a3b4 lea r8, [rsp+118h+var_C0] ; +0x2b7, 0x14022a3b7 lea rcx, [rsp+118h+var_D8] ; +0x2bc, 0x14022a3bc call cs:?CCAffineTransformConcat@cocos2d@@YA?AUCCAffineTransform@1@AEBU21@0@Z; cocos2d::CCAffineTransformConcat(cocos2d::CCAffineTransform const &,cocos2d::CCAffineTransform const &) ; +0x2c1, 0x14022a3c1 mov rdx, rbx ; +0x2c7, 0x14022a3c7 mov rcx, rdi ; +0x2ca, 0x14022a3ca movsd xmm2, qword ptr [rax+10h] ; +0x2cd, 0x14022a3cd movaps xmm3, xmm2 ; +0x2d2, 0x14022a3d2 subss xmm2, [rsp+118h+var_F8] ; +0x2d5, 0x14022a3d5 shufps xmm3, xmm3, 55h ; 'U' ; +0x2db, 0x14022a3db subss xmm3, [rsp+118h+var_F4] ; +0x2df, 0x14022a3df call GJBaseGameLayer__moveAreaObject ; +0x2e5, 0x14022a3e5 ucomiss xmm7, xmm8 ; +0x2ea, 0x14022a3ea jp short loc_14022A3F2 ; +0x2ee, 0x14022a3ee jz short loc_14022A452 ; +0x2f0, 0x14022a3f0 cmp byte ptr [rbx+36Ch], 0 ; +0x2f2, 0x14022a3f2 jz short loc_14022A452 ; +0x2f9, 0x14022a3f9 movups xmm0, xmmword ptr [rbx+2A8h] ; +0x2fb, 0x14022a3fb addps xmm0, xmm7 ; +0x302, 0x14022a402 movups xmmword ptr [rbx+2A8h], xmm0 ; +0x305, 0x14022a405 test r15b, r15b ; +0x30c, 0x14022a40c jz short loc_14022A421 ; +0x30f, 0x14022a40f mov rax, [rbx] ; +0x311, 0x14022a411 movaps xmm1, xmm8 ; +0x314, 0x14022a414 mov rcx, rbx ; +0x318, 0x14022a418 call qword ptr [rax+520h] ; +0x31b, 0x14022a41b cmp dword ptr [rbx+3A0h], 7 ; +0x321, 0x14022a421 jz short loc_14022A452 ; +0x328, 0x14022a428 cmp byte ptr [rbx+2E8h], 0 ; +0x32a, 0x14022a42a jnz short loc_14022A452 ; +0x331, 0x14022a431 mov rax, [rbx] ; +0x333, 0x14022a433 mov rcx, rbx ; +0x336, 0x14022a436 mov byte ptr [rbx+2E8h], 1 ; +0x339, 0x14022a439 call qword ptr [rax+578h] ; +0x340, 0x14022a440 mov rax, [rbx] ; +0x346, 0x14022a446 mov rcx, rbx ; +0x349, 0x14022a449 call qword ptr [rax+490h] ; +0x34c, 0x14022a44c test bpl, bpl ; +0x352, 0x14022a452 jz short loc_14022A466 ; +0x355, 0x14022a455 mov rax, [rdi] ; +0x357, 0x14022a457 mov rdx, rbx ; +0x35a, 0x14022a45a mov rcx, rdi ; +0x35d, 0x14022a45d call qword ptr [rax+490h] ; +0x360, 0x14022a460 add rsi, 8 ; +0x366, 0x14022a466 cmp rsi, r14 ; +0x36a, 0x14022a46a jbe loc_14022A320 ; +0x36d, 0x14022a46d mov rbp, [rsp+118h+var_20] ; +0x373, 0x14022a473 mov r15, [rsp+118h+var_38] ; +0x37b, 0x14022a47b mov r14, [rsp+118h+var_30] ; +0x383, 0x14022a483 mov rsi, [rsp+118h+var_28] ; +0x38b, 0x14022a48b mov rax, [rdi] ; +0x393, 0x14022a493 mov rdx, r13 ; +0x396, 0x14022a496 mov rcx, rdi ; +0x399, 0x14022a499 call qword ptr [rax+498h] ; +0x39c, 0x14022a49c mov rcx, [rsp+118h+var_78] ; +0x3a2, 0x14022a4a2 xor rcx, rsp; StackCookie ; +0x3aa, 0x14022a4aa call __security_check_cookie ; +0x3ad, 0x14022a4ad movaps xmm7, [rsp+118h+var_58] ; +0x3b2, 0x14022a4b2 movaps xmm8, [rsp+118h+var_68] ; +0x3ba, 0x14022a4ba add rsp, 100h ; +0x3c3, 0x14022a4c3 pop r13 ; +0x3ca, 0x14022a4ca pop rdi ; +0x3cc, 0x14022a4cc pop rbx ; +0x3cd, 0x14022a4cd retn ; +0x3ce, 0x14022a4ce