Function at 0x140040d30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
lea rdx, str.CCustomizeHP::AECustomize
mov rbx, rcx
mov r8d, 0x15a9
lea rcx, [0x1400e4bf0]
mov rsi, r9
call fcn.14005f240
test rbx, rbx
jne 0x140040d8e
mov r8d, 0x15aa
lea rdx, str.CCustomizeHP::AECustomize
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14005f240
test rdi, rdi
jne 0x140040d9b
mov r8d, 0x15ab
jmp 0x140040d6c
test rsi, rsi
jne 0x140040da8
mov r8d, 0x15ac
jmp 0x140040d6c
mov r8d, dword [0x140162d94]
test r8d, r8d
je 0x140040ed9
cmp dword [0x140162d90], 0
jne 0x140040dd2
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x140040ed9
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xd
lea rcx, str._s__d_m_HostAppPolicy.GlobalOutputMuteLED_UseAudioModule_d
and r9d, 1
mov r8d, 0x15c1
call fcn.14005f240
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xe
lea rcx, str._s__d_m_HostAppPolicy.GlobalInputMuteLED_UseAudioModule_d
and r9d, 1
mov r8d, 0x15c2
call fcn.14005f240
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0xf
lea rcx, str._s__d_m_HostAppPolicy.MuteNewDeviceWhenGlobalOutputIsMute_d
and r9d, 1
mov r8d, 0x15c3
call fcn.14005f240
movzx r9d, word [rdi + 0xe]
lea rdx, str.CCustomizeHP::AECustomize
and r9d, 1
lea rcx, str._s__d_m_HostAppPolicy.MuteNewDeviceWhenGlobalInputIsMute_d
mov r8d, 0x15c4
call fcn.14005f240
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x11
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue1_d
and r9d, 1
mov r8d, 0x15c5
call fcn.14005f240
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x12
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue2_d
and r9d, 1
mov r8d, 0x15c6
call fcn.14005f240
mov r9d, dword [rdi + 0xc]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x13
lea rcx, str._s__d_m_HostAppPolicy.MuteLedBehaviorTypeValue4_d
and r9d, 1
mov r8d, 0x15c7
call fcn.14005f240
mov r8d, dword [0x140162d94]
mov edx, dword [rdi + 0xc]
mov ecx, edx
mov eax, edx
shr ecx, 0x13
shr eax, 0x12
and ecx, 1
and eax, 1
shr edx, 0x11
and edx, 1
lea ecx, [rax + rcx*2]
lea eax, [rdx + rcx*2]
test eax, eax
je 0x140041003
mov byte [rbx + 0x249], al
mov eax, dword [rdi + 0xc]
shr eax, 0xd
xor eax, dword [rbx + 0x248]
and eax, 1
xor dword [rbx + 0x248], eax
mov eax, dword [rbx + 0x248]
mov ecx, dword [rdi + 0xc]
shr ecx, 0xd
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [rbx + 0x248], ecx
mov eax, dword [rdi + 0xc]
and eax, 0x6000
neg eax
mov eax, dword [rsi]
sbb ecx, ecx
btr eax, 0x1b
and ecx, 0x8000000
or ecx, eax
mov dword [rsi], ecx
test r8d, r8d
je 0x140041003
cmp dword [0x140162d90], 0
jne 0x140040f73
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x140041003
movzx r9d, byte [rbx + 0x249]
lea rdx, str.CCustomizeHP::AECustomize
mov r8d, 0x15d7
lea rcx, str._s__d_pGlobalPolicy__MuteLedBehaviorType_d
call fcn.14005f240
mov r9d, dword [rbx + 0x248]
lea rdx, str.CCustomizeHP::AECustomize
and r9d, 1
lea rcx, str._s__d_pGlobalPolicy__MuteLED_AudioOutputDev_d
mov r8d, 0x15d8
call fcn.14005f240
mov r9d, dword [rbx + 0x248]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 1
lea rcx, str._s__d_pGlobalPolicy__MuteLED_AudioInputDev_d
and r9d, 1
mov r8d, 0x15d9
call fcn.14005f240
mov r9d, dword [rsi]
lea rdx, str.CCustomizeHP::AECustomize
shr r9d, 0x1b
lea rcx, str._s__d_pAEConfig__SetMutedLedByAudioModule_V1_d
and r9d, 1
mov r8d, 0x15da
call fcn.14005f240
call fcn.140057470
xor ecx, ecx
test dword [rbx + 0x98], 0x100
jne 0x140041029
cmp dword [rbx + 0xb0], ecx
jl 0x140041029
test dword [rdi + 0xc], 0x8000
mov edx, ecx
je 0x14004102e
mov edx, 0x20000000
mov eax, dword [rsi]
btr eax, 0x1d
or eax, edx
mov dword [rsi], eax
test dword [rbx + 0x98], 0x100
jne 0x140041056
test dword [rbx + 0x38], 0x40000
jne 0x140041056
test dword [rdi + 0xc], 0x10000
je 0x14004105b
mov ecx, 0x40000000
mov rbx, qword [rsp + 0x30]
btr eax, 0x1e
or eax, ecx
mov dword [rsi], eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret