//
// sub_783406 from 0x783406 to 0x78343e (56 bytes)
//
// 2 xrefs:
// > sub_7833F0 @ 0x783402
// > sub_7822F6 @ 0x782350
//
// 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 __noreturn sub_783406()
{
int v0; // r4
int v1; // r2
v1 = *(_DWORD *)(v0 + 256);
if ( v1 == 255 )
sub_784136();
*(_DWORD *)(v0 + 256) = v1 + 1;
*(_BYTE *)(v0 + v1) = 95;
*(_BYTE *)(v0 + 260) = 95;
if ( v1 == 254 )
sub_784108();
*(_DWORD *)(v0 + 256) = v1 + 2;
*(_BYTE *)(v0 + v1 + 1) = 83;
*(_BYTE *)(v0 + 260) = 83;
if ( v1 != 253 )
sub_78343E();
sub_7840DC();
}