//
// sub_10069075C from 0x10069075c to 0x100690820 (196 bytes)
//
// 3 xrefs:
// > sub_10069054C @ 0x1006906a4
// > sub_10069054C @ 0x1006906d4
// > sub_100691008 @ 0x100691100
//
// 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:31 +0000
//
__int64 __fastcall sub_10069075C(__int64 a1, char *a2, _QWORD *a3)
{
int v6; // w8
const void *v7; // x1
int v8; // w0
v6 = *(unsigned __int8 *)(a1 + 1);
switch ( v6 )
{
case 1:
sub_1006889EC(a2, 46, "%s", (const char *)(a1 + 2));
*a3 = 0;
return 1;
case 30:
v7 = (const void *)(a1 + 8);
v8 = 30;
break;
case 2:
v7 = (const void *)(a1 + 4);
v8 = 2;
break;
default:
goto LABEL_9;
}
if ( inet_ntop(v8, v7, a2, 0x2Eu) )
{
*a3 = (unsigned __int16)((unsigned __int8)HIBYTE(*(_WORD *)(a1 + 2)) | (unsigned __int16)(*(_WORD *)(a1 + 2) << 8));
return 1;
}
LABEL_9:
*a2 = 0;
*a3 = 0;
return 0;
}