//
// sub_780396 from 0x780396 to 0x7803c0 (42 bytes)
//
// 2 xrefs:
// > sub_780050 @ 0x780394
// > sub_7810B0 @ 0x7810bc
//
// 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_780396(int a1)
{
_DWORD *v1; // r4
int v2; // r3
_DWORD *v3; // r7
v2 = v1[5];
if ( v2 < v1[6] )
{
v3 = (_DWORD *)(12 * v2 + v1[4]);
v1[5] = v2 + 1;
if ( v3 )
{
*v3 = 6;
v3[1] = a1;
}
}
sub_77FCC0();
}