	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_vidioc_s_frequency
_si470x_vidioc_s_frequency:             ## @si470x_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, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r14
	movq	8(%rbx), %rsi
	movq	_bands@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	shlq	$4, %rcx
	cmpq	(%rax,%rcx), %rsi
	jl	LBB0_5
## %bb.4:
	cmpq	8(%rax,%rcx), %rsi
	jle	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_si470x_set_band
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rsi
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_si470x_set_freq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bands,8,3                      ## @bands
	.no_dead_strip	_si470x_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 si470x_vidioc_s_frequency
_si470x_vidioc_s_frequency:             ; @si470x_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]
	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	x20, x0
	ldr	x1, [x19, #8]
Lloh3:
	adrp	x8, _bands@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bands@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0]
	lsl	x10, x9, #4
	ldr	x10, [x8, x10]
	cmp	x1, x10
	b.lt	LBB0_4
; %bb.3:
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	cmp	x1, x8
	b.le	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_si470x_set_band
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x1, [x19, #8]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_si470x_set_freq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bands,8,3                      ; @bands
	.no_dead_strip	_si470x_vidioc_s_frequency
.subsections_via_symbols
