{"type": "func", "start": 6442487680, "end": 6442487736, "name": "cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::distanceBetweenPointAndPoint from 0x180008f80 to 0x180008fb8 (56 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x180032408\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 12:15:37 +0000\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 0x180008f80 to 0x180008fb8 (56 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x180032408\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 12:15:37 +0000\n; \nmovss   xmm0, dword ptr [rdx]                                          ; +0x0, 0x180008f80\nsubss   xmm0, dword ptr [r8]                                           ; +0x4, 0x180008f84\nmovss   xmm1, dword ptr [rdx+4]                                        ; +0x9, 0x180008f89\nsubss   xmm1, dword ptr [r8+4]                                         ; +0xe, 0x180008f8e\nmulss   xmm0, xmm0                                                     ; +0x14, 0x180008f94\nmulss   xmm1, xmm1                                                     ; +0x18, 0x180008f98\naddss   xmm1, xmm0                                                     ; +0x1c, 0x180008f9c\nxorps   xmm0, xmm0                                                     ; +0x20, 0x180008fa0\nucomiss xmm0, xmm1                                                     ; +0x23, 0x180008fa3\nja      short loc_180008FB0                                            ; +0x26, 0x180008fa6\nxorps   xmm0, xmm0                                                     ; +0x28, 0x180008fa8\nsqrtss  xmm0, xmm1                                                     ; +0x2b, 0x180008fab\nretn                                                                   ; +0x2f, 0x180008faf\nmovaps  xmm0, xmm1; X                                                  ; +0x30, 0x180008fb0\njmp     sqrtf                                                          ; +0x33, 0x180008fb3", "xrefs": ["<???> @ 0x180032408"], "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"}