//
// cocos2d::CCLabelBMFont::setFntFile from 0x7d5b00 to 0x7d5b7e (126 bytes)
//
// 1 xrefs:
// > ReportQueuePopup::init @ 0x73b24c
//
// 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 12:00:38 +0000
//
int __fastcall cocos2d::CCLabelBMFont::setFntFile(int this, char *a2)
{
int *v2; // r4
const char *v4; // r1
const char *v5; // r1
cocos2d::CCObject *File; // r6
cocos2d::CCTextureCache *v7; // r0
int v8; // r3
void (__fastcall *v9)(int *, int); // r5
cocos2d::CCTextureCache *v10; // r0
int v11; // r1
const char *v12; // r1
int v13; // r0
v2 = (int *)this;
if ( a2 )
{
v4 = (*(_BYTE *)(this + 300) & 1) != 0 ? *(const char **)(this + 308) : (const char *)(this + 301);
this = strcmp(a2, v4);
if ( this )
{
File = cocos2d::FNTConfigLoadFile((cocos2d *)a2, v5);
std::string::assign(v2 + 75, a2);
if ( File )
cocos2d::CCObject::retain((int)File);
v7 = (cocos2d::CCTextureCache *)v2[84];
if ( v7 )
v7 = (cocos2d::CCTextureCache *)cocos2d::CCObject::release(v7);
v8 = *v2;
v2[84] = (int)File;
v9 = *(void (__fastcall **)(int *, int))(v8 + 452);
v10 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v7);
v11 = v2[84];
if ( (*(_BYTE *)(v11 + 76) & 1) != 0 )
v12 = *(const char **)(v11 + 84);
else
v12 = (const char *)(v11 + 77);
v13 = cocos2d::CCTextureCache::addImage(v10, v12, 0);
v9(v2, v13);
return cocos2d::CCLabelBMFont::createFontChars((cocos2d::CCLabelBMFont *)v2);
}
}
return this;
}