{"type": "func", "start": 6442489104, "end": 6442489216, "name": "cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint from 0x180009510 to 0x180009580 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800499d8\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__m128 __fastcall cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(\n        __int64 a1,\n        float *a2,\n        float *a3,\n        float *a4,\n        float *a5)\n{\n  float v6; // xmm6_4\n  float v7; // xmm6_4\n  __m128d v8; // xmm0\n\n  v6 = atan2f(*a3 - *a2, a3[1] - a2[1]);\n  v7 = v6 - atan2f(*a5 - *a4, a5[1] - a4[1]);\n  v8 = 0;\n  v8.m128d_f64[0] = (float)(v7 * 180.0) / 3.141592653589793;\n  return _mm_cvtpd_ps(v8);\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint from 0x180009510 to 0x180009580 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800499d8\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\npush    rbx                                                            ; +0x0, 0x180009510\nsub     rsp, 30h                                                       ; +0x2, 0x180009512\nmovss   xmm0, dword ptr [r8]                                           ; +0x6, 0x180009516\nmov     rbx, r9                                                        ; +0xb, 0x18000951b\nmovss   xmm1, dword ptr [r8+4]                                         ; +0xe, 0x18000951e\nsubss   xmm0, dword ptr [rdx]; Y                                       ; +0x14, 0x180009524\nsubss   xmm1, dword ptr [rdx+4]; X                                     ; +0x18, 0x180009528\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1d, 0x18000952d\ncall    atan2f                                                         ; +0x22, 0x180009532\nmov     rax, [rsp+38h+arg_20]                                          ; +0x27, 0x180009537\nmovaps  xmm6, xmm0                                                     ; +0x2c, 0x18000953c\nmovss   xmm0, dword ptr [rax]                                          ; +0x2f, 0x18000953f\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x33, 0x180009543\nsubss   xmm0, dword ptr [rbx]; Y                                       ; +0x38, 0x180009548\nsubss   xmm1, dword ptr [rbx+4]; X                                     ; +0x3c, 0x18000954c\ncall    atan2f                                                         ; +0x41, 0x180009551\nsubss   xmm6, xmm0                                                     ; +0x46, 0x180009556\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x18000955a\nmulss   xmm6, cs:dword_1800295BC                                       ; +0x4d, 0x18000955d\ncvtss2sd xmm0, xmm6                                                    ; +0x55, 0x180009565\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x59, 0x180009569\ndivsd   xmm0, cs:qword_180029548                                       ; +0x5e, 0x18000956e\ncvtpd2ps xmm0, xmm0                                                    ; +0x66, 0x180009576\nadd     rsp, 30h                                                       ; +0x6a, 0x18000957a\npop     rbx                                                            ; +0x6e, 0x18000957e\nretn                                                                   ; +0x6f, 0x18000957f", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x1800499d8"], "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"}