//
// SelectFontLayer::onChangeFont from 0xa1f670 to 0xa1f730 (192 bytes)
//
// 4 xrefs:
// > ??> @ 0x95050
// > SelectFontLayer::init @ 0xa2213c
// > SelectFontLayer::init @ 0xa22218
// > ??> @ 0x1544078
//
// This function is hookable on this platform (idp: arm, 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 12:59:39 +0000
//
__int64 __fastcall SelectFontLayer::onChangeFont(SelectFontLayer *this, cocos2d::CCObject *a2)
{
int v3; // w19
__int64 result; // x0
int v5; // w1
__int64 v6; // x0
int v7; // [xsp+28h] [xbp+28h]
v3 = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 83) + 3272LL) + 360LL);
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
LODWORD(result) = v3 + 1;
if ( v3 + 1 < 0 )
result = 0;
else
result = (unsigned int)result;
if ( (int)result > 59 )
v5 = 59;
else
v5 = result;
if ( *((_DWORD *)this + 165) != v5 )
goto LABEL_9;
}
else
{
LODWORD(result) = v3 - 1;
if ( v3 - 1 < 0 )
result = 0;
else
result = (unsigned int)result;
if ( (int)result > 59 )
v5 = 59;
else
v5 = result;
if ( *((_DWORD *)this + 165) != v5 )
{
LABEL_9:
v6 = *((_QWORD *)this + 84);
if ( v6 )
{
v7 = v5;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 520LL))(v6);
*((_QWORD *)this + 84) = 0;
v5 = v7;
}
LevelEditorLayer::updateLevelFont(*((LevelEditorLayer **)this + 83), v5);
return SelectFontLayer::updateFontLabel(this);
}
}
return result;
}