//
// SelectFontLayer::onChangeFont from 0x5d46a8 to 0x5d4706 (94 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:07 +0000
//
int *__fastcall SelectFontLayer::onChangeFont(SelectFontLayer *this, cocos2d::CCObject *a2)
{
int v3; // r4
int *result; // r0
int v5; // r4
int v6; // r4
int v7; // r0
v3 = *(_DWORD *)(*(_DWORD *)(*((_DWORD *)this + 131) + 2084) + 300);
result = (int *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result == (int *)((char *)&dword_0 + 1) )
v5 = v3 + 1;
else
v5 = v3 - 1;
v6 = v5 & ~(v5 >> 31);
if ( v6 >= 59 )
v6 = 59;
if ( v6 != *((_DWORD *)this + 130) )
{
v7 = *((_DWORD *)this + 132);
if ( v7 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 260))(v7);
*((_DWORD *)this + 132) = 0;
}
LevelEditorLayer::updateLevelFont(*((cocos2d::CCArray **)this + 131), v6);
return SelectFontLayer::updateFontLabel((int *)this);
}
return result;
}