//
// sub_782FEA from 0x782fea to 0x78301c (50 bytes)
//
// 1 xrefs:
// > sub_78145C @ 0x782600
//
// 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_782FEA(int a1, int a2, int a3, int a4)
{
int v4; // r4
if ( a4 == 255 )
sub_783DCE();
*(_DWORD *)(a1 + a2) = a4 + 1;
*(_BYTE *)(v4 + a4) = 123;
*(_BYTE *)(v4 + 260) = 123;
if ( a4 == 254 )
sub_783DA0();
*(_DWORD *)(v4 + a2) = a4 + 2;
*(_BYTE *)(v4 + a4 + 1) = 112;
*(_BYTE *)(v4 + 260) = 112;
if ( a4 != 253 )
sub_78301C();
sub_783CCA();
}