{"type": "func", "start": 5371993360, "end": 5371993635, "name": "LevelSettingsLayer::onSelectFont", "pseudocode": "// \n// LevelSettingsLayer::onSelectFont from 0x140321d10 to 0x140321e23 (275 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x14031ff84\n// > <???> @ 0x1406d4cb8\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\nvoid LevelSettingsLayer::onSelectFont(LevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  LevelEditorLayer *m_editorLayer; // rbx\n  SelectFontLayer *v3; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  m_editorLayer = a1->m_editorLayer;\n  v3 = (SelectFontLayer *)operator new(0x290u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectFontLayer_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectFontLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectFontLayer::`vftable';\n  v3->m_font = -1;\n  v3->m_editorLayer = nullptr;\n  v3->m_fontLabel = nullptr;\n  if ( SelectFontLayer::init(v3, m_editorLayer) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(SelectFontLayer *, __int64))v3->~SelectFontLayer)(v3, 1);\n    v3 = nullptr;\n  }\n  show = (void (*)(FLAlertLayer *))v3->show;\n  if ( show == FLAlertLayer::show )\n    FLAlertLayer::show(v3);\n  else\n    show(v3);\n}", "assembly": "; \n; LevelSettingsLayer::onSelectFont from 0x140321d10 to 0x140321e23 (275 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x14031ff84\n; > <???> @ 0x1406d4cb8\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_8], rbx                                               ; +0x0, 0x140321d10\npush    rdi                                                            ; +0x5, 0x140321d15\nsub     rsp, 20h                                                       ; +0x6, 0x140321d16\nmov     rbx, [rcx+340h]                                                ; +0xa, 0x140321d1a\nmov     ecx, 290h; Size                                                ; +0x11, 0x140321d21\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x140321d26\nmov     rdi, rax                                                       ; +0x1b, 0x140321d2b\nmov     [rsp+28h+arg_0], rax                                           ; +0x1e, 0x140321d2e\nmov     rcx, rax                                                       ; +0x23, 0x140321d33\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x26, 0x140321d36\nlea     rax, ??_7SelectFontLayer@@6B@; const SelectFontLayer::`vftable' ; +0x2b, 0x140321d3b\nmov     [rdi], rax                                                     ; +0x32, 0x140321d42\nlea     rax, ??_7SelectFontLayer@@6B@_0; const SelectFontLayer::`vftable' ; +0x35, 0x140321d45\nmov     [rdi+140h], rax                                                ; +0x3c, 0x140321d4c\nlea     rax, ??_7SelectFontLayer@@6B@_1; const SelectFontLayer::`vftable' ; +0x43, 0x140321d53\nmov     [rdi+148h], rax                                                ; +0x4a, 0x140321d5a\nlea     rax, ??_7SelectFontLayer@@6B@_2; const SelectFontLayer::`vftable' ; +0x51, 0x140321d61\nmov     [rdi+150h], rax                                                ; +0x58, 0x140321d68\nlea     rax, ??_7SelectFontLayer@@6B@_3; const SelectFontLayer::`vftable' ; +0x5f, 0x140321d6f\nmov     [rdi+158h], rax                                                ; +0x66, 0x140321d76\nlea     rax, ??_7SelectFontLayer@@6B@_4; const SelectFontLayer::`vftable' ; +0x6d, 0x140321d7d\nmov     [rdi+160h], rax                                                ; +0x74, 0x140321d84\nlea     rax, ??_7SelectFontLayer@@6B@_5; const SelectFontLayer::`vftable' ; +0x7b, 0x140321d8b\nmov     [rdi+198h], rax                                                ; +0x82, 0x140321d92\nlea     rax, ??_7SelectFontLayer@@6B@_6; const SelectFontLayer::`vftable' ; +0x89, 0x140321d99\nmov     [rdi+1B0h], rax                                                ; +0x90, 0x140321da0\nmov     dword ptr [rdi+278h], 0FFFFFFFFh                               ; +0x97, 0x140321da7\nmov     qword ptr [rdi+280h], 0                                        ; +0xa1, 0x140321db1\nmov     qword ptr [rdi+288h], 0                                        ; +0xac, 0x140321dbc\nmov     rdx, rbx                                                       ; +0xb7, 0x140321dc7\nmov     rcx, rdi                                                       ; +0xba, 0x140321dca\ncall    SelectFontLayer__init                                          ; +0xbd, 0x140321dcd\nmov     rcx, rdi                                                       ; +0xc2, 0x140321dd2\ntest    al, al                                                         ; +0xc5, 0x140321dd5\njz      short loc_140321DE1                                            ; +0xc7, 0x140321dd7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc9, 0x140321dd9\njmp     short loc_140321DEE                                            ; +0xcf, 0x140321ddf\nmov     rax, [rdi]                                                     ; +0xd1, 0x140321de1\nmov     edx, 1                                                         ; +0xd4, 0x140321de4\ncall    qword ptr [rax+8]                                              ; +0xd9, 0x140321de9\nxor     edi, edi                                                       ; +0xdc, 0x140321dec\nmov     rax, [rdi]                                                     ; +0xde, 0x140321dee\nmov     rdx, [rax+410h]                                                ; +0xe1, 0x140321df1\nlea     rax, FLAlertLayer__show                                        ; +0xe8, 0x140321df8\nmov     rcx, rdi                                                       ; +0xef, 0x140321dff\ncmp     rdx, rax                                                       ; +0xf2, 0x140321e02\njnz     short loc_140321E16                                            ; +0xf5, 0x140321e05\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf7, 0x140321e07\nadd     rsp, 20h                                                       ; +0xfc, 0x140321e0c\npop     rdi                                                            ; +0x100, 0x140321e10\njmp     FLAlertLayer__show                                             ; +0x101, 0x140321e11\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x106, 0x140321e16\nadd     rsp, 20h                                                       ; +0x10b, 0x140321e1b\npop     rdi                                                            ; +0x10f, 0x140321e1f\njmp     rdx                                                            ; +0x110, 0x140321e20", "xrefs": ["LevelSettingsLayer::init @ 0x14031ff84", "<???> @ 0x1406d4cb8"], "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"}