{"type": "func", "start": 6443388160, "end": 6443388312, "name": "sub_1800E4D00", "pseudocode": "// \n// sub_1800E4D00 from 0x1800e4d00 to 0x1800e4d98 (152 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getSpeakerPosition @ 0x1800af154\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:17 +0000\n// \n\n__int64 __fastcall sub_1800E4D00(__int64 a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)\n{\n  int v5; // eax\n\n  v5 = *(_DWORD *)(a1 + 70452);\n  if ( v5 == 4 )\n  {\n    if ( (unsigned int)(a2 - 2) > 1 )\n    {\n      if ( (unsigned int)(a2 - 4) <= 1 )\n        a2 -= 2;\n      goto LABEL_9;\n    }\n    return 31;\n  }\n  if ( v5 != 5 )\n    goto LABEL_9;\n  if ( a2 == 3 )\n    return 31;\n  if ( (unsigned int)(a2 - 4) <= 1 )\n    --a2;\nLABEL_9:\n  if ( a2 >= *(_DWORD *)(a1 + 1748) )\n    return 31;\n  if ( a3 )\n    *a3 = *(_DWORD *)(a1 + 48 * (a2 + 1468LL));\n  if ( a4 )\n    *a4 = *(_DWORD *)(a1 + 48LL * a2 + 70472);\n  if ( a5 )\n    *a5 = *(_BYTE *)(a1 + 48LL * a2 + 70496);\n  return 0;\n}", "assembly": "; \n; sub_1800E4D00 from 0x1800e4d00 to 0x1800e4d98 (152 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getSpeakerPosition @ 0x1800af154\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:17 +0000\n; \nmov     eax, [rcx+11334h]                                              ; +0x0, 0x1800e4d00\nmov     r10, rcx                                                       ; +0x6, 0x1800e4d06\ncmp     eax, 4                                                         ; +0x9, 0x1800e4d09\njnz     short loc_1800E4D23                                            ; +0xc, 0x1800e4d0c\nlea     eax, [rdx-2]                                                   ; +0xe, 0x1800e4d0e\ncmp     eax, 1                                                         ; +0x11, 0x1800e4d11\njbe     short loc_1800E4D3F                                            ; +0x14, 0x1800e4d14\nlea     eax, [rdx-4]                                                   ; +0x16, 0x1800e4d16\ncmp     eax, 1                                                         ; +0x19, 0x1800e4d19\nja      short loc_1800E4D37                                            ; +0x1c, 0x1800e4d1c\nadd     edx, 0FFFFFFFEh                                                ; +0x1e, 0x1800e4d1e\njmp     short loc_1800E4D37                                            ; +0x21, 0x1800e4d21\ncmp     eax, 5                                                         ; +0x23, 0x1800e4d23\njnz     short loc_1800E4D37                                            ; +0x26, 0x1800e4d26\ncmp     edx, 3                                                         ; +0x28, 0x1800e4d28\njz      short loc_1800E4D3F                                            ; +0x2b, 0x1800e4d2b\nlea     eax, [rdx-4]                                                   ; +0x2d, 0x1800e4d2d\ncmp     eax, 1                                                         ; +0x30, 0x1800e4d30\nja      short loc_1800E4D37                                            ; +0x33, 0x1800e4d33\ndec     edx                                                            ; +0x35, 0x1800e4d35\ncmp     edx, [rcx+6D4h]                                                ; +0x37, 0x1800e4d37\njl      short loc_1800E4D45                                            ; +0x3d, 0x1800e4d3d\nmov     eax, 1Fh                                                       ; +0x3f, 0x1800e4d3f\nretn                                                                   ; +0x44, 0x1800e4d44\nmovsxd  rcx, edx                                                       ; +0x45, 0x1800e4d45\ntest    r8, r8                                                         ; +0x48, 0x1800e4d48\njz      short loc_1800E4D62                                            ; +0x4b, 0x1800e4d4b\nlea     rax, [rcx+5BCh]                                                ; +0x4d, 0x1800e4d4d\nlea     rax, [rax+rax*2]                                               ; +0x54, 0x1800e4d54\nadd     rax, rax                                                       ; +0x58, 0x1800e4d58\nmov     eax, [r10+rax*8]                                               ; +0x5b, 0x1800e4d5b\nmov     [r8], eax                                                      ; +0x5f, 0x1800e4d5f\ntest    r9, r9                                                         ; +0x62, 0x1800e4d62\njz      short loc_1800E4D79                                            ; +0x65, 0x1800e4d65\nlea     rax, [rcx+rcx*2]                                               ; +0x67, 0x1800e4d67\nadd     rax, rax                                                       ; +0x6b, 0x1800e4d6b\nmov     eax, [r10+rax*8+11348h]                                        ; +0x6e, 0x1800e4d6e\nmov     [r9], eax                                                      ; +0x76, 0x1800e4d76\nmov     rdx, [rsp+arg_20]                                              ; +0x79, 0x1800e4d79\ntest    rdx, rdx                                                       ; +0x7e, 0x1800e4d7e\njz      short loc_1800E4D95                                            ; +0x81, 0x1800e4d81\nlea     rax, [rcx+rcx*2]                                               ; +0x83, 0x1800e4d83\nadd     rax, rax                                                       ; +0x87, 0x1800e4d87\nmovzx   eax, byte ptr [r10+rax*8+11360h]                               ; +0x8a, 0x1800e4d8a\nmov     [rdx], al                                                      ; +0x93, 0x1800e4d93\nxor     eax, eax                                                       ; +0x95, 0x1800e4d95\nretn                                                                   ; +0x97, 0x1800e4d97", "xrefs": ["FMOD::System::getSpeakerPosition @ 0x1800af154"], "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"}