//
// sub_60B92C from 0x60b92c to 0x60b96a (62 bytes)
//
// 6 xrefs:
// > fmt::BasicFormatter::ParseArgIndex @ 0x60bb74
// > fmt::BasicFormatter::format @ 0x60eae2
// > fmt::BasicFormatter::format @ 0x60eb06
// > fmt::internal::PrintfParser::Format @ 0x60ee00
// > fmt::internal::PrintfParser::Format @ 0x60ee7e
// > fmt::internal::PrintfParser::Format @ 0x60ef1a
//
// 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
//
int __fastcall sub_60B92C(int **a1, int *a2)
{
int v2; // r3
int *v3; // r4
int v4; // t1
unsigned int v5; // r2
int result; // r0
v2 = 0;
v3 = *a1;
do
{
v4 = *v3++;
v5 = v4 - 48 + 10 * v2;
if ( v5 < v2 )
v2 = -1;
else
v2 = v5;
}
while ( (unsigned int)(*v3 - 48) <= 9 );
*a1 = v3;
if ( v2 >= 0 )
return v2;
result = *a2;
if ( *a2 )
return 0;
*a2 = (int)"number is too big in format";
return result;
}