	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixart_monitor_sw_put
_mixart_monitor_sw_put:                 ## @mixart_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_mutex_lock
	movq	(%r15), %rcx
	movq	(%rbx), %rbx
	movl	(%rcx), %edx
	movl	(%rbx), %esi
	movl	$2, %r13d
	movl	%edx, %eax
	cmpl	%esi, %edx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%esi, %esi
	setne	%al
	movl	%eax, (%rcx)
	movl	$3, %r13d
LBB0_2:
	movl	4(%rcx), %edi
	movl	4(%rbx), %ebx
	cmpl	%ebx, %edi
	jne	LBB0_3
## %bb.4:
	movl	$1, %r13d
	xorl	%r14d, %r14d
	cmpl	%esi, %edx
	jne	LBB0_5
	jmp	LBB0_13
LBB0_3:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	movl	%edi, 4(%rcx)
LBB0_5:
	orl	%edi, %eax
	sete	%r12b
	jne	LBB0_6
## %bb.7:
	testb	$1, %r13b
	jne	LBB0_8
LBB0_9:
	testb	$2, %r13b
	je	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mixart_update_monitoring
LBB0_11:
	movl	$1, %r14d
	testb	%r12b, %r12b
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rdi
	leaq	20(%r15), %rsi
	movl	$1, %r14d
	movl	$1, %edx
	callq	_snd_mixart_kill_ref_pipe
	movq	8(%r15), %rdi
	movq	%r15, %rsi
	addq	$16, %rsi
	movl	$1, %edx
	callq	_snd_mixart_kill_ref_pipe
LBB0_13:
	movq	8(%r15), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MIXART_PCM_ANALOG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_snd_mixart_add_ref_pipe
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_snd_mixart_add_ref_pipe
	testb	$1, %r13b
	je	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mixart_update_monitoring
	testb	$2, %r13b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MIXART_PCM_ANALOG,4,2          ## @MIXART_PCM_ANALOG
	.no_dead_strip	_mixart_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 mixart_monitor_sw_put
_mixart_monitor_sw_put:                 ; @mixart_monitor_sw_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_mutex_lock
	ldr	x9, [x19]
	ldr	x12, [x20]
	ldr	w10, [x9]
	ldr	w11, [x12]
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #2
	mov	x8, x10
	b	LBB0_3
LBB0_2:
	cmp	w11, #0
	cset	w8, ne
	str	w8, [x9]
	mov	w20, #3
LBB0_3:
	ldr	w13, [x9, #4]
	ldr	w12, [x12, #4]
	cmp	w13, w12
	b.ne	LBB0_6
; %bb.4:
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.5:
	mov	w20, #0
	b	LBB0_17
LBB0_6:
	cmp	w12, #0
	cset	w13, ne
	str	w13, [x9, #4]
	b	LBB0_8
LBB0_7:
	mov	w20, #1
LBB0_8:
	orr	w8, w8, w13
	cmp	w8, #0
	cset	w21, eq
	cbnz	w8, LBB0_13
; %bb.9:
	tbnz	w20, #0, LBB0_14
LBB0_10:
	tbnz	w20, #1, LBB0_15
LBB0_11:
	cbz	w21, LBB0_16
LBB0_12:
	ldr	x0, [x19, #8]
	add	x1, x19, #20
	mov	w20, #1
	mov	w2, #1
	bl	_snd_mixart_kill_ref_pipe
	ldr	x0, [x19, #8]
	add	x1, x19, #16
	mov	w2, #1
	bl	_snd_mixart_kill_ref_pipe
	b	LBB0_17
LBB0_13:
Lloh0:
	adrp	x22, _MIXART_PCM_ANALOG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MIXART_PCM_ANALOG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_snd_mixart_add_ref_pipe
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_snd_mixart_add_ref_pipe
	tbz	w20, #0, LBB0_10
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_mixart_update_monitoring
	tbz	w20, #1, LBB0_11
LBB0_15:
	mov	x0, x19
	mov	w1, #1
	bl	_mixart_update_monitoring
	cbnz	w21, LBB0_12
LBB0_16:
	mov	w20, #1
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIXART_PCM_ANALOG,4,2          ; @MIXART_PCM_ANALOG
	.no_dead_strip	_mixart_monitor_sw_put
.subsections_via_symbols
