//
// sub_10069A6A0 from 0x10069a6a0 to 0x10069a838 (408 bytes)
//
// 1 xrefs:
// > sub_10066FFC0 @ 0x100670094
//
// 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:11:36 +0000
//
void **__fastcall sub_10069A6A0(char *a1, __int16 a2)
{
char **v4; // x21
char *v5; // x0
char *v6; // x20
char *v7; // x0
__int128 v8; // q0
void **v9; // x19
__int128 v11; // [xsp+8h] [xbp-38h] BYREF
int v12; // [xsp+18h] [xbp-28h] BYREF
if ( inet_pton(2, a1, &v12) < 1 )
{
if ( inet_pton(30, a1, &v11) < 1 )
return nullptr;
v4 = (char **)off_1009E5FD0(0x40u);
if ( !v4 )
return nullptr;
v7 = off_1009E5FE8(a1);
v6 = v7;
if ( v7 )
{
v8 = v11;
*v4 = v7;
v4[1] = nullptr;
*((_DWORD *)v4 + 4) = 30;
*((_OWORD *)v4 + 2) = v8;
*((_DWORD *)v4 + 5) = 16;
v4[3] = (char *)(v4 + 6);
v4[6] = (char *)(v4 + 4);
goto LABEL_9;
}
LABEL_11:
off_1009E5FD8(v4);
return nullptr;
}
v4 = (char **)off_1009E5FD0(0x40u);
if ( !v4 )
return nullptr;
v5 = off_1009E5FE8(a1);
v6 = v5;
if ( !v5 )
goto LABEL_11;
*((_DWORD *)v4 + 8) = v12;
*v4 = v5;
v4[1] = nullptr;
*((_DWORD *)v4 + 4) = 2;
*((_DWORD *)v4 + 5) = 4;
v4[3] = (char *)(v4 + 6);
v4[6] = (char *)(v4 + 4);
LABEL_9:
v4[7] = nullptr;
v9 = sub_10069A4F8((__int64)v4, a2);
off_1009E5FD8(v6);
off_1009E5FD8(v4);
return v9;
}