//
// sub_1006146C8 from 0x1006146c8 to 0x100614788 (192 bytes)
//
// 2 xrefs:
// > sub_1006140EC @ 0x1006143b8
// > sub_1006140EC @ 0x100614508
//
// 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_1006146C8(__int64 *a1, _QWORD *a2, int a3)
{
_QWORD *v6; // x0
__int64 v7; // x21
unsigned int *v8; // x0
__int16 v9; // w2
int v10; // w4
while ( 1 )
{
v6 = sub_1005DAF7C(a2, 520);
v7 = (__int64)v6;
if ( !v6 )
{
v9 = 108;
v10 = 699;
goto LABEL_9;
}
sub_1005DAB78(v6, 120, 0, (__int64)a1);
if ( !*a1 )
break;
v8 = (unsigned int *)sub_1005EB2E8(*a1);
if ( (unsigned int)sub_1005EB2A0(v8) == a3 )
return v7;
a2 = (_QWORD *)sub_1005DAFCC(v7);
}
v9 = 68;
v10 = 704;
LABEL_9:
sub_1005E0E48(33, 127, v9, (__int64)"pk7_doit.c", v10);
return 0;
}