	.file	"extr_dib0090.c_dib0090_fw_reset_digital.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fw reset digital\n"
.LC1:
	.string	"Pll: Unable to lock Pll\n"
	.text
	.p2align 4
	.type	dib0090_fw_reset_digital, @function
dib0090_fw_reset_digital:
.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]
	lea	rdi, .LC0[rip]
	mov	rbx, rsi
	call	dprintk@PLT
	mov	rdi, rbp
	call	HARD_RESET@PLT
	mov	edx, DWORD PTR EN_PLL[rip]
	mov	esi, 36
	mov	rdi, rbp
	or	edx, DWORD PTR EN_CRYSTAL[rip]
	call	dib0090_fw_write_reg@PLT
	mov	edx, DWORD PTR EN_DIGCLK[rip]
	mov	esi, 27
	mov	rdi, rbp
	or	edx, DWORD PTR EN_PLL[rip]
	or	edx, DWORD PTR EN_CRYSTAL[rip]
	call	dib0090_fw_write_reg@PLT
	mov	eax, DWORD PTR 16[rbx]
	mov	esi, 32
	mov	rdi, rbp
	lea	edx, -1[rax]
	mov	eax, DWORD PTR [rbx]
	sal	edx, 11
	or	edx, DWORD PTR 4[rbx]
	sal	eax, 4
	or	edx, eax
	or	dh, 3
	call	dib0090_fw_write_reg@PLT
	cmp	DWORD PTR 36[rbx], 1
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	sbb	eax, eax
	mov	ecx, DWORD PTR 12[rbx]
	mov	esi, 35
	and	eax, 16384
	sal	edx, 4
	add	eax, 512
	or	edx, eax
	mov	eax, ecx
	sal	eax, 5
	or	eax, edx
	or	dl, -32
	test	ecx, ecx
	cmovne	edx, eax
	or	dh, 8
	call	dib0090_fw_write_reg@PLT
	mov	esi, 33
	mov	rdi, rbp
	call	dib0090_fw_read_reg@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	ecx, eax
	mov	r13d, eax
	mov	eax, DWORD PTR 20[rbx]
	sal	edx, 6
	and	ecx, 8191
	sal	eax, 12
	or	eax, edx
	or	eax, DWORD PTR 28[rbx]
	cmp	ecx, eax
	je	.L5
	mov	edx, DWORD PTR 32[rbx]
	test	edx, edx
	je	.L20
.L6:
	sal	edx, 15
	mov	rdi, rbp
	mov	esi, 33
	or	edx, r13d
	call	dib0090_fw_write_reg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	dib0090_fw_identify@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edx, r13d
	mov	esi, 33
	mov	rdi, rbp
	or	dh, -128
	call	dib0090_fw_write_reg@PLT
	mov	edx, r13d
	mov	esi, 33
	mov	rdi, rbp
	and	dh, -33
	or	dh, -128
	call	dib0090_fw_write_reg@PLT
	mov	r14d, DWORD PTR 20[rbx]
	mov	r13d, DWORD PTR 24[rbx]
	mov	rdi, rbp
	mov	esi, 33
	sal	r13d, 6
	sal	r14d, 12
	or	r14d, r13d
	or	r14d, DWORD PTR 28[rbx]
	mov	r13d, 100
	mov	edx, r14d
	or	dh, -128
	call	dib0090_fw_write_reg@PLT
	mov	edx, r14d
	mov	esi, 33
	mov	rdi, rbp
	or	dh, -96
	call	dib0090_fw_write_reg@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	sub	r13d, 1
	je	.L21
.L8:
	mov	esi, 26
	mov	rdi, rbp
	call	dib0090_fw_read_reg@PLT
	test	ah, 8
	je	.L22
	and	r14d, -32769
	mov	esi, 33
	mov	rdi, rbp
	mov	r13d, r14d
	or	r13d, 8192
	mov	edx, r13d
	call	dib0090_fw_write_reg@PLT
.L5:
	mov	edx, DWORD PTR 32[rbx]
	test	edx, edx
	jne	.L6
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	dib0090_fw_identify@PLT
.L21:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	dprintk@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dib0090_fw_reset_digital, .-dib0090_fw_reset_digital
	.comm	EN_PLL,4,4
	.comm	EN_DIGCLK,4,4
	.comm	EN_CRYSTAL,4,4
	.comm	EIO,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_dib0090.c_dib0090_fw_reset_digital.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fw reset digital\012\000"
	.align	2
.LC1:
	.ascii	"Pll: Unable to lock Pll\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib0090_fw_reset_digital, %function
dib0090_fw_reset_digital:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r5, [r0]
	ldr	r6, .L23
	ldr	r8, .L23+4
	mov	r7, r0
	ldr	r0, .L23+8
	bl	dprintk
	mov	r0, r5
	bl	HARD_RESET
	ldr	r3, [r6]
	ldr	r2, [r8]
	mov	r1, #36
	orr	r2, r2, r3
	mov	r0, r5
	bl	dib0090_fw_write_reg
	ldr	r3, .L23+12
	ldr	r1, [r8]
	ldr	r3, [r3]
	ldr	r2, [r6]
	orr	r3, r3, r1
	orr	r2, r3, r2
	mov	r1, #27
	mov	r0, r5
	bl	dib0090_fw_write_reg
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #4]
	ldr	r1, [r4]
	sub	r3, r3, #1
	orr	r2, r2, r3, lsl #11
	orr	r2, r2, r1, lsl #4
	orr	r2, r2, #768
	mov	r1, #32
	mov	r0, r5
	bl	dib0090_fw_write_reg
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #12]
	cmp	r2, #0
	moveq	r2, #16896
	movne	r2, #512
	ldr	r1, [r4, #8]
	cmp	r3, #0
	orr	r2, r2, r1, lsl #4
	orrne	r2, r2, r3, lsl #5
	orreq	r2, r2, #224
	orr	r2, r2, #2048
	mov	r1, #35
	mov	r0, r5
	bl	dib0090_fw_write_reg
	mov	r1, #33
	mov	r0, r5
	bl	dib0090_fw_read_reg
	mov	r6, r0
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #20]
	ldr	r1, [r4, #28]
	lsl	r3, r3, #6
	lsl	r2, r6, #19
	orr	r3, r3, r0, lsl #12
	lsr	r2, r2, #19
	orr	r3, r3, r1
	cmp	r2, r3
	beq	.L5
	ldr	r2, [r4, #32]
	cmp	r2, #0
	beq	.L20
.L6:
	mov	r0, r5
	orr	r2, r6, r2, lsl #15
	mov	r1, #33
	bl	dib0090_fw_write_reg
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	dib0090_fw_identify
.L20:
	orr	r2, r6, #32768
	mov	r1, #33
	mov	r0, r5
	bl	dib0090_fw_write_reg
	bic	r2, r6, #8192
	mov	r1, #33
	orr	r2, r2, #32768
	mov	r0, r5
	bl	dib0090_fw_write_reg
	ldr	r8, [r4, #24]
	ldr	r3, [r4, #20]
	ldr	r6, [r4, #28]
	lsl	r8, r8, #6
	orr	r8, r8, r3, lsl #12
	orr	r8, r8, r6
	mov	r1, #33
	orr	r2, r8, #32768
	mov	r0, r5
	bl	dib0090_fw_write_reg
	mov	r1, #33
	mov	r0, r5
	orr	r2, r8, #40960
	bl	dib0090_fw_write_reg
	mov	r6, #100
	b	.L8
.L22:
	subs	r6, r6, #1
	beq	.L21
.L8:
	mov	r1, #26
	mov	r0, r5
	bl	dib0090_fw_read_reg
	tst	r0, #2048
	beq	.L22
	bic	r6, r8, #32768
	orr	r6, r6, #8192
	mov	r2, r6
	mov	r1, #33
	mov	r0, r5
	bl	dib0090_fw_write_reg
.L5:
	ldr	r2, [r4, #32]
	cmp	r2, #0
	bne	.L6
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	dib0090_fw_identify
.L21:
	ldr	r0, .L23+16
	bl	dprintk
	ldr	r3, .L23+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	EN_CRYSTAL
	.word	EN_PLL
	.word	.LC0
	.word	EN_DIGCLK
	.word	.LC1
	.word	EIO
	.size	dib0090_fw_reset_digital, .-dib0090_fw_reset_digital
	.comm	EN_PLL,4,4
	.comm	EN_DIGCLK,4,4
	.comm	EN_CRYSTAL,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
