//
// kmGLMatrixMode from 0x1001f12f8 to 0x1001f1340 (72 bytes)
//
// 10 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x100206a48
// > cocos2d::CCDirector::setProjection @ 0x100206a80
// > cocos2d::CCDirector::setProjection @ 0x100206aa0
// > cocos2d::CCDirector::setProjection @ 0x100206ad8
// > cocos2d::CCGridBase::set2DProjection @ 0x1003e0ba0
// > cocos2d::CCGridBase::set2DProjection @ 0x1003e0bd0
// > cocos2d::CCRenderTexture::begin @ 0x1004674b8
// > cocos2d::CCRenderTexture::begin @ 0x1004674c4
// > cocos2d::CCRenderTexture::end @ 0x1004677d4
// > cocos2d::CCRenderTexture::end @ 0x1004677e0
//
// 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:00:38 +0000
//
__int64 __fastcall kmGLMatrixMode(int a1)
{
__int64 result; // x0
result = sub_1001F1258();
if ( (unsigned int)(a1 - 5888) >= 3 )
sub_100754F60(result);
qword_100A0F870 = (__int64)*(&off_1008F2DA0 + (unsigned int)(a1 - 5888));
return result;
}