//
// cocos2d::CCBMFontConfiguration::parseInfoArguments from 0x7d4378 to 0x7d443e (198 bytes)
//
// 1 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x7d5526
//
// 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::parseInfoArguments(int a1, unsigned __int8 *a2)
{
int v3; // r4
unsigned __int8 *v5; // r9
unsigned int v6; // r3
unsigned int v7; // r4
unsigned __int8 *v8; // r5
int v9; // r0
const char *v10; // r0
unsigned __int8 *v12; // [sp+10h] [bp-1Ch] BYREF
int v13[3]; // [sp+18h] [bp-14h] BYREF
v3 = *a2;
if ( (v3 & 1) != 0 )
v5 = *((unsigned __int8 **)a2 + 2);
else
v5 = a2 + 1;
if ( (v3 & 1) != 0 )
v6 = *((_DWORD *)a2 + 1);
else
v6 = v3 >> 1;
if ( v6 <= 7
|| (v8 = &v5[v6],
std::__search(
&v12,
v5,
&v5[v6],
"padding=",
(unsigned __int8 *)"",
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
v12 == v8) )
{
v7 = -1;
}
else
{
v7 = v12 - v5;
}
v9 = std::string::find(a2, 32, v7);
std::string::basic_string(v13, a2, v7, v9 - v7);
if ( (v13[0] & 1) != 0 )
v10 = (const char *)v13[2];
else
v10 = (char *)v13 + 1;
sscanf(v10, "padding=%d,%d,%d,%d", a1 + 64, a1 + 68, a1 + 72, a1 + 60);
return std::string::~string((int)v13);
}