	.file	"extr_klist.c_klist_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	klist_remove
	.type	klist_remove, @function
klist_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR current[rip]
	mov	QWORD PTR 16[rsp], rdi
	lea	rdi, klist_remove_lock[rip]
	mov	QWORD PTR [rsp], 0
	mov	DWORD PTR 12[rsp], eax
	call	spin_lock@PLT
	lea	rdi, 8[rsp]
	lea	rsi, klist_remove_waiters[rip]
	call	list_add@PLT
	lea	rdi, klist_remove_lock[rip]
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	klist_del@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	schedule@PLT
.L3:
	mov	edi, DWORD PTR TASK_UNINTERRUPTIBLE[rip]
	call	set_current_state@PLT
	cmp	QWORD PTR [rsp], 0
	je	.L7
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	__set_current_state@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	klist_remove, .-klist_remove
	.comm	klist_remove_waiters,4,4
	.comm	klist_remove_lock,4,4
	.comm	current,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	TASK_RUNNING,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_klist.c_klist_remove.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	klist_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	klist_remove, %function
klist_remove:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r3, #0
	ldr	r2, .L9
	sub	sp, sp, #24
	ldr	r2, [r2]
	ldr	r1, .L9+4
	str	r4, [sp, #16]
	ldr	r0, .L9+8
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	str	r2, [sp, #12]
	str	r3, [sp, #4]
	bl	spin_lock
	ldr	r1, .L9+12
	add	r0, sp, #8
	bl	list_add
	ldr	r0, .L9+8
	bl	spin_unlock
	mov	r0, r4
	bl	klist_del
	ldr	r4, .L9+16
	b	.L3
.L7:
	bl	schedule
.L3:
	ldr	r0, [r4]
	bl	set_current_state
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9+20
	ldr	r0, [r3]
	bl	__set_current_state
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	current
	.word	.LC0
	.word	klist_remove_lock
	.word	klist_remove_waiters
	.word	TASK_UNINTERRUPTIBLE
	.word	TASK_RUNNING
	.size	klist_remove, .-klist_remove
	.comm	klist_remove_waiters,4,4
	.comm	klist_remove_lock,4,4
	.comm	current,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.comm	TASK_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
