//
// cocos2d::CCRenderTexture::end from 0x7e0538 to 0x7e0570 (56 bytes)
//
// 11 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x63fb4c
// > ShaderLayer::visit @ 0x6854dc
// > PlayerObject::playDeathEffect @ 0x6a33aa
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0x7aa298
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x7dae3a
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x7daee0
// > cocos2d::CCTransitionProgress::onEnter @ 0x7dbc54
// > cocos2d::CCRenderTexture::clear @ 0x7e0bbc
// > cocos2d::CCRenderTexture::clearDepth @ 0x7e0c2c
// > cocos2d::CCRenderTexture::draw @ 0x7e0d22
// > cocos2d::CCRenderTexture::newCCImage @ 0x7e0dee
//
// 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:48 +0000
//
_DWORD *__fastcall cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *this)
{
int v1; // r4
v1 = cocos2d::CCDirector::sharedDirector(this);
glBindFramebuffer();
cocos2d::CCDirector::setViewport(v1);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
return kmGLPopMatrix();
}