	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_4
LBB0_2:
	movq	(%rax), %rdx
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rcx
	cmovlq	%rcx, %rsi
	movq	%rsi, (%rax)
	xorl	%ecx, %ecx
	cmpq	%rdx, %rsi
	je	LBB0_4
## %bb.3:
	movq	8(%rax), %rdx
	movq	_BAND_FM@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_radio_tea5777_set_freq         ## TAILCALL
LBB0_4:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ## @V4L2_TUNER_MODE_STEREO
	.comm	_BAND_FM,8,3                    ## @BAND_FM
	.no_dead_strip	_vidioc_s_tuner
.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:
	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
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19, #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:
	ldr	x8, [x0]
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
	str	x9, [x0]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x9, x10, lt
	str	x9, [x0]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _BAND_FM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BAND_FM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radio_tea5777_set_freq
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_TUNER_MODE_STEREO,8,3     ; @V4L2_TUNER_MODE_STEREO
	.comm	_BAND_FM,8,3                    ; @BAND_FM
	.no_dead_strip	_vidioc_s_tuner
.subsections_via_symbols
