{"type": "func", "start": 5371158352, "end": 5371158661, "name": "GJColorSetupLayer::create", "pseudocode": "// \n// GJColorSetupLayer::create from 0x140255f50 to 0x140256085 (309 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onBrowse @ 0x1400a8362\n// > LevelSettingsLayer::onCol @ 0x1403219eb\n// > <???> @ 0x1406cf948\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\nGJColorSetupLayer *GJColorSetupLayer::create(LevelSettingsObject *a1)\n{\n  GJColorSetupLayer *v2; // rdi\n\n  v2 = (GJColorSetupLayer *)operator new(0x2E8u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJColorSetupLayer_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJColorSetupLayer::`vftable';\n  v2->m_settingsObject = nullptr;\n  v2->m_unk290 = nullptr;\n  v2->m_unk298 = nullptr;\n  v2->m_page = 0;\n  v2->m_totalPages = 0;\n  v2->m_closeOnSelect = 0;\n  v2->m_delegate = nullptr;\n  v2->m_colorID = 0;\n  if ( GJColorSetupLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJColorSetupLayer *, __int64))v2->~GJColorSetupLayer)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJColorSetupLayer::create from 0x140255f50 to 0x140256085 (309 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onBrowse @ 0x1400a8362\n; > LevelSettingsLayer::onCol @ 0x1403219eb\n; > <???> @ 0x1406cf948\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, 0x140255f50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140255f55\npush    rdi                                                            ; +0xa, 0x140255f5a\nsub     rsp, 20h                                                       ; +0xb, 0x140255f5b\nmov     rbx, rcx                                                       ; +0xf, 0x140255f5f\nmov     ecx, 2E8h; Size                                                ; +0x12, 0x140255f62\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140255f67\nmov     rdi, rax                                                       ; +0x1c, 0x140255f6c\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x140255f6f\nmov     rcx, rax                                                       ; +0x24, 0x140255f74\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x140255f77\nlea     rax, ??_7GJColorSetupLayer@@6B@; const GJColorSetupLayer::`vftable' ; +0x2c, 0x140255f7c\nmov     [rdi], rax                                                     ; +0x33, 0x140255f83\nlea     rax, ??_7GJColorSetupLayer@@6B@_0; const GJColorSetupLayer::`vftable' ; +0x36, 0x140255f86\nmov     [rdi+140h], rax                                                ; +0x3d, 0x140255f8d\nlea     rax, ??_7GJColorSetupLayer@@6B@_1; const GJColorSetupLayer::`vftable' ; +0x44, 0x140255f94\nmov     [rdi+148h], rax                                                ; +0x4b, 0x140255f9b\nlea     rax, ??_7GJColorSetupLayer@@6B@_2; const GJColorSetupLayer::`vftable' ; +0x52, 0x140255fa2\nmov     [rdi+150h], rax                                                ; +0x59, 0x140255fa9\nlea     rax, ??_7GJColorSetupLayer@@6B@_3; const GJColorSetupLayer::`vftable' ; +0x60, 0x140255fb0\nmov     [rdi+158h], rax                                                ; +0x67, 0x140255fb7\nlea     rax, ??_7GJColorSetupLayer@@6B@_4; const GJColorSetupLayer::`vftable' ; +0x6e, 0x140255fbe\nmov     [rdi+160h], rax                                                ; +0x75, 0x140255fc5\nlea     rax, ??_7GJColorSetupLayer@@6B@_5; const GJColorSetupLayer::`vftable' ; +0x7c, 0x140255fcc\nmov     [rdi+198h], rax                                                ; +0x83, 0x140255fd3\nlea     rax, ??_7GJColorSetupLayer@@6B@_6; const GJColorSetupLayer::`vftable' ; +0x8a, 0x140255fda\nmov     [rdi+1B0h], rax                                                ; +0x91, 0x140255fe1\nlea     rax, ??_7GJColorSetupLayer@@6B@_7; const GJColorSetupLayer::`vftable' ; +0x98, 0x140255fe8\nmov     [rdi+278h], rax                                                ; +0x9f, 0x140255fef\nlea     rax, ??_7GJColorSetupLayer@@6B@_8; const GJColorSetupLayer::`vftable' ; +0xa6, 0x140255ff6\nmov     [rdi+280h], rax                                                ; +0xad, 0x140255ffd\nxor     esi, esi                                                       ; +0xb4, 0x140256004\nmov     [rdi+288h], rsi                                                ; +0xb6, 0x140256006\nmov     [rdi+290h], rsi                                                ; +0xbd, 0x14025600d\nmov     [rdi+298h], rsi                                                ; +0xc4, 0x140256014\nmov     [rdi+2B0h], esi                                                ; +0xcb, 0x14025601b\nmov     [rdi+2B8h], esi                                                ; +0xd1, 0x140256021\nmov     [rdi+2D0h], sil                                                ; +0xd7, 0x140256027\nmov     [rdi+2D8h], rsi                                                ; +0xde, 0x14025602e\nmov     [rdi+2E0h], esi                                                ; +0xe5, 0x140256035\nmov     rdx, rbx                                                       ; +0xeb, 0x14025603b\nmov     rcx, rdi                                                       ; +0xee, 0x14025603e\ncall    GJColorSetupLayer__init                                        ; +0xf1, 0x140256041\nmov     rcx, rdi                                                       ; +0xf6, 0x140256046\ntest    al, al                                                         ; +0xf9, 0x140256049\njz      short loc_140256066                                            ; +0xfb, 0x14025604b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfd, 0x14025604d\nmov     rax, rdi                                                       ; +0x103, 0x140256053\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x106, 0x140256056\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x10b, 0x14025605b\nadd     rsp, 20h                                                       ; +0x110, 0x140256060\npop     rdi                                                            ; +0x114, 0x140256064\nretn                                                                   ; +0x115, 0x140256065\nmov     r8, [rdi]                                                      ; +0x116, 0x140256066\nmov     edx, 1                                                         ; +0x119, 0x140256069\ncall    qword ptr [r8+8]                                               ; +0x11e, 0x14025606e\nmov     rax, rsi                                                       ; +0x122, 0x140256072\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x125, 0x140256075\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12a, 0x14025607a\nadd     rsp, 20h                                                       ; +0x12f, 0x14025607f\npop     rdi                                                            ; +0x133, 0x140256083\nretn                                                                   ; +0x134, 0x140256084", "xrefs": ["CustomizeObjectLayer::onBrowse @ 0x1400a8362", "LevelSettingsLayer::onCol @ 0x1403219eb", "<???> @ 0x1406cf948"], "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"}