//
// sub_9E769C from 0x9e769c to 0x9e76e8 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77a60
//
// 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:07:24 +0000
//
size_t __fastcall sub_9E769C(int a1, void *ptr, size_t size)
{
bool v3; // zf
size_t v4; // r4
v3 = ptr == nullptr;
if ( ptr )
v3 = *(_DWORD *)(a1 + 12) == 0;
if ( v3 )
return 0;
v4 = size;
if ( !fwrite(ptr, size, 1u, *(FILE **)(a1 + 32)) )
return 0;
return v4;
}