	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si476x_radio_s_hw_freq_seek
_si476x_radio_s_hw_freq_seek:           ## @si476x_radio_s_hw_freq_seek
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdx), %r13
	movq	%r13, -48(%rbp)
	movq	8(%rdx), %r12
	movq	%r12, -56(%rbp)
	callq	_video_drvdata
	movq	%rax, %r14
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r15)
	jne	LBB0_5
## %bb.4:
	movq	24(%r15), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rdi
	callq	_si476x_core_lock
	testq	%r13, %r13
	je	LBB0_7
## %bb.9:
	testq	%r12, %r12
	je	LBB0_10
LBB0_12:
	cmpq	%r12, %r13
	jle	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_SI476X_PROP_SEEK_BAND_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.8:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi
	callq	_si476x_to_v4l2
	movq	%rax, %r13
	movq	%rax, -48(%rbp)
	testq	%r12, %r12
	jne	LBB0_12
LBB0_10:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_SI476X_PROP_SEEK_BAND_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.11:
	movq	(%r14), %rdi
	movq	-56(%rbp), %rsi
	callq	_si476x_to_v4l2
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %r13
	cmpq	%r12, %r13
	jg	LBB0_13
LBB0_14:
	movq	_SI476X_BAND_FM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_si476x_radio_range_is_inside_of_the_band
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_SI476X_FUNC_FM_RECEIVER@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_si476x_radio_change_func
	testl	%eax, %eax
	js	LBB0_27
## %bb.20:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movq	(%r14), %rdi
	movl	(%rdi), %r12d
	movq	_SI476X_PROP_SEEK_BAND_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_v4l2_to_si476x
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
LBB0_22:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:
	movq	(%r14), %rdi
	movl	(%rdi), %r12d
	movq	_SI476X_PROP_SEEK_BAND_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_v4l2_to_si476x
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
LBB0_24:
	movq	32(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.25:
	movq	(%r14), %rdi
	movl	(%rdi), %r12d
	movq	_SI476X_PROP_SEEK_FREQUENCY_SPACING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_v4l2_to_si476x
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
LBB0_26:
	movq	(%r14), %rdi
	movq	8(%r14), %rax
	movl	40(%r15), %edx
	movl	44(%r15), %esi
	callq	*(%rax)
LBB0_27:
	movl	%eax, %ebx
LBB0_28:
	movq	(%r14), %rdi
	callq	_si476x_core_unlock
	jmp	LBB0_29
LBB0_16:
	movq	(%r14), %rdi
	callq	_si476x_core_has_am
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	_SI476X_BAND_AM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_si476x_radio_range_is_inside_of_the_band
	testq	%rax, %rax
	je	LBB0_13
## %bb.18:
	movq	_SI476X_FUNC_AM_RECEIVER@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SI476X_PROP_SEEK_BAND_BOTTOM,4,2 ## @SI476X_PROP_SEEK_BAND_BOTTOM
	.comm	_SI476X_PROP_SEEK_BAND_TOP,4,2  ## @SI476X_PROP_SEEK_BAND_TOP
	.comm	_SI476X_BAND_FM,4,2             ## @SI476X_BAND_FM
	.comm	_SI476X_FUNC_FM_RECEIVER,4,2    ## @SI476X_FUNC_FM_RECEIVER
	.comm	_SI476X_BAND_AM,4,2             ## @SI476X_BAND_AM
	.comm	_SI476X_FUNC_AM_RECEIVER,4,2    ## @SI476X_FUNC_AM_RECEIVER
	.comm	_SI476X_PROP_SEEK_FREQUENCY_SPACING,4,2 ## @SI476X_PROP_SEEK_FREQUENCY_SPACING
	.no_dead_strip	_si476x_radio_s_hw_freq_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si476x_radio_s_hw_freq_seek
_si476x_radio_s_hw_freq_seek:           ; @si476x_radio_s_hw_freq_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x23, x0
	ldp	x22, x21, [x2]
	stp	x21, x22, [sp]
	bl	_video_drvdata
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	mov	x19, x0
	ldr	x0, [x0]
	bl	_si476x_core_lock
	cbz	x22, LBB0_11
; %bb.5:
	cbz	x21, LBB0_13
LBB0_6:
	cmp	x22, x21
	b.le	LBB0_15
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_26
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _SI476X_PROP_SEEK_BAND_BOTTOM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SI476X_PROP_SEEK_BAND_BOTTOM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.12:
	ldr	x0, [x19]
	ldr	x1, [sp, #8]
	bl	_si476x_to_v4l2
	mov	x22, x0
	str	x0, [sp, #8]
	cbnz	x21, LBB0_6
LBB0_13:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _SI476X_PROP_SEEK_BAND_TOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SI476X_PROP_SEEK_BAND_TOP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_regmap_read
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.14:
	ldr	x0, [x19]
	ldr	x1, [sp]
	bl	_si476x_to_v4l2
	mov	x21, x0
	str	x0, [sp]
	ldr	x22, [sp, #8]
	cmp	x22, x21
	b.gt	LBB0_7
LBB0_15:
Lloh19:
	adrp	x8, _SI476X_BAND_FM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SI476X_BAND_FM@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_si476x_radio_range_is_inside_of_the_band
	cbz	x0, LBB0_27
; %bb.16:
Lloh22:
	adrp	x8, _SI476X_FUNC_FM_RECEIVER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SI476X_FUNC_FM_RECEIVER@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_si476x_radio_change_func
	tbnz	w0, #31, LBB0_25
; %bb.18:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_20
; %bb.19:
	ldr	x0, [x19]
	ldr	w21, [x0]
Lloh24:
	adrp	x8, _SI476X_PROP_SEEK_BAND_TOP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SI476X_PROP_SEEK_BAND_TOP@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	bl	_v4l2_to_si476x
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_26
LBB0_20:
	ldr	x1, [x20]
	cbz	x1, LBB0_22
; %bb.21:
	ldr	x0, [x19]
	ldr	w21, [x0]
Lloh27:
	adrp	x8, _SI476X_PROP_SEEK_BAND_BOTTOM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SI476X_PROP_SEEK_BAND_BOTTOM@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	bl	_v4l2_to_si476x
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_26
LBB0_22:
	ldr	x1, [x20, #32]
	cbz	x1, LBB0_24
; %bb.23:
	ldr	x0, [x19]
	ldr	w21, [x0]
Lloh30:
	adrp	x8, _SI476X_PROP_SEEK_FREQUENCY_SPACING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SI476X_PROP_SEEK_FREQUENCY_SPACING@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	bl	_v4l2_to_si476x
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_26
LBB0_24:
	ldp	x0, x8, [x19]
	ldr	x8, [x8]
	ldp	w2, w1, [x20, #40]
	blr	x8
LBB0_25:
	mov	x22, x0
LBB0_26:
	ldr	x0, [x19]
	bl	_si476x_core_unlock
	b	LBB0_10
LBB0_27:
	ldr	x0, [x19]
	bl	_si476x_core_has_am
	cbz	x0, LBB0_7
; %bb.28:
	ldp	x1, x0, [sp]
Lloh33:
	adrp	x8, _SI476X_BAND_AM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SI476X_BAND_AM@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	bl	_si476x_radio_range_is_inside_of_the_band
	cbz	x0, LBB0_7
; %bb.29:
Lloh36:
	adrp	x8, _SI476X_FUNC_AM_RECEIVER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SI476X_FUNC_AM_RECEIVER@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SI476X_PROP_SEEK_BAND_BOTTOM,4,2 ; @SI476X_PROP_SEEK_BAND_BOTTOM
	.comm	_SI476X_PROP_SEEK_BAND_TOP,4,2  ; @SI476X_PROP_SEEK_BAND_TOP
	.comm	_SI476X_BAND_FM,4,2             ; @SI476X_BAND_FM
	.comm	_SI476X_FUNC_FM_RECEIVER,4,2    ; @SI476X_FUNC_FM_RECEIVER
	.comm	_SI476X_BAND_AM,4,2             ; @SI476X_BAND_AM
	.comm	_SI476X_FUNC_AM_RECEIVER,4,2    ; @SI476X_FUNC_AM_RECEIVER
	.comm	_SI476X_PROP_SEEK_FREQUENCY_SPACING,4,2 ; @SI476X_PROP_SEEK_FREQUENCY_SPACING
	.no_dead_strip	_si476x_radio_s_hw_freq_seek
.subsections_via_symbols
