//
// cocos2d::CCRenderTexture::saveToFile from 0x7e0ee4 to 0x7e0f0c (40 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:49 +0000
//
int __fastcall cocos2d::CCRenderTexture::saveToFile(cocos2d::CCRenderTexture *this, const char *a2)
{
cocos2d::CCImage *v3; // r0
cocos2d::CCImage *v4; // r4
int v5; // r5
v3 = cocos2d::CCRenderTexture::newCCImage(this, 1);
v4 = v3;
if ( !v3 )
return 0;
v5 = cocos2d::CCImage::saveToFile(v3, a2, 0);
(*(void (__fastcall **)(cocos2d::CCImage *))(*(_DWORD *)v4 + 8))(v4);
return v5;
}