; ; cocos2d::CCPoint::normalize from 0x18000ccd0 to 0x18000cd5f (143 bytes) ; ; 3 xrefs: ; > cocos2d::ccpNormalize @ 0x1800978b2 ; > @ 0x18014cf68 ; > @ 0x1801b7eb8 ; ; 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:21:20 +0000 ; push rbx ; +0x0, 0x18000ccd0 sub rsp, 40h ; +0x2, 0x18000ccd2 movaps [rsp+48h+var_18], xmm6 ; +0x6, 0x18000ccd6 mov rbx, rdx ; +0xb, 0x18000ccdb movss xmm6, dword ptr [rcx] ; +0xe, 0x18000ccde movaps xmm0, xmm6 ; +0x12, 0x18000cce2 movaps [rsp+48h+var_28], xmm7 ; +0x15, 0x18000cce5 movss xmm7, dword ptr [rcx+4] ; +0x1a, 0x18000ccea mulss xmm0, xmm6 ; +0x1f, 0x18000ccef movaps xmm1, xmm7 ; +0x23, 0x18000ccf3 mulss xmm1, xmm7 ; +0x26, 0x18000ccf6 addss xmm1, xmm0 ; +0x2a, 0x18000ccfa xorps xmm0, xmm0 ; +0x2e, 0x18000ccfe ucomiss xmm0, xmm1 ; +0x31, 0x18000cd01 ja short loc_18000CD0F ; +0x34, 0x18000cd04 xorps xmm0, xmm0 ; +0x36, 0x18000cd06 sqrtss xmm0, xmm1 ; +0x39, 0x18000cd09 jmp short loc_18000CD17 ; +0x3d, 0x18000cd0d movaps xmm0, xmm1; X ; +0x3f, 0x18000cd0f call sqrtf ; +0x42, 0x18000cd12 xorps xmm1, xmm1 ; +0x47, 0x18000cd17 ucomiss xmm0, xmm1 ; +0x4a, 0x18000cd1a jp short loc_18000CD3B ; +0x4d, 0x18000cd1d jnz short loc_18000CD3B ; +0x4f, 0x18000cd1f mov qword ptr [rbx], 3F800000h ; +0x51, 0x18000cd21 mov rax, rbx ; +0x58, 0x18000cd28 movaps xmm6, [rsp+48h+var_18] ; +0x5b, 0x18000cd2b movaps xmm7, [rsp+48h+var_28] ; +0x60, 0x18000cd30 add rsp, 40h ; +0x65, 0x18000cd35 pop rbx ; +0x69, 0x18000cd39 retn ; +0x6a, 0x18000cd3a divss xmm6, xmm0 ; +0x6b, 0x18000cd3b mov rax, rbx ; +0x6f, 0x18000cd3f divss xmm7, xmm0 ; +0x72, 0x18000cd42 movss dword ptr [rbx], xmm6 ; +0x76, 0x18000cd46 movaps xmm6, [rsp+48h+var_18] ; +0x7a, 0x18000cd4a movss dword ptr [rbx+4], xmm7 ; +0x7f, 0x18000cd4f movaps xmm7, [rsp+48h+var_28] ; +0x84, 0x18000cd54 add rsp, 40h ; +0x89, 0x18000cd59 pop rbx ; +0x8d, 0x18000cd5d retn ; +0x8e, 0x18000cd5e