//
// cocos2d::CCBMFontConfiguration::parseInfoArguments from 0x1002f9c78 to 0x1002f9d98 (288 bytes)
//
// 1 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1002f9494
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCBMFontConfiguration::parseInfoArguments(__int64 a1, const std::string *__s)
{
__int64 size; // x8
const std::string *v5; // x21
char *v6; // x22
std::string *v7; // x0
char *v8; // x0
int v9; // w8
std::string::size_type v10; // x21
int v11; // w0
std::string *v12; // x0
std::string v13; // [xsp+20h] [xbp-50h] BYREF
std::allocator __a; // [xsp+3Fh] [xbp-31h] BYREF
size = SHIBYTE(__s->__r_.__value_.__r.__words[2]);
if ( size < 0 )
{
v5 = (const std::string *)__s->__r_.__value_.__r.__words[0];
size = __s->__r_.__value_.__l.__size_;
}
else
{
v5 = __s;
}
v6 = (char *)v5 + size;
if ( size >= 8 )
{
v7 = (std::string *)v5;
do
{
v8 = (char *)memchr(v7, 112, size - 7);
if ( !v8 )
break;
if ( *(_QWORD *)v8 == 0x3D676E6964646170LL )
goto LABEL_10;
v7 = (std::string *)(v8 + 1);
size = v6 - (char *)v7;
}
while ( v6 - (char *)v7 > 7 );
}
v8 = v6;
LABEL_10:
v9 = (_DWORD)v8 - (_DWORD)v5;
if ( v8 == v6 )
v9 = -1;
v10 = v9;
v11 = std::string::find(__s, 32, v9);
std::string::basic_string(&v13, __s, v10, v11 - (int)v10, &__a);
if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v12 = &v13;
else
v12 = (std::string *)v13.__r_.__value_.__r.__words[0];
sscanf((const char *)v12, "padding=%d,%d,%d,%d", a1 + 72, a1 + 76, a1 + 80, a1 + 68);
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
}