//
// sub_811038 from 0x811038 to 0x8110c4 (140 bytes)
//
// 14 xrefs:
// > sub_8179AC @ 0x817bc6
// > sub_8179AC @ 0x817dc8
// > sub_818068 @ 0x818236
// > sub_818068 @ 0x818288
// > sub_818068 @ 0x81835a
// > sub_818C60 @ 0x818d04
// > sub_818C60 @ 0x818d28
// > sub_818C60 @ 0x818da6
// > sub_818C60 @ 0x818e06
// > sub_818E48 @ 0x818eec
// > sub_818E48 @ 0x818f10
// > sub_818E48 @ 0x818f8e
// > sub_818E48 @ 0x818fee
// > sub_819400 @ 0x8195a0
//
// 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:01:37 +0000
//
double __fastcall sub_811038(const char *a1)
{
const char *v1; // r2
const char *v2; // r3
int v3; // r1
int v4; // t1
int v5; // r2
unsigned __int8 *v6; // r2
int v7; // r1
int v8; // t1
unsigned __int8 *v9; // r1
unsigned __int8 *v10; // r2
int v11; // r3
int v12; // t1
v1 = a1;
do
{
v2 = v1;
v4 = *(unsigned __int8 *)v1++;
v3 = v4;
}
while ( (a7[v4] & 8) != 0 );
if ( v3 == 45 )
v2 = v1;
v5 = *(unsigned __int8 *)v2;
if ( !*v2 || (a7[v5 + 256] & 8) == 0 && (v5 != 46 || (a7[*((unsigned __int8 *)v2 + 1) + 256] & 8) == 0) )
return NAN;
do
{
v6 = (unsigned __int8 *)v2;
v8 = *(unsigned __int8 *)v2++;
v7 = v8;
}
while ( (a7[v8 + 256] & 8) != 0 );
if ( v7 == 46 )
{
v9 = (unsigned __int8 *)v2;
do
v6 = v9++;
while ( (a7[*v6 + 256] & 8) != 0 );
}
v10 = v6 - 1;
do
{
v12 = *++v10;
v11 = v12;
}
while ( (a7[v12] & 8) != 0 );
if ( !v11 )
return atof(a1);
else
return NAN;
}