//
// kmGLMatrixMode from 0x7d1c08 to 0x7d1c46 (62 bytes)
//
// 10 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x7ca2ee
// > cocos2d::CCDirector::setProjection @ 0x7ca31a
// > cocos2d::CCDirector::setProjection @ 0x7ca344
// > cocos2d::CCDirector::setProjection @ 0x7ca378
// > cocos2d::CCGridBase::set2DProjection @ 0x7ce634
// > cocos2d::CCGridBase::set2DProjection @ 0x7ce660
// > cocos2d::CCRenderTexture::end @ 0x7e0558
// > cocos2d::CCRenderTexture::end @ 0x7e0564
// > cocos2d::CCRenderTexture::begin @ 0x7e093a
// > cocos2d::CCRenderTexture::begin @ 0x7e0946
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:35 +0000
//
void __fastcall kmGLMatrixMode(int a1)
{
int (**v2)[2]; // r2
lazyInitialize();
switch ( a1 )
{
case 5889:
v2 = projection_matrix_stack_ptr;
break;
case 5890:
v2 = &texture_matrix_stack_ptr;
break;
case 5888:
v2 = modelview_matrix_stack_ptr;
break;
default:
return;
}
current_stack = (int)*v2;
}