{"type": "func", "start": 6443234400, "end": 6443234514, "name": "kmGLGetMatrix", "pseudocode": "// \n// kmGLGetMatrix from 0x1800bf460 to 0x1800bf4d2 (114 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a830\n// > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a83f\n// > cocos2d::CCDirector::convertToGL @ 0x1800c19bb\n// > cocos2d::CCDirector::convertToGL @ 0x1800c19cd\n// > cocos2d::CCDirector::convertToUI @ 0x1800c1af3\n// > cocos2d::CCDirector::convertToUI @ 0x1800c1b02\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3234\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:24 +0000\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_1800BF740();\n  v5 = a1 - 5888;\n  if ( !v5 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801B6D68);\n  v6 = v5 - 1;\n  if ( !v6 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801B6D48);\n  if ( v6 == 1 )\n    return kmMat4Fill(a2, (_OWORD *)qword_1801B6D28);\n  return result;\n}", "assembly": "; \n; kmGLGetMatrix from 0x1800bf460 to 0x1800bf4d2 (114 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a830\n; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x18008a83f\n; > cocos2d::CCDirector::convertToGL @ 0x1800c19bb\n; > cocos2d::CCDirector::convertToGL @ 0x1800c19cd\n; > cocos2d::CCDirector::convertToUI @ 0x1800c1af3\n; > cocos2d::CCDirector::convertToUI @ 0x1800c1b02\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3234\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:24 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bf460\npush    rdi                                                            ; +0x5, 0x1800bf465\nsub     rsp, 20h                                                       ; +0x6, 0x1800bf466\nmov     rdi, rdx                                                       ; +0xa, 0x1800bf46a\nmov     ebx, ecx                                                       ; +0xd, 0x1800bf46d\ncall    sub_1800BF740                                                  ; +0xf, 0x1800bf46f\nsub     ebx, 1700h                                                     ; +0x14, 0x1800bf474\njz      short loc_1800BF4B8                                            ; +0x1a, 0x1800bf47a\nsub     ebx, 1                                                         ; +0x1c, 0x1800bf47c\njz      short loc_1800BF49F                                            ; +0x1f, 0x1800bf47f\ncmp     ebx, 1                                                         ; +0x21, 0x1800bf481\njnz     short loc_1800BF4C7                                            ; +0x24, 0x1800bf484\nmov     rdx, cs:qword_1801B6D28                                        ; +0x26, 0x1800bf486\nmov     rcx, rdi                                                       ; +0x2d, 0x1800bf48d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x30, 0x1800bf490\nadd     rsp, 20h                                                       ; +0x35, 0x1800bf495\npop     rdi                                                            ; +0x39, 0x1800bf499\njmp     kmMat4Fill                                                     ; +0x3a, 0x1800bf49a\nmov     rdx, cs:qword_1801B6D48                                        ; +0x3f, 0x1800bf49f\nmov     rcx, rdi                                                       ; +0x46, 0x1800bf4a6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x49, 0x1800bf4a9\nadd     rsp, 20h                                                       ; +0x4e, 0x1800bf4ae\npop     rdi                                                            ; +0x52, 0x1800bf4b2\njmp     kmMat4Fill                                                     ; +0x53, 0x1800bf4b3\nmov     rdx, cs:qword_1801B6D68                                        ; +0x58, 0x1800bf4b8\nmov     rcx, rdi                                                       ; +0x5f, 0x1800bf4bf\ncall    kmMat4Fill                                                     ; +0x62, 0x1800bf4c2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x1800bf4c7\nadd     rsp, 20h                                                       ; +0x6c, 0x1800bf4cc\npop     rdi                                                            ; +0x70, 0x1800bf4d0\nretn                                                                   ; +0x71, 0x1800bf4d1", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}