	.file	"extr_waitq.c_waitq_unlink_cb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	waitq_unlink_cb, @function
waitq_unlink_cb:
.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
	mov	r13, rdi
	mov	rdi, rdx
	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
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14d, DWORD PTR [rsi]
	call	wql_type@PLT
	cmp	rax, QWORD PTR WQL_LINK[rip]
	mov	r15d, DWORD PTR WQ_ITERATE_CONTINUE[rip]
	je	.L2
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	DWORD PTR WQ_ITERATE_INVALID[rip], r15d
	jne	.L1
.L2:
	mov	edi, DWORD PTR 4[rbx]
	call	wql_get_link@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12, rax
	call	wql_get_link@PLT
	mov	rcx, r12
	mov	rdx, rbx
	mov	esi, r14d
	mov	r8, rax
	mov	rdi, r13
	mov	rbp, rax
	call	waitq_maybe_remove_link@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	wql_put_link@PLT
	mov	rdi, rbp
	call	wql_put_link@PLT
	mov	rdi, rbx
	call	wql_is_valid@PLT
	test	eax, eax
	jne	.L4
	mov	r15d, DWORD PTR WQ_ITERATE_INVALID[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	waitq_unlink_cb, .-waitq_unlink_cb
	.comm	WQ_ITERATE_INVALID,4,4
	.comm	WQ_ITERATE_CONTINUE,4,4
	.comm	WQL_LINK,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_waitq.c_waitq_unlink_cb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitq_unlink_cb, %function
waitq_unlink_cb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r0
	sub	sp, sp, #12
	mov	r0, r2
	mov	r6, r2
	ldr	r8, [r1]
	bl	wql_type
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L7
	ldr	r9, .L10+4
	b	.L2
.L4:
	ldr	r3, [r9]
	cmp	r3, r5
	bne	.L1
.L2:
	ldr	r0, [r6, #4]
	bl	wql_get_link
	mov	r5, r0
	ldr	r0, [r6]
	bl	wql_get_link
	mov	r2, r6
	mov	r1, r8
	mov	r3, r5
	mov	r4, r0
	str	r0, [sp]
	mov	r0, r7
	bl	waitq_maybe_remove_link
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	wql_put_link
	mov	r0, r4
	bl	wql_put_link
	mov	r0, r6
	bl	wql_is_valid
	cmp	r0, #0
	bne	.L4
	ldr	r5, [r9]
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r3, .L10+8
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	.align	2
.L10:
	.word	WQL_LINK
	.word	WQ_ITERATE_INVALID
	.word	WQ_ITERATE_CONTINUE
	.size	waitq_unlink_cb, .-waitq_unlink_cb
	.comm	WQ_ITERATE_INVALID,4,4
	.comm	WQ_ITERATE_CONTINUE,4,4
	.comm	WQL_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
