//
// sub_8857E4 from 0x8857e4 to 0x88581a (54 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:03:13 +0000
//
int __fastcall sub_8857E4(_DWORD *a1)
{
int v1; // r4
int v3; // r3
v1 = a1[6];
if ( fwrite(*(const void **)(v1 + 24), 1u, 0x1000u, *(FILE **)(v1 + 20)) != 4096 )
{
*(_DWORD *)(*a1 + 20) = 38;
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
v3 = *(_DWORD *)(v1 + 24);
*(_DWORD *)(v1 + 4) = 4096;
*(_DWORD *)v1 = v3;
return 1;
}