; ; GJBaseGameLayer::recordHitboxTrailState from 0x140317690 to 0x140317895 (517 bytes) ; ; 3 xrefs: ; > GJBaseGameLayer::update @ 0x140341443 ; > GJBaseGameLayer::update @ 0x140341469 ; > @ 0x14091e9b0 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:30:18 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x140317690 mov [rsp+arg_10], rbp ; +0x5, 0x140317695 mov [rsp+arg_18], rsi ; +0xa, 0x14031769a push rdi ; +0xf, 0x14031769f push r14 ; +0x10, 0x1403176a0 push r15 ; +0x12, 0x1403176a2 sub rsp, 60h ; +0x14, 0x1403176a4 mov rax, [rdx] ; +0x18, 0x1403176a8 mov r15, rcx ; +0x1b, 0x1403176ab mov rcx, rdx ; +0x1e, 0x1403176ae movaps [rsp+78h+var_28], xmm6 ; +0x21, 0x1403176b1 mov r14, r9 ; +0x26, 0x1403176b6 mov rdi, r8 ; +0x29, 0x1403176b9 mov rbx, rdx ; +0x2c, 0x1403176bc call qword ptr [rax+4A0h] ; +0x2f, 0x1403176bf mov rdx, rax ; +0x35, 0x1403176c5 lea rcx, [rsp+78h+var_58] ; +0x38, 0x1403176c8 call cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x3d, 0x1403176cd lea rcx, [rsp+78h+var_48] ; +0x43, 0x1403176d3 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x48, 0x1403176d8 lea rcx, [rsp+78h+var_58] ; +0x4e, 0x1403176de call cs:?getMidY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMidY(void) ; +0x53, 0x1403176e3 lea rcx, [rsp+78h+var_58] ; +0x59, 0x1403176e9 movaps xmm6, xmm0 ; +0x5e, 0x1403176ee call cs:?getMidX@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMidX(void) ; +0x61, 0x1403176f1 movaps xmm2, xmm6 ; +0x67, 0x1403176f7 lea rcx, [rsp+78h+arg_0] ; +0x6a, 0x1403176fa movaps xmm1, xmm0 ; +0x72, 0x140317702 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x75, 0x140317705 mov rdx, rax ; +0x7b, 0x14031770b lea rcx, [rsp+78h+var_48] ; +0x7e, 0x14031770e call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x83, 0x140317713 movss xmm0, [rsp+78h+var_50] ; +0x89, 0x140317719 mov rcx, rbx ; +0x8f, 0x14031771f mov rax, [rbx] ; +0x92, 0x140317722 movss [rsp+78h+var_40], xmm0 ; +0x95, 0x140317725 call qword ptr [rax+590h] ; +0x9b, 0x14031772b movzx eax, byte ptr [rbx+98Dh] ; +0xa1, 0x140317731 mov rcx, r15 ; +0xa8, 0x140317738 mov [rsp+78h+var_38], al ; +0xab, 0x14031773b mov rax, [r15] ; +0xaf, 0x14031773f movss [rsp+78h+var_3C], xmm0 ; +0xb2, 0x140317742 call qword ptr [rax+4A0h] ; +0xb8, 0x140317748 mov r8, [rdi] ; +0xbe, 0x14031774e mov esi, eax ; +0xc1, 0x140317751 mov rcx, [rdi+8] ; +0xc3, 0x140317753 mov rax, 6666666666666667h ; +0xc7, 0x140317757 sub rcx, r8 ; +0xd1, 0x140317761 imul rcx ; +0xd4, 0x140317764 mov rbp, rdx ; +0xd7, 0x140317767 sar rbp, 3 ; +0xda, 0x14031776a mov rcx, rbp ; +0xde, 0x14031776e shr rcx, 3Fh ; +0xe1, 0x140317771 add rbp, rcx ; +0xe5, 0x140317775 test ebp, ebp ; +0xe8, 0x140317778 jle short loc_1403177D6 ; +0xea, 0x14031777a cmp ebp, esi ; +0xec, 0x14031777c jl short loc_14031778C ; +0xee, 0x14031777e mov eax, [r14] ; +0xf0, 0x140317780 dec eax ; +0xf3, 0x140317783 add eax, esi ; +0xf5, 0x140317785 cdq ; +0xf7, 0x140317787 idiv esi ; +0xf8, 0x140317788 jmp short loc_14031778F ; +0xfa, 0x14031778a lea edx, [rbp-1] ; +0xfc, 0x14031778c movsxd rax, edx ; +0xff, 0x14031778f lea rdx, [rsp+78h+var_48] ; +0x102, 0x140317792 lea rcx, [rax+rax*4] ; +0x107, 0x140317797 lea rbx, [r8+rcx*4] ; +0x10b, 0x14031779b mov rcx, rbx ; +0x10f, 0x14031779f call cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0x112, 0x1403177a2 test al, al ; +0x118, 0x1403177a8 jz short loc_1403177D6 ; +0x11a, 0x1403177aa movss xmm0, dword ptr [rbx+0Ch] ; +0x11c, 0x1403177ac ucomiss xmm0, [rsp+78h+var_3C] ; +0x121, 0x1403177b1 jp short loc_1403177D6 ; +0x126, 0x1403177b6 jnz short loc_1403177D6 ; +0x128, 0x1403177b8 movss xmm0, dword ptr [rbx+8] ; +0x12a, 0x1403177ba ucomiss xmm0, [rsp+78h+var_40] ; +0x12f, 0x1403177bf jp short loc_1403177D6 ; +0x134, 0x1403177c4 jnz short loc_1403177D6 ; +0x136, 0x1403177c6 movzx eax, [rsp+78h+var_38] ; +0x138, 0x1403177c8 cmp [rbx+10h], al ; +0x13d, 0x1403177cd jz loc_140317876 ; +0x140, 0x1403177d0 cmp ebp, esi ; +0x146, 0x1403177d6 jge short loc_140317829 ; +0x148, 0x1403177d8 mov rbx, [rdi+8] ; +0x14a, 0x1403177da cmp rbx, [rdi+10h] ; +0x14e, 0x1403177de jz short loc_140317817 ; +0x152, 0x1403177e2 lea rdx, [rsp+78h+var_48] ; +0x154, 0x1403177e4 mov rcx, rbx ; +0x159, 0x1403177e9 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x15c, 0x1403177ec movss xmm0, [rsp+78h+var_40] ; +0x162, 0x1403177f2 movss dword ptr [rbx+8], xmm0 ; +0x168, 0x1403177f8 movss xmm1, [rsp+78h+var_3C] ; +0x16d, 0x1403177fd movss dword ptr [rbx+0Ch], xmm1 ; +0x173, 0x140317803 movzx eax, [rsp+78h+var_38] ; +0x178, 0x140317808 mov [rbx+10h], al ; +0x17d, 0x14031780d add qword ptr [rdi+8], 14h ; +0x180, 0x140317810 jmp short loc_14031786E ; +0x185, 0x140317815 lea r8, [rsp+78h+var_48] ; +0x187, 0x140317817 mov rdx, rbx ; +0x18c, 0x14031781c mov rcx, rdi ; +0x18f, 0x14031781f call sub_14035BC80 ; +0x192, 0x140317822 jmp short loc_14031786E ; +0x197, 0x140317827 movsxd rax, dword ptr [r14] ; +0x199, 0x140317829 lea rdx, [rsp+78h+var_48] ; +0x19c, 0x14031782c lea rcx, [rax+rax*4] ; +0x1a1, 0x140317831 mov rax, [rdi] ; +0x1a5, 0x140317835 lea rbx, [rax+rcx*4] ; +0x1a8, 0x140317838 mov rcx, rbx ; +0x1ac, 0x14031783c call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1af, 0x14031783f movss xmm0, [rsp+78h+var_40] ; +0x1b5, 0x140317845 movss dword ptr [rbx+8], xmm0 ; +0x1bb, 0x14031784b movss xmm1, [rsp+78h+var_3C] ; +0x1c0, 0x140317850 movss dword ptr [rbx+0Ch], xmm1 ; +0x1c6, 0x140317856 movzx eax, [rsp+78h+var_38] ; +0x1cb, 0x14031785b mov [rbx+10h], al ; +0x1d0, 0x140317860 mov eax, [r14] ; +0x1d3, 0x140317863 inc eax ; +0x1d6, 0x140317866 cdq ; +0x1d8, 0x140317868 idiv esi ; +0x1d9, 0x140317869 mov [r14], edx ; +0x1db, 0x14031786b mov byte ptr [r15+38C8h], 1 ; +0x1de, 0x14031786e movaps xmm6, [rsp+78h+var_28] ; +0x1e6, 0x140317876 lea r11, [rsp+78h+var_18] ; +0x1eb, 0x14031787b mov rbx, [r11+28h] ; +0x1f0, 0x140317880 mov rbp, [r11+30h] ; +0x1f4, 0x140317884 mov rsi, [r11+38h] ; +0x1f8, 0x140317888 mov rsp, r11 ; +0x1fc, 0x14031788c pop r15 ; +0x1ff, 0x14031788f pop r14 ; +0x201, 0x140317891 pop rdi ; +0x203, 0x140317893 retn ; +0x204, 0x140317894