//
// OBJ_create_objects from 0x1040f54 to 0x10410c4 (368 bytes)
//
// 1 xrefs:
// > ??> @ 0x7e0b8
//
// 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 13:16:30 +0000
//
__int64 __fastcall OBJ_create_objects(__int64 a1)
{
int v2; // w0
unsigned __int8 *v3; // x22
unsigned int i; // w23
int v5; // w20
char *v6; // x5
int v7; // w4
int v8; // t1
unsigned __int8 *v9; // x19
int v10; // w20
_BYTE *v12; // x20
int v13; // t1
int v14; // w0
int v15; // w20
char v16[512]; // [xsp+40h] [xbp+40h] BYREF
v2 = BIO_gets(a1, (__int64)v16, 0x200u);
v3 = nullptr;
for ( i = 0; v2 > 0; v2 = BIO_gets(a1, (__int64)v16, 0x200u) )
{
v16[v2 - 1] = 0;
v5 = (unsigned __int8)v16[0];
if ( !isalnum((unsigned __int8)v16[0]) )
break;
if ( (unsigned __int8)(v5 - 48) <= 9u || v5 == 46 )
{
v6 = v16;
do
{
do
{
v8 = (unsigned __int8)*++v6;
v7 = v8;
}
while ( (unsigned __int8)(v8 - 48) <= 9u );
}
while ( v7 == 46 );
}
else
{
v7 = v5;
v6 = v16;
}
v9 = nullptr;
if ( v7 )
{
v9 = (unsigned __int8 *)(v6 + 1);
*v6 = 0;
while ( 1 )
{
v10 = *v9;
if ( !isspace(v10) )
break;
++v9;
}
if ( v10 )
{
v12 = v9;
while ( 1 )
{
v13 = (unsigned __int8)*++v12;
v14 = v13;
if ( !v13 )
break;
if ( isspace(v14) )
{
v3 = v12 + 1;
*v12 = 0;
while ( 1 )
{
v15 = *v3;
if ( !isspace(v15) )
break;
++v3;
}
if ( v15 )
{
v5 = (unsigned __int8)v16[0];
goto LABEL_14;
}
break;
}
}
v5 = (unsigned __int8)v16[0];
v3 = nullptr;
}
else
{
v5 = (unsigned __int8)v16[0];
v9 = nullptr;
}
}
LABEL_14:
if ( !v5 )
break;
if ( !(unsigned int)OBJ_create(v16, (__int64)v9, (__int64)v3) )
break;
++i;
}
return i;
}