	.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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	%rax, -32(%rbp)
	movups	(%rbx), %xmm0
	movaps	%xmm0, -48(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_tuner@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_call_all
	movl	(%r15), %esi
	movq	_g_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_call_all
	movq	(%rbx), %rcx
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rdx
	movl	-40(%rbp), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movl	%eax, 4(%r14)
	jmp	LBB0_5
LBB0_4:
	movl	%eax, (%r14)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.comm	_g_frequency,4,2                ## @g_frequency
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	bl	_video_drvdata
	ldr	q0, [x20]
	str	q0, [sp]
	ldr	x8, [x20, #16]
	str	x8, [sp, #16]
	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_5
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x21, _tuner@GOTPAGE
Lloh4:
	ldr	x21, [x21, _tuner@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _s_frequency@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_call_all
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _g_frequency@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_frequency@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_call_all
	ldr	x9, [x20]
Lloh11:
	adrp	x8, _V4L2_TUNER_RADIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x8]
	ldr	w8, [sp, #8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.comm	_g_frequency,4,2                ; @g_frequency
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.no_dead_strip	_vidioc_s_frequency
.subsections_via_symbols
