	.file	"extr_isp1760-hcd.c_errata2_function.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	errata2_function, @function
errata2_function:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR errata2_timer_hcd[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	mov	rdi, rbp
	call	hcd_to_priv@PLT
	xor	esi, esi
	mov	r15, rax
	lea	rax, 4[rax]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	spin_lock_irqsave@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	rbx, 32
	je	.L14
.L5:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 8[r15]
	cmp	QWORD PTR 8[rax], 0
	je	.L3
	mov	edi, DWORD PTR SLOT_TIMEOUT[rip]
	mov	r14, QWORD PTR [rax]
	call	msecs_to_jiffies@PLT
	mov	rdi, QWORD PTR jiffies[rip]
	lea	rsi, [r14+rax]
	call	time_after@PLT
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ATL_PTD_OFFSET[rip]
	mov	rcx, r12
	mov	edx, ebx
	call	ptd_read@PLT
	mov	edi, DWORD PTR 20[rsp]
	call	FROM_DW0_VALID@PLT
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR 16[rsp]
	call	FROM_DW3_ACTIVE@PLT
	test	eax, eax
	jne	.L3
	mov	ecx, ebx
	mov	eax, 1
	add	rbx, 1
	sal	eax, cl
	or	DWORD PTR [r15], eax
	cmp	rbx, 32
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR [r15]
	test	eax, eax
	jne	.L15
.L6:
	mov	rdi, QWORD PTR 8[rsp]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR SLOT_CHECK_PERIOD[rip]
	call	msecs_to_jiffies@PLT
	lea	rdi, errata2_timer[rip]
	add	rax, QWORD PTR jiffies[rip]
	mov	QWORD PTR errata2_timer[rip], rax
	call	add_timer@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	handle_done_ptds@PLT
	jmp	.L6
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	errata2_function, .-errata2_function
	.comm	jiffies,8,8
	.comm	errata2_timer_hcd,8,8
	.comm	errata2_timer,8,8
	.comm	SLOT_TIMEOUT,4,4
	.comm	SLOT_CHECK_PERIOD,4,4
	.comm	ATL_PTD_OFFSET,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_isp1760-hcd.c_errata2_function.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	errata2_function, %function
errata2_function:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L20
	ldr	r2, .L20+4
	ldr	r8, [r3]
	sub	sp, sp, #20
	mov	r0, r8
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bl	hcd_to_priv
	mov	r4, #0
	add	r10, r0, #4
	mov	r5, r0
	mov	r1, r4
	mov	r0, r10
	bl	spin_lock_irqsave
	ldr	r6, .L20+8
	ldr	r7, .L20+12
	b	.L5
.L3:
	add	r4, r4, #1
	cmp	r4, #32
	beq	.L17
.L5:
	ldr	r3, [r5, #8]
	add	r2, r3, r4, lsl #3
	ldr	r2, [r2, #4]
	cmp	r2, #0
	beq	.L3
	ldr	r0, [r7]
	ldr	fp, [r3, r4, lsl #3]
	ldr	r9, [r6]
	bl	msecs_to_jiffies
	mov	r1, r0
	mov	r0, r9
	add	r1, fp, r1
	bl	time_after
	cmp	r0, #0
	beq	.L3
	ldr	r1, .L20+16
	mov	r2, r4
	ldr	r1, [r1]
	add	r3, sp, #4
	ldr	r0, [r8]
	bl	ptd_read
	ldr	r0, [sp, #8]
	bl	FROM_DW0_VALID
	cmp	r0, #0
	bne	.L3
	ldr	r0, [sp, #4]
	bl	FROM_DW3_ACTIVE
	cmp	r0, #0
	moveq	r2, #1
	ldreq	r3, [r5]
	orreq	r3, r3, r2, lsl r4
	add	r4, r4, #1
	streq	r3, [r5]
	cmp	r4, #32
	bne	.L5
.L17:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L18
.L6:
	mov	r1, #0
	mov	r0, r10
	bl	spin_unlock_irqrestore
	ldr	r3, .L20+20
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	ldr	r2, .L20+24
	ldr	r3, [r6]
	add	r3, r3, r0
	mov	r0, r2
	str	r3, [r2]
	bl	add_timer
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r8
	bl	handle_done_ptds
	b	.L6
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	errata2_timer_hcd
	.word	.LC0
	.word	jiffies
	.word	SLOT_TIMEOUT
	.word	ATL_PTD_OFFSET
	.word	SLOT_CHECK_PERIOD
	.word	errata2_timer
	.size	errata2_function, .-errata2_function
	.comm	jiffies,4,4
	.comm	errata2_timer_hcd,4,4
	.comm	errata2_timer,4,4
	.comm	SLOT_TIMEOUT,4,4
	.comm	SLOT_CHECK_PERIOD,4,4
	.comm	ATL_PTD_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
