	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_autosearch_start
_dib7000p_autosearch_start:             ## @dib7000p_autosearch_start
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_dib7000p_get_internal_freq
	movl	%eax, %r14d
	movq	40(%rbx), %rax
	movq	%rax, -48(%rbp)
	movups	8(%rbx), %xmm0
	movups	24(%rbx), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_QAM_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_GUARD_INTERVAL_1_32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_FEC_2_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_FEC_3_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_dib7000p_set_channel
	movl	8(%rbx), %edi
	callq	_BANDWIDTH_TO_KHZ
	movl	$6, %r12d
	cmpl	$5000, %eax                     ## imm = 0x1388
	jl	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_SOC7090@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	incl	%r12d
LBB0_2:
	imull	%r14d, %r12d
	movl	%r12d, %ebx
	shll	$5, %ebx
	subl	%r12d, %ebx
	subl	%r12d, %ebx
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_dib7000p_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_dib7000p_write_word
	imull	$100, %r12d, %ebx
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_dib7000p_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_dib7000p_write_word
	imull	$500, %r12d, %ebx               ## imm = 0x1F4
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_dib7000p_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_dib7000p_write_word
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib7000p_read_word
	movl	%eax, %ebx
	movl	%eax, %edx
	orl	$512, %edx                      ## imm = 0x200
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib7000p_write_word
	movq	%r15, %rdi
	movl	$1284, %esi                     ## imm = 0x504
	callq	_dib7000p_read_word
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_dib7000p_write_word
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_GUARD_INTERVAL_1_32,4,2        ## @GUARD_INTERVAL_1_32
	.comm	_TRANSMISSION_MODE_8K,4,2       ## @TRANSMISSION_MODE_8K
	.comm	_FEC_2_3,4,2                    ## @FEC_2_3
	.comm	_FEC_3_4,4,2                    ## @FEC_3_4
	.comm	_SOC7090,8,3                    ## @SOC7090
	.no_dead_strip	_dib7000p_autosearch_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_autosearch_start
_dib7000p_autosearch_start:             ; @dib7000p_autosearch_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_dib7000p_get_internal_freq
	mov	x20, x0
	ldr	x8, [x21, #40]
	str	x8, [sp, #32]
	ldur	q0, [x21, #24]
	ldur	q1, [x21, #8]
	stp	q1, q0, [sp]
Lloh0:
	adrp	x8, _QAM_64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QAM_64@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh3:
	adrp	x8, _GUARD_INTERVAL_1_32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GUARD_INTERVAL_1_32@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh9:
	adrp	x8, _FEC_2_3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FEC_2_3@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _FEC_3_4@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FEC_3_4@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	str	xzr, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #7
	bl	_dib7000p_set_channel
	ldr	w0, [x21, #8]
	bl	_BANDWIDTH_TO_KHZ
	mov	w8, #5000
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _SOC7090@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOC7090@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1
	cinc	w8, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #6
LBB0_3:
	mul	w20, w8, w20
	mov	w8, #30
	mul	w21, w20, w8
	lsr	w2, w21, #16
	mov	x0, x19
	mov	w1, #6
	bl	_dib7000p_write_word
	and	w2, w21, #0xfffe
	mov	x0, x19
	mov	w1, #7
	bl	_dib7000p_write_word
	mov	w8, #100
	mul	w21, w20, w8
	lsr	w2, w21, #16
	mov	x0, x19
	mov	w1, #8
	bl	_dib7000p_write_word
	and	w2, w21, #0xfffc
	mov	x0, x19
	mov	w1, #9
	bl	_dib7000p_write_word
	mov	w8, #500
	mul	w20, w20, w8
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #10
	bl	_dib7000p_write_word
	and	w2, w20, #0xfffc
	mov	x0, x19
	mov	w1, #11
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #0
	bl	_dib7000p_read_word
	mov	x20, x0
	orr	w2, w0, #0x200
	mov	x0, x19
	mov	w1, #0
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #1284
	bl	_dib7000p_read_word
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_dib7000p_write_word
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_GUARD_INTERVAL_1_32,4,2        ; @GUARD_INTERVAL_1_32
	.comm	_TRANSMISSION_MODE_8K,4,2       ; @TRANSMISSION_MODE_8K
	.comm	_FEC_2_3,4,2                    ; @FEC_2_3
	.comm	_FEC_3_4,4,2                    ; @FEC_3_4
	.comm	_SOC7090,8,3                    ; @SOC7090
	.no_dead_strip	_dib7000p_autosearch_start
.subsections_via_symbols
