//
// sub_180080370 from 0x180080370 to 0x1800803a4 (52 bytes)
//
// 2 xrefs:
// > cocos2d::CCImage::_saveImageToPNG @ 0x18007f158
// > ??> @ 0x1801bf1a8
//
// This function is hookable on this platform (idp: pc, 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 11:22:02 +0000
//
size_t __fastcall sub_180080370(__int64 a1, const void *a2, size_t a3)
{
FILE *io_ptr; // rax
io_ptr = (FILE *)png_get_io_ptr();
return fwrite(a2, 1u, a3, io_ptr);
}