	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _snd_cmipci_uswitch_put
__snd_cmipci_uswitch_put:               ## @_snd_cmipci_uswitch_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_inb
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_snd_cmipci_read
LBB0_6:
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	%edx, %esi
	andl	%eax, %esi
	movq	(%r15), %rdi
	cmpq	$0, (%rdi)
	jne	LBB0_8
## %bb.7:
	notl	%ecx
	andl	%edx, %ecx
LBB0_8:
	xorl	%r15d, %r15d
	cmpl	%ecx, %esi
	je	LBB0_13
## %bb.9:
	notl	%edx
	andl	%edx, %eax
	orl	%ecx, %eax
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rsi
	addq	8(%r14), %rsi
	movzbl	%al, %edi
	callq	_outb
	jmp	LBB0_12
LBB0_11:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_cmipci_write
LBB0_12:
	movl	$1, %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__snd_cmipci_uswitch_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _snd_cmipci_uswitch_put
__snd_cmipci_uswitch_put:               ; @_snd_cmipci_uswitch_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, x2
	mov	x21, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_spin_lock_irq
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w20, #0
	b	LBB0_15
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	bl	_inb
	b	LBB0_6
LBB0_5:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_snd_cmipci_read
LBB0_6:
	ldp	w8, w9, [x20]
	and	w10, w8, w0
	ldr	x11, [x21]
	ldr	x11, [x11]
	cbz	x11, LBB0_9
; %bb.7:
	cmp	w10, w9
	b.ne	LBB0_10
LBB0_8:
	mov	w20, #0
	b	LBB0_14
LBB0_9:
	bic	w9, w8, w9
	cmp	w10, w9
	b.eq	LBB0_8
LBB0_10:
	bic	w8, w0, w8
	orr	w2, w9, w8
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	and	w0, w2, #0xff
	bl	_outb
	b	LBB0_13
LBB0_12:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_snd_cmipci_write
LBB0_13:
	mov	w20, #1
LBB0_14:
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__snd_cmipci_uswitch_put
.subsections_via_symbols
