	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	movq	_FREQ_MIN@GOTPCREL(%rip), %rax
	movq	_FREQ_MUL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	imull	%edx, %esi
	movq	_FREQ_MAX@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	callq	_clamp
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_keene_cmd_main                 ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FREQ_MIN,4,2                   ## @FREQ_MIN
	.comm	_FREQ_MUL,4,2                   ## @FREQ_MUL
	.comm	_FREQ_MAX,4,2                   ## @FREQ_MAX
	.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	x20, x2
	bl	_video_drvdata
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
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:
	mov	x19, x0
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _FREQ_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FREQ_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FREQ_MUL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FREQ_MUL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w1, w9, w8
Lloh9:
	adrp	x8, _FREQ_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FREQ_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mul	w2, w8, w9
	bl	_clamp
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_keene_cmd_main
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FREQ_MIN,4,2                   ; @FREQ_MIN
	.comm	_FREQ_MUL,4,2                   ; @FREQ_MUL
	.comm	_FREQ_MAX,4,2                   ; @FREQ_MAX
	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols
