{"type": "func", "start": 6442487280, "end": 6442487494, "name": "cocos2d::extension::CCControlPotentiometer::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180008df0 to 0x180008ec6 (214 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180027458\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b8e8\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\nchar __fastcall cocos2d::extension::CCControlPotentiometer::ccTouchBegan(\n        cocos2d::extension::CCControlPotentiometer *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  _QWORD *v3; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rdx\n  char v9; // [rsp+30h] [rbp+8h] BYREF\n\n  v3 = (_QWORD *)((char *)this - 320);\n  if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1120LL))(\n          (char *)this - 320,\n          a2,\n          a3)\n    || !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 1040LL))(v3)\n    || !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 344LL))(v3) )\n  {\n    return 0;\n  }\n  v6 = (*(__int64 (__fastcall **)(_QWORD *, char *, struct cocos2d::CCTouch *))(*v3 + 1112LL))(v3, &v9, a2);\n  cocos2d::CCPoint::operator=((char *)this + 168, v6);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, (cocos2d::extension::CCControlPotentiometer *)((char *)this + 168));\n  LOBYTE(v7) = 1;\n  (*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 1048LL))(v3, v7);\n  (**(void (__fastcall ***)(__int64, void *))(v3[59] + 320LL))(v3[59] + 320LL, &unk_180025A14);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180008df0 to 0x180008ec6 (214 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180027458\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b8e8\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, 0x180008df0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180008df5\npush    rdi                                                            ; +0xa, 0x180008dfa\nsub     rsp, 20h                                                       ; +0xb, 0x180008dfb\nlea     rdi, [rcx-140h]                                                ; +0xf, 0x180008dff\nmov     rbx, rcx                                                       ; +0x16, 0x180008e06\nmov     rax, [rdi]                                                     ; +0x19, 0x180008e09\nmov     rcx, rdi                                                       ; +0x1c, 0x180008e0c\nmov     rsi, rdx                                                       ; +0x1f, 0x180008e0f\ncall    qword ptr [rax+460h]                                           ; +0x22, 0x180008e12\ntest    al, al                                                         ; +0x28, 0x180008e18\njz      loc_180008EB4                                                  ; +0x2a, 0x180008e1a\nmov     rax, [rdi]                                                     ; +0x30, 0x180008e20\nmov     rcx, rdi                                                       ; +0x33, 0x180008e23\ncall    qword ptr [rax+410h]                                           ; +0x36, 0x180008e26\ntest    al, al                                                         ; +0x3c, 0x180008e2c\njz      loc_180008EB4                                                  ; +0x3e, 0x180008e2e\nmov     rax, [rdi]                                                     ; +0x44, 0x180008e34\nmov     rcx, rdi                                                       ; +0x47, 0x180008e37\ncall    qword ptr [rax+158h]                                           ; +0x4a, 0x180008e3a\ntest    al, al                                                         ; +0x50, 0x180008e40\njz      short loc_180008EB4                                            ; +0x52, 0x180008e42\nmov     rax, [rdi]                                                     ; +0x54, 0x180008e44\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x57, 0x180008e47\nmov     r8, rsi                                                        ; +0x5c, 0x180008e4c\nmov     rcx, rdi                                                       ; +0x5f, 0x180008e4f\ncall    qword ptr [rax+458h]                                           ; +0x62, 0x180008e52\nmov     rdx, rax                                                       ; +0x68, 0x180008e58\nlea     rcx, [rbx+0A8h]                                                ; +0x6b, 0x180008e5b\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x72, 0x180008e62\nlea     rdx, [rbx+0A8h]                                                ; +0x78, 0x180008e68\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x7f, 0x180008e6f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x84, 0x180008e74\nmov     rax, [rdi]                                                     ; +0x8a, 0x180008e7a\nmov     dl, 1                                                          ; +0x8d, 0x180008e7d\nmov     rcx, rdi                                                       ; +0x8f, 0x180008e7f\ncall    qword ptr [rax+418h]                                           ; +0x92, 0x180008e82\nmov     rcx, [rdi+1D8h]                                                ; +0x98, 0x180008e88\nlea     rdx, unk_180025A14                                             ; +0x9f, 0x180008e8f\nadd     rcx, 140h                                                      ; +0xa6, 0x180008e96\nmov     rax, [rcx]                                                     ; +0xad, 0x180008e9d\ncall    qword ptr [rax]                                                ; +0xb0, 0x180008ea0\nmov     al, 1                                                          ; +0xb2, 0x180008ea2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb4, 0x180008ea4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb9, 0x180008ea9\nadd     rsp, 20h                                                       ; +0xbe, 0x180008eae\npop     rdi                                                            ; +0xc2, 0x180008eb2\nretn                                                                   ; +0xc3, 0x180008eb3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc4, 0x180008eb4\nxor     al, al                                                         ; +0xc9, 0x180008eb9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xcb, 0x180008ebb\nadd     rsp, 20h                                                       ; +0xd0, 0x180008ec0\npop     rdi                                                            ; +0xd4, 0x180008ec4\nretn                                                                   ; +0xd5, 0x180008ec5", "xrefs": ["<???> @ 0x180027458", "<???> @ 0x180032408", "<???> @ 0x18004b8e8"], "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"}