{"type": "func", "start": 6443056672, "end": 6443056742, "name": "cocos2d::CCPoint::getDistance", "pseudocode": "// \n// cocos2d::CCPoint::getDistance from 0x180093e20 to 0x180093e66 (70 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013fe3\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013ff2\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001400d\n// > cocos2d::CCMotionStreak::update @ 0x18005d56b\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6648\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Alternative name is '?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z'\nfloat __fastcall cocos2d::CCPoint::getDistance(cocos2d::CCPoint *this, struct cocos2d::CCPoint *a2)\n{\n  float *v2; // rax\n  float v3; // xmm1_4\n  float v5; // [rsp+40h] [rbp+18h] BYREF\n\n  v2 = cocos2d::CCSize::operator-((float *)this, &v5, (float *)a2);\n  v3 = (float)(*v2 * *v2) + (float)(v2[1] * v2[1]);\n  if ( v3 < 0.0 )\n    return sqrtf(v3);\n  else\n    return fsqrt(v3);\n}", "assembly": "; \n; cocos2d::CCPoint::getDistance from 0x180093e20 to 0x180093e66 (70 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013fe3\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013ff2\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001400d\n; > cocos2d::CCMotionStreak::update @ 0x18005d56b\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6648\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 28h                                                       ; +0x0, 0x180093e20\nmov     r8, rdx                                                        ; +0x4, 0x180093e24\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x7, 0x180093e27\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0xc, 0x180093e2c\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x11, 0x180093e31\nmovss   xmm1, dword ptr [rax]                                          ; +0x16, 0x180093e36\nmulss   xmm0, xmm0                                                     ; +0x1a, 0x180093e3a\nmulss   xmm1, xmm1                                                     ; +0x1e, 0x180093e3e\naddss   xmm1, xmm0                                                     ; +0x22, 0x180093e42\nxorps   xmm0, xmm0                                                     ; +0x26, 0x180093e46\nucomiss xmm0, xmm1                                                     ; +0x29, 0x180093e49\nja      short loc_180093E5A                                            ; +0x2c, 0x180093e4c\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x180093e4e\nsqrtss  xmm0, xmm1                                                     ; +0x31, 0x180093e51\nadd     rsp, 28h                                                       ; +0x35, 0x180093e55\nretn                                                                   ; +0x39, 0x180093e59\nmovaps  xmm0, xmm1; X                                                  ; +0x3a, 0x180093e5a\nadd     rsp, 28h                                                       ; +0x3d, 0x180093e5d\njmp     sqrtf                                                          ; +0x41, 0x180093e61", "xrefs": ["cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013fe3", "cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180013ff2", "cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001400d", "cocos2d::CCMotionStreak::update @ 0x18005d56b", "<???> @ 0x1801438a8", "<???> @ 0x1801b6648"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}