//
// sub_78104E from 0x78104e to 0x781086 (56 bytes)
//
// 2 xrefs:
// > sub_781026 @ 0x78104a
// > sub_77FAEA @ 0x780526
//
// 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 sub_78104E()
{
_DWORD *v0; // r4
unsigned __int8 *v1; // r9
int v2; // r3
_BYTE *v3; // r3
_DWORD *v4; // r0
int v5; // r0
v2 = *v1;
if ( v2 != 109 && v2 != 112 )
sub_77FDC0();
if ( v1[1] != v2 )
sub_77FDC0();
v3 = (_BYTE *)v0[3];
if ( *v3 != 95 )
{
v4 = sub_77F4C0(v0);
sub_77BD98(v0, 56, (int)v4, (int)v4);
JUMPOUT(0x7808E4);
}
v0[3] = v3 + 1;
v5 = sub_77FDC0();
return sub_781096(v5);
}