{"type": "func", "start": 5372485376, "end": 5372485648, "name": "EditTriggersPopup::create", "pseudocode": "// \n// EditTriggersPopup::create from 0x140399f00 to 0x14039a010 (272 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editObject @ 0x1401bce78\n// > EditorUI::editObject @ 0x1401bceab\n// > <???> @ 0x1409232a0\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:31:14 +0000\n// \n\ncocos2d::CCObject *__fastcall EditTriggersPopup::create(__int64 a1, __int64 a2)\n{\n  cocos2d::CCObject *v4; // rsi\n\n  v4 = (cocos2d::CCObject *)operator new(0x3E8u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v4);\n  *(_QWORD *)v4 = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 40) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 41) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 42) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 43) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 44) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 51) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 54) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 68) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 83) = &EditTriggersPopup::`vftable';\n  *((_QWORD *)v4 + 84) = &EditTriggersPopup::`vftable';\n  if ( (unsigned __int8)EditTriggersPopup::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; EditTriggersPopup::create from 0x140399f00 to 0x14039a010 (272 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editObject @ 0x1401bce78\n; > EditorUI::editObject @ 0x1401bceab\n; > <???> @ 0x1409232a0\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:31:14 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140399f00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140399f05\npush    rdi                                                            ; +0xa, 0x140399f0a\nsub     rsp, 20h                                                       ; +0xb, 0x140399f0b\nmov     rbx, rdx                                                       ; +0xf, 0x140399f0f\nmov     rdi, rcx                                                       ; +0x12, 0x140399f12\nmov     ecx, 3E8h; Size                                                ; +0x15, 0x140399f15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x140399f1a\nmov     rsi, rax                                                       ; +0x1f, 0x140399f1f\nmov     [rsp+28h+arg_10], rax                                          ; +0x22, 0x140399f22\nmov     rcx, rax                                                       ; +0x27, 0x140399f27\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x2a, 0x140399f2a\nlea     rax, ??_7EditTriggersPopup@@6B@; const EditTriggersPopup::`vftable' ; +0x2f, 0x140399f2f\nmov     [rsi], rax                                                     ; +0x36, 0x140399f36\nlea     rax, ??_7EditTriggersPopup@@6B@_0; const EditTriggersPopup::`vftable' ; +0x39, 0x140399f39\nmov     [rsi+140h], rax                                                ; +0x40, 0x140399f40\nlea     rax, ??_7EditTriggersPopup@@6B@_1; const EditTriggersPopup::`vftable' ; +0x47, 0x140399f47\nmov     [rsi+148h], rax                                                ; +0x4e, 0x140399f4e\nlea     rax, ??_7EditTriggersPopup@@6B@_2; const EditTriggersPopup::`vftable' ; +0x55, 0x140399f55\nmov     [rsi+150h], rax                                                ; +0x5c, 0x140399f5c\nlea     rax, ??_7EditTriggersPopup@@6B@_3; const EditTriggersPopup::`vftable' ; +0x63, 0x140399f63\nmov     [rsi+158h], rax                                                ; +0x6a, 0x140399f6a\nlea     rax, ??_7EditTriggersPopup@@6B@_4; const EditTriggersPopup::`vftable' ; +0x71, 0x140399f71\nmov     [rsi+160h], rax                                                ; +0x78, 0x140399f78\nlea     rax, ??_7EditTriggersPopup@@6B@_5; const EditTriggersPopup::`vftable' ; +0x7f, 0x140399f7f\nmov     [rsi+198h], rax                                                ; +0x86, 0x140399f86\nlea     rax, ??_7EditTriggersPopup@@6B@_6; const EditTriggersPopup::`vftable' ; +0x8d, 0x140399f8d\nmov     [rsi+1B0h], rax                                                ; +0x94, 0x140399f94\nlea     rax, ??_7EditTriggersPopup@@6B@_7; const EditTriggersPopup::`vftable' ; +0x9b, 0x140399f9b\nmov     [rsi+220h], rax                                                ; +0xa2, 0x140399fa2\nlea     rax, ??_7EditTriggersPopup@@6B@_8; const EditTriggersPopup::`vftable' ; +0xa9, 0x140399fa9\nmov     [rsi+298h], rax                                                ; +0xb0, 0x140399fb0\nlea     rax, ??_7EditTriggersPopup@@6B@_9; const EditTriggersPopup::`vftable' ; +0xb7, 0x140399fb7\nmov     [rsi+2A0h], rax                                                ; +0xbe, 0x140399fbe\nmov     r8, rbx                                                        ; +0xc5, 0x140399fc5\nmov     rdx, rdi                                                       ; +0xc8, 0x140399fc8\nmov     rcx, rsi                                                       ; +0xcb, 0x140399fcb\ncall    EditTriggersPopup__init                                        ; +0xce, 0x140399fce\nmov     rcx, rsi                                                       ; +0xd3, 0x140399fd3\ntest    al, al                                                         ; +0xd6, 0x140399fd6\njz      short loc_140399FF3                                            ; +0xd8, 0x140399fd8\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xda, 0x140399fda\nmov     rax, rsi                                                       ; +0xe0, 0x140399fe0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe3, 0x140399fe3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xe8, 0x140399fe8\nadd     rsp, 20h                                                       ; +0xed, 0x140399fed\npop     rdi                                                            ; +0xf1, 0x140399ff1\nretn                                                                   ; +0xf2, 0x140399ff2\nmov     rax, [rsi]                                                     ; +0xf3, 0x140399ff3\nmov     edx, 1                                                         ; +0xf6, 0x140399ff6\ncall    qword ptr [rax+8]                                              ; +0xfb, 0x140399ffb\nxor     eax, eax                                                       ; +0xfe, 0x140399ffe\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x100, 0x14039a000\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x105, 0x14039a005\nadd     rsp, 20h                                                       ; +0x10a, 0x14039a00a\npop     rdi                                                            ; +0x10e, 0x14039a00e\nretn                                                                   ; +0x10f, 0x14039a00f", "xrefs": ["EditorUI::editObject @ 0x1401bce78", "EditorUI::editObject @ 0x1401bceab", "<???> @ 0x1409232a0"], "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"}