	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8096_set_param_override
_dib8096_set_param_override:            ## @dib8096_set_param_override
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movslq	(%rdi), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BAND_OF_FREQUENCY
	movl	%eax, %r13d
	movl	$1, %ebx
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r13d
	jne	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
LBB0_4:
	movq	%r12, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	*24(%r14)
	movq	%r12, %rdi
	callq	*(%r14)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	cmpl	$6000000, 4(%r12)               ## imm = 0x5B8D80
	jne	LBB0_7
## %bb.8:
	movq	_dib8090_pll_config_12mhz@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movl	$6000, %edx                     ## imm = 0x1770
	xorl	%ecx, %ecx
	callq	*48(%r14)
	movq	%r12, %rdi
	callq	_dib8090_compute_pll_parameters
	movl	%eax, %ecx
	addl	$-17, %ecx
	movl	$18179756, %ebx                 ## imm = 0x11566AC
	cmpl	$2, %ecx
	ja	LBB0_10
## %bb.9:
	movslq	%ecx, %rcx
	leaq	l_switch.table.dib8096_set_param_override(%rip), %rdx
	movl	(%rdx,%rcx,4), %ebx
LBB0_10:
	movslq	4(%r12), %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	movq	_dib8090_pll_config_12mhz@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	callq	*48(%r14)
	movq	_DEMOD_TIMF_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	*40(%r14)
	movq	_BAND_CBAND@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r13d
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_dib0090_get_wbd_target
                                        ## kill: def $eax killed $eax def $rax
	shll	$4, %eax
	leal	(%rax,%rax,8), %eax
	cltq
	imulq	$1041204193, %rax, %rax         ## imm = 0x3E0F83E1
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	incl	%eax
	shrl	$31, %eax
	leal	(%rax,%rdx), %esi
	incl	%esi
	sarl	%esi
	movq	%r12, %rdi
	callq	*32(%r14)
	cmpl	(%rbx), %r13d
	jne	LBB0_19
LBB0_12:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	movq	_CT_AGC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dib0090_set_tune_state
	movq	_CT_AGC_STEP_0@GOTPCREL(%rip), %r15
	movq	_CT_AGC_STOP@GOTPCREL(%rip), %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*24(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	(%r14), %ebx
	jae	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_dib0090_gain_control
	movl	%eax, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_dib0090_get_tune_state
	movl	%eax, %ebx
	movl	$1, %r13d
	cmpl	(%r15), %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_CT_AGC_STEP_1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	leaq	-44(%rbp), %rcx
	leaq	-60(%rbp), %r8
	callq	_dib0090_get_current_gain
	cmpl	$1999, -44(%rbp)                ## imm = 0x7CF
	jle	LBB0_16
	jmp	LBB0_17
LBB0_5:
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_deb_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_deb_info
	movq	%r12, %rdi
	callq	_dib0090_pwm_gain_reset
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	*16(%rbx)
	movq	_CT_DEMOD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	*8(%rbx)
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_deb_info
	movq	%r12, %rdi
	callq	_dib0090_pwm_gain_reset
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_SHUTDOWN,4,2                ## @CT_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning : Rf frequency  (%iHz) is not in the supported range, using VHF switch "

L_.str.1:                               ## @.str.1
	.asciz	"only 6MHz bandwidth is supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dib8090_pll_config_12mhz,4,2   ## @dib8090_pll_config_12mhz
	.comm	_DEMOD_TIMF_SET,4,2             ## @DEMOD_TIMF_SET
	.comm	_BAND_CBAND,4,2                 ## @BAND_CBAND
L_.str.2:                               ## @.str.2
	.asciz	"tuning in CBAND - soft-AGC startup\n"

	.comm	_CT_AGC_START,4,2               ## @CT_AGC_START
	.comm	_CT_AGC_STEP_0,4,2              ## @CT_AGC_STEP_0
	.comm	_CT_AGC_STEP_1,4,2              ## @CT_AGC_STEP_1
	.comm	_CT_AGC_STOP,4,2                ## @CT_AGC_STOP
L_.str.3:                               ## @.str.3
	.asciz	"switching to PWM AGC\n"

	.comm	_CT_DEMOD_START,4,2             ## @CT_DEMOD_START
L_.str.4:                               ## @.str.4
	.asciz	"not tuning in CBAND - standard AGC startup\n"

	.no_dead_strip	_dib8096_set_param_override
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dib8096_set_param_override
l_switch.table.dib8096_set_param_override:
	.long	21387946                        ## 0x1465aaa
	.long	20199727                        ## 0x134392f
	.long	19136583                        ## 0x1240047

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8096_set_param_override
_dib8096_set_param_override:            ; @dib8096_set_param_override
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldrsw	x8, [x0]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_BAND_OF_FREQUENCY
	mov	x20, x0
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_3
; %bb.2:
	mov	w3, #0
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
LBB0_4:
	mov	w3, #1
LBB0_5:
	ldr	x8, [x22, #24]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	blr	x8
	ldr	x8, [x22]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_24
; %bb.6:
	ldr	w8, [x19, #4]
	sub	w8, w8, #1464, lsl #12          ; =5996544
	cmp	w8, #3456
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x22, #48]
Lloh2:
	adrp	x1, _dib8090_pll_config_12mhz@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dib8090_pll_config_12mhz@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #6000
	mov	w3, #0
	blr	x8
	mov	x0, x19
	bl	_dib8090_compute_pll_parameters
	mov	x3, x0
	sub	w8, w0, #17
	cmp	w8, #2
	b.hi	LBB0_10
; %bb.8:
Lloh4:
	adrp	x9, l_switch.table.dib8096_set_param_override@PAGE
Lloh5:
	add	x9, x9, l_switch.table.dib8096_set_param_override@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_10:
	mov	w21, #26284
	movk	w21, #277, lsl #16
LBB0_11:
	ldr	x8, [x22, #48]
	ldrsw	x9, [x19, #4]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w2, w9, w10
Lloh11:
	adrp	x1, _dib8090_pll_config_12mhz@GOTPAGE
Lloh12:
	ldr	x1, [x1, _dib8090_pll_config_12mhz@GOTPAGEOFF]
	mov	x0, x19
	blr	x8
	ldr	x8, [x22, #40]
Lloh13:
	adrp	x9, _DEMOD_TIMF_SET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DEMOD_TIMF_SET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x21
	blr	x8
Lloh16:
	adrp	x21, _BAND_CBAND@GOTPAGE
Lloh17:
	ldr	x21, [x21, _BAND_CBAND@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_dib0090_get_wbd_target
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #4
	mov	w9, #33761
	movk	w9, #15887, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #3
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w1, w8, #1
	ldr	x8, [x22, #32]
	mov	x0, x19
	blr	x8
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_22
LBB0_13:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
Lloh20:
	adrp	x8, _CT_AGC_START@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CT_AGC_START@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib0090_set_tune_state
Lloh23:
	adrp	x21, _CT_AGC_STEP_0@GOTPAGE
Lloh24:
	ldr	x21, [x21, _CT_AGC_STEP_0@GOTPAGEOFF]
Lloh25:
	adrp	x23, _CT_AGC_STOP@GOTPAGE
Lloh26:
	ldr	x23, [x23, _CT_AGC_STOP@GOTPAGEOFF]
Lloh27:
	adrp	x24, _CT_AGC_STEP_1@GOTPAGE
Lloh28:
	ldr	x24, [x24, _CT_AGC_STEP_1@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w3, #1
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x22, #24]
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	blr	x8
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x23]
	cmp	w20, w8
	b.hs	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_dib0090_gain_control
	bl	_msleep
	mov	x0, x19
	bl	_dib0090_get_tune_state
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_dib0090_get_current_gain
	ldr	w8, [sp, #8]
	cmp	w8, #1999
	b.gt	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w3, #0
	b	LBB0_15
LBB0_21:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	mov	x0, x19
	bl	_dib0090_pwm_gain_reset
	ldr	x8, [x22, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x22, #8]
Lloh31:
	adrp	x9, _CT_DEMOD_START@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CT_DEMOD_START@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	b	LBB0_23
LBB0_22:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_deb_info
	mov	x0, x19
	bl	_dib0090_pwm_gain_reset
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_SHUTDOWN,4,2                ; @CT_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning : Rf frequency  (%iHz) is not in the supported range, using VHF switch "

l_.str.1:                               ; @.str.1
	.asciz	"only 6MHz bandwidth is supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dib8090_pll_config_12mhz,4,2   ; @dib8090_pll_config_12mhz
	.comm	_DEMOD_TIMF_SET,4,2             ; @DEMOD_TIMF_SET
	.comm	_BAND_CBAND,4,2                 ; @BAND_CBAND
l_.str.2:                               ; @.str.2
	.asciz	"tuning in CBAND - soft-AGC startup\n"

	.comm	_CT_AGC_START,4,2               ; @CT_AGC_START
	.comm	_CT_AGC_STEP_0,4,2              ; @CT_AGC_STEP_0
	.comm	_CT_AGC_STEP_1,4,2              ; @CT_AGC_STEP_1
	.comm	_CT_AGC_STOP,4,2                ; @CT_AGC_STOP
l_.str.3:                               ; @.str.3
	.asciz	"switching to PWM AGC\n"

	.comm	_CT_DEMOD_START,4,2             ; @CT_DEMOD_START
l_.str.4:                               ; @.str.4
	.asciz	"not tuning in CBAND - standard AGC startup\n"

	.no_dead_strip	_dib8096_set_param_override
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dib8096_set_param_override
l_switch.table.dib8096_set_param_override:
	.long	21387946                        ; 0x1465aaa
	.long	20199727                        ; 0x134392f
	.long	19136583                        ; 0x1240047

.subsections_via_symbols
