	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_s_tuner
_cx25840_s_tuner:                       ## @cx25840_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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r13)
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_is_cx2583x
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.cx25840_s_tuner(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	%r12, %rdi
	movl	$2057, %esi                     ## imm = 0x809
	movl	$-16, %edx
	callq	_cx25840_and_or
	movl	(%r14), %eax
	movl	%eax, (%r13)
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %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
	.no_dead_strip	_cx25840_s_tuner
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.cx25840_s_tuner
l_switch.table.cx25840_s_tuner:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.long	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25840_s_tuner
_cx25840_s_tuner:                       ; @cx25840_s_tuner
	.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	x19, x1
	mov	x21, x0
	bl	_to_state
	mov	x20, x0
	mov	x0, x21
	bl	_v4l2_get_subdevdata
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_is_cx2583x
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_6
; %bb.5:
Lloh0:
	adrp	x9, l_switch.table.cx25840_s_tuner@PAGE
Lloh1:
	add	x9, x9, l_switch.table.cx25840_s_tuner@PAGEOFF
	ldr	w3, [x9, w8, sxtw #2]
	mov	x0, x21
	mov	w1, #2057
	mov	w2, #-16
	bl	_cx25840_and_or
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx25840_s_tuner
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.cx25840_s_tuner
l_switch.table.cx25840_s_tuner:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.long	4                               ; 0x4

.subsections_via_symbols
