	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_tuner
_vidioc_s_tuner:                        ## @vidioc_s_tuner
	.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	%rdx, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %r14
	movl	4(%rdx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, 4(%r14)
	je	LBB0_2
## %bb.1:
	cmpl	$1, (%r14)
	jne	LBB0_2
## %bb.3:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.5:
	cltq
	leaq	l_reltable.vidioc_s_tuner(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	L_switch.table.vidioc_s_tuner.6(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	leaq	l_switch.table.vidioc_s_tuner.7(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_4:
	movl	$48, %r15d
	movl	$12288, %r12d                   ## imm = 0x3000
	leaq	L_.str.5(%rip), %rsi
LBB0_6:
	xorl	%r13d, %r13d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$14, %edx
	movl	%r12d, %ecx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	movl	%r15d, %ecx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	movl	%r15d, %ecx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$10, %edx
	movl	%r15d, %ecx
	callq	_msp_writereg
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_S_TUNER: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_STEREO\n"

L_.str.2:                               ## @.str.2
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG1_LANG2\n"

L_.str.3:                               ## @.str.3
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG1\n"

L_.str.4:                               ## @.str.4
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG2\n"

L_.str.5:                               ## @.str.5
	.asciz	"VIDIOC_S_TUNER: TDA9840_SET_MONO\n"

	.comm	_MSP_WR_DSP,4,2                 ## @MSP_WR_DSP
	.no_dead_strip	_vidioc_s_tuner
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.vidioc_s_tuner
l_reltable.vidioc_s_tuner:
	.long	L_.str.1-l_reltable.vidioc_s_tuner
	.long	L_.str.4-l_reltable.vidioc_s_tuner
	.long	L_.str.2-l_reltable.vidioc_s_tuner
	.long	L_.str.3-l_reltable.vidioc_s_tuner

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.vidioc_s_tuner.6
L_switch.table.vidioc_s_tuner.6:
	.long	12289                           ## 0x3001
	.long	12288                           ## 0x3000
	.long	12288                           ## 0x3000
	.long	12288                           ## 0x3000

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.vidioc_s_tuner.7
l_switch.table.vidioc_s_tuner.7:
	.long	32                              ## 0x20
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_tuner
_vidioc_s_tuner:                        ; @vidioc_s_tuner
	.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, x2
	ldr	x8, [x1]
	ldr	x19, [x8]
	ldr	w8, [x2, #4]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.vidioc_s_tuner@PAGE
Lloh3:
	add	x9, x9, l_switch.table.vidioc_s_tuner@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	sbfiz	x8, x8, #2, #32
Lloh4:
	adrp	x9, l_switch.table.vidioc_s_tuner.6@PAGE
Lloh5:
	add	x9, x9, l_switch.table.vidioc_s_tuner.6@PAGEOFF
	ldr	w21, [x9, x8]
Lloh6:
	adrp	x9, l_switch.table.vidioc_s_tuner.7@PAGE
Lloh7:
	add	x9, x9, l_switch.table.vidioc_s_tuner.7@PAGEOFF
	ldr	w20, [x9, x8]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w20, #48
	mov	w21, #12288
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_6:
	mov	w0, #2
	bl	_dprintk
Lloh13:
	adrp	x22, _MSP_WR_DSP@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MSP_WR_DSP@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #14
	mov	x3, x21
	bl	_msp_writereg
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #8
	mov	x3, x20
	bl	_msp_writereg
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #9
	mov	x3, x20
	bl	_msp_writereg
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #10
	mov	x3, x20
	bl	_msp_writereg
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_S_TUNER: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_STEREO\n"

l_.str.2:                               ; @.str.2
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG1_LANG2\n"

l_.str.3:                               ; @.str.3
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG1\n"

l_.str.4:                               ; @.str.4
	.asciz	"VIDIOC_S_TUNER: V4L2_TUNER_MODE_LANG2\n"

l_.str.5:                               ; @.str.5
	.asciz	"VIDIOC_S_TUNER: TDA9840_SET_MONO\n"

	.comm	_MSP_WR_DSP,4,2                 ; @MSP_WR_DSP
	.no_dead_strip	_vidioc_s_tuner
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vidioc_s_tuner
l_switch.table.vidioc_s_tuner:
	.quad	l_.str.1
	.quad	l_.str.4
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.vidioc_s_tuner.6
l_switch.table.vidioc_s_tuner.6:
	.long	12289                           ; 0x3001
	.long	12288                           ; 0x3000
	.long	12288                           ; 0x3000
	.long	12288                           ; 0x3000

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.vidioc_s_tuner.7
l_switch.table.vidioc_s_tuner.7:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	0                               ; 0x0

.subsections_via_symbols
