	.file	"extr_fw_dnld.c_fw_dnld_over.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FW loading over (%d)]\n"
	.text
	.p2align 4
	.type	fw_dnld_over, @function
fw_dnld_over:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, QWORD PTR 24[rdi]
	test	rdi, rdi
	je	.L2
	call	release_firmware@PLT
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
.L2:
	mov	rax, QWORD PTR 32[rbx]
	xor	esi, esi
	lea	rdi, 8[rax]
	call	atomic_set@PLT
	mov	rax, QWORD PTR 32[rbx]
	lea	rdi, 4[rax]
	call	timer_pending@PLT
	test	rax, rax
	jne	.L20
.L3:
	lea	rbp, 4[rbx]
	mov	rdi, rbp
	call	timer_pending@PLT
	test	rax, rax
	jne	.L21
.L4:
	mov	edi, DWORD PTR 40[rbx]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	nfc_info@PLT
	test	r12, r12
	jne	.L22
.L5:
	mov	rax, QWORD PTR 32[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	rdx, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR [rax]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	nfc_fw_download_done@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbx]
	lea	rdi, 4[rax]
	call	del_timer_sync@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbx
	call	nfcmrvl_chip_halt@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	del_timer_sync@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fw_dnld_over, .-fw_dnld_over
	.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_fw_dnld.c_fw_dnld_over.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FW loading over (%d)]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_dnld_over, %function
fw_dnld_over:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	mov	r5, r1
	cmp	r0, #0
	beq	.L2
	bl	release_firmware
	mov	r3, #0
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	str	r3, [r4, #8]
.L2:
	ldr	r0, [r4, #20]
	mov	r1, #0
	add	r0, r0, #8
	bl	atomic_set
	ldr	r0, [r4, #20]
	add	r0, r0, #4
	bl	timer_pending
	cmp	r0, #0
	bne	.L20
.L3:
	add	r6, r4, #4
	mov	r0, r6
	bl	timer_pending
	cmp	r0, #0
	bne	.L21
.L4:
	mov	r2, r5
	ldr	r1, .L23
	ldr	r0, [r4, #24]
	bl	nfc_info
	cmp	r5, #0
	bne	.L22
.L5:
	ldr	r3, [r4, #20]
	mov	r2, r5
	ldr	r1, [r4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, lr}
	b	nfc_fw_download_done
.L20:
	ldr	r0, [r4, #20]
	add	r0, r0, #4
	bl	del_timer_sync
	b	.L3
.L22:
	mov	r0, r4
	bl	nfcmrvl_chip_halt
	b	.L5
.L21:
	mov	r0, r6
	bl	del_timer_sync
	b	.L4
.L24:
	.align	2
.L23:
	.word	.LC0
	.size	fw_dnld_over, .-fw_dnld_over
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
