{"type": "func", "start": 6443213888, "end": 6443214067, "name": "cocos2d::CCTouchScriptHandlerEntry::create", "pseudocode": "// \n// cocos2d::CCTouchScriptHandlerEntry::create from 0x1800ba440 to 0x1800ba4f3 (179 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCLayer::registerScriptTouchHandler @ 0x1800526f9\n// > <???> @ 0x1801c2ea4\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall cocos2d::CCTouchScriptHandlerEntry::create(int a1, char a2, int a3, char a4)\n{\n  cocos2d::CCObject *v8; // rax\n  cocos2d::CCObject *v9; // rbx\n\n  v8 = (cocos2d::CCObject *)sub_1800E4AC0(0x50u);\n  v9 = v8;\n  if ( v8 )\n  {\n    cocos2d::CCObject::CCObject(v8);\n    *(_QWORD *)v9 = &cocos2d::CCScriptHandlerEntry::`vftable';\n    *((_DWORD *)v9 + 14) = a1;\n    *((_DWORD *)v9 + 15) = ++dword_1801B3B74;\n    *(_QWORD *)v9 = &cocos2d::CCTouchScriptHandlerEntry::`vftable';\n    *((_BYTE *)v9 + 64) = 0;\n    *((_DWORD *)v9 + 17) = 0;\n    *((_BYTE *)v9 + 72) = 0;\n  }\n  else\n  {\n    v9 = nullptr;\n  }\n  *((_BYTE *)v9 + 64) = a2;\n  *((_DWORD *)v9 + 17) = a3;\n  *((_BYTE *)v9 + 72) = a4;\n  cocos2d::CCObject::autorelease(v9);\n  return v9;\n}", "assembly": "; \n; cocos2d::CCTouchScriptHandlerEntry::create from 0x1800ba440 to 0x1800ba4f3 (179 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCLayer::registerScriptTouchHandler @ 0x1800526f9\n; > <???> @ 0x1801c2ea4\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:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800ba440\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800ba445\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800ba44a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800ba44f\npush    r14                                                            ; +0x14, 0x1800ba454\nsub     rsp, 30h                                                       ; +0x16, 0x1800ba456\nmovzx   edi, r9b                                                       ; +0x1a, 0x1800ba45a\nmov     esi, r8d                                                       ; +0x1e, 0x1800ba45e\nmovzx   ebp, dl                                                        ; +0x21, 0x1800ba461\nmov     r14d, ecx                                                      ; +0x24, 0x1800ba464\nmov     ecx, 50h ; 'P'; Size                                           ; +0x27, 0x1800ba467\ncall    sub_1800E4AC0                                                  ; +0x2c, 0x1800ba46c\nmov     rbx, rax                                                       ; +0x31, 0x1800ba471\nmov     [rsp+38h+var_18], rax                                          ; +0x34, 0x1800ba474\ntest    rax, rax                                                       ; +0x39, 0x1800ba479\njz      short loc_1800BA4C0                                            ; +0x3c, 0x1800ba47c\nmov     rcx, rax; this                                                 ; +0x3e, 0x1800ba47e\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x41, 0x1800ba481\nlea     rax, ??_7CCScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCScriptHandlerEntry::`vftable' ; +0x46, 0x1800ba486\nmov     [rbx], rax                                                     ; +0x4d, 0x1800ba48d\nmov     [rbx+38h], r14d                                                ; +0x50, 0x1800ba490\nmov     eax, cs:dword_1801B3B74                                        ; +0x54, 0x1800ba494\ninc     eax                                                            ; +0x5a, 0x1800ba49a\nmov     cs:dword_1801B3B74, eax                                        ; +0x5c, 0x1800ba49c\nmov     [rbx+3Ch], eax                                                 ; +0x62, 0x1800ba4a2\nlea     rax, ??_7CCTouchScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCTouchScriptHandlerEntry::`vftable' ; +0x65, 0x1800ba4a5\nmov     [rbx], rax                                                     ; +0x6c, 0x1800ba4ac\nmov     byte ptr [rbx+40h], 0                                          ; +0x6f, 0x1800ba4af\nmov     dword ptr [rbx+44h], 0                                         ; +0x73, 0x1800ba4b3\nmov     byte ptr [rbx+48h], 0                                          ; +0x7a, 0x1800ba4ba\njmp     short loc_1800BA4C2                                            ; +0x7e, 0x1800ba4be\nxor     ebx, ebx                                                       ; +0x80, 0x1800ba4c0\nmov     [rbx+40h], bpl                                                 ; +0x82, 0x1800ba4c2\nmov     [rbx+44h], esi                                                 ; +0x86, 0x1800ba4c6\nmov     [rbx+48h], dil                                                 ; +0x89, 0x1800ba4c9\nmov     rcx, rbx; this                                                 ; +0x8d, 0x1800ba4cd\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x90, 0x1800ba4d0\nmov     rax, rbx                                                       ; +0x95, 0x1800ba4d5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x98, 0x1800ba4d8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x9d, 0x1800ba4dd\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xa2, 0x1800ba4e2\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xa7, 0x1800ba4e7\nadd     rsp, 30h                                                       ; +0xac, 0x1800ba4ec\npop     r14                                                            ; +0xb0, 0x1800ba4f0\nretn                                                                   ; +0xb2, 0x1800ba4f2", "xrefs": ["cocos2d::CCLayer::registerScriptTouchHandler @ 0x1800526f9", "<???> @ 0x1801c2ea4"], "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"}