//
// sub_7D2A9C from 0x7d2a9c to 0x7d2ae8 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0xa307e0
//
// 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
//
size_t __fastcall sub_7D2A9C(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;
}