//
// cocos2d::CCRenderTexture::saveToFile from 0x1800626f0 to 0x180062744 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd738
//
// 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:21:51 +0000
//
cocos2d::CCImage *__fastcall cocos2d::CCRenderTexture::saveToFile(cocos2d::CCRenderTexture *this, const char *a2)
{
cocos2d::CCImage *result; // rax
cocos2d::CCImage *v4; // rdi
bool v5; // bl
result = cocos2d::CCRenderTexture::newCCImage(this, 1);
v4 = result;
if ( result )
{
v5 = cocos2d::CCImage::saveToFile(result, a2, 0);
(*(void (__fastcall **)(cocos2d::CCImage *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return (cocos2d::CCImage *)v5;
}
return result;
}