//
// sub_100613FFC from 0x100613ffc to 0x1006140ec (240 bytes)
//
// 2 xrefs:
// > sub_10061395C @ 0x100613ba8
// > sub_10061395C @ 0x100613bd0
//
// 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
//
__int64 __fastcall sub_100613FFC(_QWORD **a1, __int64 *a2)
{
void *v4; // x0
_QWORD *v5; // x19
unsigned int v6; // w0
char *v7; // x0
__int64 v8; // x8
__int16 v10; // w2
int v11; // w4
v4 = sub_1005E9B4C();
v5 = sub_1005DA484((__int64)v4);
if ( v5 )
{
v6 = sub_10058AE10(*a2);
v7 = sub_10058AC68(v6);
v8 = sub_1005E8060((__int64)v7);
if ( v8 )
{
sub_1005DAB78(v5, 111, 0, v8);
if ( !*a1 )
{
*a1 = v5;
return 1;
}
if ( sub_1005DAD70(*a1, (__int64)v5) )
return 1;
v10 = 32;
v11 = 123;
}
else
{
v10 = 109;
v11 = 115;
}
sub_1005E0E48(33, 125, v10, (__int64)"pk7_doit.c", v11);
sub_1005DA554(v5);
}
else
{
sub_1005E0E48(33, 125, 32, (__int64)"pk7_doit.c", 109);
}
return 0;
}