{"type": "func", "start": 6443503872, "end": 6443503956, "name": "sub_180101100", "pseudocode": "// \n// sub_180101100 from 0x180101100 to 0x180101154 (84 bytes)\n// \n// 7 xrefs:\n// > sub_180087EC0 @ 0x180087f05\n// > FMOD::System::getSpeakerModeChannels @ 0x1800af061\n// > sub_1800EA910 @ 0x1800ea9d1\n// > sub_1800EA910 @ 0x1800eaa5a\n// > sub_1800EA910 @ 0x1800eaa94\n// > sub_1800EB320 @ 0x1800eb500\n// > sub_1800EB320 @ 0x1800eb5fa\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:29 +0000\n// \n\n__int64 __fastcall sub_180101100(__int64 a1, int a2, _DWORD *a3)\n{\n  if ( !a3 )\n    return 31;\n  if ( !a2 )\n  {\n    *a3 = *(_DWORD *)(a1 + 1748);\n    return 0;\n  }\n  if ( !*(_BYTE *)(a1 + 8) )\n    return 67;\n  if ( (unsigned int)(a2 - 1) > 7 )\n    return 31;\n  *a3 = *(_DWORD *)(192LL * a2 + a1 + 70936);\n  return 0;\n}", "assembly": "; \n; sub_180101100 from 0x180101100 to 0x180101154 (84 bytes)\n; \n; 7 xrefs:\n; > sub_180087EC0 @ 0x180087f05\n; > FMOD::System::getSpeakerModeChannels @ 0x1800af061\n; > sub_1800EA910 @ 0x1800ea9d1\n; > sub_1800EA910 @ 0x1800eaa5a\n; > sub_1800EA910 @ 0x1800eaa94\n; > sub_1800EB320 @ 0x1800eb500\n; > sub_1800EB320 @ 0x1800eb5fa\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:29 +0000\n; \nmov     r9, rcx                                                        ; +0x0, 0x180101100\ntest    r8, r8                                                         ; +0x3, 0x180101103\njz      short loc_18010114E                                            ; +0x6, 0x180101106\ntest    edx, edx                                                       ; +0x8, 0x180101108\njnz     short loc_18010111C                                            ; +0xa, 0x18010110a\nadd     r9, 6D4h                                                       ; +0xc, 0x18010110c\nmov     eax, [r9]                                                      ; +0x13, 0x180101113\nmov     [r8], eax                                                      ; +0x16, 0x180101116\nxor     eax, eax                                                       ; +0x19, 0x180101119\nretn                                                                   ; +0x1b, 0x18010111b\ncmp     byte ptr [rcx+8], 0                                            ; +0x1c, 0x18010111c\njnz     short loc_180101128                                            ; +0x20, 0x180101120\nmov     eax, 43h ; 'C'                                                 ; +0x22, 0x180101122\nretn                                                                   ; +0x27, 0x180101127\nlea     eax, [rdx-1]                                                   ; +0x28, 0x180101128\ncmp     eax, 7                                                         ; +0x2b, 0x18010112b\nja      short loc_18010114E                                            ; +0x2e, 0x18010112e\nmovsxd  rax, edx                                                       ; +0x30, 0x180101130\nadd     r9, 11518h                                                     ; +0x33, 0x180101133\nlea     rcx, [rax+rax*2]                                               ; +0x3a, 0x18010113a\nshl     rcx, 6                                                         ; +0x3e, 0x18010113e\nadd     r9, rcx                                                        ; +0x42, 0x180101142\nmov     eax, [r9]                                                      ; +0x45, 0x180101145\nmov     [r8], eax                                                      ; +0x48, 0x180101148\nxor     eax, eax                                                       ; +0x4b, 0x18010114b\nretn                                                                   ; +0x4d, 0x18010114d\nmov     eax, 1Fh                                                       ; +0x4e, 0x18010114e\nretn                                                                   ; +0x53, 0x180101153", "xrefs": ["sub_180087EC0 @ 0x180087f05", "FMOD::System::getSpeakerModeChannels @ 0x1800af061", "sub_1800EA910 @ 0x1800ea9d1", "sub_1800EA910 @ 0x1800eaa5a", "sub_1800EA910 @ 0x1800eaa94", "sub_1800EB320 @ 0x1800eb500", "sub_1800EB320 @ 0x1800eb5fa"], "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"}