	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_get_volume
_snd_cmipci_get_volume:                 ## @snd_cmipci_get_volume
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdi
	callq	_cmipci_sb_reg_decode
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	-32(%rbp), %esi
	movq	%r15, %rdi
	callq	_snd_cmipci_mixer_read
	movb	-72(%rbp), %cl
	sarl	%cl, %eax
	movl	-68(%rbp), %ecx
	andl	%ecx, %eax
	subl	%eax, %ecx
	cmpq	$0, -56(%rbp)
	cmovel	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	cmpq	$0, -40(%rbp)
	je	LBB0_2
## %bb.1:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_snd_cmipci_mixer_read
	movb	-64(%rbp), %cl
	sarl	%cl, %eax
	movl	-68(%rbp), %ecx
	andl	%ecx, %eax
	subl	%eax, %ecx
	cmpq	$0, -56(%rbp)
	cmovel	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, 4(%rax)
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cmipci_get_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_get_volume
_snd_cmipci_get_volume:                 ; @snd_cmipci_get_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, sp
	bl	_cmipci_sb_reg_decode
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w1, [sp, #40]
	mov	x0, x20
	bl	_snd_cmipci_mixer_read
	ldp	w8, w9, [sp]
	asr	w8, w0, w8
	and	w8, w8, w9
	ldr	x10, [sp, #16]
	sub	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [sp, #24]
	mov	x0, x20
	bl	_snd_cmipci_mixer_read
	ldp	w9, w8, [sp, #4]
	asr	w8, w0, w8
	and	w8, w8, w9
	ldr	x10, [sp, #16]
	sub	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	x9, [x19]
	str	w8, [x9, #4]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cmipci_get_volume
.subsections_via_symbols
