{"type": "func", "start": 5369915728, "end": 5369916216, "name": "ColorSelectPopup::create", "pseudocode": "// \n// ColorSelectPopup::create from 0x140126950 to 0x140126b38 (488 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::onEditColor @ 0x1401425a7\n// > EditorUI::editObject @ 0x1401bce93\n// > GJColorSetupLayer::onColor @ 0x14035f74b\n// > LevelSettingsLayer::onShowPicker @ 0x14045abe5\n// > CreateParticlePopup::onSelectColor @ 0x1405c6f52\n// > <???> @ 0x140916a00\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:26:58 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar *__fastcall ColorSelectPopup::create(__int64 a1, __int64 a2, __int64 a3)\n{\n  char *v6; // r14\n\n  v6 = (char *)operator new(0x500u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v6);\n  cocos2d::extension::ColorPickerDelegate::ColorPickerDelegate((cocos2d::extension::ColorPickerDelegate *)(v6 + 1000));\n  *(_QWORD *)v6 = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 40) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 41) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 42) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 43) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 44) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 51) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 54) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 68) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 83) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 84) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 125) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 126) = &ColorSelectPopup::`vftable';\n  *((_QWORD *)v6 + 127) = 0;\n  v6[1024] = 0;\n  *((_QWORD *)v6 + 129) = 0;\n  *((_QWORD *)v6 + 130) = 0;\n  *((_QWORD *)v6 + 131) = 0;\n  *((_QWORD *)v6 + 135) = 0;\n  *((_QWORD *)v6 + 136) = 0;\n  *((_QWORD *)v6 + 138) = 0;\n  *((_QWORD *)v6 + 139) = 0;\n  *((_DWORD *)v6 + 280) = 0;\n  *((_DWORD *)v6 + 281) = 1065353216;\n  *((_QWORD *)v6 + 141) = 0;\n  *((_QWORD *)v6 + 142) = 0;\n  *((_DWORD *)v6 + 286) = 0;\n  *((_WORD *)v6 + 574) = 0;\n  *((_DWORD *)v6 + 288) = 0;\n  v6[1156] = 0;\n  *((_DWORD *)v6 + 290) = 0;\n  v6[1164] = 0;\n  *(_OWORD *)(v6 + 1176) = unk_1408FE3F0;\n  *((_QWORD *)v6 + 152) = 0;\n  v6[1240] = 0;\n  if ( (unsigned __int8)ColorSelectPopup::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ColorSelectPopup::create from 0x140126950 to 0x140126b38 (488 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::onEditColor @ 0x1401425a7\n; > EditorUI::editObject @ 0x1401bce93\n; > GJColorSetupLayer::onColor @ 0x14035f74b\n; > LevelSettingsLayer::onShowPicker @ 0x14045abe5\n; > CreateParticlePopup::onSelectColor @ 0x1405c6f52\n; > <???> @ 0x140916a00\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:26:58 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140126950\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140126955\npush    rsi                                                            ; +0xa, 0x14012695a\npush    rdi                                                            ; +0xb, 0x14012695b\npush    r14                                                            ; +0xc, 0x14012695c\nsub     rsp, 20h                                                       ; +0xe, 0x14012695e\nmov     rdi, r8                                                        ; +0x12, 0x140126962\nmov     rsi, rdx                                                       ; +0x15, 0x140126965\nmov     rbp, rcx                                                       ; +0x18, 0x140126968\nmov     ecx, 500h; Size                                                ; +0x1b, 0x14012696b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x140126970\nmov     r14, rax                                                       ; +0x25, 0x140126975\nmov     [rsp+38h+arg_18], rax                                          ; +0x28, 0x140126978\nmov     rcx, rax                                                       ; +0x2d, 0x14012697d\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x30, 0x140126980\nlea     rcx, [r14+3E8h]                                                ; +0x35, 0x140126985\ncall    cs:??0ColorPickerDelegate@extension@cocos2d@@QEAA@XZ; cocos2d::extension::ColorPickerDelegate::ColorPickerDelegate(void) ; +0x3c, 0x14012698c\nlea     rax, ??_7ColorSelectPopup@@6B@; const ColorSelectPopup::`vftable' ; +0x42, 0x140126992\nmov     [r14], rax                                                     ; +0x49, 0x140126999\nlea     rax, ??_7ColorSelectPopup@@6B@_0; const ColorSelectPopup::`vftable' ; +0x4c, 0x14012699c\nmov     [r14+140h], rax                                                ; +0x53, 0x1401269a3\nlea     rax, ??_7ColorSelectPopup@@6B@_1; const ColorSelectPopup::`vftable' ; +0x5a, 0x1401269aa\nmov     [r14+148h], rax                                                ; +0x61, 0x1401269b1\nlea     rax, ??_7ColorSelectPopup@@6B@_2; const ColorSelectPopup::`vftable' ; +0x68, 0x1401269b8\nmov     [r14+150h], rax                                                ; +0x6f, 0x1401269bf\nlea     rax, ??_7ColorSelectPopup@@6B@_3; const ColorSelectPopup::`vftable' ; +0x76, 0x1401269c6\nmov     [r14+158h], rax                                                ; +0x7d, 0x1401269cd\nlea     rax, ??_7ColorSelectPopup@@6B@_4; const ColorSelectPopup::`vftable' ; +0x84, 0x1401269d4\nmov     [r14+160h], rax                                                ; +0x8b, 0x1401269db\nlea     rax, ??_7ColorSelectPopup@@6B@_5; const ColorSelectPopup::`vftable' ; +0x92, 0x1401269e2\nmov     [r14+198h], rax                                                ; +0x99, 0x1401269e9\nlea     rax, ??_7ColorSelectPopup@@6B@_6; const ColorSelectPopup::`vftable' ; +0xa0, 0x1401269f0\nmov     [r14+1B0h], rax                                                ; +0xa7, 0x1401269f7\nlea     rax, ??_7ColorSelectPopup@@6B@_7; const ColorSelectPopup::`vftable' ; +0xae, 0x1401269fe\nmov     [r14+220h], rax                                                ; +0xb5, 0x140126a05\nlea     rax, ??_7ColorSelectPopup@@6B@_8; const ColorSelectPopup::`vftable' ; +0xbc, 0x140126a0c\nmov     [r14+298h], rax                                                ; +0xc3, 0x140126a13\nlea     rax, ??_7ColorSelectPopup@@6B@_9; const ColorSelectPopup::`vftable' ; +0xca, 0x140126a1a\nmov     [r14+2A0h], rax                                                ; +0xd1, 0x140126a21\nlea     rax, ??_7ColorSelectPopup@@6B@_10; const ColorSelectPopup::`vftable' ; +0xd8, 0x140126a28\nmov     [r14+3E8h], rax                                                ; +0xdf, 0x140126a2f\nlea     rax, ??_7ColorSelectPopup@@6B@_11; const ColorSelectPopup::`vftable' ; +0xe6, 0x140126a36\nmov     [r14+3F0h], rax                                                ; +0xed, 0x140126a3d\nxor     ebx, ebx                                                       ; +0xf4, 0x140126a44\nmov     [r14+3F8h], rbx                                                ; +0xf6, 0x140126a46\nmov     [r14+400h], bl                                                 ; +0xfd, 0x140126a4d\nmov     [r14+408h], rbx                                                ; +0x104, 0x140126a54\nmov     [r14+410h], rbx                                                ; +0x10b, 0x140126a5b\nmov     [r14+418h], rbx                                                ; +0x112, 0x140126a62\nmov     [r14+438h], rbx                                                ; +0x119, 0x140126a69\nmov     [r14+440h], rbx                                                ; +0x120, 0x140126a70\nmov     [r14+450h], rbx                                                ; +0x127, 0x140126a77\nmov     [r14+458h], rbx                                                ; +0x12e, 0x140126a7e\nmov     [r14+460h], ebx                                                ; +0x135, 0x140126a85\nmov     dword ptr [r14+464h], 3F800000h                                ; +0x13c, 0x140126a8c\nmov     [r14+468h], rbx                                                ; +0x147, 0x140126a97\nmov     [r14+470h], rbx                                                ; +0x14e, 0x140126a9e\nmov     [r14+478h], ebx                                                ; +0x155, 0x140126aa5\nmov     [r14+47Ch], bx                                                 ; +0x15c, 0x140126aac\nmov     [r14+480h], ebx                                                ; +0x164, 0x140126ab4\nmov     [r14+484h], bl                                                 ; +0x16b, 0x140126abb\nmov     [r14+488h], ebx                                                ; +0x172, 0x140126ac2\nmov     [r14+48Ch], bl                                                 ; +0x179, 0x140126ac9\nmovups  xmm0, xmmword ptr cs:unk_1408FE3F0                             ; +0x180, 0x140126ad0\nmovups  xmmword ptr [r14+498h], xmm0                                   ; +0x187, 0x140126ad7\nmov     [r14+4C0h], rbx                                                ; +0x18f, 0x140126adf\nmov     [r14+4D8h], bl                                                 ; +0x196, 0x140126ae6\nmov     r9, rdi                                                        ; +0x19d, 0x140126aed\nmov     r8, rsi                                                        ; +0x1a0, 0x140126af0\nmov     rdx, rbp                                                       ; +0x1a3, 0x140126af3\nmov     rcx, r14                                                       ; +0x1a6, 0x140126af6\ncall    ColorSelectPopup__init                                         ; +0x1a9, 0x140126af9\ntest    al, al                                                         ; +0x1ae, 0x140126afe\njz      short loc_140126B10                                            ; +0x1b0, 0x140126b00\nmov     rcx, r14                                                       ; +0x1b2, 0x140126b02\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1b5, 0x140126b05\nmov     rax, r14                                                       ; +0x1bb, 0x140126b0b\njmp     short loc_140126B25                                            ; +0x1be, 0x140126b0e\nmov     rcx, [r14]                                                     ; +0x1c0, 0x140126b10\nmov     r8, [rcx+8]                                                    ; +0x1c3, 0x140126b13\nmov     edx, 1                                                         ; +0x1c7, 0x140126b17\nmov     rcx, r14                                                       ; +0x1cc, 0x140126b1c\ncall    r8                                                             ; +0x1cf, 0x140126b1f\nmov     rax, rbx                                                       ; +0x1d2, 0x140126b22\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1d5, 0x140126b25\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x1da, 0x140126b2a\nadd     rsp, 20h                                                       ; +0x1df, 0x140126b2f\npop     r14                                                            ; +0x1e3, 0x140126b33\npop     rdi                                                            ; +0x1e5, 0x140126b35\npop     rsi                                                            ; +0x1e6, 0x140126b36\nretn                                                                   ; +0x1e7, 0x140126b37", "xrefs": ["CustomizeObjectLayer::onEditColor @ 0x1401425a7", "EditorUI::editObject @ 0x1401bce93", "GJColorSetupLayer::onColor @ 0x14035f74b", "LevelSettingsLayer::onShowPicker @ 0x14045abe5", "CreateParticlePopup::onSelectColor @ 0x1405c6f52", "<???> @ 0x140916a00"], "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"}