//
// sub_7803DC from 0x7803dc to 0x78040a (46 bytes)
//
// 2 xrefs:
// > sub_77FFBE @ 0x7803da
// > sub_781324 @ 0x781330
//
// 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 sub_7803DC(int a1)
{
int *v1; // r4
int v2; // r7
int v3; // r3
int v4; // r1
_DWORD *v5; // r8
v3 = v1[5];
if ( v3 >= v1[6] )
JUMPOUT(0x780770);
v4 = v1[4];
v5 = (_DWORD *)(v4 + 12 * v3);
v1[5] = v3 + 1;
if ( v5 )
{
*v5 = 6;
v5[1] = v2;
}
sub_780050(a1, v4, *(unsigned __int8 *)v1[3], v1[3]);
}