{"type": "func", "start": 4301515936, "end": 4301516243, "name": "DpadMenu::ccTouchBegan", "pseudocode": "// \n// DpadMenu::ccTouchBegan from 0x10063eca0 to 0x10063edd3 (307 bytes)\n// \n// 2 xrefs:\n// > sub_10063EE30 @ 0x10063ee3c\n// > <???> @ 0x100b80200\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:34:42 +0000\n// \n\nchar __fastcall DpadMenu::ccTouchBegan(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r14\n  __int64 v3; // rax\n  const void *v4; // r14\n  void *v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // [rsp-40h] [rbp-40h] BYREF\n  __int64 v9; // [rsp-38h] [rbp-38h]\n\n  if ( *(_DWORD *)(a1 + 428) || *(_BYTE *)(a1 + 286) != 1 )\n    return 0;\n  v9 = a2;\n  if ( (*(unsigned __int8 (**)(void))(*(_QWORD *)a1 + 1264LL))() )\n  {\n    v2 = *(_QWORD *)(a1 + 216);\n    if ( v2 )\n    {\n      while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 352LL))(v2) )\n      {\n        v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 512LL))(v2);\n        if ( !v2 )\n          goto LABEL_7;\n      }\n    }\n    else\n    {\nLABEL_7:\n      cocos2d::CCTouch::getLocation((__int64)&v8, v9);\n      v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);\n      if ( v3 )\n      {\n        v4 = (const void *)v3;\n        while ( 1 )\n        {\n          v6 = __dynamic_cast(\n                 v4,\n                 (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,\n                 (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper,\n                 -2);\n          if ( v6 )\n          {\n            if ( !(*(unsigned __int8 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v6 + 16LL))(v6, &v8) )\n              break;\n          }\n          v4 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v4 + 512LL))(v4);\n          if ( !v4 )\n            goto LABEL_14;\n        }\n      }\n      else\n      {\nLABEL_14:\n        v7 = sub_10063EEA0(a1, v9);\n        *(_QWORD *)(a1 + 432) = v7;\n        if ( v7 )\n        {\n          *(_DWORD *)(a1 + 428) = 1;\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1016LL))(v7);\n          return 1;\n        }\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; DpadMenu::ccTouchBegan from 0x10063eca0 to 0x10063edd3 (307 bytes)\n; \n; 2 xrefs:\n; > sub_10063EE30 @ 0x10063ee3c\n; > <???> @ 0x100b80200\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:34:42 +0000\n; \ncmp     dword ptr [rdi+1ACh], 0                                        ; +0x0, 0x10063eca0\njnz     loc_10063ED4D                                                  ; +0x7, 0x10063eca7\ncmp     byte ptr [rdi+11Eh], 1                                         ; +0xd, 0x10063ecad\njnz     loc_10063ED4D                                                  ; +0x14, 0x10063ecb4\npush    rbp                                                            ; +0x1a, 0x10063ecba\nmov     rbp, rsp                                                       ; +0x1b, 0x10063ecbb\npush    r15                                                            ; +0x1e, 0x10063ecbe\npush    r14                                                            ; +0x20, 0x10063ecc0\npush    r13                                                            ; +0x22, 0x10063ecc2\npush    r12                                                            ; +0x24, 0x10063ecc4\npush    rbx                                                            ; +0x26, 0x10063ecc6\nsub     rsp, 18h                                                       ; +0x27, 0x10063ecc7\nmov     [rbp-30h], rsi                                                 ; +0x2b, 0x10063eccb\nmov     rax, [rdi]                                                     ; +0x2f, 0x10063eccf\nmov     rbx, rdi                                                       ; +0x32, 0x10063ecd2\ncall    qword ptr [rax+4F0h]                                           ; +0x35, 0x10063ecd5\ntest    al, al                                                         ; +0x3b, 0x10063ecdb\njz      loc_10063EDC2                                                  ; +0x3d, 0x10063ecdd\nmov     r14, [rbx+0D8h]                                                ; +0x43, 0x10063ece3\ntest    r14, r14                                                       ; +0x4a, 0x10063ecea\njz      short loc_10063ED18                                            ; +0x4d, 0x10063eced\nnop                                                                    ; +0x4f, 0x10063ecef\nmov     rax, [r14]                                                     ; +0x50, 0x10063ecf0\nmov     rdi, r14                                                       ; +0x53, 0x10063ecf3\ncall    qword ptr [rax+160h]                                           ; +0x56, 0x10063ecf6\ntest    al, al                                                         ; +0x5c, 0x10063ecfc\njz      loc_10063EDC2                                                  ; +0x5e, 0x10063ecfe\nmov     rax, [r14]                                                     ; +0x64, 0x10063ed04\nmov     rdi, r14                                                       ; +0x67, 0x10063ed07\ncall    qword ptr [rax+200h]                                           ; +0x6a, 0x10063ed0a\nmov     r14, rax                                                       ; +0x70, 0x10063ed10\ntest    rax, rax                                                       ; +0x73, 0x10063ed13\njnz     short loc_10063ECF0                                            ; +0x76, 0x10063ed16\nlea     rdi, [rbp-38h]                                                 ; +0x78, 0x10063ed18\nmov     rsi, [rbp-30h]                                                 ; +0x7c, 0x10063ed1c\ncall    cocos2d__CCTouch__getLocation                                  ; +0x80, 0x10063ed20\nmov     rdi, rbx                                                       ; +0x85, 0x10063ed25\nmov     rax, [rbx]                                                     ; +0x88, 0x10063ed28\ncall    qword ptr [rax+200h]                                           ; +0x8b, 0x10063ed2b\ntest    rax, rax                                                       ; +0x91, 0x10063ed31\njz      short loc_10063ED90                                            ; +0x94, 0x10063ed34\nmov     r14, rax                                                       ; +0x96, 0x10063ed36\nlea     r15, _ZTIN7cocos2d6CCNodeE; `typeinfo for'cocos2d::CCNode      ; +0x99, 0x10063ed39\nmov     r12, cs:__ZTIN7cocos2d14CCTouchClipperE_ptr                    ; +0xa0, 0x10063ed40\nlea     r13, [rbp-38h]                                                 ; +0xa7, 0x10063ed47\njmp     short loc_10063ED64                                            ; +0xab, 0x10063ed4b\nxor     eax, eax                                                       ; +0xad, 0x10063ed4d\nretn                                                                   ; +0xaf, 0x10063ed4f\nmov     rax, [r14]                                                     ; +0xb0, 0x10063ed50\nmov     rdi, r14                                                       ; +0xb3, 0x10063ed53\ncall    qword ptr [rax+200h]                                           ; +0xb6, 0x10063ed56\nmov     r14, rax                                                       ; +0xbc, 0x10063ed5c\ntest    rax, rax                                                       ; +0xbf, 0x10063ed5f\njz      short loc_10063ED90                                            ; +0xc2, 0x10063ed62\nmov     rdi, r14; lpsrc                                                ; +0xc4, 0x10063ed64\nmov     rsi, r15; lpstype                                              ; +0xc7, 0x10063ed67\nmov     rdx, r12; lpdtype                                              ; +0xca, 0x10063ed6a\nmov     rcx, 0FFFFFFFFFFFFFFFEh; s2d                                   ; +0xcd, 0x10063ed6d\ncall    ___dynamic_cast                                                ; +0xd4, 0x10063ed74\ntest    rax, rax                                                       ; +0xd9, 0x10063ed79\njz      short loc_10063ED50                                            ; +0xdc, 0x10063ed7c\nmov     rcx, [rax]                                                     ; +0xde, 0x10063ed7e\nmov     rdi, rax                                                       ; +0xe1, 0x10063ed81\nmov     rsi, r13                                                       ; +0xe4, 0x10063ed84\ncall    qword ptr [rcx+10h]                                            ; +0xe7, 0x10063ed87\ntest    al, al                                                         ; +0xea, 0x10063ed8a\njnz     short loc_10063ED50                                            ; +0xec, 0x10063ed8c\njmp     short loc_10063EDC2                                            ; +0xee, 0x10063ed8e\nmov     rdi, rbx                                                       ; +0xf0, 0x10063ed90\nmov     rsi, [rbp-30h]                                                 ; +0xf3, 0x10063ed93\ncall    sub_10063EEA0                                                  ; +0xf7, 0x10063ed97\nmov     [rbx+1B0h], rax                                                ; +0xfc, 0x10063ed9c\ntest    rax, rax                                                       ; +0x103, 0x10063eda3\njz      short loc_10063EDC2                                            ; +0x106, 0x10063eda6\nmov     dword ptr [rbx+1ACh], 1                                        ; +0x108, 0x10063eda8\nmov     rcx, [rax]                                                     ; +0x112, 0x10063edb2\nmov     rdi, rax                                                       ; +0x115, 0x10063edb5\ncall    qword ptr [rcx+3F8h]                                           ; +0x118, 0x10063edb8\nmov     al, 1                                                          ; +0x11e, 0x10063edbe\njmp     short loc_10063EDC4                                            ; +0x120, 0x10063edc0\nxor     eax, eax                                                       ; +0x122, 0x10063edc2\nadd     rsp, 18h                                                       ; +0x124, 0x10063edc4\npop     rbx                                                            ; +0x128, 0x10063edc8\npop     r12                                                            ; +0x129, 0x10063edc9\npop     r13                                                            ; +0x12b, 0x10063edcb\npop     r14                                                            ; +0x12d, 0x10063edcd\npop     r15                                                            ; +0x12f, 0x10063edcf\npop     rbp                                                            ; +0x131, 0x10063edd1\nretn                                                                   ; +0x132, 0x10063edd2", "xrefs": ["sub_10063EE30 @ 0x10063ee3c", "<???> @ 0x100b80200"], "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"}