	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_dt019x_input_sw_put
_snd_dt019x_input_sw_put:               ## @snd_dt019x_input_sw_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	%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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	cmpq	$5, %rax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.4:
	leaq	l_switch.table.snd_dt019x_input_sw_put(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_SB_DT019X_CAP_MAIN@GOTPCREL(%rip), %rax
LBB0_5:
	movb	(%rax), %r15b
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SB_DT019X_CAPTURE_SW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_sbmixer_read
	xorl	%ebx, %ebx
	cmpb	%al, %r15b
	setne	%r13b
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_snd_sbmixer_write
LBB0_7:
	movb	%r13b, %bl
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SB_DT019X_CAP_CD,1,0           ## @SB_DT019X_CAP_CD
	.comm	_SB_DT019X_CAP_MIC,1,0          ## @SB_DT019X_CAP_MIC
	.comm	_SB_DT019X_CAP_LINE,1,0         ## @SB_DT019X_CAP_LINE
	.comm	_SB_DT019X_CAP_SYNTH,1,0        ## @SB_DT019X_CAP_SYNTH
	.comm	_SB_DT019X_CAP_MAIN,1,0         ## @SB_DT019X_CAP_MAIN
	.comm	_SB_DT019X_CAPTURE_SW,4,2       ## @SB_DT019X_CAPTURE_SW
	.no_dead_strip	_snd_dt019x_input_sw_put
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.snd_dt019x_input_sw_put
l_switch.table.snd_dt019x_input_sw_put:
	.quad	_SB_DT019X_CAP_CD
	.quad	_SB_DT019X_CAP_MIC
	.quad	_SB_DT019X_CAP_LINE
	.quad	_SB_DT019X_CAP_SYNTH
	.quad	_SB_DT019X_CAP_MAIN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_dt019x_input_sw_put
_snd_dt019x_input_sw_put:               ; @snd_dt019x_input_sw_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, x1
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, l_switch.table.snd_dt019x_input_sw_put@PAGE
Lloh4:
	add	x9, x9, l_switch.table.snd_dt019x_input_sw_put@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _SB_DT019X_CAP_MAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_DT019X_CAP_MAIN@GOTPAGEOFF]
LBB0_5:
	ldrb	w21, [x8]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x22, _SB_DT019X_CAPTURE_SW@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SB_DT019X_CAPTURE_SW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_sbmixer_read
	cmp	w21, w0
	cset	w20, ne
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_snd_sbmixer_write
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SB_DT019X_CAP_CD,1,0           ; @SB_DT019X_CAP_CD
	.comm	_SB_DT019X_CAP_MIC,1,0          ; @SB_DT019X_CAP_MIC
	.comm	_SB_DT019X_CAP_LINE,1,0         ; @SB_DT019X_CAP_LINE
	.comm	_SB_DT019X_CAP_SYNTH,1,0        ; @SB_DT019X_CAP_SYNTH
	.comm	_SB_DT019X_CAP_MAIN,1,0         ; @SB_DT019X_CAP_MAIN
	.comm	_SB_DT019X_CAPTURE_SW,4,2       ; @SB_DT019X_CAPTURE_SW
	.no_dead_strip	_snd_dt019x_input_sw_put
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.snd_dt019x_input_sw_put
l_switch.table.snd_dt019x_input_sw_put:
	.quad	_SB_DT019X_CAP_CD
	.quad	_SB_DT019X_CAP_MIC
	.quad	_SB_DT019X_CAP_LINE
	.quad	_SB_DT019X_CAP_SYNTH
	.quad	_SB_DT019X_CAP_MAIN

.subsections_via_symbols
