//
// sub_641B74 from 0x641b74 to 0x641bec (120 bytes)
//
// 4 xrefs:
// > sub_63D86C @ 0x63daa0
// > sub_63D86C @ 0x63db00
// > sub_63DBE4 @ 0x63de62
// > sub_63DBE4 @ 0x63df3c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_641B74(int a1, int a2, int a3, int a4, int a5, const char **a6, size_t *a7)
{
bool v8; // zf
char *v9; // r4
int result; // r0
size_t v11; // r0
int v12; // r5
bool v13; // zf
if ( a3 )
{
v8 = a4 == 0;
if ( a4 )
v8 = a4 == 80;
if ( v8 )
{
v9 = sub_626FC4(aUserS_1);
goto LABEL_7;
}
goto LABEL_13;
}
v13 = a4 == 0;
if ( a4 )
v13 = a4 == 80;
if ( !v13 )
{
LABEL_13:
v9 = sub_626FC4(aUserS_2, a2, a3);
goto LABEL_7;
}
v9 = sub_626FC4(aUserS_3, a2, a5);
LABEL_7:
result = 27;
if ( v9 )
{
v11 = strlen(v9);
v12 = sub_60FC0C(a1, v9, v11, a6, a7);
off_ABAEB0(v9);
return v12;
}
return result;
}