	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_put_input_sw
_snd_cmipci_put_input_sw:               ## @snd_cmipci_put_input_sw
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_cmipci_sb_reg_decode
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_snd_cmipci_mixer_read
	movl	%eax, %r12d
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	callq	_snd_cmipci_mixer_read
	movb	-44(%rbp), %r8b
	movl	$1, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movb	-48(%rbp), %cl
	btsl	%ecx, %edx
	notl	%edx
	movl	%r12d, %r9d
	andl	%edx, %r9d
	andl	%eax, %edx
	movq	(%r15), %rbx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	andl	$1, %esi
	shll	%cl, %esi
	andl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%r9d, %esi
	orl	%edx, %edi
	movl	8(%rbx), %edx
	andl	$1, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movl	12(%rbx), %ebx
	andl	$1, %ebx
	shll	%cl, %ebx
	orl	%esi, %edx
	orl	%edi, %ebx
	xorl	%edx, %r12d
	xorl	%ebx, %eax
	xorl	%r15d, %r15d
	orl	%r12d, %eax
	setne	%r15b
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_snd_cmipci_mixer_write
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_mixer_write
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_cmipci_put_input_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_put_input_sw
_snd_cmipci_put_input_sw:               ; @snd_cmipci_put_input_sw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w1, [x21]
	mov	x0, sp
	bl	_cmipci_sb_reg_decode
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_snd_cmipci_mixer_read
	mov	x21, x0
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_snd_cmipci_mixer_read
	mov	w8, #1
	ldp	w9, w10, [sp]
	lsl	w11, w8, w9
	lsl	w8, w8, w10
	orr	w8, w8, w11
	bic	w11, w21, w8
	ldr	x12, [x20]
	ldp	w13, w14, [x12]
	and	w13, w13, #0x1
	lsl	w13, w13, w9
	orr	w11, w13, w11
	bic	w8, w0, w8
	and	w13, w14, #0x1
	lsl	w9, w13, w9
	orr	w8, w9, w8
	ldp	w9, w12, [x12, #8]
	and	w9, w9, #0x1
	lsl	w9, w9, w10
	orr	w2, w11, w9
	and	w9, w12, #0x1
	lsl	w9, w9, w10
	orr	w20, w8, w9
	cmp	w2, w21
	ccmp	w20, w0, #0, eq
	cset	w21, ne
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_snd_cmipci_mixer_write
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_cmipci_mixer_write
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_cmipci_put_input_sw
.subsections_via_symbols
