{"type": "func", "start": 5373275984, "end": 5373276264, "name": "LevelSettingsLayer::onSelectFont", "pseudocode": "// \n// LevelSettingsLayer::onSelectFont from 0x14045af50 to 0x14045b068 (280 bytes)\n// \n// 2 xrefs:\n// > LevelSettingsLayer::init @ 0x140459188\n// > <???> @ 0x140927cbc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:31 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall LevelSettingsLayer::onSelectFont(__int64 a1)\n{\n  __int64 v1; // rbx\n  _QWORD *v2; // rdi\n\n  v1 = *(_QWORD *)(a1 + 856);\n  v2 = operator new(0x2B8u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *v2 = &SelectFontLayer2::`vftable';\n  v2[40] = &SelectFontLayer2::`vftable';\n  v2[41] = &SelectFontLayer2::`vftable';\n  v2[42] = &SelectFontLayer2::`vftable';\n  v2[43] = &SelectFontLayer2::`vftable';\n  v2[44] = &SelectFontLayer2::`vftable';\n  v2[51] = &SelectFontLayer2::`vftable';\n  v2[54] = &SelectFontLayer2::`vftable';\n  v2[68] = &SelectFontLayer2::`vftable';\n  v2[83] = &SelectFontLayer2::`vftable';\n  v2[84] = 0;\n  v2[85] = 0;\n  *((_BYTE *)v2 + 688) = 0;\n  *((_DWORD *)v2 + 173) = 0;\n  if ( (unsigned __int8)SelectFontLayer2::init(v2, v1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v2 + 1064LL))(v2);\n}", "assembly": "; \n; LevelSettingsLayer::onSelectFont from 0x14045af50 to 0x14045b068 (280 bytes)\n; \n; 2 xrefs:\n; > LevelSettingsLayer::init @ 0x140459188\n; > <???> @ 0x140927cbc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:31 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14045af50\npush    rdi                                                            ; +0x5, 0x14045af55\nsub     rsp, 20h                                                       ; +0x6, 0x14045af56\nmov     rbx, [rcx+358h]                                                ; +0xa, 0x14045af5a\nmov     ecx, 2B8h; Size                                                ; +0x11, 0x14045af61\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x14045af66\nmov     rdi, rax                                                       ; +0x1b, 0x14045af6b\nmov     [rsp+28h+arg_0], rax                                           ; +0x1e, 0x14045af6e\nmov     rcx, rax                                                       ; +0x23, 0x14045af73\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x26, 0x14045af76\nlea     rax, ??_7SelectFontLayer2@@6B@; const SelectFontLayer2::`vftable' ; +0x2b, 0x14045af7b\nmov     [rdi], rax                                                     ; +0x32, 0x14045af82\nlea     rax, ??_7SelectFontLayer2@@6B@_0; const SelectFontLayer2::`vftable' ; +0x35, 0x14045af85\nmov     [rdi+140h], rax                                                ; +0x3c, 0x14045af8c\nlea     rax, ??_7SelectFontLayer2@@6B@_1; const SelectFontLayer2::`vftable' ; +0x43, 0x14045af93\nmov     [rdi+148h], rax                                                ; +0x4a, 0x14045af9a\nlea     rax, ??_7SelectFontLayer2@@6B@_2; const SelectFontLayer2::`vftable' ; +0x51, 0x14045afa1\nmov     [rdi+150h], rax                                                ; +0x58, 0x14045afa8\nlea     rax, ??_7SelectFontLayer2@@6B@_3; const SelectFontLayer2::`vftable' ; +0x5f, 0x14045afaf\nmov     [rdi+158h], rax                                                ; +0x66, 0x14045afb6\nlea     rax, ??_7SelectFontLayer2@@6B@_4; const SelectFontLayer2::`vftable' ; +0x6d, 0x14045afbd\nmov     [rdi+160h], rax                                                ; +0x74, 0x14045afc4\nlea     rax, ??_7SelectFontLayer2@@6B@_5; const SelectFontLayer2::`vftable' ; +0x7b, 0x14045afcb\nmov     [rdi+198h], rax                                                ; +0x82, 0x14045afd2\nlea     rax, ??_7SelectFontLayer2@@6B@_6; const SelectFontLayer2::`vftable' ; +0x89, 0x14045afd9\nmov     [rdi+1B0h], rax                                                ; +0x90, 0x14045afe0\nlea     rax, ??_7SelectFontLayer2@@6B@_7; const SelectFontLayer2::`vftable' ; +0x97, 0x14045afe7\nmov     [rdi+220h], rax                                                ; +0x9e, 0x14045afee\nlea     rax, ??_7SelectFontLayer2@@6B@_8; const SelectFontLayer2::`vftable' ; +0xa5, 0x14045aff5\nmov     [rdi+298h], rax                                                ; +0xac, 0x14045affc\nmov     qword ptr [rdi+2A0h], 0                                        ; +0xb3, 0x14045b003\nmov     qword ptr [rdi+2A8h], 0                                        ; +0xbe, 0x14045b00e\nmov     byte ptr [rdi+2B0h], 0                                         ; +0xc9, 0x14045b019\nmov     dword ptr [rdi+2B4h], 0                                        ; +0xd0, 0x14045b020\nmov     rdx, rbx                                                       ; +0xda, 0x14045b02a\nmov     rcx, rdi                                                       ; +0xdd, 0x14045b02d\ncall    SelectFontLayer2__init                                         ; +0xe0, 0x14045b030\nmov     rcx, rdi                                                       ; +0xe5, 0x14045b035\ntest    al, al                                                         ; +0xe8, 0x14045b038\njz      short loc_14045B044                                            ; +0xea, 0x14045b03a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xec, 0x14045b03c\njmp     short loc_14045B051                                            ; +0xf2, 0x14045b042\nmov     rax, [rdi]                                                     ; +0xf4, 0x14045b044\nmov     edx, 1                                                         ; +0xf7, 0x14045b047\ncall    qword ptr [rax+8]                                              ; +0xfc, 0x14045b04c\nxor     edi, edi                                                       ; +0xff, 0x14045b04f\nmov     rax, [rdi]                                                     ; +0x101, 0x14045b051\nmov     rcx, rdi                                                       ; +0x104, 0x14045b054\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x107, 0x14045b057\nadd     rsp, 20h                                                       ; +0x10c, 0x14045b05c\npop     rdi                                                            ; +0x110, 0x14045b060\njmp     qword ptr [rax+428h]                                           ; +0x111, 0x14045b061", "xrefs": ["LevelSettingsLayer::init @ 0x140459188", "<???> @ 0x140927cbc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}