//
// sub_7829C0 from 0x7829c0 to 0x782a0e (78 bytes)
//
// 2 xrefs:
// > sub_782998 @ 0x7829bc
// > sub_781676 @ 0x78168c
//
// 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 __noreturn sub_7829C0(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r4
__int64 v5; // r0
int v6; // r3
*((_BYTE *)v4 + a4) = 0;
v5 = ((__int64 (__fastcall *)(_DWORD *, int, _DWORD))v4[66])(v4, 255, v4[67]);
++v4[72];
sub_781692(v5, SHIDWORD(v5), 1, 0);
*((_BYTE *)v4 + v6) = 0;
((void (__fastcall *)(_DWORD *, int, _DWORD))v4[66])(v4, 255, v4[67]);
++v4[72];
JUMPOUT(0x78241E);
}