//
// sub_781502 from 0x781502 to 0x78151c (26 bytes)
//
// 2 xrefs:
// > sub_7814DC @ 0x781500
// > sub_783A54 @ 0x783a78
//
// 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
//
int __fastcall sub_781502(int a1, int a2, int a3, int a4)
{
int v4; // r4
_DWORD *v5; // r5
*(_DWORD *)(v4 + 256) = a2;
*(_BYTE *)(v4 + a4) = 41;
*(_BYTE *)(v4 + 260) = 41;
if ( *v5 == 61 )
sub_783BE6();
return sub_78151C();
}