	.file	"extr_seq_queue.c_queue_list_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	queue_list_remove, @function
queue_list_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movsx	rbx, edi
	lea	rdi, queue_list_lock[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR queue_list[rip]
	mov	r12, QWORD PTR [rax+rbx*8]
	test	r12, r12
	je	.L2
	lea	r13, 8[r12]
	mov	rdi, r13
	call	spin_lock@PLT
	cmp	DWORD PTR [r12], ebp
	je	.L10
	mov	rdi, r13
	call	spin_unlock@PLT
.L2:
	xor	esi, esi
	lea	rdi, queue_list_lock[rip]
	xor	r12d, r12d
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	DWORD PTR 4[r12], 1
	mov	rdi, r13
	call	spin_unlock@PLT
	mov	rax, QWORD PTR queue_list[rip]
	xor	esi, esi
	lea	rdi, queue_list_lock[rip]
	mov	QWORD PTR [rax+rbx*8], 0
	sub	DWORD PTR num_queues[rip], 1
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	queue_list_remove, .-queue_list_remove
	.comm	queue_list_lock,4,4
	.comm	queue_list,8,8
	.comm	num_queues,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_seq_queue.c_queue_list_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_list_remove, %function
queue_list_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r8, .L11
	mov	r6, r1
	ldr	r0, .L11+4
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r8]
	ldr	r4, [r3, r5, lsl #2]
	cmp	r4, #0
	beq	.L2
	add	r7, r4, #8
	mov	r0, r7
	bl	spin_lock
	ldr	r3, [r4]
	cmp	r3, r6
	beq	.L10
	mov	r0, r7
	bl	spin_unlock
.L2:
	mov	r4, #0
	mov	r1, #0
	ldr	r0, .L11+4
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r3, #1
	mov	r0, r7
	str	r3, [r4, #4]
	bl	spin_unlock
	mov	r0, #0
	ldr	r2, .L11+8
	ldr	r1, [r8]
	ldr	r3, [r2]
	str	r0, [r1, r5, lsl #2]
	sub	r3, r3, #1
	mov	r1, r0
	ldr	r0, .L11+4
	str	r3, [r2]
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	queue_list
	.word	queue_list_lock
	.word	num_queues
	.size	queue_list_remove, .-queue_list_remove
	.comm	queue_list_lock,4,4
	.comm	queue_list,4,4
	.comm	num_queues,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
