	.file	"extr_dib7000m.c_dib7000m_agc_startup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SPLIT %p: %hd"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.type	dib7000m_agc_startup, @function
dib7000m_agc_startup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rdi]
	mov	rbx, rsi
	mov	esi, 72
	mov	rdi, rbp
	call	dib7000m_read_word@PLT
	cmp	DWORD PTR 0[rbp], 5
	ja	.L14
	mov	r13d, eax
	mov	eax, DWORD PTR 0[rbp]
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	mov	r12d, 5
	call	dib7000m_update_lna@PLT
	test	eax, eax
	jne	.L1
.L24:
	add	DWORD PTR 0[rbp], 1
	mov	r12d, 7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	dib7000m_agc_soft_split@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L13
	lea	rdi, 4[rbp]
	xor	esi, esi
	call	rax
.L13:
	mov	r12d, -1
	add	DWORD PTR 0[rbp], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR DIB7000M_POWER_INTERF_ANALOG_AGC[rip]
	mov	rdi, rbp
	call	dib7000m_set_power_mode@PLT
	mov	esi, DWORD PTR DIBX000_ADC_ON[rip]
	mov	rdi, rbp
	call	dib7000m_set_adc_state@PLT
	movsx	rdi, DWORD PTR [rbx]
	mov	rax, rdi
	imul	rdi, rdi, 274877907
	sar	eax, 31
	sar	rdi, 38
	sub	edi, eax
	call	BAND_OF_FREQUENCY@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dib7000m_set_agc_config@PLT
	test	eax, eax
	je	.L24
	mov	r12d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L10
	lea	rdi, 4[rbp]
	mov	esi, 1
	call	rax
.L10:
	mov	edx, 32768
	mov	esi, 75
	mov	rdi, rbp
	call	dib7000m_write_word@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L26
	mov	DWORD PTR 0[rbp], 4
	mov	r12d, 7
.L12:
	mov	rdi, rbp
	call	dib7000m_restart_agc@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, 72
	mov	r12d, 14
	or	edx, 16
	call	dib7000m_write_word@PLT
	mov	rdi, rbp
	mov	edx, 1024
	mov	esi, 103
	call	dib7000m_write_word@PLT
	add	DWORD PTR 0[rbp], 1
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 392
	call	dib7000m_read_word@PLT
	mov	rdi, rbp
	mov	esi, 390
	mov	r14d, eax
	call	dib7000m_read_word@PLT
	mov	rdi, rbp
	mov	esi, 75
	mov	edx, eax
	call	dib7000m_write_word@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, 72
	and	edx, -17
	call	dib7000m_write_word@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, 103
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	sal	edx, 9
	or	edx, r14d
	call	dib7000m_write_word@PLT
	mov	rdi, rbp
	call	dib7000m_restart_agc@PLT
	mov	edx, r14d
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
	mov	r12d, 5
	add	DWORD PTR 0[rbp], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	edx, 256
	mov	esi, 103
	mov	rdi, rbp
	mov	r12d, 5
	call	dib7000m_write_word@PLT
	add	DWORD PTR 0[rbp], 1
	jmp	.L12
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	dib7000m_agc_startup.cold, @function
dib7000m_agc_startup.cold:
.LFSB0:
.L14:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	or	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	dib7000m_agc_startup, .-dib7000m_agc_startup
	.section	.text.unlikely
	.size	dib7000m_agc_startup.cold, .-dib7000m_agc_startup.cold
.LCOLDE1:
	.text
.LHOTE1:
	.comm	DIBX000_ADC_ON,4,4
	.comm	DIB7000M_POWER_INTERF_ANALOG_AGC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dib7000m.c_dib7000m_agc_startup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SPLIT %p: %hd\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib7000m_agc_startup, %function
dib7000m_agc_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r5, r0
	mov	r7, r1
	mov	r0, r4
	mov	r1, #72
	bl	dib7000m_read_word
	ldr	r3, [r4]
	mov	r6, r0
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r0, r4
	bl	dib7000m_agc_soft_split
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L13
	mov	r1, #0
	add	r0, r4, #4
	blx	r3
.L13:
	mvn	r5, #0
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L27
	mov	r0, r4
	ldr	r1, [r3]
	bl	dib7000m_set_power_mode
	ldr	r3, .L27+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	dib7000m_set_adc_state
	ldr	r3, [r7]
	ldr	r2, .L27+8
	asr	r0, r3, #31
	smull	r1, r3, r2, r3
	rsb	r0, r0, r3, asr #6
	bl	BAND_OF_FREQUENCY
	mov	r1, r0
	mov	r0, r4
	bl	dib7000m_set_agc_config
	cmp	r0, #0
	bne	.L15
.L24:
	mov	r5, #7
	ldr	r3, [r4]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L10
	mov	r1, #1
	add	r0, r4, #4
	blx	r3
.L10:
	mov	r2, #32768
	mov	r1, #75
	mov	r0, r4
	bl	dib7000m_write_word
	ldr	r3, [r4, #12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	movne	r3, #4
	movne	r5, #7
	strne	r3, [r4]
	beq	.L26
.L12:
	mov	r0, r4
	bl	dib7000m_restart_agc
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r5, #14
	orr	r2, r0, #16
	mov	r1, #72
	mov	r0, r4
	bl	dib7000m_write_word
	mov	r2, #1024
	mov	r1, #103
	mov	r0, r4
	bl	dib7000m_write_word
	ldr	r3, [r4]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, #392
	mov	r0, r4
	bl	dib7000m_read_word
	ldr	r1, .L27+12
	mov	r7, r0
	mov	r0, r4
	bl	dib7000m_read_word
	mov	r1, #75
	mov	r2, r0
	mov	r0, r4
	bl	dib7000m_write_word
	bic	r2, r6, #16
	mov	r1, #72
	mov	r0, r4
	bl	dib7000m_write_word
	ldr	r3, [r4, #12]
	mov	r1, #103
	ldr	r2, [r3]
	mov	r0, r4
	orr	r2, r7, r2, lsl #9
	bl	dib7000m_write_word
	mov	r0, r4
	bl	dib7000m_restart_agc
	mov	r1, r5
	mov	r5, #5
	mov	r2, r7
	ldr	r0, .L27+16
	bl	dprintk
	ldr	r3, [r4]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	dib7000m_update_lna
	cmp	r0, #0
	movne	r5, #5
	bne	.L1
	b	.L24
.L26:
	mov	r2, #256
	mov	r1, #103
	mov	r0, r4
	bl	dib7000m_write_word
	ldr	r3, [r4]
	mov	r5, #5
	add	r3, r3, #1
	str	r3, [r4]
	b	.L12
.L15:
	mvn	r5, #0
	b	.L1
.L28:
	.align	2
.L27:
	.word	DIB7000M_POWER_INTERF_ANALOG_AGC
	.word	DIBX000_ADC_ON
	.word	274877907
	.word	390
	.word	.LC0
	.size	dib7000m_agc_startup, .-dib7000m_agc_startup
	.comm	DIBX000_ADC_ON,4,4
	.comm	DIB7000M_POWER_INTERF_ANALOG_AGC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
