{"type": "func", "start": 6443309120, "end": 6443309163, "name": "cocos2d::CCPoint::getDistanceSq", "pseudocode": "// \n// cocos2d::CCPoint::getDistanceSq from 0x1800d1840 to 0x1800d186b (43 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ba410\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\nfloat __fastcall cocos2d::CCPoint::getDistanceSq(cocos2d::CCPoint *this, struct cocos2d::CCPoint *a2)\n{\n  float *v2; // rax\n  float v4; // [rsp+40h] [rbp+18h] BYREF\n\n  v2 = cocos2d::CCSize::operator-((float *)this, &v4, (float *)a2);\n  return (float)(*v2 * *v2) + (float)(v2[1] * v2[1]);\n}", "assembly": "; \n; cocos2d::CCPoint::getDistanceSq from 0x1800d1840 to 0x1800d186b (43 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ba410\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, 0x1800d1840\nmov     r8, rdx                                                        ; +0x4, 0x1800d1844\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x7, 0x1800d1847\ncall    ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0xc, 0x1800d184c\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x11, 0x1800d1851\nmovss   xmm0, dword ptr [rax]                                          ; +0x16, 0x1800d1856\nmulss   xmm0, xmm0                                                     ; +0x1a, 0x1800d185a\nmulss   xmm1, xmm1                                                     ; +0x1e, 0x1800d185e\naddss   xmm0, xmm1                                                     ; +0x22, 0x1800d1862\nadd     rsp, 28h                                                       ; +0x26, 0x1800d1866\nretn                                                                   ; +0x2a, 0x1800d186a", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ba410"], "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"}