//
// sub_7814DC from 0x7814dc to 0x781502 (38 bytes)
//
// 2 xrefs:
// > sub_7814CC @ 0x7814da
// > sub_783A7C @ 0x783aa0
//
// 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_7814DC(int a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r5
int v6; // r6
int v7; // r0
int v8; // r3
*(_DWORD *)(v4 + 256) = a3;
*(_BYTE *)(v4 + a4) = 40;
*(_BYTE *)(v4 + 260) = 40;
v7 = sub_78145C(v4, v6, *(_DWORD **)(v5 + 4));
v8 = *(_DWORD *)(v4 + 256);
if ( v8 == 255 )
v7 = sub_783A54(v7);
return sub_781502(v7, v8 + 1);
}