//
// sub_100701F88 from 0x100701f88 to 0x10070204c (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e9200
//
// 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:12:49 +0000
//
ssize_t __fastcall sub_100701F88(__int64 a1, char *__s)
{
int v4; // w21
ssize_t v5; // x20
int v7; // w8
v4 = strlen(__s);
*__error() = 0;
v5 = write(*(_DWORD *)(a1 + 40), __s, v4);
sub_100700768(a1, 15);
if ( (int)v5 <= 0 && (unsigned int)(v5 + 1) <= 1 )
{
v7 = *__error();
if ( v7 > 56 )
{
if ( v7 == 57 || v7 == 100 )
LABEL_14:
sub_100700784(a1, 10);
}
else if ( (unsigned int)v7 <= 0x25 && ((1LL << v7) & 0x3800000010LL) != 0 )
{
goto LABEL_14;
}
}
return v5;
}