//
// sub_7828F8 from 0x7828f8 to 0x782924 (44 bytes)
//
// 2 xrefs:
// > sub_78145C @ 0x7828f2
// > sub_783BF2 @ 0x783c2e
//
// 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 __noreturn sub_7828F8(const char *a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r5
int v6; // r6
_DWORD *v7; // r10
int v8; // r11
int v10; // r0
_DWORD *v11; // r2
int v12; // r0
if ( *v7 == 49 && *(_DWORD *)(v8 + 8) == 1 && **(_BYTE **)(v8 + 4) == 62 )
{
sub_77C11C(v4, 40);
a4 = *(_DWORD *)(v5 + 8);
a1 = **(const char ***)(*(_DWORD *)(v5 + 4) + 4);
}
v10 = strcmp(a1, "cl");
v11 = *(_DWORD **)(a4 + 4);
if ( !v10 && *v11 == 3 )
sub_78406E();
v12 = sub_7854F0(v4, v6, v11);
sub_782924(v12);
}