//
// sub_1006090A0 from 0x1006090a0 to 0x100609210 (368 bytes)
//
// 1 xrefs:
// > ??> @ 0x100840560
//
// 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_1006090A0(__int64 a1, __int64 a2, unsigned int *a3)
{
void **v6; // x19
int i; // w23
__int64 v8; // x27
const char *v9; // x0
const char *v10; // x0
__int64 v11; // x8
__int64 v12; // x2
v6 = (void **)sub_1005DE4A4();
if ( !v6 )
{
sub_1005E0E48(34, 154, 65, (__int64)"v3_alt.c", 316);
return nullptr;
}
if ( (int)sub_1005DEA4C(a3) > 0 )
{
for ( i = 0; i < (int)sub_1005DEA4C(a3); ++i )
{
v8 = sub_1005DEA60((__int64)a3, i);
if ( !(unsigned int)sub_100607B14(*(const char **)(v8 + 8), "email")
&& (v9 = *(const char **)(v8 + 16)) != nullptr
&& !strcmp(v9, "copy") )
{
v12 = 0;
}
else
{
if ( (unsigned int)sub_100607B14(*(const char **)(v8 + 8), "email")
|| (v10 = *(const char **)(v8 + 16)) == nullptr
|| strcmp(v10, "move") )
{
v11 = sub_1006099FC(0, a1, a2, v8, 0);
if ( !v11 )
goto LABEL_17;
sub_1005DE80C(v6, v11);
continue;
}
v12 = 1;
}
if ( !(unsigned int)sub_100609ED8(a2, v6, v12) )
{
LABEL_17:
sub_1005DE9D0(v6, (void (*)(void))sub_100608EEC);
return nullptr;
}
}
}
return v6;
}