	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_agc_startup
_dib8000_agc_startup:                   ## @dib8000_agc_startup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %r14
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%r14, %rdi
	callq	_dib8000_agc_soft_split
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	4(%r14), %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_11:
	movq	_CT_AGC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dib8000_agc_soft_split         ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_dib8000_update_lna
	movl	%eax, %ecx
	movl	$50, %eax
	testl	%ecx, %ecx
	jne	LBB0_15
## %bb.8:
	movl	$128, (%r14)
	jmp	LBB0_14
LBB0_4:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	4(%r14), %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_6:
	movq	%r14, %rdi
	callq	_dib8000_restart_agc
	movl	$129, (%r14)
	movl	$50, %eax
	jmp	LBB0_15
LBB0_2:
	movq	%rdi, %rbx
	movq	_DIBX000_ADC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dib8000_set_adc_state
	movslq	(%rbx), %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
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_dib8000_set_agc_config
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movq	_CT_AGC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_FE_STATUS_TUNE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movl	$130, (%r14)
LBB0_14:
	movl	$70, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_DIBX000_ADC_ON,4,2             ## @DIBX000_ADC_ON
	.comm	_CT_AGC_STOP,4,2                ## @CT_AGC_STOP
	.comm	_FE_STATUS_TUNE_FAILED,4,2      ## @FE_STATUS_TUNE_FAILED
	.no_dead_strip	_dib8000_agc_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_agc_startup
_dib8000_agc_startup:                   ; @dib8000_agc_startup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_dib8000_agc_soft_split
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, x19, #4
	mov	w1, #0
	blr	x8
LBB0_4:
	mov	w0, #0
Lloh2:
	adrp	x8, _CT_AGC_STOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CT_AGC_STOP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dib8000_agc_soft_split
LBB0_6:
	mov	x0, x19
	bl	_dib8000_update_lna
	cbz	w0, LBB0_13
; %bb.7:
	mov	w0, #50
	b	LBB0_16
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x19, #4
	mov	w1, #1
	blr	x8
LBB0_10:
	mov	x0, x19
	bl	_dib8000_restart_agc
	mov	w8, #129
	str	w8, [x19]
	mov	w0, #50
	b	LBB0_16
LBB0_11:
	mov	x20, x0
Lloh5:
	adrp	x8, _DIBX000_ADC_ON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIBX000_ADC_ON@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
	ldrsw	x8, [x20]
	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
	and	w1, w0, #0xff
	mov	x0, x19
	bl	_dib8000_set_agc_config
	cbz	w0, LBB0_14
; %bb.12:
	mov	w0, #0
Lloh8:
	adrp	x8, _CT_AGC_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CT_AGC_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh11:
	adrp	x8, _FE_STATUS_TUNE_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FE_STATUS_TUNE_FAILED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_16
LBB0_13:
	mov	w8, #128
	b	LBB0_15
LBB0_14:
	mov	w8, #130
LBB0_15:
	str	w8, [x19]
	mov	w0, #70
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_DIBX000_ADC_ON,4,2             ; @DIBX000_ADC_ON
	.comm	_CT_AGC_STOP,4,2                ; @CT_AGC_STOP
	.comm	_FE_STATUS_TUNE_FAILED,4,2      ; @FE_STATUS_TUNE_FAILED
	.no_dead_strip	_dib8000_agc_startup
.subsections_via_symbols
