	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_autosearch_start
_dib8000_autosearch_start:              ## @dib8000_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
	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	$0, 40(%r15)
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	movq	_QAM_64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%r15), %rcx
	movl	%eax, 20(%rcx)
	movq	_FEC_2_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	$0, 8(%rcx)
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_GUARD_INTERVAL_1_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib8000_read_word
	movl	%eax, %ebx
	andl	$40959, %ebx                    ## imm = 0x9FFF
	orl	$8192, %ebx                     ## imm = 0x2000
	jmp	LBB0_10
LBB0_2:
	movq	32(%r15), %rax
	movl	$13, (%rax)
	movq	_QAM_64@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_FEC_2_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	$0, 8(%rax)
	movq	8(%r15), %rsi
	movq	16(%r15), %rax
	movq	_GUARD_INTERVAL_AUTO@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	sete	%bl
	movq	_TRANSMISSION_MODE_AUTO@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rsi
	jne	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	sete	%cl
	leal	(%rcx,%rcx,4), %r14d
	addl	$2, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib8000_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$40959, %eax                    ## imm = 0x9FFF
	leal	8192(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib8000_write_word
	jmp	LBB0_5
LBB0_3:
	movb	%bl, %cl
	leal	(%rcx,%rcx,2), %r14d
LBB0_5:
	movq	8(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.6:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_7:
	movq	16(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	_GUARD_INTERVAL_1_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dprintk
	movzbl	%r14b, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_dib8000_set_channel
	movq	%r15, %rdi
	movl	$6, %esi
	movl	$4, %edx
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movl	$7, %esi
	movl	$8, %edx
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movl	$8, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dib8000_write_word
	movq	(%r15), %rax
	imull	$50, (%rax), %ebx
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_dib8000_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_dib8000_write_word
	movq	(%r15), %rax
	imull	$100, (%rax), %ebx
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$13, %esi
	callq	_dib8000_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$14, %esi
	callq	_dib8000_write_word
	movq	(%r15), %rax
	imull	$1000, (%rax), %ebx             ## imm = 0x3E8
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_dib8000_write_word
	movzwl	%bx, %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_dib8000_write_word
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib8000_read_word
	movl	%eax, %ebx
	movl	%eax, %edx
	orl	$32768, %edx                    ## imm = 0x8000
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movl	$1284, %esi                     ## imm = 0x504
	callq	_dib8000_read_word
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_dib8000_write_word
	xorl	%eax, %eax
	addq	$8, %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	_FEC_2_3,4,2                    ## @FEC_2_3
	.comm	_TRANSMISSION_MODE_8K,8,3       ## @TRANSMISSION_MODE_8K
	.comm	_GUARD_INTERVAL_1_8,8,3         ## @GUARD_INTERVAL_1_8
	.comm	_GUARD_INTERVAL_AUTO,8,3        ## @GUARD_INTERVAL_AUTO
	.comm	_TRANSMISSION_MODE_AUTO,8,3     ## @TRANSMISSION_MODE_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using list for autosearch : %d"

	.no_dead_strip	_dib8000_autosearch_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_autosearch_start
_dib8000_autosearch_start:              ; @dib8000_autosearch_start
	.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	x19, [x0]
	str	xzr, [x19, #40]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _QAM_64@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QAM_64@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
Lloh3:
	adrp	x10, _FEC_2_3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FEC_2_3@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #16]
	str	xzr, [x9, #8]
Lloh6:
	adrp	x8, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _GUARD_INTERVAL_1_8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GUARD_INTERVAL_1_8@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x8, x9, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_dib8000_read_word
	mov	w8, #40959
	and	w8, w0, w8
	orr	w20, w8, #0x2000
	b	LBB0_9
LBB0_2:
	ldr	x8, [x19, #32]
	mov	w9, #13
	str	w9, [x8]
Lloh12:
	adrp	x9, _QAM_64@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QAM_64@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _FEC_2_3@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FEC_2_3@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
	str	xzr, [x8, #8]
Lloh18:
	adrp	x21, _GUARD_INTERVAL_AUTO@GOTPAGE
Lloh19:
	ldr	x21, [x21, _GUARD_INTERVAL_AUTO@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh20:
	adrp	x22, _TRANSMISSION_MODE_AUTO@GOTPAGE
Lloh21:
	ldr	x22, [x22, _TRANSMISSION_MODE_AUTO@GOTPAGEOFF]
	ldp	x10, x9, [x19, #8]
	ldr	x11, [x22]
	cmp	x9, x8
	mov	w12, #3
	csel	w20, w12, wzr, eq
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
	cmp	x9, x8
	mov	w8, #2
	mov	w9, #7
	csel	w20, w9, w8, eq
	mov	x0, x19
	mov	w1, #0
	bl	_dib8000_read_word
	mov	w8, #40959
	and	w8, w0, w8
	orr	w2, w8, #0x2000
	mov	x0, x19
	mov	w1, #0
	bl	_dib8000_write_word
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _GUARD_INTERVAL_1_8@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GUARD_INTERVAL_1_8@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_8:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_dib8000_set_channel
	mov	x0, x19
	mov	w1, #6
	mov	w2, #4
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #7
	mov	w2, #8
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #8
	mov	w2, #4096
	bl	_dib8000_write_word
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #50
	mul	w20, w8, w9
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #11
	bl	_dib8000_write_word
	and	w2, w20, #0xfffe
	mov	x0, x19
	mov	w1, #12
	bl	_dib8000_write_word
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #100
	mul	w20, w8, w9
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #13
	bl	_dib8000_write_word
	and	w2, w20, #0xfffc
	mov	x0, x19
	mov	w1, #14
	bl	_dib8000_write_word
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w20, w8, w9
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #15
	bl	_dib8000_write_word
	and	w2, w20, #0xfff8
	mov	x0, x19
	mov	w1, #16
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #0
	bl	_dib8000_read_word
	mov	x20, x0
	orr	w2, w0, #0x8000
	mov	x0, x19
	mov	w1, #0
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #1284
	bl	_dib8000_read_word
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_dib8000_write_word
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_FEC_2_3,4,2                    ; @FEC_2_3
	.comm	_TRANSMISSION_MODE_8K,8,3       ; @TRANSMISSION_MODE_8K
	.comm	_GUARD_INTERVAL_1_8,8,3         ; @GUARD_INTERVAL_1_8
	.comm	_GUARD_INTERVAL_AUTO,8,3        ; @GUARD_INTERVAL_AUTO
	.comm	_TRANSMISSION_MODE_AUTO,8,3     ; @TRANSMISSION_MODE_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using list for autosearch : %d"

	.no_dead_strip	_dib8000_autosearch_start
.subsections_via_symbols
