//
// kmGLMatrixMode from 0x1001eb280 to 0x1001eb2b8 (56 bytes)
//
// 18 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x1004775d3
// > cocos2d::CCDirector::setProjection @ 0x100477619
// > cocos2d::CCDirector::setProjection @ 0x100477643
// > cocos2d::CCDirector::setProjection @ 0x10047768c
// > cocos2d::CCGridBase::set2DProjection @ 0x1004de9a2
// > cocos2d::CCGridBase::set2DProjection @ 0x1004de9e5
// > cocos2d::CCRenderTexture::begin @ 0x1006c85d3
// > cocos2d::CCRenderTexture::begin @ 0x1006c85e2
// > cocos2d::CCRenderTexture::end @ 0x1006c8b4f
// > cocos2d::CCRenderTexture::end @ 0x1006c8b5e
// > cocos2d::CCRenderTexture::clear @ 0x1006c8c1b
// > cocos2d::CCRenderTexture::clear @ 0x1006c8c2a
// > cocos2d::CCRenderTexture::clearDepth @ 0x1006c8cd1
// > cocos2d::CCRenderTexture::clearDepth @ 0x1006c8ce0
// > cocos2d::CCRenderTexture::draw @ 0x1006c8efa
// > cocos2d::CCRenderTexture::draw @ 0x1006c8f09
// > cocos2d::CCRenderTexture::newCCImage @ 0x1006c9160
// > cocos2d::CCRenderTexture::newCCImage @ 0x1006c916f
//
// 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 12:26:31 +0000
//
__int64 __fastcall kmGLMatrixMode(__int64 a1)
{
__int64 result; // rax
sub_1001EB1E0();
if ( (unsigned int)(a1 - 5888) >= 3 )
sub_1009A64F0(a1);
result = (__int64)*(&off_100AE0360 + (unsigned int)(a1 - 5888));
qword_100BE8AF8 = result;
return result;
}