//
// kmGLGetMatrix from 0x1800bf460 to 0x1800bf4d2 (114 bytes)
//
// 8 xrefs:
// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a830
// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a83f
// > cocos2d::CCDirector::convertToGL @ 0x1800c19bb
// > cocos2d::CCDirector::convertToGL @ 0x1800c19cd
// > cocos2d::CCDirector::convertToUI @ 0x1800c1af3
// > cocos2d::CCDirector::convertToUI @ 0x1800c1b02
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3234
//
// 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
//
_OWORD *__fastcall kmGLGetMatrix(int a1, _OWORD *a2)
{
_OWORD *result; // rax
int v5; // ebx
int v6; // ebx
result = (_OWORD *)sub_1800BF740();
v5 = a1 - 5888;
if ( !v5 )
return kmMat4Fill(a2, (_OWORD *)qword_1801B6D68);
v6 = v5 - 1;
if ( !v6 )
return kmMat4Fill(a2, (_OWORD *)qword_1801B6D48);
if ( v6 == 1 )
return kmMat4Fill(a2, (_OWORD *)qword_1801B6D28);
return result;
}