	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movq	%rbx, %rdi
	callq	_dib8000_agc_soft_split
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_14:
	movq	_CT_AGC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib8000_agc_soft_split         ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_dib8000_update_lna
	movl	%eax, %ecx
	movl	$50, %eax
	testl	%ecx, %ecx
	jne	LBB0_18
## %bb.11:
	movl	$128, (%rbx)
	jmp	LBB0_17
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_9:
	movq	%rbx, %rdi
	callq	_dib8000_restart_agc
	movl	$129, (%rbx)
	movl	$50, %eax
	jmp	LBB0_18
LBB0_2:
	cmpl	$32912, 4(%rbx)                 ## imm = 0x8090
	jne	LBB0_3
## %bb.4:
	movq	_DIB8000_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib8000_set_power_mode
	movq	%rbx, %rdi
	movl	$1947, %esi                     ## imm = 0x79B
	callq	_dib8000_read_word
	movl	%eax, %r15d
	andl	$48896, %r15d                   ## imm = 0xBF00
	movq	%rbx, %rdi
	movl	$1946, %esi                     ## imm = 0x79A
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_dib8000_write_word
	orl	$16384, %r15d                   ## imm = 0x4000
	movq	%rbx, %rdi
	movl	$1947, %esi                     ## imm = 0x79B
	movl	%r15d, %edx
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$1920, %esi                     ## imm = 0x780
	callq	_dib8000_read_word
                                        ## kill: def $eax killed $eax def $rax
	andl	$-132, %eax
	leal	3(%rax), %edx
	movq	%rbx, %rdi
	movl	$1920, %esi                     ## imm = 0x780
	callq	_dib8000_write_word
	jmp	LBB0_5
LBB0_3:
	movq	_DIBX000_ADC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib8000_set_adc_state
LBB0_5:
	movslq	(%r14), %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	%rbx, %rdi
	callq	_dib8000_set_agc_config
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	_CT_AGC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_FE_STATUS_TUNE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_16:
	movl	$130, (%rbx)
LBB0_17:
	movl	$70, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_DIBX000_ADC_ON,4,2             ## @DIBX000_ADC_ON
	.comm	_DIB8000_POWER_ALL,4,2          ## @DIB8000_POWER_ALL
	.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	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, #8]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
	mov	x20, x0
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:
	mov	x0, x20
	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_19
LBB0_5:
	mov	x0, x19
	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
	b	_dib8000_agc_soft_split
LBB0_6:
	mov	x0, x19
	bl	_dib8000_update_lna
	cbz	w0, LBB0_16
; %bb.7:
	mov	w0, #50
	b	LBB0_19
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	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_19
LBB0_11:
	ldr	w8, [x19, #4]
	mov	w9, #32912
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh5:
	adrp	x8, _DIB8000_POWER_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB8000_POWER_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_power_mode
	mov	x0, x19
	mov	w1, #1947
	bl	_dib8000_read_word
	and	w21, w0, #0xff00
	mov	x0, x19
	mov	w1, #1946
	mov	w2, #32768
	bl	_dib8000_write_word
	orr	w2, w21, #0x4000
	mov	x0, x19
	mov	w1, #1947
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #1920
	bl	_dib8000_read_word
	and	w8, w0, #0xffffff7f
	orr	w2, w8, #0x3
	mov	x0, x19
	mov	w1, #1920
	bl	_dib8000_write_word
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _DIBX000_ADC_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIBX000_ADC_ON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib8000_set_adc_state
LBB0_14:
	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_17
; %bb.15:
	mov	w0, #0
Lloh11:
	adrp	x8, _CT_AGC_STOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CT_AGC_STOP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh14:
	adrp	x8, _FE_STATUS_TUNE_FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FE_STATUS_TUNE_FAILED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_19
LBB0_16:
	mov	w8, #128
	b	LBB0_18
LBB0_17:
	mov	w8, #130
LBB0_18:
	str	w8, [x19]
	mov	w0, #70
LBB0_19:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_DIB8000_POWER_ALL,4,2          ; @DIB8000_POWER_ALL
	.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
