//
// sub_1003996A8 from 0x1003996a8 to 0x100399770 (200 bytes)
//
// 1 xrefs:
// > ReportQueuePopup::init @ 0x10052314c
//
// 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 11:03:42 +0000
//
__int64 __fastcall sub_1003996A8(__int64 result, char *__s1)
{
_QWORD *v3; // x19
std::string *v4; // x21
const char *v5; // x1
__int64 File; // x22
_DWORD *v7; // x0
void *v8; // x0
__int64 v9; // x8
char *v10; // x1
_DWORD *v11; // x0
if ( __s1 )
{
v3 = (_QWORD *)result;
v4 = (std::string *)(result + 384);
v5 = (const char *)(result + 384);
if ( *(char *)(result + 407) < 0 )
v5 = (const char *)v4->__r_.__value_.__r.__words[0];
result = strcmp(__s1, v5);
if ( (_DWORD)result )
{
File = cocos2d::FNTConfigLoadFile(__s1);
std::string::assign(v4, __s1);
if ( File )
cocos2d::CCObject::retain(File);
v7 = (_DWORD *)v3[56];
if ( v7 )
cocos2d::CCObject::release(v7);
v3[56] = File;
v8 = cocos2d::CCTextureCache::sharedTextureCache();
v9 = v3[56];
v10 = (char *)(v9 + 88);
if ( *(char *)(v9 + 111) < 0 )
v10 = *(char **)v10;
v11 = cocos2d::CCTextureCache::addImage((__int64)v8, v10);
(*(void (__fastcall **)(_QWORD *, _DWORD *))(*v3 + 904LL))(v3, v11);
return cocos2d::CCLabelBMFont::createFontChars((__int64)v3);
}
}
return result;
}