	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixart_pcm_sw_put
_mixart_pcm_sw_put:                     ## @mixart_pcm_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, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r13
	movq	_MIXART_VOL_AES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r12), %rsi
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r15d
	movq	_MIXART_PLAYBACK_STREAMS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setge	%dil
	callq	_snd_BUG_ON
	movq	8(%r13), %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
LBB0_2:
	addl	%r15d, %eax
	movq	(%r13), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	(%r12), %rbx
	movl	(%rax), %ecx
	movl	(%rbx), %edx
	cmpl	%edx, %ecx
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	testl	%edx, %edx
	setne	%dil
	movl	%edi, (%rax)
LBB0_4:
	movl	4(%rbx), %edi
	cmpl	%edi, 4(%rax)
	jne	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	cmpl	%edx, %ecx
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	xorl	%ecx, %ecx
	testl	%edi, %edi
	setne	%cl
	movl	%ecx, 4(%rax)
LBB0_7:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_mixart_update_playback_stream_level
	movl	$1, %ebx
LBB0_8:
	movq	8(%r13), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIXART_VOL_AES_MASK,4,2        ## @MIXART_VOL_AES_MASK
	.comm	_MIXART_PLAYBACK_STREAMS,4,2    ## @MIXART_PLAYBACK_STREAMS
	.no_dead_strip	_mixart_pcm_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_pcm_sw_put
_mixart_pcm_sw_put:                     ; @mixart_pcm_sw_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w22, [x20]
Lloh0:
	adrp	x8, _MIXART_VOL_AES_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIXART_VOL_AES_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	x1, x21, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x20, x0
Lloh3:
	adrp	x24, _MIXART_PLAYBACK_STREAMS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MIXART_PLAYBACK_STREAMS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	cset	w0, ge
	bl	_snd_BUG_ON
	ldr	x0, [x19, #8]
	bl	_mutex_lock
	ands	w1, w23, w22
	ldr	w8, [x24]
	csel	w8, wzr, w8, eq
	add	w8, w8, w20
	ldr	x9, [x19]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x11, [x21]
	ldr	w9, [x8]
	ldr	w10, [x11]
	cmp	w9, w10
	b.eq	LBB0_2
; %bb.1:
	cmp	w10, #0
	cset	w12, ne
	str	w12, [x8]
LBB0_2:
	ldr	w12, [x8, #4]
	ldr	w11, [x11, #4]
	cmp	w12, w11
	b.ne	LBB0_5
; %bb.3:
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	cmp	w11, #0
	cset	w9, ne
	str	w9, [x8, #4]
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_mixart_update_playback_stream_level
	mov	w20, #1
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIXART_VOL_AES_MASK,4,2        ; @MIXART_VOL_AES_MASK
	.comm	_MIXART_PLAYBACK_STREAMS,4,2    ; @MIXART_PLAYBACK_STREAMS
	.no_dead_strip	_mixart_pcm_sw_put
.subsections_via_symbols
