//
// cocos2d::CCBMFontConfiguration::parseImageFileName from 0x7d4450 to 0x7d452e (222 bytes)
//
// 1 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x7d55c8
//
// 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:37 +0000
//
int __fastcall cocos2d::CCBMFontConfiguration::parseImageFileName(int a1, unsigned __int8 *a2, int a3)
{
int *v5; // r8
unsigned int v6; // r7
int v7; // r0
unsigned int v8; // r10
int v9; // r0
int v10; // r0
int v11; // r1
char *v12; // r2
cocos2d::CCFileUtils *v13; // r0
int v14; // r0
char *v15; // r1
char *v16; // r0
int v18; // [sp+Ch] [bp-1Ch] BYREF
int v19; // [sp+10h] [bp-18h]
char *v20; // [sp+14h] [bp-14h]
int v21; // [sp+18h] [bp-10h] BYREF
int v22; // [sp+1Ch] [bp-Ch]
char *v23; // [sp+20h] [bp-8h]
v5 = (int *)(a1 + 76);
v6 = std::string::find(a2, 61, 0) + 1;
v7 = std::string::find(a2, 32, v6);
std::string::basic_string(&v18, a2, v6, v7 - v6);
v8 = std::string::find(a2, 34, 0) + 1;
v9 = std::string::find(a2, 34, v8);
std::string::basic_string(&v21, a2, v8, v9 - v8);
if ( (v18 & 1) != 0 )
{
*v20 = 0;
v19 = 0;
}
else
{
LOWORD(v18) = 0;
}
std::string::reserve(&v18, 0);
v10 = v21;
v11 = v22;
v12 = v23;
v21 = 0;
v22 = 0;
v23 = nullptr;
v18 = v10;
v19 = v11;
v20 = v12;
v13 = (cocos2d::CCFileUtils *)std::string::~string((int)&v21);
v14 = cocos2d::CCFileUtils::sharedFileUtils(v13);
if ( (v18 & 1) != 0 )
v15 = v20;
else
v15 = (char *)&v18 + 1;
v16 = (char *)(*(int (__fastcall **)(int, char *, int))(*(_DWORD *)v14 + 40))(v14, v15, a3);
std::string::assign(v5, v16);
return std::string::~string((int)&v18);
}