//
// sub_7840DC from 0x7840dc to 0x784108 (44 bytes)
//
// 1 xrefs:
// > sub_783406 @ 0x78343a
//
// 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_7840DC(int a1, int a2)
{
int v2; // r4
char v3; // r7
__int64 v4; // r0
*(_BYTE *)(v2 + a2) = 0;
v4 = ((__int64 (__fastcall *)(int))*(_DWORD *)(v2 + 264))(v2);
++*(_DWORD *)(v2 + 288);
*(_BYTE *)v2 = v3;
*(_BYTE *)(v2 + 1) = 116;
sub_78346E(v4, SHIDWORD(v4), 116, 2);
}