//
// cocos2d::CCRenderTexture::end from 0xd6a724 to 0xd6a770 (76 bytes)
//
// 12 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0xac2a50
// > ShaderLayer::visit @ 0xb2e4fc
// > PlayerObject::playDeathEffect @ 0xb54998
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0xd11044
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xd61fb4
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xd62074
// > cocos2d::CCTransitionProgress::onEnter @ 0xd6343c
// > cocos2d::CCRenderTexture::clear @ 0xd6b090
// > cocos2d::CCRenderTexture::clearDepth @ 0xd6b0f8
// > cocos2d::CCRenderTexture::draw @ 0xd6b1e4
// > cocos2d::CCRenderTexture::newCCImage @ 0xd6b374
// > ??> @ 0x50248
//
// This function is hookable on this platform (idp: arm, 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 13:07:56 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *this)
{
cocos2d::CCDirector *v1; // x19
v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
glBindFramebuffer();
cocos2d::CCDirector::setViewport(v1);
kmGLMatrixMode((__int64 *)((char *)&elf_hash_bucket[1346] + 1));
kmGLPopMatrix();
kmGLMatrixMode((__int64 *)&elf_hash_bucket[1346]);
return kmGLPopMatrix();
}