//
// sub_F4FC44 from 0xf4fc44 to 0xf4fcd8 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1533348
//
// 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:13:16 +0000
//
size_t __fastcall sub_F4FC44(__int64 a1, unsigned __int8 *ptr, signed __int64 n)
{
signed __int64 i; // x22
if ( *(_BYTE *)(a1 + 88) )
return fwrite(ptr, 1u, n, *(FILE **)(a1 + 64));
if ( n < 1 )
return 0;
for ( i = 0; i < n; ++i )
{
if ( (*(unsigned int (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 104LL))(a1, ptr[i]) == -1 )
break;
}
return i;
}