//
// sub_F76598 from 0xf76598 to 0xf766d4 (316 bytes)
//
// 1 xrefs:
// > std::__ndk1::__time_get_storage::__analyze @ 0xf7604c
//
// 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 13:13:43 +0000
//
__int64 __fastcall sub_F76598(char **a1, char *a2, int *a3, _QWORD *a4, int a5)
{
__int64 result; // x0
int v11; // w8
char *v12; // x8
int v13; // w23
int v14; // w8
if ( *a1 == a2 )
{
result = 0;
v11 = *a3 | 6;
goto LABEL_6;
}
if ( **a1 < 0 || (*(_BYTE *)(a4[2] + 8LL * (unsigned __int8)**a1) & 0x40) == 0 )
{
result = 0;
v11 = *a3 | 4;
LABEL_6:
*a3 = v11;
return result;
}
result = (unsigned int)(*(unsigned __int8 (__fastcall **)(_QWORD *))(*a4 + 72LL))(a4) - 48;
v12 = *a1 + 1;
*a1 = v12;
if ( a5 < 2 || v12 == a2 )
{
LABEL_15:
if ( v12 == a2 )
{
v11 = *a3 | 2;
goto LABEL_6;
}
}
else
{
v13 = a5 - 1;
while ( 1 )
{
v14 = *v12;
if ( v14 < 0 || (*(_BYTE *)(a4[2] + 8LL * (unsigned __int8)v14) & 0x40) == 0 )
break;
result = 10 * (_DWORD)result + (unsigned int)(*(unsigned __int8 (__fastcall **)(_QWORD *))(*a4 + 72LL))(a4) - 48;
v12 = *a1 + 1;
*a1 = v12;
if ( v13 >= 2 )
{
--v13;
if ( v12 != a2 )
continue;
}
goto LABEL_15;
}
}
return result;
}