	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_search_data
_stb0899_search_data:                   ## @stb0899_search_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rcx
	leaq	3(%rcx), %rax
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rax
	movq	16(%rdi), %rcx
	sarq	$2, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movzwl	32(%r13), %r12d
	cwtl
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	40(%r13), %rax
	movw	$3, %r14w
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CARRIEROK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_stb0899_check_data
	movq	_DATAOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	imull	-80(%rbp), %eax                 ## 4-byte Folded Reload
	imull	48(%r13), %eax
	addl	%eax, %r12d
	movl	%r12d, %eax
	negw	%ax
	cmovsw	%r12w, %ax
	movzwl	%ax, %eax
	xorl	%ecx, %ecx
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	setl	%cl
	subw	%cx, %r14w
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	%r12w, %r8d
	movq	16(%r13), %r9
	movl	$1, %edx
	leaq	L_.str(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STB0899_CFD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_stb0899_read_reg
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movq	_CFD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_stb0899_write_reg
	movq	_CFRM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	-56(%rbp), %r15d
	movzwl	52(%r13), %eax
	imulw	%r12w, %ax
	movswl	%ax, %edi
	callq	_MSB
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_STB0899_SETFIELD_VAL
	movq	_CFRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-52(%rbp), %r15d
	movzwl	52(%r13), %eax
	imulw	%r12w, %ax
	movswl	%ax, %edi
	callq	_LSB
	movl	%ebx, %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %edx
	callq	_STB0899_SETFIELD_VAL
	movq	_STB0899_CFRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-56(%rbp), %rdx
	movl	$2, %ecx
	callq	_stb0899_write_regs
	movq	%r13, %rdi
	callq	_stb0899_check_carrier
	incl	%ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	negl	48(%r13)
	movq	40(%r13), %rax
	movq	_DATAOK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	testw	%r14w, %r14w
	jne	LBB0_7
LBB0_14:
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.15:
	movq	_STB0899_CFRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	_stb0899_read_regs
	movq	_STB0899_IQSWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_stb0899_read_reg
	movq	_SYM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	movq	_IQ_SWAP_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_IQ_SWAP_ON@GOTPCREL(%rip), %rax
LBB0_18:
	movzwl	(%rax), %ebx
	movw	%bx, 52(%r13)
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_MAKEWORD16
	imull	%ebx, %eax
	movw	%ax, 32(%r13)
	movl	(%r13), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movswl	%ax, %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	40(%r13), %rax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CARRIEROK,8,3                  ## @CARRIEROK
	.comm	_DATAOK,8,3                     ## @DATAOK
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Derot freq=%d, mclk=%d"

	.comm	_STB0899_CFD,4,2                ## @STB0899_CFD
	.comm	_CFD_ON,4,2                     ## @CFD_ON
	.comm	_CFRM,4,2                       ## @CFRM
	.comm	_CFRL,4,2                       ## @CFRL
	.comm	_STB0899_CFRM,4,2               ## @STB0899_CFRM
	.comm	_STB0899_IQSWAP,4,2             ## @STB0899_IQSWAP
	.comm	_SYM,4,2                        ## @SYM
	.comm	_IQ_SWAP_ON,2,1                 ## @IQ_SWAP_ON
	.comm	_IQ_SWAP_OFF,2,1                ## @IQ_SWAP_OFF
L_.str.1:                               ## @.str.1
	.asciz	"------> DATAOK ! Derot Freq=%d"

	.no_dead_strip	_stb0899_search_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_search_data
_stb0899_search_data:                   ; @stb0899_search_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldp	x8, x9, [x0, #8]
	add	x10, x8, #3
	cmp	x8, #0
	csel	x8, x10, x8, lt
	asr	x8, x8, #2
	sdiv	x24, x8, x9
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cinc	x8, x8, lt
	asr	x8, x8, #1
	sdiv	x8, x8, x9
	ldrh	w25, [x0, #32]
	sxth	w26, w8
	ldr	x0, [x0, #40]
	mov	w28, #3
	mov	w27, #1
Lloh3:
	adrp	x23, _CARRIEROK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CARRIEROK@GOTPAGEOFF]
Lloh5:
	adrp	x20, _DATAOK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DATAOK@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #48]
	mul	w9, w27, w24
	madd	w25, w9, w8, w25
	sxth	w4, w25
	cmp	w4, #0
	cneg	w8, w4, mi
	cmp	w26, w8, uxth
	cset	w8, lt
	sub	w28, w28, w8
	tst	w28, #0xffff
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	str	x8, [sp]
	mov	w2, #1
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	bl	_dprintk
Lloh12:
	adrp	x22, _STB0899_CFD@GOTPAGE
Lloh13:
	ldr	x22, [x22, _STB0899_CFD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x21, x0
Lloh14:
	adrp	x8, _CFD_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CFD_ON@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #1
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_stb0899_write_reg
Lloh17:
	adrp	x8, _CFRM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFRM@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	ldr	w22, [sp, #16]
	ldrh	w8, [x19, #52]
	mul	w8, w8, w25
	sxth	w0, w8
	bl	_MSB
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_STB0899_SETFIELD_VAL
Lloh20:
	adrp	x8, _CFRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CFRL@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
	ldr	w22, [sp, #20]
	ldrh	w8, [x19, #52]
	mul	w8, w8, w25
	sxth	w0, w8
	bl	_LSB
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_STB0899_SETFIELD_VAL
Lloh23:
	adrp	x8, _STB0899_CFRM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STB0899_CFRM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #2
	bl	_stb0899_write_regs
	mov	x0, x19
	bl	_stb0899_check_carrier
	add	w27, w27, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #48]
	neg	w8, w8
	str	w8, [x19, #48]
	ldr	x0, [x19, #40]
	ldr	x8, [x20]
	cmp	x0, x8
	and	w9, w28, #0xffff
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_stb0899_check_data
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_1
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	b	LBB0_3
LBB0_7:
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _STB0899_CFRM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STB0899_CFRM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #2
	bl	_stb0899_read_regs
Lloh29:
	adrp	x8, _STB0899_IQSWAP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STB0899_IQSWAP@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh32:
	adrp	x8, _SYM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SYM@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
Lloh35:
	adrp	x8, _IQ_SWAP_OFF@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IQ_SWAP_OFF@GOTPAGEOFF]
Lloh37:
	adrp	x9, _IQ_SWAP_ON@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IQ_SWAP_ON@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldrh	w20, [x8]
	strh	w20, [x19, #52]
	ldp	w0, w1, [sp, #16]
	bl	_MAKEWORD16
	mul	w8, w20, w0
	strh	w8, [x19, #32]
	ldr	w0, [x19]
Lloh39:
	adrp	x9, _FE_DEBUG@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FE_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	sxth	w4, w8
Lloh42:
	adrp	x3, l_.str.1@PAGE
Lloh43:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldr	x0, [x19, #40]
LBB0_9:
	ldr	x8, [sp, #24]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_CARRIEROK,8,3                  ; @CARRIEROK
	.comm	_DATAOK,8,3                     ; @DATAOK
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Derot freq=%d, mclk=%d"

	.comm	_STB0899_CFD,4,2                ; @STB0899_CFD
	.comm	_CFD_ON,4,2                     ; @CFD_ON
	.comm	_CFRM,4,2                       ; @CFRM
	.comm	_CFRL,4,2                       ; @CFRL
	.comm	_STB0899_CFRM,4,2               ; @STB0899_CFRM
	.comm	_STB0899_IQSWAP,4,2             ; @STB0899_IQSWAP
	.comm	_SYM,4,2                        ; @SYM
	.comm	_IQ_SWAP_ON,2,1                 ; @IQ_SWAP_ON
	.comm	_IQ_SWAP_OFF,2,1                ; @IQ_SWAP_OFF
l_.str.1:                               ; @.str.1
	.asciz	"------> DATAOK ! Derot Freq=%d"

	.no_dead_strip	_stb0899_search_data
.subsections_via_symbols
