//
// sub_78165C from 0x78165c to 0x781676 (26 bytes)
//
// 3 xrefs:
// > sub_78145C @ 0x781658
// > sub_78145C @ 0x781656
// > sub_7839DE @ 0x783a0a
//
// 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
//
int __fastcall sub_78165C(int a1, int a2, int a3, int a4)
{
int v4; // r4
char v5; // r7
*(_DWORD *)(v4 + 256) = a4 + 1;
*(_BYTE *)(v4 + a4) = v5;
*(_BYTE *)(v4 + 260) = v5;
if ( a4 == 254 )
sub_783870();
return sub_781676();
}