//
// cocos2d::CCRenderTexture::end from 0x1003c0a74 to 0x1003c0ac0 (76 bytes)
//
// 3 xrefs:
// > PlayerObject::playDeathEffect @ 0x10005c520
// > ShaderLayer::visit @ 0x1002732f8
// > cocos2d::CCRenderTexture::draw @ 0x1003c0c40
//
// 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
//
void __fastcall cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *a1)
{
cocos2d::CCDirector *v2; // x20
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x0
__int64 v6; // x1
v2 = cocos2d::CCDirector::sharedDirector();
glBindFramebuffer(0x8D40u, a1->m_nOldFBO);
cocos2d::CCDirector::setViewport(v2);
v3 = sub_10016854C(5889);
sub_1001685D8(v3, v4);
v5 = sub_10016854C(5888);
sub_1001685D8(v5, v6);
}