{"type": "func", "start": 5369908416, "end": 5369908765, "name": "ColorSelectLiveOverlay::create", "pseudocode": "// \n// ColorSelectLiveOverlay::create from 0x140124cc0 to 0x140124e1d (349 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editColor @ 0x1401be1fe\n// > EditorUI::showLiveColorSelectForMode @ 0x1401be34e\n// > <???> @ 0x14091694c\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:57 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall ColorSelectLiveOverlay::create(__int64 a1, __int64 a2, __int64 a3)\n{\n  _QWORD *v6; // r14\n\n  v6 = operator new(0x360u);\n  FLAlertLayer::FLAlertLayer((__int64)v6);\n  *v6 = &ColorSelectLiveOverlay::`vftable';\n  v6[40] = &ColorSelectLiveOverlay::`vftable';\n  v6[41] = &ColorSelectLiveOverlay::`vftable';\n  v6[42] = &ColorSelectLiveOverlay::`vftable';\n  v6[43] = &ColorSelectLiveOverlay::`vftable';\n  v6[44] = &ColorSelectLiveOverlay::`vftable';\n  v6[51] = &ColorSelectLiveOverlay::`vftable';\n  v6[54] = &ColorSelectLiveOverlay::`vftable';\n  v6[68] = &ColorSelectLiveOverlay::`vftable';\n  v6[83] = 0;\n  v6[85] = 0;\n  v6[86] = 0;\n  v6[87] = 0;\n  *(_QWORD *)((char *)v6 + 716) = 0;\n  *((_DWORD *)v6 + 181) = 0;\n  *((_DWORD *)v6 + 182) = 1065353216;\n  v6[92] = 0;\n  *((_WORD *)v6 + 372) = 0;\n  *((_BYTE *)v6 + 746) = 0;\n  v6[97] = 0;\n  v6[102] = 0;\n  *((_WORD *)v6 + 428) = 0;\n  if ( (unsigned __int8)ColorSelectLiveOverlay::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::create from 0x140124cc0 to 0x140124e1d (349 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editColor @ 0x1401be1fe\n; > EditorUI::showLiveColorSelectForMode @ 0x1401be34e\n; > <???> @ 0x14091694c\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:57 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140124cc0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140124cc5\npush    rsi                                                            ; +0xa, 0x140124cca\npush    rdi                                                            ; +0xb, 0x140124ccb\npush    r14                                                            ; +0xc, 0x140124ccc\nsub     rsp, 20h                                                       ; +0xe, 0x140124cce\nmov     rbx, r8                                                        ; +0x12, 0x140124cd2\nmov     rdi, rdx                                                       ; +0x15, 0x140124cd5\nmov     rsi, rcx                                                       ; +0x18, 0x140124cd8\nmov     ecx, 360h; Size                                                ; +0x1b, 0x140124cdb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x140124ce0\nmov     r14, rax                                                       ; +0x25, 0x140124ce5\nmov     [rsp+38h+arg_18], rax                                          ; +0x28, 0x140124ce8\nmov     rcx, rax                                                       ; +0x2d, 0x140124ced\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x30, 0x140124cf0\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@; const ColorSelectLiveOverlay::`vftable' ; +0x35, 0x140124cf5\nmov     [r14], rax                                                     ; +0x3c, 0x140124cfc\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_0; const ColorSelectLiveOverlay::`vftable' ; +0x3f, 0x140124cff\nmov     [r14+140h], rax                                                ; +0x46, 0x140124d06\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_1; const ColorSelectLiveOverlay::`vftable' ; +0x4d, 0x140124d0d\nmov     [r14+148h], rax                                                ; +0x54, 0x140124d14\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_2; const ColorSelectLiveOverlay::`vftable' ; +0x5b, 0x140124d1b\nmov     [r14+150h], rax                                                ; +0x62, 0x140124d22\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_3; const ColorSelectLiveOverlay::`vftable' ; +0x69, 0x140124d29\nmov     [r14+158h], rax                                                ; +0x70, 0x140124d30\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_4; const ColorSelectLiveOverlay::`vftable' ; +0x77, 0x140124d37\nmov     [r14+160h], rax                                                ; +0x7e, 0x140124d3e\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_5; const ColorSelectLiveOverlay::`vftable' ; +0x85, 0x140124d45\nmov     [r14+198h], rax                                                ; +0x8c, 0x140124d4c\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_6; const ColorSelectLiveOverlay::`vftable' ; +0x93, 0x140124d53\nmov     [r14+1B0h], rax                                                ; +0x9a, 0x140124d5a\nlea     rax, ??_7ColorSelectLiveOverlay@@6B@_7; const ColorSelectLiveOverlay::`vftable' ; +0xa1, 0x140124d61\nmov     [r14+220h], rax                                                ; +0xa8, 0x140124d68\nxor     ebp, ebp                                                       ; +0xaf, 0x140124d6f\nmov     [r14+298h], rbp                                                ; +0xb1, 0x140124d71\nmov     [r14+2A8h], rbp                                                ; +0xb8, 0x140124d78\nmov     [r14+2B0h], rbp                                                ; +0xbf, 0x140124d7f\nmov     [r14+2B8h], rbp                                                ; +0xc6, 0x140124d86\nmov     [r14+2CCh], rbp                                                ; +0xcd, 0x140124d8d\nmov     [r14+2D4h], ebp                                                ; +0xd4, 0x140124d94\nmov     dword ptr [r14+2D8h], 3F800000h                                ; +0xdb, 0x140124d9b\nmov     [r14+2E0h], rbp                                                ; +0xe6, 0x140124da6\nmov     [r14+2E8h], bp                                                 ; +0xed, 0x140124dad\nmov     [r14+2EAh], bpl                                                ; +0xf5, 0x140124db5\nmov     [r14+308h], rbp                                                ; +0xfc, 0x140124dbc\nmov     [r14+330h], rbp                                                ; +0x103, 0x140124dc3\nmov     [r14+358h], bp                                                 ; +0x10a, 0x140124dca\nmov     r9, rbx                                                        ; +0x112, 0x140124dd2\nmov     r8, rdi                                                        ; +0x115, 0x140124dd5\nmov     rdx, rsi                                                       ; +0x118, 0x140124dd8\nmov     rcx, r14                                                       ; +0x11b, 0x140124ddb\ncall    ColorSelectLiveOverlay__init                                   ; +0x11e, 0x140124dde\ntest    al, al                                                         ; +0x123, 0x140124de3\njz      short loc_140124DF5                                            ; +0x125, 0x140124de5\nmov     rcx, r14                                                       ; +0x127, 0x140124de7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x12a, 0x140124dea\nmov     rax, r14                                                       ; +0x130, 0x140124df0\njmp     short loc_140124E0A                                            ; +0x133, 0x140124df3\nmov     rcx, [r14]                                                     ; +0x135, 0x140124df5\nmov     r8, [rcx+8]                                                    ; +0x138, 0x140124df8\nmov     edx, 1                                                         ; +0x13c, 0x140124dfc\nmov     rcx, r14                                                       ; +0x141, 0x140124e01\ncall    r8                                                             ; +0x144, 0x140124e04\nmov     rax, rbp                                                       ; +0x147, 0x140124e07\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x14a, 0x140124e0a\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x14f, 0x140124e0f\nadd     rsp, 20h                                                       ; +0x154, 0x140124e14\npop     r14                                                            ; +0x158, 0x140124e18\npop     rdi                                                            ; +0x15a, 0x140124e1a\npop     rsi                                                            ; +0x15b, 0x140124e1b\nretn                                                                   ; +0x15c, 0x140124e1c", "xrefs": ["EditorUI::editColor @ 0x1401be1fe", "EditorUI::showLiveColorSelectForMode @ 0x1401be34e", "<???> @ 0x14091694c"], "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"}