//
// sub_783786 from 0x783786 to 0x7837ae (40 bytes)
//
// 1 xrefs:
// > sub_78241C @ 0x782446
//
// 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_783786(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r4
__int64 v5; // r0
*((_BYTE *)v4 + a4) = 0;
v5 = ((__int64 (__fastcall *)(_DWORD *, int, _DWORD))v4[66])(v4, 255, v4[67]);
++v4[72];
sub_78244C(v5, SHIDWORD(v5), 1, 0);
}