; ; cocos2d::CCPoint::normalize from 0x18000ccb0 to 0x18000cd3f (143 bytes) ; ; 3 xrefs: ; > cocos2d::ccpNormalize @ 0x180094152 ; > @ 0x1801438a8 ; > @ 0x1801ade64 ; ; 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 ; push rbx ; +0x0, 0x18000ccb0 sub rsp, 40h ; +0x2, 0x18000ccb2 movaps [rsp+48h+var_18], xmm6 ; +0x6, 0x18000ccb6 mov rbx, rdx ; +0xb, 0x18000ccbb movss xmm6, dword ptr [rcx] ; +0xe, 0x18000ccbe movaps [rsp+48h+var_28], xmm7 ; +0x12, 0x18000ccc2 movaps xmm1, xmm6 ; +0x17, 0x18000ccc7 movss xmm7, dword ptr [rcx+4] ; +0x1a, 0x18000ccca movaps xmm0, xmm7 ; +0x1f, 0x18000cccf mulss xmm1, xmm6 ; +0x22, 0x18000ccd2 mulss xmm0, xmm7 ; +0x26, 0x18000ccd6 addss xmm1, xmm0 ; +0x2a, 0x18000ccda xorps xmm0, xmm0 ; +0x2e, 0x18000ccde ucomiss xmm0, xmm1 ; +0x31, 0x18000cce1 ja short loc_18000CCEF ; +0x34, 0x18000cce4 xorps xmm0, xmm0 ; +0x36, 0x18000cce6 sqrtss xmm0, xmm1 ; +0x39, 0x18000cce9 jmp short loc_18000CCF7 ; +0x3d, 0x18000cced movaps xmm0, xmm1; X ; +0x3f, 0x18000ccef call sqrtf ; +0x42, 0x18000ccf2 xorps xmm1, xmm1 ; +0x47, 0x18000ccf7 ucomiss xmm0, xmm1 ; +0x4a, 0x18000ccfa jp short loc_18000CD1B ; +0x4d, 0x18000ccfd jnz short loc_18000CD1B ; +0x4f, 0x18000ccff mov qword ptr [rbx], 3F800000h ; +0x51, 0x18000cd01 mov rax, rbx ; +0x58, 0x18000cd08 movaps xmm6, [rsp+48h+var_18] ; +0x5b, 0x18000cd0b movaps xmm7, [rsp+48h+var_28] ; +0x60, 0x18000cd10 add rsp, 40h ; +0x65, 0x18000cd15 pop rbx ; +0x69, 0x18000cd19 retn ; +0x6a, 0x18000cd1a divss xmm6, xmm0 ; +0x6b, 0x18000cd1b mov rax, rbx ; +0x6f, 0x18000cd1f divss xmm7, xmm0 ; +0x72, 0x18000cd22 movss dword ptr [rbx], xmm6 ; +0x76, 0x18000cd26 movaps xmm6, [rsp+48h+var_18] ; +0x7a, 0x18000cd2a movss dword ptr [rbx+4], xmm7 ; +0x7f, 0x18000cd2f movaps xmm7, [rsp+48h+var_28] ; +0x84, 0x18000cd34 add rsp, 40h ; +0x89, 0x18000cd39 pop rbx ; +0x8d, 0x18000cd3d retn ; +0x8e, 0x18000cd3e