//
// sub_781D9C from 0x781d9c to 0x781dbe (34 bytes)
//
// 4 xrefs:
// > sub_78145C @ 0x781d98
// > sub_781562 @ 0x781568
// > sub_781562 @ 0x78158e
// > sub_78145C @ 0x781d96
//
// 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_781D9C(int a1, int a2, int *a3)
{
int v3; // r4
_DWORD *v4; // r5
int v5; // r3
v5 = *a3;
if ( *a3 == 35 )
a1 = ((int (*)(void))sub_7831AC)();
if ( v5 == *v4 )
a1 = sub_7831AC(a1);
if ( v5 == 36 )
sub_783B88(a1);
return sub_781DBE(*(_DWORD *)(v3 + 276));
}