	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_agc_startup
_dib7000p_agc_startup:                  ## @dib7000p_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movl	(%rbx), %eax
	movl	$-1, %r14d
	cmpq	$5, %rax
	ja	LBB0_24
## %bb.1:
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_DIB7000P_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib7000p_set_power_mode
	movl	24(%rbx), %eax
	movq	_SOC7090@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1947, %esi                     ## imm = 0x79B
	callq	_dib7000p_read_word
	movl	%eax, %r12d
	andl	$48896, %r12d                   ## imm = 0xBF00
	movq	%rbx, %rdi
	movl	$1946, %esi                     ## imm = 0x79A
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_dib7000p_write_word
	orl	$16384, %r12d                   ## imm = 0x4000
	movq	%rbx, %rdi
	movl	$1947, %esi                     ## imm = 0x79B
	movl	%r12d, %edx
	callq	_dib7000p_write_word
	movq	%rbx, %rdi
	movl	$1920, %esi                     ## imm = 0x780
	callq	_dib7000p_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	_dib7000p_write_word
	jmp	LBB0_5
LBB0_11:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	4(%rbx), %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_13:
	movq	%rbx, %rdi
	movl	$78, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_dib7000p_write_word
	movq	16(%rbx), %rax
	cmpl	$0, 12(%rax)
	je	LBB0_15
## %bb.14:
	movl	$7, %r14d
	movl	$4, %eax
	jmp	LBB0_16
LBB0_17:
	movq	16(%rbx), %rax
	movl	8(%rax), %edx
	orl	$16, %edx
	movq	%rbx, %rdi
	movl	$75, %esi
	callq	_dib7000p_write_word
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	shll	$13, %edx
	orl	$1024, %edx                     ## imm = 0x400
	movq	%rbx, %rdi
	movl	$106, %esi
	callq	_dib7000p_write_word
	incl	(%rbx)
	movl	$14, %r14d
	jmp	LBB0_24
LBB0_18:
	movq	%rbx, %rdi
	movl	$396, %esi                      ## imm = 0x18C
	callq	_dib7000p_read_word
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$394, %esi                      ## imm = 0x18A
	callq	_dib7000p_read_word
	movq	%rbx, %rdi
	movl	$78, %esi
	movl	%eax, %edx
	callq	_dib7000p_write_word
	movq	16(%rbx), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$75, %esi
	callq	_dib7000p_write_word
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %eax
	shll	$13, %edx
	shll	$9, %eax
	orl	%r14d, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	$106, %esi
	callq	_dib7000p_write_word
	movq	%rbx, %rdi
	callq	_dib7000p_restart_agc
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_dprintk
	incl	(%rbx)
	movl	$5, %r14d
	jmp	LBB0_24
LBB0_19:
	movq	%rbx, %rdi
	callq	_dib7000p_update_lna
	movl	$5, %r14d
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_10
LBB0_20:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.22:
	leaq	4(%rbx), %rdi
	xorl	%esi, %esi
	callq	*%rcx
	movl	(%rbx), %eax
	incl	%eax
	jmp	LBB0_23
LBB0_4:
	movq	_DIBX000_ADC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib7000p_set_adc_state
	movq	%rbx, %rdi
	callq	_dib7000p_pll_clk_cfg
LBB0_5:
	movslq	16(%r15), %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
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dib7000p_set_agc_config
	testl	%eax, %eax
	jne	LBB0_24
## %bb.6:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	*%rcx
	movslq	-36(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	16(%r15), %rcx
	imulq	$-274877907, %rcx, %rsi         ## imm = 0xEF9DB22D
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rsi
	addl	%ecx, %esi
	addl	%eax, %esi
	jmp	LBB0_9
LBB0_15:
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$13, %ecx
	shll	$9, %edx
	orl	%ecx, %edx
	orl	$256, %edx                      ## imm = 0x100
	movq	%rbx, %rdi
	movl	$106, %esi
	callq	_dib7000p_write_word
	movl	(%rbx), %eax
	incl	%eax
	movl	$5, %r14d
LBB0_16:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_dib7000p_restart_agc
	jmp	LBB0_24
LBB0_21:
	movl	$6, %eax
LBB0_23:
	movl	%eax, (%rbx)
	jmp	LBB0_24
LBB0_7:
	xorl	%esi, %esi
LBB0_9:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dib7000p_set_dds
	testl	%eax, %eax
	js	LBB0_24
LBB0_10:
	incl	(%rbx)
	movl	$7, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_DIB7000P_POWER_ALL,4,2         ## @DIB7000P_POWER_ALL
	.comm	_SOC7090,4,2                    ## @SOC7090
	.comm	_DIBX000_ADC_ON,4,2             ## @DIBX000_ADC_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPLIT %p: %hd\n"

	.no_dead_strip	_dib7000p_agc_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_agc_startup
_dib7000p_agc_startup:                  ; @dib7000p_agc_startup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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]
	cmp	w8, #5
	b.hi	LBB0_22
; %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:
Lloh2:
	adrp	x8, _DIB7000P_POWER_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIB7000P_POWER_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7000p_set_power_mode
	ldr	w8, [x19, #24]
Lloh5:
	adrp	x9, _SOC7090@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOC7090@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x19
	mov	w1, #1947
	bl	_dib7000p_read_word
	and	w21, w0, #0xff00
	mov	x0, x19
	mov	w1, #1946
	mov	w2, #4096
	bl	_dib7000p_write_word
	orr	w2, w21, #0x4000
	mov	x0, x19
	mov	w1, #1947
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #1920
	bl	_dib7000p_read_word
	and	w8, w0, #0xffffff7f
	orr	w2, w8, #0x3
	mov	x0, x19
	mov	w1, #1920
	bl	_dib7000p_write_word
	b	LBB0_15
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #4
	mov	w1, #1
	blr	x8
LBB0_6:
	mov	x0, x19
	mov	w1, #78
	mov	w2, #32768
	bl	_dib7000p_write_word
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_18
; %bb.7:
	mov	w20, #7
	mov	w8, #4
	b	LBB0_19
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	orr	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #75
	bl	_dib7000p_write_word
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	mov	w2, #1024
	bfi	w2, w8, #13, #19
	mov	x0, x19
	mov	w1, #106
	bl	_dib7000p_write_word
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w20, #14
	b	LBB0_23
LBB0_9:
	mov	x0, x19
	mov	w1, #396
	bl	_dib7000p_read_word
	mov	x21, x0
	mov	x0, x19
	mov	w1, #394
	bl	_dib7000p_read_word
	mov	x2, x0
	mov	x0, x19
	mov	w1, #78
	bl	_dib7000p_write_word
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #75
	bl	_dib7000p_write_word
	ldr	x8, [x19, #16]
	ldp	w9, w8, [x8]
	orr	w9, w21, w9, lsl #13
	orr	w2, w9, w8, lsl #9
	mov	x0, x19
	mov	w1, #106
	bl	_dib7000p_write_word
	mov	x0, x19
	bl	_dib7000p_restart_agc
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_dprintk
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w20, #5
	b	LBB0_23
LBB0_10:
	mov	x0, x19
	bl	_dib7000p_update_lna
	cbz	w0, LBB0_26
; %bb.11:
	mov	w20, #5
	b	LBB0_23
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.13:
	add	x0, x19, #4
	mov	w1, #0
	blr	x8
	ldr	w8, [x19]
	add	w8, w8, #1
	b	LBB0_21
LBB0_14:
Lloh10:
	adrp	x8, _DIBX000_ADC_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIBX000_ADC_ON@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib7000p_set_adc_state
	mov	x0, x19
	bl	_dib7000p_pll_clk_cfg
LBB0_15:
	ldrsw	x8, [x20, #16]
	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	x1, x0
	mov	x0, x19
	bl	_dib7000p_set_agc_config
	cbnz	w0, LBB0_22
; %bb.16:
	ldr	x8, [x20]
	cbz	x8, LBB0_24
; %bb.17:
	add	x1, sp, #12
	mov	x0, x20
	blr	x8
	ldrsw	x8, [sp, #12]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ldrsw	x9, [x20, #16]
	mov	x10, #-19923
	movk	x10, #61341, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	w1, w9, w8
	b	LBB0_25
LBB0_18:
	ldp	w9, w8, [x8]
	lsl	w9, w9, #13
	orr	w8, w9, w8, lsl #9
	orr	w2, w8, #0x100
	mov	x0, x19
	mov	w1, #106
	bl	_dib7000p_write_word
	ldr	w8, [x19]
	add	w8, w8, #1
	mov	w20, #5
LBB0_19:
	str	w8, [x19]
	mov	x0, x19
	bl	_dib7000p_restart_agc
	b	LBB0_23
LBB0_20:
	mov	w8, #6
LBB0_21:
	str	w8, [x19]
LBB0_22:
	mov	w20, #-1
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_24:
	mov	w1, #0
LBB0_25:
	mov	x0, x19
	bl	_dib7000p_set_dds
	tbnz	w0, #31, LBB0_22
LBB0_26:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w20, #7
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_DIB7000P_POWER_ALL,4,2         ; @DIB7000P_POWER_ALL
	.comm	_SOC7090,4,2                    ; @SOC7090
	.comm	_DIBX000_ADC_ON,4,2             ; @DIBX000_ADC_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPLIT %p: %hd\n"

	.no_dead_strip	_dib7000p_agc_startup
.subsections_via_symbols
