//
// cocos2d::CCRenderTexture::end from 0x1004677a4 to 0x1004677f0 (76 bytes)
//
// 3 xrefs:
// > PlayerObject::playDeathEffect @ 0x100064ca0
// > ShaderLayer::visit @ 0x100311158
// > cocos2d::CCRenderTexture::draw @ 0x100467970
//
// 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 11:05:33 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::end(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x0
__int64 v6; // x1
v2 = cocos2d::CCDirector::sharedDirector();
glBindFramebuffer(0x8D40u, *(_DWORD *)(a1 + 336));
cocos2d::CCDirector::setViewport(v2);
v3 = kmGLMatrixMode(5889);
kmGLPopMatrix(v3, v4);
v5 = kmGLMatrixMode(5888);
return kmGLPopMatrix(v5, v6);
}