//
// sub_10057E0DC from 0x10057e0dc to 0x10057e194 (184 bytes)
//
// 1 xrefs:
// > sub_10057E440 @ 0x10057e580
//
// 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
//
__int64 __fastcall sub_10057E0DC(char *a1, __int64 *a2, __int64 *a3, __int64 a4)
{
__int64 *v6; // x0
__int64 *v7; // x21
__int128 v9; // [xsp+8h] [xbp-48h] BYREF
__int64 v10; // [xsp+18h] [xbp-38h]
__int64 v11; // [xsp+20h] [xbp-30h]
v10 = *a3;
v11 = *a2;
v6 = sub_10057BBC0((__int64)&off_10082E070, a1, 16);
v7 = v6;
if ( !v6 )
return 27;
sub_1005700D0(v6);
sub_10057BD60(v7, (__int64)&v9);
*(_OWORD *)a4 = v9;
*(_QWORD *)(a4 + 16) = *a2;
return 0;
}