{"type": "func", "start": 5371998480, "end": 5371998740, "name": "SelectSettingLayer::create", "pseudocode": "// \n// SelectSettingLayer::create from 0x140323110 to 0x140323214 (260 bytes)\n// \n// 4 xrefs:\n// > LevelSettingsLayer::onSpeed @ 0x1403210cb\n// > LevelSettingsLayer::onMode @ 0x140321127\n// > SetupAudioLineGuidePopup::onSpeed @ 0x1404706e0\n// > <???> @ 0x1406d4d30\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\nSelectSettingLayer *SelectSettingLayer::create(SelectSettingType a1, int a2)\n{\n  SelectSettingLayer *v4; // rsi\n\n  v4 = (SelectSettingLayer *)operator new(0x290u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectSettingLayer_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectSettingLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectSettingLayer::`vftable';\n  v4->m_settingSprites = nullptr;\n  v4->m_settingID = 0;\n  v4->m_delegate = nullptr;\n  if ( SelectSettingLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(SelectSettingLayer *, __int64))v4->~SelectSettingLayer)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SelectSettingLayer::create from 0x140323110 to 0x140323214 (260 bytes)\n; \n; 4 xrefs:\n; > LevelSettingsLayer::onSpeed @ 0x1403210cb\n; > LevelSettingsLayer::onMode @ 0x140321127\n; > SetupAudioLineGuidePopup::onSpeed @ 0x1404706e0\n; > <???> @ 0x1406d4d30\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, 0x140323110\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140323115\npush    rdi                                                            ; +0xa, 0x14032311a\nsub     rsp, 20h                                                       ; +0xb, 0x14032311b\nmov     ebx, edx                                                       ; +0xf, 0x14032311f\nmov     edi, ecx                                                       ; +0x11, 0x140323121\nmov     ecx, 290h; Size                                                ; +0x13, 0x140323123\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x140323128\nmov     rsi, rax                                                       ; +0x1d, 0x14032312d\nmov     [rsp+28h+arg_10], rax                                          ; +0x20, 0x140323130\nmov     rcx, rax                                                       ; +0x25, 0x140323135\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x28, 0x140323138\nlea     rax, ??_7SelectSettingLayer@@6B@; const SelectSettingLayer::`vftable' ; +0x2d, 0x14032313d\nmov     [rsi], rax                                                     ; +0x34, 0x140323144\nlea     rax, ??_7SelectSettingLayer@@6B@_0; const SelectSettingLayer::`vftable' ; +0x37, 0x140323147\nmov     [rsi+140h], rax                                                ; +0x3e, 0x14032314e\nlea     rax, ??_7SelectSettingLayer@@6B@_1; const SelectSettingLayer::`vftable' ; +0x45, 0x140323155\nmov     [rsi+148h], rax                                                ; +0x4c, 0x14032315c\nlea     rax, ??_7SelectSettingLayer@@6B@_2; const SelectSettingLayer::`vftable' ; +0x53, 0x140323163\nmov     [rsi+150h], rax                                                ; +0x5a, 0x14032316a\nlea     rax, ??_7SelectSettingLayer@@6B@_3; const SelectSettingLayer::`vftable' ; +0x61, 0x140323171\nmov     [rsi+158h], rax                                                ; +0x68, 0x140323178\nlea     rax, ??_7SelectSettingLayer@@6B@_4; const SelectSettingLayer::`vftable' ; +0x6f, 0x14032317f\nmov     [rsi+160h], rax                                                ; +0x76, 0x140323186\nlea     rax, ??_7SelectSettingLayer@@6B@_5; const SelectSettingLayer::`vftable' ; +0x7d, 0x14032318d\nmov     [rsi+198h], rax                                                ; +0x84, 0x140323194\nlea     rax, ??_7SelectSettingLayer@@6B@_6; const SelectSettingLayer::`vftable' ; +0x8b, 0x14032319b\nmov     [rsi+1B0h], rax                                                ; +0x92, 0x1403231a2\nmov     qword ptr [rsi+278h], 0                                        ; +0x99, 0x1403231a9\nmov     dword ptr [rsi+280h], 0                                        ; +0xa4, 0x1403231b4\nmov     qword ptr [rsi+288h], 0                                        ; +0xae, 0x1403231be\nmov     r8d, ebx                                                       ; +0xb9, 0x1403231c9\nmov     edx, edi                                                       ; +0xbc, 0x1403231cc\nmov     rcx, rsi                                                       ; +0xbe, 0x1403231ce\ncall    SelectSettingLayer__init                                       ; +0xc1, 0x1403231d1\nmov     rcx, rsi                                                       ; +0xc6, 0x1403231d6\ntest    al, al                                                         ; +0xc9, 0x1403231d9\njz      short loc_1403231F6                                            ; +0xcb, 0x1403231db\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xcd, 0x1403231dd\nmov     rax, rsi                                                       ; +0xd3, 0x1403231e3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd6, 0x1403231e6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xdb, 0x1403231eb\nadd     rsp, 20h                                                       ; +0xe0, 0x1403231f0\npop     rdi                                                            ; +0xe4, 0x1403231f4\nretn                                                                   ; +0xe5, 0x1403231f5\nmov     r8, [rsi]                                                      ; +0xe6, 0x1403231f6\nmov     edx, 1                                                         ; +0xe9, 0x1403231f9\ncall    qword ptr [r8+8]                                               ; +0xee, 0x1403231fe\nxor     eax, eax                                                       ; +0xf2, 0x140323202\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf4, 0x140323204\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf9, 0x140323209\nadd     rsp, 20h                                                       ; +0xfe, 0x14032320e\npop     rdi                                                            ; +0x102, 0x140323212\nretn                                                                   ; +0x103, 0x140323213", "xrefs": ["LevelSettingsLayer::onSpeed @ 0x1403210cb", "LevelSettingsLayer::onMode @ 0x140321127", "SetupAudioLineGuidePopup::onSpeed @ 0x1404706e0", "<???> @ 0x1406d4d30"], "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"}