	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_get_native_mixer
_snd_cmipci_get_native_mixer:           ## @snd_cmipci_get_native_mixer
	.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	$40, %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	-56(%rbp), %rdi
	callq	_cmipci_sb_reg_decode
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	-32(%rbp), %rdi
	addq	8(%r15), %rdi
	callq	_inb
	movzbl	%al, %eax
	movb	-56(%rbp), %cl
	movb	-55(%rbp), %dl
	movl	%eax, %esi
	shrl	%cl, %esi
	andb	%dl, %sil
	subb	%sil, %dl
	cmpq	$0, -48(%rbp)
	movzbl	%sil, %ecx
	movzbl	%dl, %edx
	cmovel	%ecx, %edx
	movq	(%r14), %rcx
	movb	%dl, (%rcx)
	cmpq	$0, -40(%rbp)
	je	LBB0_2
## %bb.1:
	movb	-54(%rbp), %cl
	shrl	%cl, %eax
	movb	-55(%rbp), %cl
	andb	%cl, %al
	subb	%al, %cl
	cmpq	$0, -48(%rbp)
	movzbl	%al, %eax
	movzbl	%cl, %ecx
	cmovel	%eax, %ecx
	movq	(%r14), %rax
	movb	%cl, 1(%rax)
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cmipci_get_native_mixer
.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_native_mixer
_snd_cmipci_get_native_mixer:           ; @snd_cmipci_get_native_mixer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, [x20, #8]
	ldr	x9, [sp, #24]
	add	x0, x9, x8
	bl	_inb
	ldrb	w8, [sp]
	lsr	w8, w0, w8
	ldrb	w9, [sp, #1]
	and	w8, w9, w8
	ldr	x10, [sp, #8]
	sub	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	x9, [x19]
	strb	w8, [x9]
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldrb	w8, [sp, #2]
	lsr	w8, w0, w8
	ldrb	w9, [sp, #1]
	and	w8, w9, w8
	ldr	x10, [sp, #8]
	sub	w9, w9, w8
	cmp	x10, #0
	csel	w8, w8, w9, eq
	ldr	x9, [x19]
	strb	w8, [x9, #1]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cmipci_get_native_mixer
.subsections_via_symbols
