	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000m_autosearch_start
_dib7000m_autosearch_start:             ## @dib7000m_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	40(%rdi), %rax
	movq	%rax, -64(%rbp)
	movups	8(%rdi), %xmm0
	movups	24(%rdi), %xmm1
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	_QAM_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_GUARD_INTERVAL_1_32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_FEC_2_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_FEC_3_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_dib7000m_set_channel
	movl	-96(%rbp), %edi
	callq	_BANDWIDTH_TO_KHZ
	xorl	%ecx, %ecx
	cmpl	$5000, %eax                     ## imm = 0x1388
	setl	%cl
	leal	(%rcx,%rcx,4), %r15d
	incl	%r15d
	movl	(%r14), %eax
	imull	%r15d, %eax
	movl	%eax, %ebx
	shll	$5, %ebx
	subl	%eax, %ebx
	subl	%eax, %ebx
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_dib7000m_write_word
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movzwl	%bx, %edx
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_dib7000m_write_word
	movl	%eax, %ebx
	movl	(%r14), %eax
	imull	%r15d, %eax
	imull	$100, %eax, %r12d
	movl	%r12d, %edx
	shrl	$16, %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_dib7000m_write_word
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movzwl	%r12w, %edx
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_dib7000m_write_word
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	imull	(%r14), %r15d
	imull	$500, %r15d, %r15d              ## imm = 0x1F4
	movl	%r15d, %edx
	shrl	$16, %edx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_dib7000m_write_word
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzwl	%r15w, %edx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_dib7000m_write_word
	movl	%eax, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dib7000m_read_word
	movl	%eax, %r12d
	movl	%eax, %edx
	orl	$512, %edx                      ## imm = 0x200
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dib7000m_write_word
	movl	%eax, %r15d
	cmpl	$16384, 4(%r14)                 ## imm = 0x4000
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1793, %esi                     ## imm = 0x701
	xorl	%edx, %edx
	callq	_dib7000m_write_word
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	$537, %esi                      ## imm = 0x219
	callq	_dib7000m_read_word
LBB0_3:
	orl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_dib7000m_write_word
	orl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
	.no_dead_strip	_dib7000m_autosearch_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000m_autosearch_start
_dib7000m_autosearch_start:             ; @dib7000m_autosearch_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x19, [x0]
	ldr	x8, [x0, #40]
	str	x8, [sp, #32]
	ldur	q0, [x0, #24]
	ldur	q1, [x0, #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	_dib7000m_set_channel
	ldr	w0, [sp]
	bl	_BANDWIDTH_TO_KHZ
	mov	w8, #4999
	cmp	w0, w8
	mov	w8, #6
	csinc	w24, w8, wzr, le
	ldr	w8, [x19]
	mul	w8, w8, w24
	mov	w9, #30
	mul	w21, w8, w9
	lsr	w2, w21, #16
	mov	x0, x19
	mov	w1, #6
	bl	_dib7000m_write_word
	mov	x20, x0
	and	w2, w21, #0xfffe
	mov	x0, x19
	mov	w1, #7
	bl	_dib7000m_write_word
	mov	x21, x0
	ldr	w8, [x19]
	mul	w8, w24, w8
	mov	w9, #100
	mul	w23, w8, w9
	lsr	w2, w23, #16
	mov	x0, x19
	mov	w1, #8
	bl	_dib7000m_write_word
	mov	x22, x0
	and	w2, w23, #0xfffc
	mov	x0, x19
	mov	w1, #9
	bl	_dib7000m_write_word
	mov	x23, x0
	ldr	w8, [x19]
	mul	w8, w24, w8
	mov	w9, #500
	mul	w25, w8, w9
	lsr	w2, w25, #16
	mov	x0, x19
	mov	w1, #10
	bl	_dib7000m_write_word
	mov	x24, x0
	and	w2, w25, #0xfffc
	mov	x0, x19
	mov	w1, #11
	bl	_dib7000m_write_word
	mov	x25, x0
	mov	x0, x19
	mov	w1, #0
	bl	_dib7000m_read_word
	mov	x26, x0
	orr	w2, w0, #0x200
	mov	x0, x19
	mov	w1, #0
	bl	_dib7000m_write_word
	mov	x27, x0
	ldr	w8, [x19, #4]
	mov	x0, x19
	cmp	w8, #4, lsl #12                 ; =16384
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1793
	mov	w2, #0
	bl	_dib7000m_write_word
	b	LBB0_3
LBB0_2:
	mov	w1, #537
	bl	_dib7000m_read_word
LBB0_3:
	orr	w8, w21, w20
	orr	w8, w8, w22
	orr	w8, w8, w23
	orr	w8, w8, w24
	orr	w8, w8, w25
	orr	w20, w8, w27
	mov	x0, x19
	mov	w1, #0
	mov	x2, x26
	bl	_dib7000m_write_word
	orr	w0, w20, w0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	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
	.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
	.no_dead_strip	_dib7000m_autosearch_start
.subsections_via_symbols
