{"type": "func", "start": 6443220224, "end": 6443220338, "name": "kmGLGetMatrix", "pseudocode": "// \n// kmGLGetMatrix from 0x1800bbd00 to 0x1800bbd72 (114 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x180087690\n// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008769f\n// > cocos2d::CCDirector::convertToGL @ 0x1800be19b\n// > cocos2d::CCDirector::convertToGL @ 0x1800be1ad\n// > cocos2d::CCDirector::convertToUI @ 0x1800be2d3\n// > cocos2d::CCDirector::convertToUI @ 0x1800be2e2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8f7c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n_OWORD *__fastcall kmGLGetMatrix(int a1, _OWORD *a2)\n{\n  _OWORD *result; // rax\n  int v5; // ebx\n  int v6; // ebx\n\n  result = (_OWORD *)sub_1800BBFE0();\n  v5 = a1 - 5888;\n  if ( !v5 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801ACCE8);\n  v6 = v5 - 1;\n  if ( !v6 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801ACCC8);\n  if ( v6 == 1 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801ACCA8);\n  return result;\n}", "assembly": "; \n; kmGLGetMatrix from 0x1800bbd00 to 0x1800bbd72 (114 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x180087690\n; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008769f\n; > cocos2d::CCDirector::convertToGL @ 0x1800be19b\n; > cocos2d::CCDirector::convertToGL @ 0x1800be1ad\n; > cocos2d::CCDirector::convertToUI @ 0x1800be2d3\n; > cocos2d::CCDirector::convertToUI @ 0x1800be2e2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8f7c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bbd00\npush    rdi                                                            ; +0x5, 0x1800bbd05\nsub     rsp, 20h                                                       ; +0x6, 0x1800bbd06\nmov     rdi, rdx                                                       ; +0xa, 0x1800bbd0a\nmov     ebx, ecx                                                       ; +0xd, 0x1800bbd0d\ncall    sub_1800BBFE0                                                  ; +0xf, 0x1800bbd0f\nsub     ebx, 1700h                                                     ; +0x14, 0x1800bbd14\njz      short loc_1800BBD58                                            ; +0x1a, 0x1800bbd1a\nsub     ebx, 1                                                         ; +0x1c, 0x1800bbd1c\njz      short loc_1800BBD3F                                            ; +0x1f, 0x1800bbd1f\ncmp     ebx, 1                                                         ; +0x21, 0x1800bbd21\njnz     short loc_1800BBD67                                            ; +0x24, 0x1800bbd24\nmov     rdx, cs:qword_1801ACCA8                                        ; +0x26, 0x1800bbd26\nmov     rcx, rdi                                                       ; +0x2d, 0x1800bbd2d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x30, 0x1800bbd30\nadd     rsp, 20h                                                       ; +0x35, 0x1800bbd35\npop     rdi                                                            ; +0x39, 0x1800bbd39\njmp     kmMat4Fill                                                     ; +0x3a, 0x1800bbd3a\nmov     rdx, cs:qword_1801ACCC8                                        ; +0x3f, 0x1800bbd3f\nmov     rcx, rdi                                                       ; +0x46, 0x1800bbd46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x49, 0x1800bbd49\nadd     rsp, 20h                                                       ; +0x4e, 0x1800bbd4e\npop     rdi                                                            ; +0x52, 0x1800bbd52\njmp     kmMat4Fill                                                     ; +0x53, 0x1800bbd53\nmov     rdx, cs:qword_1801ACCE8                                        ; +0x58, 0x1800bbd58\nmov     rcx, rdi                                                       ; +0x5f, 0x1800bbd5f\ncall    kmMat4Fill                                                     ; +0x62, 0x1800bbd62\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x1800bbd67\nadd     rsp, 20h                                                       ; +0x6c, 0x1800bbd6c\npop     rdi                                                            ; +0x70, 0x1800bbd70\nretn                                                                   ; +0x71, 0x1800bbd71", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}