//
// sub_782F30 from 0x782f30 to 0x782f66 (54 bytes)
//
// 1 xrefs:
// > sub_78238E @ 0x782396
//
// 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_782F30(int a1, int a2, int a3, int a4)
{
int v4; // r4
if ( a4 == 255 )
sub_783D72();
*(_DWORD *)(v4 + 256) = a4 + 1;
*(_BYTE *)(v4 + a4) = 95;
*(_BYTE *)(v4 + 260) = 95;
if ( a4 == 254 )
sub_783D48();
*(_DWORD *)(v4 + 256) = a4 + 2;
*(_BYTE *)(v4 + a4 + 1) = 70;
*(_BYTE *)(v4 + 260) = 70;
if ( a4 != 253 )
sub_782F66();
sub_783E2A();
}