//
// LevelSettingsLayer::onSelectFont from 0x14045af50 to 0x14045b068 (280 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140459188
// > ??> @ 0x140927cbc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:31 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelSettingsLayer::onSelectFont(__int64 a1)
{
__int64 v1; // rbx
_QWORD *v2; // rdi
v1 = *(_QWORD *)(a1 + 856);
v2 = operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = &SelectFontLayer2::`vftable';
v2[40] = &SelectFontLayer2::`vftable';
v2[41] = &SelectFontLayer2::`vftable';
v2[42] = &SelectFontLayer2::`vftable';
v2[43] = &SelectFontLayer2::`vftable';
v2[44] = &SelectFontLayer2::`vftable';
v2[51] = &SelectFontLayer2::`vftable';
v2[54] = &SelectFontLayer2::`vftable';
v2[68] = &SelectFontLayer2::`vftable';
v2[83] = &SelectFontLayer2::`vftable';
v2[84] = 0;
v2[85] = 0;
*((_BYTE *)v2 + 688) = 0;
*((_DWORD *)v2 + 173) = 0;
if ( (unsigned __int8)SelectFontLayer2::init(v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
return (*(__int64 (__fastcall **)(_QWORD *))(*v2 + 1064LL))(v2);
}