{"type": "func", "start": 5371559216, "end": 5371559482, "name": "GJSpecialColorSelect::create", "pseudocode": "// \n// GJSpecialColorSelect::create from 0x1402b7d30 to 0x1402b7e3a (266 bytes)\n// \n// 5 xrefs:\n// > ColorSelectPopup::onSelectSpecialColor @ 0x14009357c\n// > SetColorIDPopup::onSelectSpecialColor @ 0x14029c30c\n// > SetupPulsePopup::onSelectSpecialColor @ 0x14043b96f\n// > SetupPulsePopup::onSelectSpecialTargetID @ 0x14043b9bf\n// > <???> @ 0x1406d25ac\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\nGJSpecialColorSelect *GJSpecialColorSelect::create(int a1, GJSpecialColorSelectDelegate *a2, ColorSelectType a3)\n{\n  GJSpecialColorSelect *v6; // r14\n\n  v6 = (GJSpecialColorSelect *)operator new(0x290u);\n  FLAlertLayer::FLAlertLayer(v6);\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJSpecialColorSelect_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJSpecialColorSelect::`vftable';\n  v6->m_delegate = nullptr;\n  v6->m_colorID = 0;\n  v6->m_buttonSprites = nullptr;\n  if ( GJSpecialColorSelect::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJSpecialColorSelect *, __int64))v6->~GJSpecialColorSelect)(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJSpecialColorSelect::create from 0x1402b7d30 to 0x1402b7e3a (266 bytes)\n; \n; 5 xrefs:\n; > ColorSelectPopup::onSelectSpecialColor @ 0x14009357c\n; > SetColorIDPopup::onSelectSpecialColor @ 0x14029c30c\n; > SetupPulsePopup::onSelectSpecialColor @ 0x14043b96f\n; > SetupPulsePopup::onSelectSpecialTargetID @ 0x14043b9bf\n; > <???> @ 0x1406d25ac\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, 0x1402b7d30\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1402b7d35\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1402b7d3a\npush    r14                                                            ; +0xf, 0x1402b7d3f\nsub     rsp, 20h                                                       ; +0x11, 0x1402b7d41\nmov     ebx, r8d                                                       ; +0x15, 0x1402b7d45\nmov     rdi, rdx                                                       ; +0x18, 0x1402b7d48\nmov     esi, ecx                                                       ; +0x1b, 0x1402b7d4b\nmov     ecx, 290h; Size                                                ; +0x1d, 0x1402b7d4d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x1402b7d52\nmov     r14, rax                                                       ; +0x27, 0x1402b7d57\nmov     [rsp+28h+arg_18], rax                                          ; +0x2a, 0x1402b7d5a\nmov     rcx, rax                                                       ; +0x2f, 0x1402b7d5f\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x32, 0x1402b7d62\nlea     rax, ??_7GJSpecialColorSelect@@6B@; const GJSpecialColorSelect::`vftable' ; +0x37, 0x1402b7d67\nmov     [r14], rax                                                     ; +0x3e, 0x1402b7d6e\nlea     rax, ??_7GJSpecialColorSelect@@6B@_0; const GJSpecialColorSelect::`vftable' ; +0x41, 0x1402b7d71\nmov     [r14+140h], rax                                                ; +0x48, 0x1402b7d78\nlea     rax, ??_7GJSpecialColorSelect@@6B@_1; const GJSpecialColorSelect::`vftable' ; +0x4f, 0x1402b7d7f\nmov     [r14+148h], rax                                                ; +0x56, 0x1402b7d86\nlea     rax, ??_7GJSpecialColorSelect@@6B@_2; const GJSpecialColorSelect::`vftable' ; +0x5d, 0x1402b7d8d\nmov     [r14+150h], rax                                                ; +0x64, 0x1402b7d94\nlea     rax, ??_7GJSpecialColorSelect@@6B@_3; const GJSpecialColorSelect::`vftable' ; +0x6b, 0x1402b7d9b\nmov     [r14+158h], rax                                                ; +0x72, 0x1402b7da2\nlea     rax, ??_7GJSpecialColorSelect@@6B@_4; const GJSpecialColorSelect::`vftable' ; +0x79, 0x1402b7da9\nmov     [r14+160h], rax                                                ; +0x80, 0x1402b7db0\nlea     rax, ??_7GJSpecialColorSelect@@6B@_5; const GJSpecialColorSelect::`vftable' ; +0x87, 0x1402b7db7\nmov     [r14+198h], rax                                                ; +0x8e, 0x1402b7dbe\nlea     rax, ??_7GJSpecialColorSelect@@6B@_6; const GJSpecialColorSelect::`vftable' ; +0x95, 0x1402b7dc5\nmov     [r14+1B0h], rax                                                ; +0x9c, 0x1402b7dcc\nmov     qword ptr [r14+278h], 0                                        ; +0xa3, 0x1402b7dd3\nmov     dword ptr [r14+280h], 0                                        ; +0xae, 0x1402b7dde\nmov     qword ptr [r14+288h], 0                                        ; +0xb9, 0x1402b7de9\nmov     r9d, ebx                                                       ; +0xc4, 0x1402b7df4\nmov     r8, rdi                                                        ; +0xc7, 0x1402b7df7\nmov     edx, esi                                                       ; +0xca, 0x1402b7dfa\nmov     rcx, r14                                                       ; +0xcc, 0x1402b7dfc\ncall    GJSpecialColorSelect__init                                     ; +0xcf, 0x1402b7dff\nmov     rcx, r14                                                       ; +0xd4, 0x1402b7e04\ntest    al, al                                                         ; +0xd7, 0x1402b7e07\njz      short loc_1402B7E16                                            ; +0xd9, 0x1402b7e09\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xdb, 0x1402b7e0b\nmov     rax, r14                                                       ; +0xe1, 0x1402b7e11\njmp     short loc_1402B7E24                                            ; +0xe4, 0x1402b7e14\nmov     r8, [r14]                                                      ; +0xe6, 0x1402b7e16\nmov     edx, 1                                                         ; +0xe9, 0x1402b7e19\ncall    qword ptr [r8+8]                                               ; +0xee, 0x1402b7e1e\nxor     eax, eax                                                       ; +0xf2, 0x1402b7e22\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf4, 0x1402b7e24\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf9, 0x1402b7e29\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xfe, 0x1402b7e2e\nadd     rsp, 20h                                                       ; +0x103, 0x1402b7e33\npop     r14                                                            ; +0x107, 0x1402b7e37\nretn                                                                   ; +0x109, 0x1402b7e39", "xrefs": ["ColorSelectPopup::onSelectSpecialColor @ 0x14009357c", "SetColorIDPopup::onSelectSpecialColor @ 0x14029c30c", "SetupPulsePopup::onSelectSpecialColor @ 0x14043b96f", "SetupPulsePopup::onSelectSpecialTargetID @ 0x14043b9bf", "<???> @ 0x1406d25ac"], "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"}