	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_frequency
_vidioc_s_frequency:                    ## @vidioc_s_frequency
	.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, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.2:
	movl	16(%rbx), %ecx
	movq	_BAND_FM@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpl	$320000, %ecx                   ## imm = 0x4E200
	jge	LBB0_4
## %bb.3:
	movq	_BAND_AM@GOTPCREL(%rip), %rsi
LBB0_4:
	cmpq	$0, 8(%rax)
	cmovneq	%rsi, %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rax)
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_radio_tea5777_set_freq         ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BAND_AM,4,2                    ## @BAND_AM
	.comm	_BAND_FM,4,2                    ## @BAND_FM
	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_frequency
_vidioc_s_frequency:                    ; @vidioc_s_frequency
	.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]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	w9, [x19, #16]
	mov	w10, #57856
	movk	w10, #4, lsl #16
	cmp	w9, w10
Lloh3:
	adrp	x10, _BAND_AM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BAND_AM@GOTPAGEOFF]
Lloh5:
	adrp	x11, _BAND_FM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BAND_FM@GOTPAGEOFF]
	ccmp	x8, #0, #4, lt
	csel	x8, x10, x11, ne
	ldr	w8, [x8]
	stp	w9, w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radio_tea5777_set_freq
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BAND_AM,4,2                    ; @BAND_AM
	.comm	_BAND_FM,4,2                    ; @BAND_FM
	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols
