//
// sub_1080F1C from 0x1080f1c to 0x1080fe8 (204 bytes)
//
// 2 xrefs:
// > sub_1080FE8 @ 0x1081034
// > sub_1080FE8 @ 0x108103c
//
// 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:17:10 +0000
//
bool __fastcall sub_1080F1C(_BYTE *a1, size_t a2, void *a3, size_t a4, __int16 a5)
{
size_t v5; // x5
v5 = a2;
if ( a5 < 0 )
{
if ( a4 >= a2 )
{
if ( a4 != a2 )
return 0;
}
else
{
if ( !*a1 )
goto LABEL_9;
if ( (a5 & 0x10) != 0 )
{
if ( *a1 != 46 )
{
do
{
--v5;
++a1;
}
while ( a4 < v5 && *a1 && *a1 != 46 );
}
LABEL_9:
if ( a4 != v5 )
return 0;
goto LABEL_16;
}
while ( 1 )
{
--v5;
++a1;
if ( a4 >= v5 )
break;
if ( !*a1 )
goto LABEL_9;
}
if ( a4 != v5 )
return 0;
}
LABEL_16:
v5 = a4;
return memcmp(a1, a3, v5) == 0;
}
if ( a4 == a2 )
return memcmp(a1, a3, v5) == 0;
return 0;
}