{"type": "func", "start": 6442488640, "end": 6442488854, "name": "cocos2d::extension::CCControlPotentiometer::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180009340 to 0x180009416 (214 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180024ec0\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800499b4\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\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) + 1104LL))(\n          (char *)this - 320,\n          a2,\n          a3)\n    || !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 1024LL))(v3)\n    || !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 328LL))(v3) )\n  {\n    return 0;\n  }\n  v6 = (*(__int64 (__fastcall **)(_QWORD *, char *, struct cocos2d::CCTouch *))(*v3 + 1096LL))(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 + 1032LL))(v3, v7);\n  (**(void (__fastcall ***)(__int64, void *))(v3[59] + 320LL))(v3[59] + 320LL, &unk_1800234A4);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180009340 to 0x180009416 (214 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180024ec0\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800499b4\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, 0x180009340\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180009345\npush    rdi                                                            ; +0xa, 0x18000934a\nsub     rsp, 20h                                                       ; +0xb, 0x18000934b\nlea     rdi, [rcx-140h]                                                ; +0xf, 0x18000934f\nmov     rbx, rcx                                                       ; +0x16, 0x180009356\nmov     rax, [rdi]                                                     ; +0x19, 0x180009359\nmov     rcx, rdi                                                       ; +0x1c, 0x18000935c\nmov     rsi, rdx                                                       ; +0x1f, 0x18000935f\ncall    qword ptr [rax+450h]                                           ; +0x22, 0x180009362\ntest    al, al                                                         ; +0x28, 0x180009368\njz      loc_180009404                                                  ; +0x2a, 0x18000936a\nmov     rax, [rdi]                                                     ; +0x30, 0x180009370\nmov     rcx, rdi                                                       ; +0x33, 0x180009373\ncall    qword ptr [rax+400h]                                           ; +0x36, 0x180009376\ntest    al, al                                                         ; +0x3c, 0x18000937c\njz      loc_180009404                                                  ; +0x3e, 0x18000937e\nmov     rax, [rdi]                                                     ; +0x44, 0x180009384\nmov     rcx, rdi                                                       ; +0x47, 0x180009387\ncall    qword ptr [rax+148h]                                           ; +0x4a, 0x18000938a\ntest    al, al                                                         ; +0x50, 0x180009390\njz      short loc_180009404                                            ; +0x52, 0x180009392\nmov     rax, [rdi]                                                     ; +0x54, 0x180009394\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x57, 0x180009397\nmov     r8, rsi                                                        ; +0x5c, 0x18000939c\nmov     rcx, rdi                                                       ; +0x5f, 0x18000939f\ncall    qword ptr [rax+448h]                                           ; +0x62, 0x1800093a2\nmov     rdx, rax                                                       ; +0x68, 0x1800093a8\nlea     rcx, [rbx+0A8h]                                                ; +0x6b, 0x1800093ab\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x72, 0x1800093b2\nlea     rdx, [rbx+0A8h]                                                ; +0x78, 0x1800093b8\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x7f, 0x1800093bf\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x84, 0x1800093c4\nmov     rax, [rdi]                                                     ; +0x8a, 0x1800093ca\nmov     dl, 1                                                          ; +0x8d, 0x1800093cd\nmov     rcx, rdi                                                       ; +0x8f, 0x1800093cf\ncall    qword ptr [rax+408h]                                           ; +0x92, 0x1800093d2\nmov     rcx, [rdi+1D8h]                                                ; +0x98, 0x1800093d8\nlea     rdx, unk_1800234A4                                             ; +0x9f, 0x1800093df\nadd     rcx, 140h                                                      ; +0xa6, 0x1800093e6\nmov     rax, [rcx]                                                     ; +0xad, 0x1800093ed\ncall    qword ptr [rax]                                                ; +0xb0, 0x1800093f0\nmov     al, 1                                                          ; +0xb2, 0x1800093f2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb4, 0x1800093f4\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb9, 0x1800093f9\nadd     rsp, 20h                                                       ; +0xbe, 0x1800093fe\npop     rdi                                                            ; +0xc2, 0x180009402\nretn                                                                   ; +0xc3, 0x180009403\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc4, 0x180009404\nxor     al, al                                                         ; +0xc9, 0x180009409\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xcb, 0x18000940b\nadd     rsp, 20h                                                       ; +0xd0, 0x180009410\npop     rdi                                                            ; +0xd4, 0x180009414\nretn                                                                   ; +0xd5, 0x180009415", "xrefs": ["<???> @ 0x180024ec0", "<???> @ 0x18002fdf8", "<???> @ 0x1800499b4"], "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"}