{"type": "func", "start": 6443308288, "end": 6443308427, "name": "sub_1800D1500", "pseudocode": "// \n// sub_1800D1500 from 0x1800d1500 to 0x1800d158b (139 bytes)\n// \n// 2 xrefs:\n// > sub_1800107D0 @ 0x180010974\n// > <???> @ 0x1801feba4\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 10:54:09 +0000\n// \n\n__int64 __fastcall sub_1800D1500(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v5; // [rsp+30h] [rbp+8h] BYREF\n  __int64 v6; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 336) )\n    return 0;\n  if ( (unsigned int)FMOD::ChannelI::validate(a2, &v5, nullptr) )\n  {\n    if ( (unsigned int)sub_1800CCA80(a2, &v6, nullptr) )\n      return 0;\n    result = v6 + 520;\n  }\n  else\n  {\n    result = *(_QWORD *)(a1 + 336) + ((__int64)*(int *)(v5 + 464) << 6);\n  }\n  if ( *(_DWORD *)(result + 24) == 1 )\n  {\n    *(_DWORD *)(result + 24) = 2;\n    return result;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800D1500 from 0x1800d1500 to 0x1800d158b (139 bytes)\n; \n; 2 xrefs:\n; > sub_1800107D0 @ 0x180010974\n; > <???> @ 0x1801feba4\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 10:54:09 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800d1500\npush    rdi                                                            ; +0x5, 0x1800d1505\nsub     rsp, 20h                                                       ; +0x6, 0x1800d1506\ncmp     qword ptr [rcx+150h], 0                                        ; +0xa, 0x1800d150a\nmov     rdi, rdx                                                       ; +0x12, 0x1800d1512\nmov     rbx, rcx                                                       ; +0x15, 0x1800d1515\njz      short loc_1800D157E                                            ; +0x18, 0x1800d1518\nxor     r8d, r8d                                                       ; +0x1a, 0x1800d151a\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x1d, 0x1800d151d\nmov     rcx, rdi                                                       ; +0x22, 0x1800d1522\ncall    ?validate@ChannelI@FMOD@@SA?AW4FMOD_RESULT@@PEAVChannel@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::ChannelI::validate(FMOD::Channel *,FMOD::ChannelI * *,FMOD::SystemLockScope *) ; +0x25, 0x1800d1525\ntest    eax, eax                                                       ; +0x2a, 0x1800d152a\njnz     short loc_1800D155D                                            ; +0x2c, 0x1800d152c\nmov     rax, [rsp+28h+arg_0]                                           ; +0x2e, 0x1800d152e\nmovsxd  rax, dword ptr [rax+1D0h]                                      ; +0x33, 0x1800d1533\nshl     rax, 6                                                         ; +0x3a, 0x1800d153a\nadd     rax, [rbx+150h]                                                ; +0x3e, 0x1800d153e\ncmp     dword ptr [rax+18h], 1                                         ; +0x45, 0x1800d1545\njnz     short loc_1800D157E                                            ; +0x49, 0x1800d1549\nmov     dword ptr [rax+18h], 2                                         ; +0x4b, 0x1800d154b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x52, 0x1800d1552\nadd     rsp, 20h                                                       ; +0x57, 0x1800d1557\npop     rdi                                                            ; +0x5b, 0x1800d155b\nretn                                                                   ; +0x5c, 0x1800d155c\nxor     r8d, r8d                                                       ; +0x5d, 0x1800d155d\nlea     rdx, [rsp+28h+arg_10]                                          ; +0x60, 0x1800d1560\nmov     rcx, rdi                                                       ; +0x65, 0x1800d1565\ncall    sub_1800CCA80                                                  ; +0x68, 0x1800d1568\ntest    eax, eax                                                       ; +0x6d, 0x1800d156d\njnz     short loc_1800D157E                                            ; +0x6f, 0x1800d156f\nmov     rax, [rsp+28h+arg_10]                                          ; +0x71, 0x1800d1571\nadd     rax, 208h                                                      ; +0x76, 0x1800d1576\njmp     short loc_1800D1545                                            ; +0x7c, 0x1800d157c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7e, 0x1800d157e\nxor     eax, eax                                                       ; +0x83, 0x1800d1583\nadd     rsp, 20h                                                       ; +0x85, 0x1800d1585\npop     rdi                                                            ; +0x89, 0x1800d1589\nretn                                                                   ; +0x8a, 0x1800d158a", "xrefs": ["sub_1800107D0 @ 0x180010974", "<???> @ 0x1801feba4"], "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"}