{"type": "func", "start": 6442489040, "end": 6442489096, "name": "cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint from 0x1800094d0 to 0x180009508 (56 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18002fdf8\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::extension::CCControlPotentiometer::distanceBetweenPointAndPoint(\n        __int64 a1,\n        float *a2,\n        float *a3)\n{\n  float v3; // xmm1_4\n\n  v3 = (float)((float)(a2[1] - a3[1]) * (float)(a2[1] - a3[1])) + (float)((float)(*a2 - *a3) * (float)(*a2 - *a3));\n  if ( v3 < 0.0 )\n    return sqrtf(v3);\n  else\n    return fsqrt(v3);\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint from 0x1800094d0 to 0x180009508 (56 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18002fdf8\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\nmovss   xmm0, dword ptr [rdx]                                          ; +0x0, 0x1800094d0\nsubss   xmm0, dword ptr [r8]                                           ; +0x4, 0x1800094d4\nmovss   xmm1, dword ptr [rdx+4]                                        ; +0x9, 0x1800094d9\nsubss   xmm1, dword ptr [r8+4]                                         ; +0xe, 0x1800094de\nmulss   xmm0, xmm0                                                     ; +0x14, 0x1800094e4\nmulss   xmm1, xmm1                                                     ; +0x18, 0x1800094e8\naddss   xmm1, xmm0                                                     ; +0x1c, 0x1800094ec\nxorps   xmm0, xmm0                                                     ; +0x20, 0x1800094f0\nucomiss xmm0, xmm1                                                     ; +0x23, 0x1800094f3\nja      short loc_180009500                                            ; +0x26, 0x1800094f6\nxorps   xmm0, xmm0                                                     ; +0x28, 0x1800094f8\nsqrtss  xmm0, xmm1                                                     ; +0x2b, 0x1800094fb\nretn                                                                   ; +0x2f, 0x1800094ff\nmovaps  xmm0, xmm1; X                                                  ; +0x30, 0x180009500\njmp     sqrtf                                                          ; +0x33, 0x180009503", "xrefs": ["<???> @ 0x18002fdf8"], "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"}