//
// sub_10071AF94 from 0x10071af94 to 0x10071b154 (448 bytes)
//
// 1 xrefs:
// > sub_10071ACF0 @ 0x10071ad18
//
// 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:13:02 +0000
//
bool __fastcall sub_10071AF94(__int64 a1, int *a2)
{
__int64 v2; // x9
char *v3; // x8
int v4; // w10
int v5; // w11
int v6; // w12
int v7; // w14
int v8; // w13
int v9; // w16
int v10; // w17
int v11; // w1
int v12; // w2
int v13; // w3
int v14; // w10
int v15; // w11
int v16; // w10
unsigned int v17; // w14
int v19; // w15
int v20; // w9
int v21; // w8
int v22; // w8
const char *v23; // x9
int v24; // w11
const char *v25; // x14
v2 = *a2;
if ( (int)v2 < 10 )
goto LABEL_15;
v3 = *((char **)a2 + 1);
v4 = *v3;
if ( (unsigned int)(v4 - 48) > 9 )
goto LABEL_15;
v5 = v3[1];
if ( (unsigned int)(v5 - 48) > 9 )
goto LABEL_15;
v6 = v3[2];
if ( (unsigned int)(v6 - 48) > 9 )
goto LABEL_15;
v7 = v3[3];
if ( (unsigned int)(v7 - 48) > 9 )
goto LABEL_15;
v8 = v3[4];
if ( (unsigned int)(v8 - 48) > 9 )
goto LABEL_15;
v9 = v3[5];
if ( (unsigned int)(v9 - 48) > 9 )
goto LABEL_15;
v10 = v3[6];
if ( (unsigned int)(v10 - 48) > 9 )
goto LABEL_15;
v11 = v3[7];
if ( (unsigned int)(v11 - 48) > 9 )
goto LABEL_15;
v12 = v3[8];
if ( (unsigned int)(v12 - 48) > 9 )
goto LABEL_15;
v13 = v3[9];
if ( (unsigned int)(v13 - 48) > 9 )
goto LABEL_15;
v14 = v5 + 10 * v4;
v15 = v14 - 528;
v16 = v14 - 428;
if ( v15 < 50 )
v15 = v16;
v17 = v7 + 10 * v6 - 529;
if ( v17 <= 0xB )
{
v19 = (unsigned __int8)v3[v2 - 1];
if ( (int)v2 < 12 )
{
v22 = 0;
}
else
{
v20 = v3[10];
if ( (unsigned int)(v20 - 48) > 9 )
{
v22 = 0;
}
else
{
v21 = v3[11];
if ( (unsigned int)(v21 - 48) > 9 )
v22 = 0;
else
v22 = v21 + 10 * v20 - 528;
}
}
v23 = off_1009C2430[v17];
v24 = v15 + 1900;
v25 = "";
if ( v19 == 90 )
v25 = " GMT";
return (int)sub_100702BA8(
a1,
"%s %2d %02d:%02d:%02d %d%s",
v23,
v9 + 10 * v8 - 528,
v11 + 10 * v10 - 528,
v13 + 10 * v12 - 528,
v22,
v24,
v25) > 0;
}
else
{
LABEL_15:
sub_100700894(a1, (__int64)"Bad time value", 14);
return 0;
}
}