{"type": "func", "start": 5372633936, "end": 5372634222, "name": "GJSpecialColorSelect::create", "pseudocode": "// \n// GJSpecialColorSelect::create from 0x1403be350 to 0x1403be46e (286 bytes)\n// \n// 5 xrefs:\n// > ColorSelectPopup::onSelectSpecialColor @ 0x14012c49e\n// > SetColorIDPopup::onSelectSpecialColor @ 0x1403a655e\n// > SetupPulsePopup::onSelectSpecialColor @ 0x1405d10cf\n// > SetupPulsePopup::onSelectSpecialTargetID @ 0x1405d111f\n// > <???> @ 0x140923f60\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:27 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall GJSpecialColorSelect::create(unsigned int a1, __int64 a2, unsigned int a3)\n{\n  _QWORD *v6; // r14\n\n  v6 = operator new(0x2B0u);\n  FLAlertLayer::FLAlertLayer((__int64)v6);\n  *v6 = &GJSpecialColorSelect::`vftable';\n  v6[40] = &GJSpecialColorSelect::`vftable';\n  v6[41] = &GJSpecialColorSelect::`vftable';\n  v6[42] = &GJSpecialColorSelect::`vftable';\n  v6[43] = &GJSpecialColorSelect::`vftable';\n  v6[44] = &GJSpecialColorSelect::`vftable';\n  v6[51] = &GJSpecialColorSelect::`vftable';\n  v6[54] = &GJSpecialColorSelect::`vftable';\n  v6[68] = &GJSpecialColorSelect::`vftable';\n  v6[83] = 0;\n  *((_DWORD *)v6 + 168) = 0;\n  v6[85] = 0;\n  if ( (unsigned __int8)GJSpecialColorSelect::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; GJSpecialColorSelect::create from 0x1403be350 to 0x1403be46e (286 bytes)\n; \n; 5 xrefs:\n; > ColorSelectPopup::onSelectSpecialColor @ 0x14012c49e\n; > SetColorIDPopup::onSelectSpecialColor @ 0x1403a655e\n; > SetupPulsePopup::onSelectSpecialColor @ 0x1405d10cf\n; > SetupPulsePopup::onSelectSpecialTargetID @ 0x1405d111f\n; > <???> @ 0x140923f60\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:27 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403be350\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1403be355\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1403be35a\npush    r14                                                            ; +0xf, 0x1403be35f\nsub     rsp, 20h                                                       ; +0x11, 0x1403be361\nmov     ebx, r8d                                                       ; +0x15, 0x1403be365\nmov     rdi, rdx                                                       ; +0x18, 0x1403be368\nmov     esi, ecx                                                       ; +0x1b, 0x1403be36b\nmov     ecx, 2B0h; Size                                                ; +0x1d, 0x1403be36d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x1403be372\nmov     r14, rax                                                       ; +0x27, 0x1403be377\nmov     [rsp+28h+arg_18], rax                                          ; +0x2a, 0x1403be37a\nmov     rcx, rax                                                       ; +0x2f, 0x1403be37f\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x32, 0x1403be382\nlea     rax, ??_7GJSpecialColorSelect@@6B@; const GJSpecialColorSelect::`vftable' ; +0x37, 0x1403be387\nmov     [r14], rax                                                     ; +0x3e, 0x1403be38e\nlea     rax, ??_7GJSpecialColorSelect@@6B@_0; const GJSpecialColorSelect::`vftable' ; +0x41, 0x1403be391\nmov     [r14+140h], rax                                                ; +0x48, 0x1403be398\nlea     rax, ??_7GJSpecialColorSelect@@6B@_1; const GJSpecialColorSelect::`vftable' ; +0x4f, 0x1403be39f\nmov     [r14+148h], rax                                                ; +0x56, 0x1403be3a6\nlea     rax, ??_7GJSpecialColorSelect@@6B@_2; const GJSpecialColorSelect::`vftable' ; +0x5d, 0x1403be3ad\nmov     [r14+150h], rax                                                ; +0x64, 0x1403be3b4\nlea     rax, ??_7GJSpecialColorSelect@@6B@_3; const GJSpecialColorSelect::`vftable' ; +0x6b, 0x1403be3bb\nmov     [r14+158h], rax                                                ; +0x72, 0x1403be3c2\nlea     rax, ??_7GJSpecialColorSelect@@6B@_4; const GJSpecialColorSelect::`vftable' ; +0x79, 0x1403be3c9\nmov     [r14+160h], rax                                                ; +0x80, 0x1403be3d0\nlea     rax, ??_7GJSpecialColorSelect@@6B@_5; const GJSpecialColorSelect::`vftable' ; +0x87, 0x1403be3d7\nmov     [r14+198h], rax                                                ; +0x8e, 0x1403be3de\nlea     rax, ??_7GJSpecialColorSelect@@6B@_6; const GJSpecialColorSelect::`vftable' ; +0x95, 0x1403be3e5\nmov     [r14+1B0h], rax                                                ; +0x9c, 0x1403be3ec\nlea     rax, ??_7GJSpecialColorSelect@@6B@_7; const GJSpecialColorSelect::`vftable' ; +0xa3, 0x1403be3f3\nmov     [r14+220h], rax                                                ; +0xaa, 0x1403be3fa\nmov     qword ptr [r14+298h], 0                                        ; +0xb1, 0x1403be401\nmov     dword ptr [r14+2A0h], 0                                        ; +0xbc, 0x1403be40c\nmov     qword ptr [r14+2A8h], 0                                        ; +0xc7, 0x1403be417\nmov     r9d, ebx                                                       ; +0xd2, 0x1403be422\nmov     r8, rdi                                                        ; +0xd5, 0x1403be425\nmov     edx, esi                                                       ; +0xd8, 0x1403be428\nmov     rcx, r14                                                       ; +0xda, 0x1403be42a\ncall    GJSpecialColorSelect__init                                     ; +0xdd, 0x1403be42d\ntest    al, al                                                         ; +0xe2, 0x1403be432\njz      short loc_1403BE444                                            ; +0xe4, 0x1403be434\nmov     rcx, r14                                                       ; +0xe6, 0x1403be436\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe9, 0x1403be439\nmov     rax, r14                                                       ; +0xef, 0x1403be43f\njmp     short loc_1403BE458                                            ; +0xf2, 0x1403be442\nmov     rcx, [r14]                                                     ; +0xf4, 0x1403be444\nmov     r8, [rcx+8]                                                    ; +0xf7, 0x1403be447\nmov     edx, 1                                                         ; +0xfb, 0x1403be44b\nmov     rcx, r14                                                       ; +0x100, 0x1403be450\ncall    r8                                                             ; +0x103, 0x1403be453\nxor     eax, eax                                                       ; +0x106, 0x1403be456\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x108, 0x1403be458\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x10d, 0x1403be45d\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x112, 0x1403be462\nadd     rsp, 20h                                                       ; +0x117, 0x1403be467\npop     r14                                                            ; +0x11b, 0x1403be46b\nretn                                                                   ; +0x11d, 0x1403be46d", "xrefs": ["ColorSelectPopup::onSelectSpecialColor @ 0x14012c49e", "SetColorIDPopup::onSelectSpecialColor @ 0x1403a655e", "SetupPulsePopup::onSelectSpecialColor @ 0x1405d10cf", "SetupPulsePopup::onSelectSpecialTargetID @ 0x1405d111f", "<???> @ 0x140923f60"], "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"}