{"type": "func", "start": 5373130016, "end": 5373130488, "name": "SetupPulsePopup::create", "pseudocode": "// \n// SetupPulsePopup::create from 0x140437520 to 0x1404376f8 (472 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editObject @ 0x14011cfae\n// > <???> @ 0x1406d9e48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nSetupPulsePopup *SetupPulsePopup::create(EffectGameObject *a1, cocos2d::CCArray *a2)\n{\n  char *v4; // r14\n\n  v4 = (char *)operator new(0x4F8u);\n  SetupTriggerPopup::SetupTriggerPopup((SetupTriggerPopup *)v4);\n  cocos2d::extension::ColorPickerDelegate::ColorPickerDelegate((cocos2d::extension::ColorPickerDelegate *)v4 + 117);\n  *(_QWORD *)v4 = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 40) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 41) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 42) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 43) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 44) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 51) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 54) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 79) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 80) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 81) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 117) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 118) = &SetupPulsePopup::`vftable';\n  *((_QWORD *)v4 + 119) = 0;\n  v4[960] = 0;\n  *((_QWORD *)v4 + 121) = 0;\n  *((_QWORD *)v4 + 122) = 0;\n  *((_QWORD *)v4 + 130) = 0;\n  *((_QWORD *)v4 + 131) = 0;\n  *((_QWORD *)v4 + 140) = 0;\n  *((_QWORD *)v4 + 142) = 0;\n  *((_QWORD *)v4 + 143) = 0;\n  *((_QWORD *)v4 + 144) = 0;\n  *((_QWORD *)v4 + 145) = 0;\n  *((_QWORD *)v4 + 146) = 0;\n  *((_QWORD *)v4 + 147) = 0;\n  *((_WORD *)v4 + 592) = 0;\n  v4[1186] = 0;\n  *((_DWORD *)v4 + 297) = 0;\n  v4[1196] = 0;\n  *((_QWORD *)v4 + 150) = 0;\n  *((_DWORD *)v4 + 302) = 0;\n  *((_WORD *)v4 + 610) = 0;\n  *(_OWORD *)(v4 + 1224) = unk_1406BA260;\n  if ( SetupPulsePopup::init((SetupPulsePopup *)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return (SetupPulsePopup *)v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SetupPulsePopup::create from 0x140437520 to 0x1404376f8 (472 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editObject @ 0x14011cfae\n; > <???> @ 0x1406d9e48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140437520\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140437525\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14043752a\npush    r14                                                            ; +0xf, 0x14043752f\nsub     rsp, 20h                                                       ; +0x11, 0x140437531\nmov     rdi, rdx                                                       ; +0x15, 0x140437535\nmov     rsi, rcx                                                       ; +0x18, 0x140437538\nmov     ecx, 4F8h; Size                                                ; +0x1b, 0x14043753b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x140437540\nmov     r14, rax                                                       ; +0x25, 0x140437545\nmov     [rsp+28h+arg_10], rax                                          ; +0x28, 0x140437548\nmov     rcx, rax                                                       ; +0x2d, 0x14043754d\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x30, 0x140437550\nlea     rcx, [r14+3A8h]                                                ; +0x35, 0x140437555\ncall    cs:??0ColorPickerDelegate@extension@cocos2d@@QEAA@XZ; cocos2d::extension::ColorPickerDelegate::ColorPickerDelegate(void) ; +0x3c, 0x14043755c\nlea     rax, ??_7SetupPulsePopup@@6B@; const SetupPulsePopup::`vftable' ; +0x42, 0x140437562\nmov     [r14], rax                                                     ; +0x49, 0x140437569\nlea     rax, ??_7SetupPulsePopup@@6B@_0; const SetupPulsePopup::`vftable' ; +0x4c, 0x14043756c\nmov     [r14+140h], rax                                                ; +0x53, 0x140437573\nlea     rax, ??_7SetupPulsePopup@@6B@_1; const SetupPulsePopup::`vftable' ; +0x5a, 0x14043757a\nmov     [r14+148h], rax                                                ; +0x61, 0x140437581\nlea     rax, ??_7SetupPulsePopup@@6B@_2; const SetupPulsePopup::`vftable' ; +0x68, 0x140437588\nmov     [r14+150h], rax                                                ; +0x6f, 0x14043758f\nlea     rax, ??_7SetupPulsePopup@@6B@_3; const SetupPulsePopup::`vftable' ; +0x76, 0x140437596\nmov     [r14+158h], rax                                                ; +0x7d, 0x14043759d\nlea     rax, ??_7SetupPulsePopup@@6B@_4; const SetupPulsePopup::`vftable' ; +0x84, 0x1404375a4\nmov     [r14+160h], rax                                                ; +0x8b, 0x1404375ab\nlea     rax, ??_7SetupPulsePopup@@6B@_5; const SetupPulsePopup::`vftable' ; +0x92, 0x1404375b2\nmov     [r14+198h], rax                                                ; +0x99, 0x1404375b9\nlea     rax, ??_7SetupPulsePopup@@6B@_6; const SetupPulsePopup::`vftable' ; +0xa0, 0x1404375c0\nmov     [r14+1B0h], rax                                                ; +0xa7, 0x1404375c7\nlea     rax, ??_7SetupPulsePopup@@6B@_7; const SetupPulsePopup::`vftable' ; +0xae, 0x1404375ce\nmov     [r14+278h], rax                                                ; +0xb5, 0x1404375d5\nlea     rax, ??_7SetupPulsePopup@@6B@_8; const SetupPulsePopup::`vftable' ; +0xbc, 0x1404375dc\nmov     [r14+280h], rax                                                ; +0xc3, 0x1404375e3\nlea     rax, ??_7SetupPulsePopup@@6B@_9; const SetupPulsePopup::`vftable' ; +0xca, 0x1404375ea\nmov     [r14+288h], rax                                                ; +0xd1, 0x1404375f1\nlea     rax, ??_7SetupPulsePopup@@6B@_10; const SetupPulsePopup::`vftable' ; +0xd8, 0x1404375f8\nmov     [r14+3A8h], rax                                                ; +0xdf, 0x1404375ff\nlea     rax, ??_7SetupPulsePopup@@6B@_11; const SetupPulsePopup::`vftable' ; +0xe6, 0x140437606\nmov     [r14+3B0h], rax                                                ; +0xed, 0x14043760d\nxor     ebx, ebx                                                       ; +0xf4, 0x140437614\nmov     [r14+3B8h], rbx                                                ; +0xf6, 0x140437616\nmov     [r14+3C0h], bl                                                 ; +0xfd, 0x14043761d\nmov     [r14+3C8h], rbx                                                ; +0x104, 0x140437624\nmov     [r14+3D0h], rbx                                                ; +0x10b, 0x14043762b\nmov     [r14+410h], rbx                                                ; +0x112, 0x140437632\nmov     [r14+418h], rbx                                                ; +0x119, 0x140437639\nmov     [r14+460h], rbx                                                ; +0x120, 0x140437640\nmov     [r14+470h], rbx                                                ; +0x127, 0x140437647\nmov     [r14+478h], rbx                                                ; +0x12e, 0x14043764e\nmov     [r14+480h], rbx                                                ; +0x135, 0x140437655\nmov     [r14+488h], rbx                                                ; +0x13c, 0x14043765c\nmov     [r14+490h], rbx                                                ; +0x143, 0x140437663\nmov     [r14+498h], rbx                                                ; +0x14a, 0x14043766a\nmov     [r14+4A0h], bx                                                 ; +0x151, 0x140437671\nmov     [r14+4A2h], bl                                                 ; +0x159, 0x140437679\nmov     [r14+4A4h], ebx                                                ; +0x160, 0x140437680\nmov     [r14+4ACh], bl                                                 ; +0x167, 0x140437687\nmov     [r14+4B0h], rbx                                                ; +0x16e, 0x14043768e\nmov     [r14+4B8h], ebx                                                ; +0x175, 0x140437695\nmov     [r14+4C4h], bx                                                 ; +0x17c, 0x14043769c\nmovups  xmm0, xmmword ptr cs:unk_1406BA260                             ; +0x184, 0x1404376a4\nmovups  xmmword ptr [r14+4C8h], xmm0                                   ; +0x18b, 0x1404376ab\nmov     r8, rdi                                                        ; +0x193, 0x1404376b3\nmov     rdx, rsi                                                       ; +0x196, 0x1404376b6\nmov     rcx, r14                                                       ; +0x199, 0x1404376b9\ncall    SetupPulsePopup__init                                          ; +0x19c, 0x1404376bc\nmov     rcx, r14                                                       ; +0x1a1, 0x1404376c1\ntest    al, al                                                         ; +0x1a4, 0x1404376c4\njz      short loc_1404376D3                                            ; +0x1a6, 0x1404376c6\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1a8, 0x1404376c8\nmov     rax, r14                                                       ; +0x1ae, 0x1404376ce\njmp     short loc_1404376E2                                            ; +0x1b1, 0x1404376d1\nmov     r8, [r14]                                                      ; +0x1b3, 0x1404376d3\nmov     edx, 1                                                         ; +0x1b6, 0x1404376d6\ncall    qword ptr [r8+8]                                               ; +0x1bb, 0x1404376db\nmov     rax, rbx                                                       ; +0x1bf, 0x1404376df\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1c2, 0x1404376e2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x1c7, 0x1404376e7\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x1cc, 0x1404376ec\nadd     rsp, 20h                                                       ; +0x1d1, 0x1404376f1\npop     r14                                                            ; +0x1d5, 0x1404376f5\nretn                                                                   ; +0x1d7, 0x1404376f7", "xrefs": ["EditorUI::editObject @ 0x14011cfae", "<???> @ 0x1406d9e48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}