{"type": "func", "start": 6442488384, "end": 6442488627, "name": "cocos2d::extension::CCControlPotentiometer::isTouchInside", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x180009240 to 0x180009333 (243 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180025368\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800499a8\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\nbool __fastcall cocos2d::extension::CCControlPotentiometer::isTouchInside(\n        cocos2d::extension::CCControlPotentiometer *this,\n        struct cocos2d::CCTouch *a2)\n{\n  float *v3; // rbx\n  const struct cocos2d::CCPoint *v4; // rax\n  float *v5; // rax\n  float v6; // xmm6_4\n  float v7; // xmm7_4\n  float v8; // xmm8_4\n  float v9; // xmm7_4\n  float v10; // xmm6_4\n  char v12; // [rsp+60h] [rbp+8h] BYREF\n  char v13; // [rsp+70h] [rbp+18h] BYREF\n  char v14; // [rsp+78h] [rbp+20h] BYREF\n\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, char *, struct cocos2d::CCTouch *))(*(_QWORD *)this + 1096LL))(\n    this,\n    &v12,\n    a2);\n  v3 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (const struct cocos2d::CCPoint *)&v12);\n  v4 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 60) + 200LL))(*((_QWORD *)this + 60));\n  v5 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v4);\n  v6 = *v5 - *v3;\n  v7 = v5[1] - v3[1];\n  v8 = *(float *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_QWORD *)this + 304LL))(this)\n     * 0.5;\n  v9 = (float)(v7 * v7) + (float)(v6 * v6);\n  if ( v9 < 0.0 )\n    v10 = sqrtf(v9);\n  else\n    v10 = fsqrt(v9);\n  return fminf(\n           v8,\n           *(float *)((*(__int64 (__fastcall **)(cocos2d::extension::CCControlPotentiometer *))(*(_QWORD *)this + 304LL))(this)\n                    + 4)\n         * 0.5) > v10;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x180009240 to 0x180009333 (243 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180025368\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800499a8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180009240\npush    rdi                                                            ; +0x5, 0x180009245\nsub     rsp, 50h                                                       ; +0x6, 0x180009246\nmov     rax, [rcx]                                                     ; +0xa, 0x18000924a\nmov     r8, rdx                                                        ; +0xd, 0x18000924d\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x10, 0x180009250\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x15, 0x180009255\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1a, 0x18000925a\nmov     rdi, rcx                                                       ; +0x1f, 0x18000925f\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x22, 0x180009262\ncall    qword ptr [rax+448h]                                           ; +0x28, 0x180009268\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x2e, 0x18000926e\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x33, 0x180009273\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x38, 0x180009278\nmov     rcx, [rdi+1E0h]                                                ; +0x3e, 0x18000927e\nmov     rbx, rax                                                       ; +0x45, 0x180009285\nmov     rdx, [rcx]                                                     ; +0x48, 0x180009288\ncall    qword ptr [rdx+0C8h]                                           ; +0x4b, 0x18000928b\nmov     rdx, rax                                                       ; +0x51, 0x180009291\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x54, 0x180009294\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x59, 0x180009299\nmov     rcx, rdi                                                       ; +0x5f, 0x18000929f\nmovss   xmm6, dword ptr [rax]                                          ; +0x62, 0x1800092a2\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x66, 0x1800092a6\nmov     rax, [rdi]                                                     ; +0x6b, 0x1800092ab\nsubss   xmm6, dword ptr [rbx]                                          ; +0x6e, 0x1800092ae\nsubss   xmm7, dword ptr [rbx+4]                                        ; +0x72, 0x1800092b2\ncall    qword ptr [rax+130h]                                           ; +0x77, 0x1800092b7\nmulss   xmm7, xmm7                                                     ; +0x7d, 0x1800092bd\nxorps   xmm0, xmm0                                                     ; +0x81, 0x1800092c1\nmulss   xmm6, xmm6                                                     ; +0x84, 0x1800092c4\nmovss   xmm8, dword ptr [rax]                                          ; +0x88, 0x1800092c8\nmulss   xmm8, cs:dword_180029510                                       ; +0x8d, 0x1800092cd\naddss   xmm7, xmm6                                                     ; +0x96, 0x1800092d6\nucomiss xmm0, xmm7                                                     ; +0x9a, 0x1800092da\nja      short loc_1800092E8                                            ; +0x9d, 0x1800092dd\nxorps   xmm6, xmm6                                                     ; +0x9f, 0x1800092df\nsqrtss  xmm6, xmm7                                                     ; +0xa2, 0x1800092e2\njmp     short loc_1800092F3                                            ; +0xa6, 0x1800092e6\nmovaps  xmm0, xmm7; X                                                  ; +0xa8, 0x1800092e8\ncall    sqrtf                                                          ; +0xab, 0x1800092eb\nmovaps  xmm6, xmm0                                                     ; +0xb0, 0x1800092f0\nmov     rax, [rdi]                                                     ; +0xb3, 0x1800092f3\nmov     rcx, rdi                                                       ; +0xb6, 0x1800092f6\ncall    qword ptr [rax+130h]                                           ; +0xb9, 0x1800092f9\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xbf, 0x1800092ff\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xc4, 0x180009304\nmovss   xmm1, dword ptr [rax+4]                                        ; +0xc9, 0x180009309\nmulss   xmm1, cs:dword_180029510                                       ; +0xce, 0x18000930e\nminss   xmm8, xmm1                                                     ; +0xd6, 0x180009316\ncomiss  xmm8, xmm6                                                     ; +0xdb, 0x18000931b\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xdf, 0x18000931f\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xe4, 0x180009324\nsetnbe  al                                                             ; +0xea, 0x18000932a\nadd     rsp, 50h                                                       ; +0xed, 0x18000932d\npop     rdi                                                            ; +0xf1, 0x180009331\nretn                                                                   ; +0xf2, 0x180009332", "xrefs": ["<???> @ 0x180025368", "<???> @ 0x18002fdf8", "<???> @ 0x1800499a8"], "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"}