//
// kmGLPopMatrix from 0x1800bbe60 to 0x1800bbe6e (14 bytes)
//
// 17 xrefs:
// > cocos2d::CCNode::visit @ 0x1800058a5
// > cocos2d::CCClippingNode::visit @ 0x18005c83c
// > cocos2d::CCRenderTexture::clear @ 0x18005f8b6
// > cocos2d::CCRenderTexture::clear @ 0x18005f8cf
// > cocos2d::CCRenderTexture::clearDepth @ 0x18005f960
// > cocos2d::CCRenderTexture::clearDepth @ 0x18005f96f
// > cocos2d::CCRenderTexture::draw @ 0x18005fd6c
// > cocos2d::CCRenderTexture::draw @ 0x18005fd7b
// > cocos2d::CCRenderTexture::end @ 0x18005fddc
// > cocos2d::CCRenderTexture::end @ 0x18005fdf5
// > cocos2d::CCRenderTexture::newCCImage @ 0x1800603dc
// > cocos2d::CCRenderTexture::newCCImage @ 0x1800603eb
// > cocos2d::CCRenderTexture::visit @ 0x180060814
// > cocos2d::CCParticleBatchNode::visit @ 0x180061f29
// > cocos2d::CCSpriteBatchNode::visit @ 0x18008f616
// > cocos2d::CCDirector::drawScene @ 0x1800be477
// > ??> @ 0x1801438a8
//
// 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
//
__int64 kmGLPopMatrix()
{
__int64 result; // rax
__int64 v1; // rcx
v1 = qword_1801A9B08;
--*(_DWORD *)(qword_1801A9B08 + 4);
result = (unsigned int)(*(_DWORD *)(v1 + 4) - 1);
*(_QWORD *)(v1 + 8) = *(_QWORD *)(v1 + 16) + ((__int64)(int)result << 6);
return result;
}