{"type": "func", "start": 6443204400, "end": 6443204618, "name": "kmMat4Inverse", "pseudocode": "// \n// kmMat4Inverse from 0x1800b7f30 to 0x1800b800a (218 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::convertToGL @ 0x1800be1d9\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8ca0\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 kmMat4Inverse(_OWORD *a1, __int128 *a2)\n{\n  __int128 v2; // xmm0\n  __int128 v4; // xmm1\n  __int128 v5; // xmm0\n  __int128 v6; // xmm1\n  __int128 v8; // xmm1\n  __int128 v9; // xmm0\n  __int128 v10; // xmm1\n  int v11; // [rsp+20h] [rbp-98h] BYREF\n  __int64 v12; // [rsp+24h] [rbp-94h]\n  __int64 v13; // [rsp+2Ch] [rbp-8Ch]\n  int v14; // [rsp+34h] [rbp-84h]\n  __int64 v15; // [rsp+38h] [rbp-80h]\n  __int64 v16; // [rsp+40h] [rbp-78h]\n  int v17; // [rsp+48h] [rbp-70h]\n  __int64 v18; // [rsp+4Ch] [rbp-6Ch]\n  __int64 v19; // [rsp+54h] [rbp-64h]\n  int v20; // [rsp+5Ch] [rbp-5Ch]\n  __int128 v21; // [rsp+60h] [rbp-58h] BYREF\n  __int128 v22; // [rsp+70h] [rbp-48h]\n  __int128 v23; // [rsp+80h] [rbp-38h]\n  __int128 v24; // [rsp+90h] [rbp-28h]\n\n  v2 = *a2;\n  v4 = a2[1];\n  v12 = 0;\n  v13 = 0;\n  v15 = 0;\n  v16 = 0;\n  v18 = 0;\n  v19 = 0;\n  v21 = v2;\n  v5 = a2[2];\n  v20 = 1065353216;\n  v22 = v4;\n  v6 = a2[3];\n  v17 = 1065353216;\n  v23 = v5;\n  v24 = v6;\n  v14 = 1065353216;\n  v11 = 1065353216;\n  if ( !(unsigned int)sub_1800B76D0((__int64)&v21, (__int64)&v11) )\n    return nullptr;\n  v8 = v22;\n  *a1 = v21;\n  v9 = v23;\n  a1[1] = v8;\n  v10 = v24;\n  a1[2] = v9;\n  a1[3] = v10;\n  return a1;\n}", "assembly": "; \n; kmMat4Inverse from 0x1800b7f30 to 0x1800b800a (218 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::convertToGL @ 0x1800be1d9\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8ca0\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     r11, rsp                                                       ; +0x0, 0x1800b7f30\npush    rbx                                                            ; +0x3, 0x1800b7f33\nsub     rsp, 0B0h                                                      ; +0x4, 0x1800b7f34\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800b7f3b\nxor     rax, rsp                                                       ; +0x12, 0x1800b7f42\nmov     [rsp+0B8h+var_18], rax                                         ; +0x15, 0x1800b7f45\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x1d, 0x1800b7f4d\nxor     eax, eax                                                       ; +0x20, 0x1800b7f50\nmov     rbx, rcx                                                       ; +0x22, 0x1800b7f52\nmovups  xmm1, xmmword ptr [rdx+10h]                                    ; +0x25, 0x1800b7f55\nmov     [rsp+0B8h+var_94], rax                                         ; +0x29, 0x1800b7f59\nlea     rcx, [r11-58h]                                                 ; +0x2e, 0x1800b7f5e\nmov     [rsp+0B8h+var_8C], rax                                         ; +0x32, 0x1800b7f62\nmov     [r11-80h], rax                                                 ; +0x37, 0x1800b7f67\nmov     [r11-78h], rax                                                 ; +0x3b, 0x1800b7f6b\nmov     [r11-6Ch], rax                                                 ; +0x3f, 0x1800b7f6f\nmov     [r11-64h], rax                                                 ; +0x43, 0x1800b7f73\nmovaps  [rsp+0B8h+var_58], xmm0                                        ; +0x47, 0x1800b7f77\nmovups  xmm0, xmmword ptr [rdx+20h]                                    ; +0x4c, 0x1800b7f7c\nmov     [rsp+0B8h+var_5C], 3F800000h                                   ; +0x50, 0x1800b7f80\nmovaps  [rsp+0B8h+var_48], xmm1                                        ; +0x58, 0x1800b7f88\nmovups  xmm1, xmmword ptr [rdx+30h]                                    ; +0x5d, 0x1800b7f8d\nlea     rdx, [rsp+0B8h+var_98]                                         ; +0x61, 0x1800b7f91\nmov     [rsp+0B8h+var_70], 3F800000h                                   ; +0x66, 0x1800b7f96\nmovaps  xmmword ptr [r11-38h], xmm0                                    ; +0x6e, 0x1800b7f9e\nmovaps  xmmword ptr [r11-28h], xmm1                                    ; +0x73, 0x1800b7fa3\nmov     [rsp+0B8h+var_84], 3F800000h                                   ; +0x78, 0x1800b7fa8\nmov     [rsp+0B8h+var_98], 3F800000h                                   ; +0x80, 0x1800b7fb0\ncall    sub_1800B76D0                                                  ; +0x88, 0x1800b7fb8\ntest    eax, eax                                                       ; +0x8d, 0x1800b7fbd\njnz     short loc_1800B7FC5                                            ; +0x8f, 0x1800b7fbf\nxor     eax, eax                                                       ; +0x91, 0x1800b7fc1\njmp     short loc_1800B7FF1                                            ; +0x93, 0x1800b7fc3\nmovaps  xmm0, [rsp+0B8h+var_58]                                        ; +0x95, 0x1800b7fc5\nmov     rax, rbx                                                       ; +0x9a, 0x1800b7fca\nmovaps  xmm1, [rsp+0B8h+var_48]                                        ; +0x9d, 0x1800b7fcd\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xa2, 0x1800b7fd2\nmovaps  xmm0, [rsp+0B8h+var_38]                                        ; +0xa5, 0x1800b7fd5\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0xad, 0x1800b7fdd\nmovaps  xmm1, [rsp+0B8h+var_28]                                        ; +0xb1, 0x1800b7fe1\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0xb9, 0x1800b7fe9\nmovups  xmmword ptr [rbx+30h], xmm1                                    ; +0xbd, 0x1800b7fed\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0xc1, 0x1800b7ff1\nxor     rcx, rsp; StackCookie                                          ; +0xc9, 0x1800b7ff9\ncall    __security_check_cookie                                        ; +0xcc, 0x1800b7ffc\nadd     rsp, 0B0h                                                      ; +0xd1, 0x1800b8001\npop     rbx                                                            ; +0xd8, 0x1800b8008\nretn                                                                   ; +0xd9, 0x1800b8009", "xrefs": ["cocos2d::CCDirector::convertToGL @ 0x1800be1d9", "<???> @ 0x1801438a8", "<???> @ 0x1801b8ca0"], "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"}