{"type": "func", "start": 6442479088, "end": 6442479361, "name": "cocos2d::extension::CCControlButton::ccTouchBegan", "pseudocode": "// \n// cocos2d::extension::CCControlButton::ccTouchBegan from 0x180006df0 to 0x180006f01 (273 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800261d0\n// > <???> @ 0x18002a148\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b66c\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:36 +0000\n// \n\nchar __fastcall cocos2d::extension::CCControlButton::ccTouchBegan(\n        cocos2d::extension::CCControlButton *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  char *v3; // rdi\n  __int64 v5; // rdx\n  __int64 v6; // rbx\n  __int64 v7; // rbx\n  __int64 v8; // rax\n\n  v3 = (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 **)(char *))(*(_QWORD *)v3 + 1040LL))(v3)\n    && (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 344LL))(v3) )\n  {\n    v6 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v3 + 504LL))(v3);\n    if ( v6 )\n    {\n      while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 344LL))(v6) )\n      {\n        v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 504LL))(v6);\n        if ( !v6 )\n          goto LABEL_7;\n      }\n    }\n    else\n    {\nLABEL_7:\n      v7 = *((_QWORD *)this - 13);\n      if ( !v7 )\n      {\nLABEL_10:\n        v8 = *(_QWORD *)v3;\n        LOBYTE(v5) = 1;\n        *((_BYTE *)this + 204) = 1;\n        (*(void (__fastcall **)(char *, __int64))(v8 + 1064))(v3, v5);\n        (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 1);\n        return 1;\n      }\n      while ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v7 + 344LL))(v7) )\n      {\n        v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 504LL))(v7);\n        if ( !v7 )\n          goto LABEL_10;\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::ccTouchBegan from 0x180006df0 to 0x180006f01 (273 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800261d0\n; > <???> @ 0x18002a148\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b66c\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:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180006df0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180006df5\npush    rdi                                                            ; +0xa, 0x180006dfa\nsub     rsp, 20h                                                       ; +0xb, 0x180006dfb\nlea     rdi, [rcx-140h]                                                ; +0xf, 0x180006dff\nmov     rsi, rcx                                                       ; +0x16, 0x180006e06\nmov     rax, [rdi]                                                     ; +0x19, 0x180006e09\nmov     rcx, rdi                                                       ; +0x1c, 0x180006e0c\ncall    qword ptr [rax+460h]                                           ; +0x1f, 0x180006e0f\ntest    al, al                                                         ; +0x25, 0x180006e15\njz      loc_180006EEF                                                  ; +0x27, 0x180006e17\nmov     rax, [rdi]                                                     ; +0x2d, 0x180006e1d\nmov     rcx, rdi                                                       ; +0x30, 0x180006e20\ncall    qword ptr [rax+410h]                                           ; +0x33, 0x180006e23\ntest    al, al                                                         ; +0x39, 0x180006e29\njz      loc_180006EEF                                                  ; +0x3b, 0x180006e2b\nmov     rax, [rdi]                                                     ; +0x41, 0x180006e31\nmov     rcx, rdi                                                       ; +0x44, 0x180006e34\ncall    qword ptr [rax+158h]                                           ; +0x47, 0x180006e37\ntest    al, al                                                         ; +0x4d, 0x180006e3d\njz      loc_180006EEF                                                  ; +0x4f, 0x180006e3f\nmov     rax, [rdi]                                                     ; +0x55, 0x180006e45\nmov     rcx, rdi                                                       ; +0x58, 0x180006e48\ncall    qword ptr [rax+1F8h]                                           ; +0x5b, 0x180006e4b\nmov     rbx, rax                                                       ; +0x61, 0x180006e51\ntest    rax, rax                                                       ; +0x64, 0x180006e54\njz      short loc_180006E8A                                            ; +0x67, 0x180006e57\nnop     dword ptr [rax+00000000h]                                      ; +0x69, 0x180006e59\nmov     rcx, [rbx]                                                     ; +0x70, 0x180006e60\nmov     rdx, [rcx+158h]                                                ; +0x73, 0x180006e63\nmov     rcx, rbx                                                       ; +0x7a, 0x180006e6a\ncall    rdx                                                            ; +0x7d, 0x180006e6d\ntest    al, al                                                         ; +0x7f, 0x180006e6f\njz      short loc_180006EEF                                            ; +0x81, 0x180006e71\nmov     rcx, [rbx]                                                     ; +0x83, 0x180006e73\nmov     rax, [rcx+1F8h]                                                ; +0x86, 0x180006e76\nmov     rcx, rbx                                                       ; +0x8d, 0x180006e7d\ncall    rax                                                            ; +0x90, 0x180006e80\nmov     rbx, rax                                                       ; +0x92, 0x180006e82\ntest    rax, rax                                                       ; +0x95, 0x180006e85\njnz     short loc_180006E60                                            ; +0x98, 0x180006e88\nmov     rbx, [rsi-68h]                                                 ; +0x9a, 0x180006e8a\ntest    rbx, rbx                                                       ; +0x9e, 0x180006e8e\njz      short loc_180006EB7                                            ; +0xa1, 0x180006e91\nmov     rax, [rbx]                                                     ; +0xa3, 0x180006e93\nmov     rcx, rbx                                                       ; +0xa6, 0x180006e96\ncall    qword ptr [rax+158h]                                           ; +0xa9, 0x180006e99\ntest    al, al                                                         ; +0xaf, 0x180006e9f\njz      short loc_180006EEF                                            ; +0xb1, 0x180006ea1\nmov     rax, [rbx]                                                     ; +0xb3, 0x180006ea3\nmov     rcx, rbx                                                       ; +0xb6, 0x180006ea6\ncall    qword ptr [rax+1F8h]                                           ; +0xb9, 0x180006ea9\nmov     rbx, rax                                                       ; +0xbf, 0x180006eaf\ntest    rax, rax                                                       ; +0xc2, 0x180006eb2\njnz     short loc_180006E93                                            ; +0xc5, 0x180006eb5\nmov     rax, [rdi]                                                     ; +0xc7, 0x180006eb7\nmov     dl, 1                                                          ; +0xca, 0x180006eba\nmov     rcx, rdi                                                       ; +0xcc, 0x180006ebc\nmov     byte ptr [rsi+0CCh], 1                                         ; +0xcf, 0x180006ebf\ncall    qword ptr [rax+428h]                                           ; +0xd6, 0x180006ec6\nmov     rax, [rdi]                                                     ; +0xdc, 0x180006ecc\nmov     edx, 1                                                         ; +0xdf, 0x180006ecf\nmov     rcx, rdi                                                       ; +0xe4, 0x180006ed4\ncall    qword ptr [rax+440h]                                           ; +0xe7, 0x180006ed7\nmov     al, 1                                                          ; +0xed, 0x180006edd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xef, 0x180006edf\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf4, 0x180006ee4\nadd     rsp, 20h                                                       ; +0xf9, 0x180006ee9\npop     rdi                                                            ; +0xfd, 0x180006eed\nretn                                                                   ; +0xfe, 0x180006eee\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xff, 0x180006eef\nxor     al, al                                                         ; +0x104, 0x180006ef4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x106, 0x180006ef6\nadd     rsp, 20h                                                       ; +0x10b, 0x180006efb\npop     rdi                                                            ; +0x10f, 0x180006eff\nretn                                                                   ; +0x110, 0x180006f00", "xrefs": ["<???> @ 0x1800261d0", "<???> @ 0x18002a148", "<???> @ 0x180032408", "<???> @ 0x18004b66c"], "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"}