//
// sub_D080E from 0xd080e to 0xd0846 (56 bytes)
//
// 2 xrefs:
// > sub_724B0 @ 0x7252c
// > sub_72710 @ 0x72722
//
// 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_D080E(int *a1)
{
int v2; // r0
int v3; // r5
int result; // r0
if ( !a1 )
return -1;
v2 = *a1;
if ( !v2 )
return -1;
v3 = *(_DWORD *)(v2 + 28);
result = -1;
if ( v3 )
{
a1[3] = -1;
a1[4] = -1;
memset(a1 + 8, 255, 0x18u);
result = 0;
a1[6] = 0;
a1[7] = 0;
a1[5] = *(int *)(v3 + 4) >> 1;
}
return result;
}