	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcxhr_monitor_sw_put
_pcxhr_monitor_sw_put:                  ## @pcxhr_monitor_sw_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	8(%rax), %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	cmpl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	testl	%edx, %edx
	setne	%sil
	movl	%esi, (%rax)
	movl	$1, %ebx
LBB0_2:
	movl	4(%rcx), %ecx
	cmpl	%ecx, 4(%rax)
	jne	LBB0_3
## %bb.4:
	testb	$1, %bl
	jne	LBB0_5
LBB0_6:
	testb	$2, %bl
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_pcxhr_update_audio_pipe_level
LBB0_8:
	movq	8(%r14), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setne	%al
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%edx, %edx
	testl	%ecx, %ecx
	setne	%dl
	movl	%edx, 4(%rax)
	orl	$2, %ebx
	testb	$1, %bl
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pcxhr_update_audio_pipe_level
	testb	$2, %bl
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pcxhr_monitor_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcxhr_monitor_sw_put
_pcxhr_monitor_sw_put:                  ; @pcxhr_monitor_sw_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w11, [x8]
	ldr	w10, [x9]
	cmp	w11, w10
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	cmp	w10, #0
	cset	w10, ne
	str	w10, [x8]
	mov	w20, #1
LBB0_3:
	ldr	w10, [x8, #4]
	ldr	w9, [x9, #4]
	cmp	w10, w9
	b.ne	LBB0_8
; %bb.4:
	tbnz	w20, #0, LBB0_9
LBB0_5:
	tbz	w20, #1, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_pcxhr_update_audio_pipe_level
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
	cmp	w20, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	cmp	w9, #0
	cset	w9, ne
	str	w9, [x8, #4]
	orr	w20, w20, #0x2
	tbz	w20, #0, LBB0_5
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pcxhr_update_audio_pipe_level
	tbnz	w20, #1, LBB0_6
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pcxhr_monitor_sw_put
.subsections_via_symbols
