//
// cocos2d::extension::CCControlButton::getTitleBMFontForState from 0x7a7330 to 0x7a7380 (80 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:59:59 +0000
//
void *__fastcall cocos2d::extension::CCControlButton::getTitleBMFontForState(
cocos2d::extension::CCControlButton *this,
unsigned int a2)
{
const void *v2; // r0
void *v3; // r0
cocos2d::CCLabelBMFont *v4; // r0
v2 = (const void *)(*(int (__fastcall **)(cocos2d::extension::CCControlButton *, unsigned int))(*(_DWORD *)this + 736))(
this,
a2);
if ( !v2 )
return &unk_B6B226;
v3 = _dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
-2);
if ( !v3 )
return &unk_B6B226;
v4 = (cocos2d::CCLabelBMFont *)_dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont,
288);
if ( v4 )
return (void *)cocos2d::CCLabelBMFont::getFntFile(v4);
else
return &unk_B6B226;
}