	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9840_s_tuner
_tda9840_s_tuner:                       ## @tda9840_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.tda9840_s_tuner(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_TDA9840_SET_MONO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	callq	_v4l2_dbg
	movq	_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_tda9840_write
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TDA9840_SET_STEREO,4,2         ## @TDA9840_SET_STEREO
	.comm	_TDA9840_SET_BOTH,4,2           ## @TDA9840_SET_BOTH
	.comm	_TDA9840_SET_LANG1,4,2          ## @TDA9840_SET_LANG1
	.comm	_TDA9840_SET_LANG2,4,2          ## @TDA9840_SET_LANG2
	.comm	_TDA9840_SET_MONO,4,2           ## @TDA9840_SET_MONO
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDA9840_SWITCH: 0x%02x\n"

	.comm	_SWITCH,4,2                     ## @SWITCH
	.no_dead_strip	_tda9840_s_tuner
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.tda9840_s_tuner
l_switch.table.tda9840_s_tuner:
	.quad	_TDA9840_SET_STEREO
	.quad	_TDA9840_SET_LANG2
	.quad	_TDA9840_SET_BOTH
	.quad	_TDA9840_SET_LANG1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9840_s_tuner
_tda9840_s_tuner:                       ; @tda9840_s_tuner
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, l_switch.table.tda9840_s_tuner@PAGE
Lloh4:
	add	x9, x9, l_switch.table.tda9840_s_tuner@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _TDA9840_SET_MONO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TDA9840_SET_MONO@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _debug@GOTPAGE
Lloh8:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x20
	bl	_v4l2_dbg
Lloh12:
	adrp	x8, _SWITCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SWITCH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_tda9840_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TDA9840_SET_STEREO,4,2         ; @TDA9840_SET_STEREO
	.comm	_TDA9840_SET_BOTH,4,2           ; @TDA9840_SET_BOTH
	.comm	_TDA9840_SET_LANG1,4,2          ; @TDA9840_SET_LANG1
	.comm	_TDA9840_SET_LANG2,4,2          ; @TDA9840_SET_LANG2
	.comm	_TDA9840_SET_MONO,4,2           ; @TDA9840_SET_MONO
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDA9840_SWITCH: 0x%02x\n"

	.comm	_SWITCH,4,2                     ; @SWITCH
	.no_dead_strip	_tda9840_s_tuner
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.tda9840_s_tuner
l_switch.table.tda9840_s_tuner:
	.quad	_TDA9840_SET_STEREO
	.quad	_TDA9840_SET_LANG2
	.quad	_TDA9840_SET_BOTH
	.quad	_TDA9840_SET_LANG1

.subsections_via_symbols
