//
// sub_78244C from 0x78244c to 0x782472 (38 bytes)
//
// 2 xrefs:
// > sub_78241C @ 0x78244a
// > sub_783786 @ 0x7837aa
//
// 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_78244C(int a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r6
_DWORD *v6; // r7
int v7; // r0
int v8; // r3
*(_DWORD *)(v4 + 256) = a3;
*(_BYTE *)(v4 + a4) = 123;
*(_BYTE *)(v4 + 260) = 123;
v7 = sub_78145C(v4, v5, v6);
v8 = *(_DWORD *)(v4 + 256);
if ( v8 == 255 )
sub_78375E(v7);
sub_782472(v7, v8 + 1);
}