	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_set_seek
_si470x_set_seek:                       ## @si470x_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	jne	LBB0_15
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_2
LBB0_15:
	movq	_bands@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.17:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	-8(%rdi,%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rdi,%rbx), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_16:
	xorl	%r13d, %r13d
LBB0_21:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_3
## %bb.22:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_23:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_24
LBB0_2:
	movl	$1, %r13d
LBB0_3:
	cmpl	%r13d, (%r14)
	jne	LBB0_4
LBB0_7:
	movq	_POWERCFG_SEEK@GOTPCREL(%rip), %r13
	movq	8(%r14), %rax
	movq	_POWERCFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	(%rax,%rsi,4), %ecx
	orl	(%r13), %ecx
	movl	%ecx, (%rax,%rsi,4)
	movq	_POWERCFG_SKMODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	notl	%edi
	andl	%ecx, %edi
	orl	%edx, %ecx
	cmpq	$0, 24(%r15)
	cmovnel	%edi, %ecx
	movl	%ecx, (%rax,%rsi,4)
	movq	_POWERCFG_SEEKUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, %edi
	orl	%edx, %edi
	notl	%edx
	andl	%ecx, %edx
	cmpq	$0, 16(%r15)
	cmovnel	%edi, %edx
	movl	%edx, (%rax,%rsi,4)
	movq	%r14, %rdi
	callq	*16(%r14)
	testl	%eax, %eax
	js	LBB0_24
## %bb.8:
	leaq	28(%r14), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	_seek_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	_STATUSRSSI@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_STATUSRSSI_STC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_10
## %bb.9:
	leaq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
LBB0_10:
	movq	_STATUSRSSI_SF@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	leaq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	8(%r14), %rax
LBB0_12:
	movl	(%r13), %ecx
	notl	%ecx
	movq	(%r12), %rsi
	andl	%ecx, (%rax,%rsi,4)
	movq	%r14, %rdi
	callq	*16(%r14)
	testl	%eax, %eax
	jne	LBB0_24
## %bb.13:
	testq	%r15, %r15
	jne	LBB0_24
## %bb.14:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_si470x_get_freq
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_si470x_set_band
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_si470x_set_freq
	testl	%eax, %eax
	je	LBB0_7
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bands,8,3                      ## @bands
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_POWERCFG_SEEK,4,2              ## @POWERCFG_SEEK
	.comm	_POWERCFG,8,3                   ## @POWERCFG
	.comm	_POWERCFG_SKMODE,4,2            ## @POWERCFG_SKMODE
	.comm	_POWERCFG_SEEKUP,4,2            ## @POWERCFG_SEEKUP
	.comm	_seek_timeout,4,2               ## @seek_timeout
	.comm	_STATUSRSSI,8,3                 ## @STATUSRSSI
	.comm	_STATUSRSSI_STC,4,2             ## @STATUSRSSI_STC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"seek does not complete\n"

	.comm	_STATUSRSSI_SF,4,2              ## @STATUSRSSI_SF
L_.str.1:                               ## @.str.1
	.asciz	"seek failed / band limit reached\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_si470x_set_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_set_seek
_si470x_set_seek:                       ; @si470x_set_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, x1
	mov	x19, x0
	ldr	x8, [x1]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
LBB0_2:
Lloh0:
	adrp	x22, _bands@GOTPAGE
Lloh1:
	ldr	x22, [x22, _bands@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x23, #0
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x21, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, x23
	ldr	x8, [x8, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ne	LBB0_12
; %bb.9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_11:
	mov	w21, #1
LBB0_12:
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_21
LBB0_13:
Lloh4:
	adrp	x21, _POWERCFG_SEEK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _POWERCFG_SEEK@GOTPAGEOFF]
Lloh6:
	adrp	x22, _POWERCFG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _POWERCFG@GOTPAGEOFF]
	ldr	x1, [x22]
	lsl	x8, x1, #2
	ldp	x9, x10, [x19, #8]
	ldr	w11, [x9, x8]
	ldr	w12, [x21]
	orr	w11, w11, w12
	str	w11, [x9, x8]
Lloh8:
	adrp	x12, _POWERCFG_SKMODE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _POWERCFG_SKMODE@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	bic	w13, w11, w12
	orr	w11, w12, w11
	ldp	x14, x12, [x20, #16]
	cmp	x12, #0
	csel	w11, w11, w13, eq
	str	w11, [x9, x8]
Lloh11:
	adrp	x12, _POWERCFG_SEEKUP@GOTPAGE
Lloh12:
	ldr	x12, [x12, _POWERCFG_SEEKUP@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w13, w11, w12
	bic	w11, w11, w12
	cmp	x14, #0
	csel	w11, w11, w13, eq
	str	w11, [x9, x8]
	mov	x0, x19
	blr	x10
	tbnz	w0, #31, LBB0_24
; %bb.14:
	add	x20, x19, #28
	mov	x0, x20
	bl	_reinit_completion
Lloh14:
	adrp	x8, _seek_timeout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _seek_timeout@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x23, _STATUSRSSI@GOTPAGE
Lloh18:
	ldr	x23, [x23, _STATUSRSSI@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w9, [x8, x9, lsl #2]
Lloh19:
	adrp	x10, _STATUSRSSI_STC@GOTPAGE
Lloh20:
	ldr	x10, [x10, _STATUSRSSI_STC@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_16
; %bb.15:
	add	x0, x19, #24
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	w9, [x8, x9, lsl #2]
LBB0_16:
Lloh24:
	adrp	x10, _STATUSRSSI_SF@GOTPAGE
Lloh25:
	ldr	x10, [x10, _STATUSRSSI_SF@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_18
; %bb.17:
	add	x0, x19, #24
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19, #8]
LBB0_18:
	ldr	w9, [x21]
	ldr	x1, [x22]
	lsl	x10, x1, #2
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
	str	w9, [x8, x10]
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_24
; %bb.19:
	cbnz	x20, LBB0_24
; %bb.20:
Lloh29:
	adrp	x8, _ENODATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_10
LBB0_21:
	add	x1, sp, #12
	mov	x0, x19
	bl	_si470x_get_freq
	cbnz	w0, LBB0_24
; %bb.22:
	mov	x0, x19
	mov	x1, x21
	bl	_si470x_set_band
	cbnz	w0, LBB0_24
; %bb.23:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_si470x_set_freq
	cbz	w0, LBB0_13
LBB0_24:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_bands,8,3                      ; @bands
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_POWERCFG_SEEK,4,2              ; @POWERCFG_SEEK
	.comm	_POWERCFG,8,3                   ; @POWERCFG
	.comm	_POWERCFG_SKMODE,4,2            ; @POWERCFG_SKMODE
	.comm	_POWERCFG_SEEKUP,4,2            ; @POWERCFG_SEEKUP
	.comm	_seek_timeout,4,2               ; @seek_timeout
	.comm	_STATUSRSSI,8,3                 ; @STATUSRSSI
	.comm	_STATUSRSSI_STC,4,2             ; @STATUSRSSI_STC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"seek does not complete\n"

	.comm	_STATUSRSSI_SF,4,2              ; @STATUSRSSI_SF
l_.str.1:                               ; @.str.1
	.asciz	"seek failed / band limit reached\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_si470x_set_seek
.subsections_via_symbols
