//
// kmGLPopMatrix from 0x1800bf5c0 to 0x1800bf5ce (14 bytes)
//
// 17 xrefs:
// > cocos2d::CCNode::visit @ 0x1800059a5
// > cocos2d::CCClippingNode::visit @ 0x18005e880
// > cocos2d::CCRenderTexture::clear @ 0x180061a99
// > cocos2d::CCRenderTexture::clear @ 0x180061ab2
// > cocos2d::CCRenderTexture::clearDepth @ 0x180061b43
// > cocos2d::CCRenderTexture::clearDepth @ 0x180061b52
// > cocos2d::CCRenderTexture::draw @ 0x180061f4f
// > cocos2d::CCRenderTexture::draw @ 0x180061f5e
// > cocos2d::CCRenderTexture::end @ 0x180061fbf
// > cocos2d::CCRenderTexture::end @ 0x180061fd8
// > cocos2d::CCRenderTexture::newCCImage @ 0x1800625ff
// > cocos2d::CCRenderTexture::newCCImage @ 0x18006260e
// > cocos2d::CCRenderTexture::visit @ 0x180062a54
// > cocos2d::CCParticleBatchNode::visit @ 0x180064349
// > cocos2d::CCSpriteBatchNode::visit @ 0x180092856
// > cocos2d::CCDirector::drawScene @ 0x1800c1c97
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 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:22:24 +0000
//
__int64 kmGLPopMatrix()
{
__int64 result; // rax
__int64 v1; // rcx
v1 = qword_1801B3B80;
--*(_DWORD *)(qword_1801B3B80 + 4);
result = (unsigned int)(*(_DWORD *)(v1 + 4) - 1);
*(_QWORD *)(v1 + 8) = *(_QWORD *)(v1 + 16) + ((__int64)(int)result << 6);
return result;
}