{"type": "func", "start": 6442487744, "end": 6442487856, "name": "cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint from 0x180008fc0 to 0x180009030 (112 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b90c\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\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 0x180008fc0 to 0x180009030 (112 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b90c\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; \npush    rbx                                                            ; +0x0, 0x180008fc0\nsub     rsp, 30h                                                       ; +0x2, 0x180008fc2\nmovss   xmm0, dword ptr [r8]                                           ; +0x6, 0x180008fc6\nmov     rbx, r9                                                        ; +0xb, 0x180008fcb\nmovss   xmm1, dword ptr [r8+4]                                         ; +0xe, 0x180008fce\nsubss   xmm0, dword ptr [rdx]; Y                                       ; +0x14, 0x180008fd4\nsubss   xmm1, dword ptr [rdx+4]; X                                     ; +0x18, 0x180008fd8\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1d, 0x180008fdd\ncall    atan2f                                                         ; +0x22, 0x180008fe2\nmov     rax, [rsp+38h+arg_20]                                          ; +0x27, 0x180008fe7\nmovaps  xmm6, xmm0                                                     ; +0x2c, 0x180008fec\nmovss   xmm0, dword ptr [rax]                                          ; +0x2f, 0x180008fef\nmovss   xmm1, dword ptr [rax+4]                                        ; +0x33, 0x180008ff3\nsubss   xmm0, dword ptr [rbx]; Y                                       ; +0x38, 0x180008ff8\nsubss   xmm1, dword ptr [rbx+4]; X                                     ; +0x3c, 0x180008ffc\ncall    atan2f                                                         ; +0x41, 0x180009001\nsubss   xmm6, xmm0                                                     ; +0x46, 0x180009006\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x18000900a\nmulss   xmm6, cs:dword_18002BC84                                       ; +0x4d, 0x18000900d\ncvtss2sd xmm0, xmm6                                                    ; +0x55, 0x180009015\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x59, 0x180009019\ndivsd   xmm0, cs:qword_18002BC10                                       ; +0x5e, 0x18000901e\ncvtpd2ps xmm0, xmm0                                                    ; +0x66, 0x180009026\nadd     rsp, 30h                                                       ; +0x6a, 0x18000902a\npop     rbx                                                            ; +0x6e, 0x18000902e\nretn                                                                   ; +0x6f, 0x18000902f", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b90c"], "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"}