{"type": "func", "start": 6443397904, "end": 6443397986, "name": "sub_1800E7310", "pseudocode": "// \n// sub_1800E7310 from 0x1800e7310 to 0x1800e7362 (82 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setDSPBufferSize @ 0x1800b0f99\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_1800E7310(__int64 a1, unsigned int a2, int a3)\n{\n  if ( *(_BYTE *)(a1 + 8) )\n    return 27;\n  if ( !a2 || a3 < 2 || ((a3 * (unsigned __int64)a2) & 0xFFFFFFFF80000000uLL) != 0 )\n    return 31;\n  if ( (a2 & 3) != 0 )\n    a2 = (a2 + 3) & 0xFFFFFFFC;\n  *(_DWORD *)(a1 + 1752) = a2;\n  *(_DWORD *)(a1 + 1756) = a3 * a2;\n  return 0;\n}", "assembly": "; \n; sub_1800E7310 from 0x1800e7310 to 0x1800e7362 (82 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setDSPBufferSize @ 0x1800b0f99\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\ncmp     byte ptr [rcx+8], 0                                            ; +0x0, 0x1800e7310\nmov     r9, rcx                                                        ; +0x4, 0x1800e7314\njz      short loc_1800E731F                                            ; +0x7, 0x1800e7317\nmov     eax, 1Bh                                                       ; +0x9, 0x1800e7319\nretn                                                                   ; +0xe, 0x1800e731e\ncmp     edx, 1                                                         ; +0xf, 0x1800e731f\njb      short loc_1800E735C                                            ; +0x12, 0x1800e7322\ncmp     r8d, 2                                                         ; +0x14, 0x1800e7324\njl      short loc_1800E735C                                            ; +0x18, 0x1800e7328\nmov     ecx, edx                                                       ; +0x1a, 0x1800e732a\nmovsxd  rax, r8d                                                       ; +0x1c, 0x1800e732c\nimul    rcx, rax                                                       ; +0x1f, 0x1800e732f\ntest    rcx, 0FFFFFFFF80000000h                                        ; +0x23, 0x1800e7333\njnz     short loc_1800E735C                                            ; +0x2a, 0x1800e733a\ntest    dl, 3                                                          ; +0x2c, 0x1800e733c\njz      short loc_1800E7347                                            ; +0x2f, 0x1800e733f\nadd     edx, 3                                                         ; +0x31, 0x1800e7341\nand     edx, 0FFFFFFFCh                                                ; +0x34, 0x1800e7344\nmov     [r9+6D8h], edx                                                 ; +0x37, 0x1800e7347\nimul    edx, r8d                                                       ; +0x3e, 0x1800e734e\nxor     eax, eax                                                       ; +0x42, 0x1800e7352\nmov     [r9+6DCh], edx                                                 ; +0x44, 0x1800e7354\nretn                                                                   ; +0x4b, 0x1800e735b\nmov     eax, 1Fh                                                       ; +0x4c, 0x1800e735c\nretn                                                                   ; +0x51, 0x1800e7361", "xrefs": ["FMOD::System::setDSPBufferSize @ 0x1800b0f99"], "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"}