{"type": "func", "start": 6443201392, "end": 6443201606, "name": "cocos2d::CCTouchDispatcher::touchesBegan", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::touchesBegan from 0x1800b7370 to 0x1800b7446 (214 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18010cc00\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2a18\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 11:22:22 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCTouchDispatcher::touchesBegan(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCSet *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  struct cocos2d::CCObject *v6; // rsi\n  int v7; // [rsp+40h] [rbp+8h] BYREF\n\n  ++*((_DWORD *)this + 17);\n  if ( a2 )\n  {\n    v6 = cocos2d::CCSet::anyObject(a2);\n    if ( v6 )\n    {\n      if ( dword_1801B3B60 > *(_DWORD *)(*((_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + (unsigned int)TlsIndex)\n                                       + 4LL) )\n      {\n        sub_1800E4D30(&dword_1801B3B60);\n        if ( dword_1801B3B60 == -1 )\n        {\n          cocos2d::cc_timeval::operator=(dword_1801B3B58, dword_1801B3B50);\n          sub_1800E4CC4(&dword_1801B3B60);\n        }\n      }\n      cocos2d::CCTouch::getLocation((__int64)v6, (__int64)&v7);\n      cocos2d::CCSize::operator=(dword_1801B3B58, &v7);\n    }\n  }\n  if ( *((_BYTE *)this + 49) )\n    cocos2d::CCTouchDispatcher::touches((cocos2d::CCTouchDispatcher *)((char *)this - 56), a2, a3, 0);\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::touchesBegan from 0x1800b7370 to 0x1800b7446 (214 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18010cc00\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2a18\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 11:22:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800b7370\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800b7375\npush    rsi                                                            ; +0xa, 0x1800b737a\npush    rdi                                                            ; +0xb, 0x1800b737b\npush    r14                                                            ; +0xc, 0x1800b737c\nsub     rsp, 20h                                                       ; +0xe, 0x1800b737e\nmov     r14, r8                                                        ; +0x12, 0x1800b7382\nmov     rdi, rdx                                                       ; +0x15, 0x1800b7385\nmov     rbx, rcx                                                       ; +0x18, 0x1800b7388\ninc     dword ptr [rcx+44h]                                            ; +0x1b, 0x1800b738b\ntest    rdx, rdx                                                       ; +0x1e, 0x1800b738e\njz      short loc_1800B73E4                                            ; +0x21, 0x1800b7391\nmov     rcx, rdx; this                                                 ; +0x23, 0x1800b7393\ncall    ?anyObject@CCSet@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCSet::anyObject(void) ; +0x26, 0x1800b7396\nmov     rsi, rax                                                       ; +0x2b, 0x1800b739b\ntest    rax, rax                                                       ; +0x2e, 0x1800b739e\njz      short loc_1800B73E4                                            ; +0x31, 0x1800b73a1\nmov     edx, cs:TlsIndex                                               ; +0x33, 0x1800b73a3\nmov     rcx, gs:58h                                                    ; +0x39, 0x1800b73a9\nmov     eax, 4                                                         ; +0x42, 0x1800b73b2\nmov     rcx, [rcx+rdx*8]                                               ; +0x47, 0x1800b73b7\nmov     ecx, [rax+rcx]                                                 ; +0x4b, 0x1800b73bb\ncmp     cs:dword_1801B3B60, ecx                                        ; +0x4e, 0x1800b73be\njg      short loc_1800B740F                                            ; +0x54, 0x1800b73c4\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x56, 0x1800b73c6\nmov     rcx, rsi                                                       ; +0x5b, 0x1800b73cb\ncall    ?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x5e, 0x1800b73ce\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x63, 0x1800b73d3\nlea     rcx, dword_1801B3B58                                           ; +0x68, 0x1800b73d8\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x6f, 0x1800b73df\ncmp     byte ptr [rbx+31h], 0                                          ; +0x74, 0x1800b73e4\njz      short loc_1800B73FC                                            ; +0x78, 0x1800b73e8\nxor     r9d, r9d; unsigned int                                         ; +0x7a, 0x1800b73ea\nmov     r8, r14; struct cocos2d::CCEvent *                             ; +0x7d, 0x1800b73ed\nmov     rdx, rdi; struct cocos2d::CCSet *                              ; +0x80, 0x1800b73f0\nlea     rcx, [rbx-38h]; this                                           ; +0x83, 0x1800b73f3\ncall    ?touches@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCSet@2@PEAVCCEvent@2@I@Z; cocos2d::CCTouchDispatcher::touches(cocos2d::CCSet *,cocos2d::CCEvent *,uint) ; +0x87, 0x1800b73f7\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x8c, 0x1800b73fc\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x91, 0x1800b7401\nadd     rsp, 20h                                                       ; +0x96, 0x1800b7406\npop     r14                                                            ; +0x9a, 0x1800b740a\npop     rdi                                                            ; +0x9c, 0x1800b740c\npop     rsi                                                            ; +0x9d, 0x1800b740d\nretn                                                                   ; +0x9e, 0x1800b740e\nlea     rcx, dword_1801B3B60                                           ; +0x9f, 0x1800b740f\ncall    sub_1800E4D30                                                  ; +0xa6, 0x1800b7416\ncmp     cs:dword_1801B3B60, 0FFFFFFFFh                                 ; +0xab, 0x1800b741b\njnz     short loc_1800B73C6                                            ; +0xb2, 0x1800b7422\nlea     rdx, dword_1801B3B50                                           ; +0xb4, 0x1800b7424\nlea     rcx, dword_1801B3B58                                           ; +0xbb, 0x1800b742b\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xc2, 0x1800b7432\nnop                                                                    ; +0xc7, 0x1800b7437\nlea     rcx, dword_1801B3B60                                           ; +0xc8, 0x1800b7438\ncall    sub_1800E4CC4                                                  ; +0xcf, 0x1800b743f\njmp     short loc_1800B73C6                                            ; +0xd4, 0x1800b7444", "xrefs": ["<???> @ 0x18010cc00", "<???> @ 0x18014cf68", "<???> @ 0x1801c2a18"], "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"}