//
// sub_E38788 from 0xe38788 to 0xe387c8 (64 bytes)
//
// 1 xrefs:
// > lws_plat_init @ 0xe38f48
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:59 +0000
//
__int64 __fastcall sub_E38788(int a1, int fd, ssize_t *a3, void *buf, size_t n)
{
ssize_t v6; // x0
ssize_t v7; // x1
v6 = write(fd, buf, n);
if ( v6 == -1 )
v7 = 0;
else
v7 = v6;
*a3 = v7;
if ( v6 == -1 )
return 0xFFFFFFFFLL;
else
return 0;
}