	.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	%rdi, %r15
	movq	_POWERCFG_SEEK@GOTPCREL(%rip), %rcx
	movq	(%rdi), %r8
	movq	_POWERCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r8,%rax,4), %edi
	orl	(%rcx), %edi
	movl	%edi, (%r8,%rax,4)
	movq	_POWERCFG_SKMODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movl	%ebx, %ecx
	orl	%edi, %ecx
	notl	%ebx
	andl	%edi, %ebx
	cmpl	$1, %esi
	cmovnel	%ecx, %ebx
	movl	%ebx, (%r8,%rax,4)
	movq	_POWERCFG_SEEKUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	%ebx, %esi
	orl	%ecx, %ebx
	cmpl	$1, %edx
	cmovnel	%esi, %ebx
	movl	%ebx, (%r8,%rax,4)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_si470x_set_register
	xorl	%edx, %edx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_seek_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	movq	_STATUSRSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_STATUSRSSI_STC@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_si470x_get_register
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	_STATUSRSSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %eax
	movl	(%r14), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	orl	%ebx, %edx
	je	LBB0_3
## %bb.6:
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.7:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	(%r15), %rax
	movq	_STATUSRSSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_8:
	movq	_STATUSRSSI_SF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_POWERCFG@GOTPCREL(%rip), %r14
	je	LBB0_10
## %bb.9:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	movq	8(%r15), %rdi
	movq	_seek_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	%ebx, %r13d
	jmp	LBB0_12
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_4:
	movq	_POWERCFG@GOTPCREL(%rip), %r14
LBB0_12:
	movq	_POWERCFG_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%r15), %rcx
	movq	(%r14), %rsi
	andl	%eax, (%rcx,%rsi,4)
	movq	%r15, %rdi
	callq	_si470x_set_register
	xorl	%edx, %edx
LBB0_13:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %edx
	testl	%r13d, %r13d
	cmovel	%eax, %edx
	testl	%eax, %eax
	cmovnel	%eax, %edx
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_jiffies,8,3                    ## @jiffies
	.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"

L_.str.2:                               ## @.str.2
	.asciz	"seek timed out after %u ms\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _POWERCFG_SEEK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POWERCFG_SEEK@GOTPAGEOFF]
	ldr	w9, [x22]
	ldr	x10, [x0]
Lloh2:
	adrp	x23, _POWERCFG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _POWERCFG@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	x11, x8, #2
	ldr	w12, [x10, x11]
	orr	w9, w12, w9
	str	w9, [x10, x11]
Lloh4:
	adrp	x12, _POWERCFG_SKMODE@GOTPAGE
Lloh5:
	ldr	x12, [x12, _POWERCFG_SKMODE@GOTPAGEOFF]
Lloh6:
	ldr	w12, [x12]
	orr	w13, w12, w9
	bic	w9, w9, w12
	cmp	w1, #1
	csel	w9, w9, w13, eq
	str	w9, [x10, x11]
Lloh7:
	adrp	x12, _POWERCFG_SEEKUP@GOTPAGE
Lloh8:
	ldr	x12, [x12, _POWERCFG_SEEKUP@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	bic	w13, w9, w12
	orr	w9, w9, w12
	cmp	w2, #1
	csel	w9, w9, w13, eq
	str	w9, [x10, x11]
	mov	x1, x8
	bl	_si470x_set_register
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh10:
	adrp	x26, _jiffies@GOTPAGE
Lloh11:
	ldr	x26, [x26, _jiffies@GOTPAGEOFF]
	ldr	x20, [x26]
Lloh12:
	adrp	x24, _seek_timeout@GOTPAGE
Lloh13:
	ldr	x24, [x24, _seek_timeout@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_msecs_to_jiffies
	add	x21, x0, x20
Lloh14:
	adrp	x25, _STATUSRSSI@GOTPAGE
Lloh15:
	ldr	x25, [x25, _STATUSRSSI@GOTPAGEOFF]
	ldr	x1, [x25]
Lloh16:
	adrp	x27, _STATUSRSSI_STC@GOTPAGE
Lloh17:
	ldr	x27, [x27, _STATUSRSSI_STC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_si470x_get_register
	tbnz	w0, #31, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x26]
	mov	x1, x21
	bl	_time_after
	ldr	x8, [x19]
	ldr	x1, [x25]
	ldr	w8, [x8, x1, lsl #2]
	ldr	w9, [x27]
	and	w9, w9, w8
	orr	w10, w9, w0
	cbz	w10, LBB0_2
; %bb.4:
	mov	x20, x0
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19]
	ldr	x9, [x25]
	ldr	w8, [x8, x9, lsl #2]
LBB0_6:
Lloh20:
	adrp	x9, _STATUSRSSI_SF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STATUSRSSI_SF@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_8:
	cbz	w20, LBB0_12
; %bb.9:
	ldr	x0, [x19, #8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_12
LBB0_10:
	mov	w20, #0
	b	LBB0_13
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	w8, [x22]
	ldr	x9, [x19]
	ldr	x1, [x23]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_si470x_set_register
LBB0_13:
	cmp	w20, #0
	ccmp	w0, #0, #0, ne
Lloh27:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	csneg	w0, w0, w8, ne
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.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	_jiffies,8,3                    ; @jiffies
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"seek timed out after %u ms\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_si470x_set_seek
.subsections_via_symbols
