//
// sub_D7CAD0 from 0xd7cad0 to 0xd7cb00 (48 bytes)
//
// 2 xrefs:
// > cocos2d::CCImage::_saveImageToPNG @ 0xd7d8b8
// > cocos2d::CCImage::_saveImageToPNG @ 0xd7d8c4
//
// 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:08:08 +0000
//
size_t __fastcall sub_D7CAD0(__int64 a1, const void *a2, size_t a3)
{
FILE *io_ptr; // x0
io_ptr = (FILE *)png_get_io_ptr();
return fwrite(a2, 1u, a3, io_ptr);
}