//
// sub_100622264 from 0x100622264 to 0x1006223ac (328 bytes)
//
// 10 xrefs:
// > sub_100621E34 @ 0x100621ee8
// > sub_100621FA0 @ 0x1006220b0
// > sub_100621FA0 @ 0x1006220e8
// > sub_1006223C8 @ 0x100622488
// > sub_100622534 @ 0x100622638
// > sub_100622820 @ 0x10062288c
// > sub_1006228DC @ 0x10062294c
// > sub_1006229A8 @ 0x100622a14
// > sub_100622AC8 @ 0x100622c3c
// > sub_100622AC8 @ 0x100622db0
//
// 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
//
void __fastcall sub_100622264(const char *a1, int a2, int a3)
{
__int16 v4; // w2
int v5; // w4
__int64 v6; // x1
__int64 v7; // x2
__int64 v8; // x3
__int64 v9; // x4
__int64 v10; // x5
__int64 v11; // x6
__int64 v12; // x7
size_t v13; // x0
switch ( a3 )
{
case -5:
v4 = 106;
v5 = 635;
goto LABEL_4;
case -4:
v4 = 103;
v5 = 632;
goto LABEL_4;
case -3:
v4 = 104;
v5 = 626;
goto LABEL_4;
case -2:
v4 = 102;
v5 = 629;
goto LABEL_4;
case 1:
*a1 = 0;
return;
default:
v4 = 101;
v5 = 638;
LABEL_4:
sub_1005E0E48(38, a2, v4, (__int64)"e_sureware.c", v5);
if ( *a1 )
{
sub_1005E19F0(1, v6, v7, v8, v9, v10, v11, v12, (char)a1);
if ( qword_100885B60 )
{
sub_100588190(9, 21, (__int64)"e_sureware.c", 646);
v13 = strlen(a1);
sub_1005DA72C(qword_100885B60, (__int64)a1, v13);
sub_100588190(10, 21, (__int64)"e_sureware.c", 648);
}
}
return;
}
}