{"type": "func", "start": 6442487024, "end": 6442487267, "name": "cocos2d::extension::CCControlPotentiometer::isTouchInside", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x180008cf0 to 0x180008de3 (243 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180027910\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b8dc\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\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 + 1112LL))(\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 + 320LL))(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 + 320LL))(this)\n                    + 4)\n         * 0.5) > v10;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::isTouchInside from 0x180008cf0 to 0x180008de3 (243 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180027910\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b8dc\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180008cf0\npush    rdi                                                            ; +0x5, 0x180008cf5\nsub     rsp, 50h                                                       ; +0x6, 0x180008cf6\nmov     rax, [rcx]                                                     ; +0xa, 0x180008cfa\nmov     r8, rdx                                                        ; +0xd, 0x180008cfd\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x10, 0x180008d00\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x15, 0x180008d05\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1a, 0x180008d0a\nmov     rdi, rcx                                                       ; +0x1f, 0x180008d0f\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x22, 0x180008d12\ncall    qword ptr [rax+458h]                                           ; +0x28, 0x180008d18\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x2e, 0x180008d1e\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x33, 0x180008d23\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x38, 0x180008d28\nmov     rcx, [rdi+1E0h]                                                ; +0x3e, 0x180008d2e\nmov     rbx, rax                                                       ; +0x45, 0x180008d35\nmov     rdx, [rcx]                                                     ; +0x48, 0x180008d38\ncall    qword ptr [rdx+0C8h]                                           ; +0x4b, 0x180008d3b\nmov     rdx, rax                                                       ; +0x51, 0x180008d41\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x54, 0x180008d44\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x59, 0x180008d49\nmov     rcx, rdi                                                       ; +0x5f, 0x180008d4f\nmovss   xmm6, dword ptr [rax]                                          ; +0x62, 0x180008d52\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x66, 0x180008d56\nmov     rax, [rdi]                                                     ; +0x6b, 0x180008d5b\nsubss   xmm6, dword ptr [rbx]                                          ; +0x6e, 0x180008d5e\nsubss   xmm7, dword ptr [rbx+4]                                        ; +0x72, 0x180008d62\ncall    qword ptr [rax+140h]                                           ; +0x77, 0x180008d67\nmulss   xmm7, xmm7                                                     ; +0x7d, 0x180008d6d\nxorps   xmm0, xmm0                                                     ; +0x81, 0x180008d71\nmulss   xmm6, xmm6                                                     ; +0x84, 0x180008d74\nmovss   xmm8, dword ptr [rax]                                          ; +0x88, 0x180008d78\nmulss   xmm8, cs:dword_18002BBD8                                       ; +0x8d, 0x180008d7d\naddss   xmm7, xmm6                                                     ; +0x96, 0x180008d86\nucomiss xmm0, xmm7                                                     ; +0x9a, 0x180008d8a\nja      short loc_180008D98                                            ; +0x9d, 0x180008d8d\nxorps   xmm6, xmm6                                                     ; +0x9f, 0x180008d8f\nsqrtss  xmm6, xmm7                                                     ; +0xa2, 0x180008d92\njmp     short loc_180008DA3                                            ; +0xa6, 0x180008d96\nmovaps  xmm0, xmm7; X                                                  ; +0xa8, 0x180008d98\ncall    sqrtf                                                          ; +0xab, 0x180008d9b\nmovaps  xmm6, xmm0                                                     ; +0xb0, 0x180008da0\nmov     rax, [rdi]                                                     ; +0xb3, 0x180008da3\nmov     rcx, rdi                                                       ; +0xb6, 0x180008da6\ncall    qword ptr [rax+140h]                                           ; +0xb9, 0x180008da9\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xbf, 0x180008daf\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xc4, 0x180008db4\nmovss   xmm1, dword ptr [rax+4]                                        ; +0xc9, 0x180008db9\nmulss   xmm1, cs:dword_18002BBD8                                       ; +0xce, 0x180008dbe\nminss   xmm8, xmm1                                                     ; +0xd6, 0x180008dc6\ncomiss  xmm8, xmm6                                                     ; +0xdb, 0x180008dcb\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xdf, 0x180008dcf\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xe4, 0x180008dd4\nsetnbe  al                                                             ; +0xea, 0x180008dda\nadd     rsp, 50h                                                       ; +0xed, 0x180008ddd\npop     rdi                                                            ; +0xf1, 0x180008de1\nretn                                                                   ; +0xf2, 0x180008de2", "xrefs": ["<???> @ 0x180027910", "<???> @ 0x180032408", "<???> @ 0x18004b8dc"], "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"}