//
// sub_100399898 from 0x100399898 to 0x100399950 (184 bytes)
//
// 1 xrefs:
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x100396160
//
// 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
//
_DWORD *__fastcall sub_100399898(__int64 a1, unsigned int *a2, _DWORD *a3)
{
__int64 v5; // x9
_QWORD *v6; // x22
unsigned int v7; // w8
_QWORD *v8; // x21
unsigned int v9; // w9
_DWORD *v10; // x23
v6 = (_QWORD *)(a1 + 8);
v5 = *(_QWORD *)(a1 + 8);
if ( v5 )
{
v7 = *a2;
while ( 1 )
{
while ( 1 )
{
v8 = (_QWORD *)v5;
v9 = *(_DWORD *)(v5 + 28);
if ( v7 >= v9 )
break;
v5 = *v8;
v6 = v8;
if ( !*v8 )
goto LABEL_10;
}
if ( v9 >= v7 )
break;
v5 = v8[1];
if ( !v5 )
{
v6 = v8 + 1;
goto LABEL_10;
}
}
}
else
{
v8 = (_QWORD *)(a1 + 8);
LABEL_10:
v10 = operator new(0x20u);
v10[7] = *a3;
sub_10000A0F0((__int64 **)a1, (__int64)v8, v6, v10);
return v10;
}
return v8;
}