{"type": "func", "start": 5371464320, "end": 5371464664, "name": "GameLevelOptionsLayer::create", "pseudocode": "// \n// GameLevelOptionsLayer::create from 0x1402a0a80 to 0x1402a0bd8 (344 bytes)\n// \n// 3 xrefs:\n// > EditLevelLayer::onLevelOptions @ 0x1400d6a0b\n// > LevelInfoLayer::onLevelOptions @ 0x1402fee87\n// > <???> @ 0x1406d1f70\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\nGameLevelOptionsLayer *GameLevelOptionsLayer::create(GJGameLevel *a1)\n{\n  GameLevelOptionsLayer *v2; // rbx\n\n  v2 = (GameLevelOptionsLayer *)operator new(0x3F8u);\n  GJOptionsLayer::GJOptionsLayer(v2);\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GameLevelOptionsLayer_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->GJOptionsLayer::SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&GameLevelOptionsLayer::`vftable';\n  v2->m_level = nullptr;\n  v2->m_gap = 40.0;\n  v2->m_maxLabelScale = 0.40000001;\n  if ( a1 )\n  {\n    v2->m_level = a1;\n    cocos2d::CCObject::retain(a1);\n  }\n  if ( GJOptionsLayer::init(v2, 2) )\n  {\n    v2->m_disableTextDelegate = 1;\n    v2->determineStartValues(v2);\n    v2->updateDefaultTriggerValues(v2);\n    v2->m_disableTextDelegate = 0;\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(GameLevelOptionsLayer *, __int64))v2->~GameLevelOptionsLayer)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GameLevelOptionsLayer::create from 0x1402a0a80 to 0x1402a0bd8 (344 bytes)\n; \n; 3 xrefs:\n; > EditLevelLayer::onLevelOptions @ 0x1400d6a0b\n; > LevelInfoLayer::onLevelOptions @ 0x1402fee87\n; > <???> @ 0x1406d1f70\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, 0x1402a0a80\npush    rdi                                                            ; +0x5, 0x1402a0a85\nsub     rsp, 20h                                                       ; +0x6, 0x1402a0a86\nmov     rdi, rcx                                                       ; +0xa, 0x1402a0a8a\nmov     ecx, 3F8h; Size                                                ; +0xd, 0x1402a0a8d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x1402a0a92\nmov     rbx, rax                                                       ; +0x17, 0x1402a0a97\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x1402a0a9a\nmov     rcx, rax                                                       ; +0x1f, 0x1402a0a9f\ncall    GJOptionsLayer__GJOptionsLayer                                 ; +0x22, 0x1402a0aa2\nlea     rax, ??_7GameLevelOptionsLayer@@6B@; const GameLevelOptionsLayer::`vftable' ; +0x27, 0x1402a0aa7\nmov     [rbx], rax                                                     ; +0x2e, 0x1402a0aae\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_0; const GameLevelOptionsLayer::`vftable' ; +0x31, 0x1402a0ab1\nmov     [rbx+140h], rax                                                ; +0x38, 0x1402a0ab8\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_1; const GameLevelOptionsLayer::`vftable' ; +0x3f, 0x1402a0abf\nmov     [rbx+148h], rax                                                ; +0x46, 0x1402a0ac6\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_2; const GameLevelOptionsLayer::`vftable' ; +0x4d, 0x1402a0acd\nmov     [rbx+150h], rax                                                ; +0x54, 0x1402a0ad4\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_3; const GameLevelOptionsLayer::`vftable' ; +0x5b, 0x1402a0adb\nmov     [rbx+158h], rax                                                ; +0x62, 0x1402a0ae2\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_4; const GameLevelOptionsLayer::`vftable' ; +0x69, 0x1402a0ae9\nmov     [rbx+160h], rax                                                ; +0x70, 0x1402a0af0\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_5; const GameLevelOptionsLayer::`vftable' ; +0x77, 0x1402a0af7\nmov     [rbx+198h], rax                                                ; +0x7e, 0x1402a0afe\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_6; const GameLevelOptionsLayer::`vftable' ; +0x85, 0x1402a0b05\nmov     [rbx+1B0h], rax                                                ; +0x8c, 0x1402a0b0c\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_7; const GameLevelOptionsLayer::`vftable' ; +0x93, 0x1402a0b13\nmov     [rbx+278h], rax                                                ; +0x9a, 0x1402a0b1a\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_8; const GameLevelOptionsLayer::`vftable' ; +0xa1, 0x1402a0b21\nmov     [rbx+280h], rax                                                ; +0xa8, 0x1402a0b28\nlea     rax, ??_7GameLevelOptionsLayer@@6B@_9; const GameLevelOptionsLayer::`vftable' ; +0xaf, 0x1402a0b2f\nmov     [rbx+288h], rax                                                ; +0xb6, 0x1402a0b36\nmov     qword ptr [rbx+3F0h], 0                                        ; +0xbd, 0x1402a0b3d\nmov     dword ptr [rbx+3A8h], 42200000h                                ; +0xc8, 0x1402a0b48\nmov     dword ptr [rbx+3BCh], 3ECCCCCDh                                ; +0xd2, 0x1402a0b52\ntest    rdi, rdi                                                       ; +0xdc, 0x1402a0b5c\njz      short loc_1402A0B71                                            ; +0xdf, 0x1402a0b5f\nmov     [rbx+3F0h], rdi                                                ; +0xe1, 0x1402a0b61\nmov     rcx, rdi                                                       ; +0xe8, 0x1402a0b68\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xeb, 0x1402a0b6b\nmov     edx, 2                                                         ; +0xf1, 0x1402a0b71\nmov     rcx, rbx                                                       ; +0xf6, 0x1402a0b76\ncall    GJOptionsLayer__init                                           ; +0xf9, 0x1402a0b79\nmov     rcx, rbx                                                       ; +0xfe, 0x1402a0b7e\ntest    al, al                                                         ; +0x101, 0x1402a0b81\njz      short loc_1402A0BBF                                            ; +0x103, 0x1402a0b83\nmov     byte ptr [rbx+2CCh], 1                                         ; +0x105, 0x1402a0b85\nmov     rdx, [rbx]                                                     ; +0x10c, 0x1402a0b8c\ncall    qword ptr [rdx+428h]                                           ; +0x10f, 0x1402a0b8f\nmov     rdx, [rbx]                                                     ; +0x115, 0x1402a0b95\nmov     rcx, rbx                                                       ; +0x118, 0x1402a0b98\ncall    qword ptr [rdx+450h]                                           ; +0x11b, 0x1402a0b9b\nmov     byte ptr [rbx+2CCh], 0                                         ; +0x121, 0x1402a0ba1\nmov     rcx, rbx                                                       ; +0x128, 0x1402a0ba8\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x12b, 0x1402a0bab\nmov     rax, rbx                                                       ; +0x131, 0x1402a0bb1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x134, 0x1402a0bb4\nadd     rsp, 20h                                                       ; +0x139, 0x1402a0bb9\npop     rdi                                                            ; +0x13d, 0x1402a0bbd\nretn                                                                   ; +0x13e, 0x1402a0bbe\nmov     r8, [rbx]                                                      ; +0x13f, 0x1402a0bbf\nmov     edx, 1                                                         ; +0x142, 0x1402a0bc2\ncall    qword ptr [r8+8]                                               ; +0x147, 0x1402a0bc7\nxor     eax, eax                                                       ; +0x14b, 0x1402a0bcb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x14d, 0x1402a0bcd\nadd     rsp, 20h                                                       ; +0x152, 0x1402a0bd2\npop     rdi                                                            ; +0x156, 0x1402a0bd6\nretn                                                                   ; +0x157, 0x1402a0bd7", "xrefs": ["EditLevelLayer::onLevelOptions @ 0x1400d6a0b", "LevelInfoLayer::onLevelOptions @ 0x1402fee87", "<???> @ 0x1406d1f70"], "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"}