//
// sub_781562 from 0x781562 to 0x7815a0 (62 bytes)
//
// 2 xrefs:
// > sub_781544 @ 0x781560
// > sub_78320C @ 0x7832da
//
// 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_781562(int a1, int a2, _DWORD *a3)
{
int v3; // r4
int v4; // r8
int v5; // r9
int v6; // r3
if ( *a3 != 47 )
a1 = ((int (*)(void))sub_781D9C)();
v6 = *(_DWORD *)(v3 + 284);
while ( v6 > 0 )
{
a3 = (_DWORD *)a3[2];
--v6;
if ( !a3 || *a3 != 47 )
goto LABEL_10;
}
if ( !v6 && a3[1] )
a1 = sub_781D9C(a1);
LABEL_10:
if ( v5 )
*(_DWORD *)(v3 + 272) = v4;
return sub_7815A0(a1);
}