//
// sub_100609210 from 0x100609210 to 0x100609424 (532 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008405c8
//
// 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
//
void **__fastcall sub_100609210(__int64 a1, __int64 a2, unsigned int *a3)
{
void **v6; // x19
int i; // w23
__int64 v8; // x0
int v9; // w8
__int64 *v10; // x0
unsigned int *v11; // x0
unsigned int *v12; // x26
int v13; // w27
__int64 v14; // x0
__int64 v15; // x26
const char *v16; // x0
__int64 v17; // x8
__int16 v18; // w2
int v19; // w4
v6 = (void **)sub_1005DE4A4();
if ( !v6 )
{
sub_1005E0E48(34, 153, 65, (__int64)"v3_alt.c", 247);
return nullptr;
}
if ( (int)sub_1005DEA4C(a3) >= 1 )
{
for ( i = 0; i < (int)sub_1005DEA4C(a3); ++i )
{
v15 = sub_1005DEA60((__int64)a3, i);
if ( !(unsigned int)sub_100607B14(*(const char **)(v15 + 8), "issuer")
&& (v16 = *(const char **)(v15 + 16)) != nullptr
&& !strcmp(v16, "copy") )
{
if ( !a2 )
goto LABEL_24;
if ( *(_DWORD *)a2 != 1 )
{
v8 = *(_QWORD *)(a2 + 8);
if ( !v8 )
{
LABEL_24:
v18 = 127;
v19 = 280;
goto LABEL_26;
}
v9 = sub_100602E50(v8, 0x55u, -1);
if ( (v9 & 0x80000000) == 0 )
{
v10 = (__int64 *)sub_100602E5C(*(_QWORD *)(a2 + 8), v9);
if ( !v10 || (v11 = (unsigned int *)sub_1006065E4(v10), (v12 = v11) == nullptr) )
{
v18 = 126;
v19 = 288;
goto LABEL_26;
}
if ( (int)sub_1005DEA4C(v11) > 0 )
{
v13 = 0;
while ( 1 )
{
v14 = sub_1005DEA60((__int64)v12, v13);
if ( !(unsigned int)sub_1005DE80C(v6, v14) )
break;
if ( ++v13 >= (int)sub_1005DEA4C(v12) )
goto LABEL_14;
}
v18 = 65;
v19 = 295;
LABEL_26:
sub_1005E0E48(34, 123, v18, (__int64)"v3_alt.c", v19);
LABEL_27:
sub_1005DE9D0(v6, (void (*)(void))sub_100608EEC);
return nullptr;
}
LABEL_14:
sub_1005DE314(v12);
}
}
}
else
{
v17 = sub_1006099FC(0, a1, a2, v15, 0);
if ( !v17 )
goto LABEL_27;
sub_1005DE80C(v6, v17);
}
}
}
return v6;
}