	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixart_pcm_sw_get
_mixart_pcm_sw_get:                     ## @mixart_pcm_sw_get
	.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, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	leaq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r12d
	movq	_MIXART_PLAYBACK_STREAMS@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setge	%dil
	callq	_snd_BUG_ON
	movq	(%r15), %rdi
	callq	_mutex_lock
	movq	_MIXART_VOL_AES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
LBB0_2:
	addl	%r12d, %eax
	movq	8(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	movq	(%r15), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIXART_PLAYBACK_STREAMS,4,2    ## @MIXART_PLAYBACK_STREAMS
	.comm	_MIXART_VOL_AES_MASK,4,2        ## @MIXART_VOL_AES_MASK
	.no_dead_strip	_mixart_pcm_sw_get
.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_get
_mixart_pcm_sw_get:                     ; @mixart_pcm_sw_get
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	add	x1, x19, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x22, x0
Lloh0:
	adrp	x23, _MIXART_PLAYBACK_STREAMS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MIXART_PLAYBACK_STREAMS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	cset	w0, ge
	bl	_snd_BUG_ON
	ldr	x0, [x21]
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MIXART_VOL_AES_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIXART_VOL_AES_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x23]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	add	w8, w8, w22
	ldp	x0, x9, [x21]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w9, [x8]
	ldr	x10, [x19]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	bl	_mutex_unlock
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIXART_PLAYBACK_STREAMS,4,2    ; @MIXART_PLAYBACK_STREAMS
	.comm	_MIXART_VOL_AES_MASK,4,2        ; @MIXART_VOL_AES_MASK
	.no_dead_strip	_mixart_pcm_sw_get
.subsections_via_symbols
