//
// cocos2d::CCBMFontConfiguration::parseImageFileName from 0xd57c4c to 0xd57dbc (368 bytes)
//
// 2 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xd594c8
// > ??> @ 0x5f038
//
// 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 13:07:44 +0000
//
__int64 __fastcall cocos2d::CCBMFontConfiguration::parseImageFileName(__int64 a1, __int64 a2, __int64 a3)
{
int v6; // w22
int v7; // w0
int v8; // w22
int v9; // w0
__int64 *v10; // x23
__int64 v11; // x0
char *v12; // x1
char *v13; // x0
cocos2d::CCFileUtils *v15; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCFileUtils *v16; // [xsp+60h] [xbp+60h]
void *v17; // [xsp+68h] [xbp+68h]
cocos2d::CCFileUtils *v18[3]; // [xsp+70h] [xbp+70h] BYREF
v6 = std::string::find(a2, 0x3Du, 0) + 1;
v7 = std::string::find(a2, 0x20u, v6);
std::string::basic_string((__int64 *)&v15, a2, v6, v7 - v6);
v8 = std::string::find(a2, 0x22u, 0) + 1;
v9 = std::string::find(a2, 0x22u, v8);
std::string::basic_string((__int64 *)v18, a2, v8, v9 - v8);
if ( ((unsigned __int8)v15 & 1) != 0 )
{
*(_BYTE *)v17 = 0;
v16 = nullptr;
}
else
{
LOWORD(v15) = 0;
}
v10 = (__int64 *)(a1 + 88);
std::string::reserve((__int64 *)&v15, 0);
v17 = v18[2];
v15 = v18[0];
v16 = v18[1];
v11 = cocos2d::CCFileUtils::sharedFileUtils(v18[0]);
v12 = (char *)&v15 + 1;
if ( ((unsigned __int8)v15 & 1) != 0 )
v12 = (char *)v17;
v13 = (char *)(*(__int64 (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v11 + 80LL))(v11, v12, a3);
std::string::assign(v10, v13);
if ( ((unsigned __int8)v15 & 1) != 0 )
operator delete(v17);
return _stack_chk_guard;
}