//
// sub_1007512E0 from 0x1007512e0 to 0x100751390 (176 bytes)
//
// 5 xrefs:
// > sub_10074ABE4 @ 0x10074ac44
// > sub_10074AF44 @ 0x10074b060
// > sub_10074DA74 @ 0x10074dac0
// > sub_10074DDF8 @ 0x10074df0c
// > sub_10075075C @ 0x10075080c
//
// 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:13:30 +0000
//
_QWORD *__fastcall sub_1007512E0(__int64 a1)
{
int v1; // w8
_QWORD *result; // x0
__int64 v3; // x9
__int16 v4; // w1
int v5; // w3
char *v6; // x8
if ( a1 )
{
v1 = sub_1006B0F78(a1);
}
else
{
v6 = (char *)sub_100751554(0);
result = &unk_1009F1FA0;
if ( !v6 || !*v6 )
return result;
v1 = sub_1006B1A54(v6);
if ( !v1 )
{
v4 = 107;
v5 = 151;
goto LABEL_7;
}
}
result = &unk_1009F1F88;
if ( !off_1009F1F90 )
{
LABEL_6:
v4 = 106;
v5 = 160;
LABEL_7:
sub_10074A888(103, v4, (__int64)"gost_crypt.c", v5);
return nullptr;
}
while ( *(_DWORD *)result != v1 )
{
v3 = result[4];
result += 3;
if ( !v3 )
goto LABEL_6;
}
return result;
}