//
// kmGLGetMatrix from 0x1800bbd00 to 0x1800bbd72 (114 bytes)
//
// 8 xrefs:
// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x180087690
// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008769f
// > cocos2d::CCDirector::convertToGL @ 0x1800be19b
// > cocos2d::CCDirector::convertToGL @ 0x1800be1ad
// > cocos2d::CCDirector::convertToUI @ 0x1800be2d3
// > cocos2d::CCDirector::convertToUI @ 0x1800be2e2
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8f7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_OWORD *__fastcall kmGLGetMatrix(int a1, _OWORD *a2)
{
_OWORD *result; // rax
int v5; // ebx
int v6; // ebx
result = (_OWORD *)sub_1800BBFE0();
v5 = a1 - 5888;
if ( !v5 )
return kmMat4Fill(a2, (_OWORD *)qword_1801ACCE8);
v6 = v5 - 1;
if ( !v6 )
return kmMat4Fill(a2, (_OWORD *)qword_1801ACCC8);
if ( v6 == 1 )
return kmMat4Fill(a2, (_OWORD *)qword_1801ACCA8);
return result;
}