//
// sub_1006B14D4 from 0x1006b14d4 to 0x1006b15d8 (260 bytes)
//
// 3 xrefs:
// > sub_1006568EC @ 0x100656970
// > sub_10065AE1C @ 0x10065af14
// > sub_1006E9C94 @ 0x1006e9d40
//
// 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:11:49 +0000
//
__int64 __fastcall sub_1006B14D4(char *a1)
{
__int64 v1; // x0
char **v2; // x8
int v3; // w19
int v4; // w0
unsigned int *v5; // x20
__int64 v6; // x22
__int64 v7; // x25
int v9; // [xsp+8h] [xbp-78h] BYREF
char *v10; // [xsp+10h] [xbp-70h]
char v11; // [xsp+18h] [xbp-68h] BYREF
char *__s1; // [xsp+20h] [xbp-60h]
__s1 = a1;
if ( qword_100A0C808 )
{
v9 = 2;
v10 = &v11;
v1 = sub_100705320(qword_100A0C808, &v9);
if ( v1 )
{
v2 = *(char ***)(v1 + 8);
return *((unsigned int *)v2 + 4);
}
}
v3 = 0;
v4 = 0;
v5 = nullptr;
v6 = 951;
LABEL_5:
v7 = v6;
while ( 1 )
{
v6 = v7;
if ( v3 >= (int)v7 )
break;
v7 = (unsigned int)(((int)v7 + v3) / 2);
v5 = (unsigned int *)((char *)&unk_100793C58 + 4 * (int)v7);
v4 = strcmp(__s1, off_1009B25E8[5 * *v5 + 1]);
if ( (v4 & 0x80000000) == 0 )
{
v3 = v7 + 1;
if ( v4 > 0 )
goto LABEL_5;
goto LABEL_12;
}
}
if ( v4 )
return 0;
LABEL_12:
if ( v5 )
{
v2 = &off_1009B25E8[5 * *v5];
return *((unsigned int *)v2 + 4);
}
return 0;
}