{"type": "func", "start": 6443399392, "end": 6443399529, "name": "sub_1800E78E0", "pseudocode": "// \n// sub_1800E78E0 from 0x1800e78e0 to 0x1800e7969 (137 bytes)\n// \n// 2 xrefs:\n// > FMOD::System::setSoftwareFormat @ 0x1800b19d3\n// > <???> @ 0x1801fff24\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__int64 __fastcall sub_1800E78E0(__int64 a1, int a2, int a3, int a4)\n{\n  if ( *(_BYTE *)(a1 + 8) )\n    return 27;\n  if ( a2 && (unsigned int)(a2 - 8000) > 0x2CEC0 || a3 >= 9 || a3 == 1 && !a4 )\n    return 31;\n  if ( a4 > 32 )\n    return 64;\n  if ( a2 )\n    *(_DWORD *)(a1 + 1744) = a2;\n  *(_DWORD *)(a1 + 70452) = a3;\n  if ( a3 != 1 )\n    a4 = sub_180096E30(a3);\n  *(_DWORD *)(a1 + 1748) = a4;\n  return 0;\n}", "assembly": "; \n; sub_1800E78E0 from 0x1800e78e0 to 0x1800e7969 (137 bytes)\n; \n; 2 xrefs:\n; > FMOD::System::setSoftwareFormat @ 0x1800b19d3\n; > <???> @ 0x1801fff24\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\npush    rbx                                                            ; +0x0, 0x1800e78e0\nsub     rsp, 20h                                                       ; +0x2, 0x1800e78e2\ncmp     byte ptr [rcx+8], 0                                            ; +0x6, 0x1800e78e6\nmov     rbx, rcx                                                       ; +0xa, 0x1800e78ea\njz      short loc_1800E78FA                                            ; +0xd, 0x1800e78ed\nmov     eax, 1Bh                                                       ; +0xf, 0x1800e78ef\nadd     rsp, 20h                                                       ; +0x14, 0x1800e78f4\npop     rbx                                                            ; +0x18, 0x1800e78f8\nretn                                                                   ; +0x19, 0x1800e78f9\ntest    edx, edx                                                       ; +0x1a, 0x1800e78fa\njz      short loc_1800E790B                                            ; +0x1c, 0x1800e78fc\nlea     eax, [rdx-1F40h]                                               ; +0x1e, 0x1800e78fe\ncmp     eax, 2CEC0h                                                    ; +0x24, 0x1800e7904\nja      short loc_1800E795E                                            ; +0x29, 0x1800e7909\ncmp     r8d, 9                                                         ; +0x2b, 0x1800e790b\njge     short loc_1800E795E                                            ; +0x2f, 0x1800e790f\ncmp     r8d, 1                                                         ; +0x31, 0x1800e7911\njnz     short loc_1800E791C                                            ; +0x35, 0x1800e7915\ntest    r9d, r9d                                                       ; +0x37, 0x1800e7917\njz      short loc_1800E795E                                            ; +0x3a, 0x1800e791a\ncmp     r9d, 20h ; ' '                                                 ; +0x3c, 0x1800e791c\njle     short loc_1800E792D                                            ; +0x40, 0x1800e7920\nmov     eax, 40h ; '@'                                                 ; +0x42, 0x1800e7922\nadd     rsp, 20h                                                       ; +0x47, 0x1800e7927\npop     rbx                                                            ; +0x4b, 0x1800e792b\nretn                                                                   ; +0x4c, 0x1800e792c\ntest    edx, edx                                                       ; +0x4d, 0x1800e792d\njz      short loc_1800E7937                                            ; +0x4f, 0x1800e792f\nmov     [rcx+6D0h], edx                                                ; +0x51, 0x1800e7931\nmov     [rcx+11334h], r8d                                              ; +0x57, 0x1800e7937\ncmp     r8d, 1                                                         ; +0x5e, 0x1800e793e\njz      short loc_1800E794F                                            ; +0x62, 0x1800e7942\nmov     ecx, r8d                                                       ; +0x64, 0x1800e7944\ncall    sub_180096E30                                                  ; +0x67, 0x1800e7947\nmov     r9d, eax                                                       ; +0x6c, 0x1800e794c\nmov     [rbx+6D4h], r9d                                                ; +0x6f, 0x1800e794f\nxor     eax, eax                                                       ; +0x76, 0x1800e7956\nadd     rsp, 20h                                                       ; +0x78, 0x1800e7958\npop     rbx                                                            ; +0x7c, 0x1800e795c\nretn                                                                   ; +0x7d, 0x1800e795d\nmov     eax, 1Fh                                                       ; +0x7e, 0x1800e795e\nadd     rsp, 20h                                                       ; +0x83, 0x1800e7963\npop     rbx                                                            ; +0x87, 0x1800e7967\nretn                                                                   ; +0x88, 0x1800e7968", "xrefs": ["FMOD::System::setSoftwareFormat @ 0x1800b19d3", "<???> @ 0x1801fff24"], "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"}