	.file	"extr_fhci-sched.c_process_done_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_done_list, @function
process_done_list:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rdi]
	lea	r12, 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	disable_irq@PLT
	mov	rdi, rbp
	call	fhci_to_hcd@PLT
	mov	edi, DWORD PTR [rax]
	call	disable_irq@PLT
	mov	rdi, r12
	call	spin_lock@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	fhci_remove_td_from_done_list@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR FHCI_ED_HALTED[rip], rax
	je	.L13
.L4:
	mov	edi, DWORD PTR 12[rbp]
	call	fhci_remove_td_from_done_list@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L6
.L2:
	mov	r13, QWORD PTR 8[rsi]
	mov	r14, QWORD PTR [rsi]
	mov	rbx, QWORD PTR 0[r13]
	mov	rdi, r13
	call	fhci_done_td@PLT
	mov	rax, QWORD PTR [rbx]
	add	rax, 1
	mov	QWORD PTR [rbx], rax
	cmp	rax, QWORD PTR 8[rbx]
	je	.L14
	mov	rdx, QWORD PTR URB_DEL[rip]
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR 16[rbx], rdx
	jne	.L5
	cmp	QWORD PTR FHCI_ED_SKIP[rip], rax
	jne	.L5
.L11:
	mov	rsi, r14
	mov	rdi, rbp
	call	fhci_del_ed_list@PLT
	mov	rax, QWORD PTR FHCI_ED_OPER[rip]
	mov	edi, DWORD PTR 12[rbp]
	mov	QWORD PTR [r14], rax
	call	fhci_remove_td_from_done_list@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L2
.L6:
	mov	rdi, r12
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	enable_irq@PLT
	mov	rdi, rbp
	call	fhci_to_hcd@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rax]
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	enable_irq@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	fhci_urb_complete_free@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR FHCI_ED_URB_DEL[rip]
	mov	QWORD PTR 16[rbx], rdx
	mov	QWORD PTR [r14], rax
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	process_done_list, .-process_done_list
	.comm	URB_DEL,8,8
	.comm	FHCI_ED_URB_DEL,8,8
	.comm	FHCI_ED_SKIP,8,8
	.comm	FHCI_ED_OPER,8,8
	.comm	FHCI_ED_HALTED,8,8
	.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_fhci-sched.c_process_done_list.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_done_list, %function
process_done_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, [r0]
	add	r8, r0, #4
	ldr	r0, [r3]
	bl	disable_irq
	mov	r0, r4
	bl	fhci_to_hcd
	ldr	r0, [r0]
	bl	disable_irq
	mov	r0, r8
	bl	spin_lock
	ldr	r0, [r4, #8]
	bl	fhci_remove_td_from_done_list
	subs	r1, r0, #0
	beq	.L6
	ldr	r5, .L14
	ldr	r6, .L14+4
	ldr	r7, .L14+8
	b	.L2
.L5:
	ldr	r0, [r6]
	cmp	r0, r3
	beq	.L12
.L4:
	ldr	r0, [r4, #8]
	bl	fhci_remove_td_from_done_list
	subs	r1, r0, #0
	beq	.L6
.L2:
	ldr	r9, [r1, #4]
	ldr	r10, [r1]
	ldr	fp, [r9]
	mov	r0, r9
	bl	fhci_done_td
	ldr	r1, [fp]
	ldr	r0, [fp, #4]
	add	r1, r1, #1
	cmp	r1, r0
	str	r1, [fp]
	beq	.L13
	ldr	r1, [r5]
	ldr	r0, [fp, #8]
	ldr	r3, [r10]
	cmp	r0, r1
	bne	.L5
	ldr	r0, [r7]
	cmp	r0, r3
	moveq	r1, r10
	bne	.L5
.L10:
	mov	r0, r4
	bl	fhci_del_ed_list
	ldr	r3, .L14+12
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	str	r3, [r10]
	bl	fhci_remove_td_from_done_list
	subs	r1, r0, #0
	bne	.L2
.L6:
	mov	r0, r8
	bl	spin_unlock
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	enable_irq
	mov	r0, r4
	bl	fhci_to_hcd
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, [r0]
	b	enable_irq
.L13:
	mov	r1, r9
	mov	r0, r4
	bl	fhci_urb_complete_free
	b	.L4
.L12:
	ldr	r3, .L14+16
	str	r1, [fp, #8]
	ldr	r3, [r3]
	mov	r1, r10
	str	r3, [r10]
	b	.L10
.L15:
	.align	2
.L14:
	.word	URB_DEL
	.word	FHCI_ED_HALTED
	.word	FHCI_ED_SKIP
	.word	FHCI_ED_OPER
	.word	FHCI_ED_URB_DEL
	.size	process_done_list, .-process_done_list
	.comm	URB_DEL,4,4
	.comm	FHCI_ED_URB_DEL,4,4
	.comm	FHCI_ED_SKIP,4,4
	.comm	FHCI_ED_OPER,4,4
	.comm	FHCI_ED_HALTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
