	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_search
_stv090x_search:                        ## @stv090x_search
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %rbx
	movl	(%rdi), %ecx
	movl	%ecx, 28(%rbx)
	movq	%rax, (%rbx)
	movl	8(%rsi), %eax
	movl	%eax, 8(%rbx)
	movq	_STV090x_SEARCH_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	_STV090x_COLD_SEARCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_STV090x_PRERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	cmpl	$10000001, %eax                 ## imm = 0x989681
	movq	_FE_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmovgeq	%rax, %rdx
	movl	$10000000, %eax                 ## imm = 0x989680
	movl	$5000000, %r15d                 ## imm = 0x4C4B40
	cmovgel	%eax, %r15d
	movl	$1, %esi
	callq	_dprintk
	movl	%r15d, 12(%rbx)
	movq	%rbx, %rdi
	callq	_stv090x_algo
	movq	_STV090x_RANGEOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_DVBFE_ALGO_SEARCH_FAILED@GOTPCREL(%rip), %rbx
	cmoveq	_DVBFE_ALGO_SEARCH_SUCCESS@GOTPCREL(%rip), %rbx
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dprintk
	jmp	LBB0_3
LBB0_1:
	movq	_DVBFE_ALGO_SEARCH_INVALID@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVBFE_ALGO_SEARCH_INVALID,4,2  ## @DVBFE_ALGO_SEARCH_INVALID
	.comm	_STV090x_SEARCH_AUTO,4,2        ## @STV090x_SEARCH_AUTO
	.comm	_STV090x_COLD_SEARCH,4,2        ## @STV090x_COLD_SEARCH
	.comm	_STV090x_PRERR,4,2              ## @STV090x_PRERR
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Search range: 10 MHz"

L_.str.1:                               ## @.str.1
	.asciz	"Search range: 5 MHz"

	.comm	_STV090x_RANGEOK,8,3            ## @STV090x_RANGEOK
L_.str.2:                               ## @.str.2
	.asciz	"Search success!"

	.comm	_DVBFE_ALGO_SEARCH_SUCCESS,4,2  ## @DVBFE_ALGO_SEARCH_SUCCESS
L_.str.3:                               ## @.str.3
	.asciz	"Search failed!"

	.comm	_DVBFE_ALGO_SEARCH_FAILED,4,2   ## @DVBFE_ALGO_SEARCH_FAILED
	.comm	_DVBFE_ALGO_SEARCH_ERROR,4,2    ## @DVBFE_ALGO_SEARCH_ERROR
	.no_dead_strip	_stv090x_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_search
_stv090x_search:                        ; @stv090x_search
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x19, [x0, #8]
	ldr	w9, [x0]
	str	x8, [x19]
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x10, _STV090x_SEARCH_AUTO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STV090x_SEARCH_AUTO@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh2:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #24]
Lloh3:
	adrp	x9, _STV090x_COLD_SEARCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STV090x_COLD_SEARCH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _STV090x_PRERR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STV090x_PRERR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #16]
Lloh9:
	adrp	x20, _FE_DEBUG@GOTPAGE
Lloh10:
	ldr	x20, [x20, _FE_DEBUG@GOTPAGEOFF]
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh13:
	adrp	x10, l_.str@PAGE
Lloh14:
	add	x10, x10, l_.str@PAGEOFF
	ldr	w0, [x20]
	mov	w11, #38528
	movk	w11, #152, lsl #16
	mov	w12, #19264
	movk	w12, #76, lsl #16
	cmp	w8, w11
	csel	w21, w11, w12, gt
	csel	x2, x10, x9, gt
	mov	w1, #1
	bl	_dprintk
	str	w21, [x19, #12]
	mov	x0, x19
	bl	_stv090x_algo
Lloh15:
	adrp	x8, _STV090x_RANGEOK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STV090x_RANGEOK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh20:
	adrp	x10, l_.str.2@PAGE
Lloh21:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x0, x8
	csel	x2, x10, x9, eq
Lloh22:
	adrp	x8, _DVBFE_ALGO_SEARCH_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DVBFE_ALGO_SEARCH_FAILED@GOTPAGEOFF]
Lloh24:
	adrp	x9, _DVBFE_ALGO_SEARCH_SUCCESS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DVBFE_ALGO_SEARCH_SUCCESS@GOTPAGEOFF]
	csel	x19, x9, x8, eq
	ldr	w0, [x20]
	mov	w1, #1
	bl	_dprintk
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x19, _DVBFE_ALGO_SEARCH_INVALID@GOTPAGE
Lloh27:
	ldr	x19, [x19, _DVBFE_ALGO_SEARCH_INVALID@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DVBFE_ALGO_SEARCH_INVALID,4,2  ; @DVBFE_ALGO_SEARCH_INVALID
	.comm	_STV090x_SEARCH_AUTO,4,2        ; @STV090x_SEARCH_AUTO
	.comm	_STV090x_COLD_SEARCH,4,2        ; @STV090x_COLD_SEARCH
	.comm	_STV090x_PRERR,4,2              ; @STV090x_PRERR
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Search range: 10 MHz"

l_.str.1:                               ; @.str.1
	.asciz	"Search range: 5 MHz"

	.comm	_STV090x_RANGEOK,8,3            ; @STV090x_RANGEOK
l_.str.2:                               ; @.str.2
	.asciz	"Search success!"

	.comm	_DVBFE_ALGO_SEARCH_SUCCESS,4,2  ; @DVBFE_ALGO_SEARCH_SUCCESS
l_.str.3:                               ; @.str.3
	.asciz	"Search failed!"

	.comm	_DVBFE_ALGO_SEARCH_FAILED,4,2   ; @DVBFE_ALGO_SEARCH_FAILED
	.comm	_DVBFE_ALGO_SEARCH_ERROR,4,2    ; @DVBFE_ALGO_SEARCH_ERROR
	.no_dead_strip	_stv090x_search
.subsections_via_symbols
