{"type": "func", "start": 6443070880, "end": 6443070950, "name": "cocos2d::CCPoint::getDistance", "pseudocode": "// \n// cocos2d::CCPoint::getDistance from 0x1800975a0 to 0x1800975e6 (70 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001404f\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001405d\n// > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180014079\n// > cocos2d::CCMotionStreak::update @ 0x18005f723\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c08e8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:10 +0000\n// \n\n// Alternative name is '?ccpDistance@cocos2d@@YAMAEBVCCPoint@1@0@Z'\nfloat __fastcall cocos2d::CCPoint::getDistance(cocos2d::CCPoint *this, const 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[1] * v2[1]) + (float)(*v2 * *v2);\n  if ( v3 < 0.0 )\n    return sqrtf(v3);\n  else\n    return fsqrt(v3);\n}", "assembly": "; \n; cocos2d::CCPoint::getDistance from 0x1800975a0 to 0x1800975e6 (70 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001404f\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001405d\n; > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180014079\n; > cocos2d::CCMotionStreak::update @ 0x18005f723\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c08e8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:10 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800975a0\nmov     r8, rdx                                                        ; +0x4, 0x1800975a4\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x7, 0x1800975a7\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0xc, 0x1800975ac\nmovss   xmm0, dword ptr [rax]                                          ; +0x11, 0x1800975b1\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x15, 0x1800975b5\nmulss   xmm0, xmm0                                                     ; +0x1a, 0x1800975ba\nmulss   xmm1, xmm1                                                     ; +0x1e, 0x1800975be\naddss   xmm1, xmm0                                                     ; +0x22, 0x1800975c2\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1800975c6\nucomiss xmm0, xmm1                                                     ; +0x29, 0x1800975c9\nja      short loc_1800975DA                                            ; +0x2c, 0x1800975cc\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x1800975ce\nsqrtss  xmm0, xmm1                                                     ; +0x31, 0x1800975d1\nadd     rsp, 28h                                                       ; +0x35, 0x1800975d5\nretn                                                                   ; +0x39, 0x1800975d9\nmovaps  xmm0, xmm1; X                                                  ; +0x3a, 0x1800975da\nadd     rsp, 28h                                                       ; +0x3d, 0x1800975dd\njmp     sqrtf                                                          ; +0x41, 0x1800975e1", "xrefs": ["cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001404f", "cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x18001405d", "cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x180014079", "cocos2d::CCMotionStreak::update @ 0x18005f723", "<???> @ 0x18014cf68", "<???> @ 0x1801c08e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}