	.file	"extr_kern_umtx.c_umtxq_insert_queue.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"umtx_q is already on queue"
	.text
	.p2align 4
	.type	umtxq_insert_queue, @function
umtxq_insert_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	r13, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 24[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	umtxq_getchain@PLT
	mov	rdi, rax
	mov	r12, rax
	call	UMTXQ_LOCKED_ASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	test	DWORD PTR UQF_UMTXQ[rip], eax
	sete	dil
	lea	rsi, .LC0[rip]
	call	KASSERT@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	umtxq_queue_lookup@PLT
	test	rax, rax
	je	.L2
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR link[rip]
	lea	rdi, 24[r12]
	mov	rbp, rax
	call	LIST_INSERT_HEAD@PLT
.L3:
	mov	QWORD PTR 16[rbx], 0
	mov	edx, DWORD PTR uq_link[rip]
	lea	rdi, 4[rbp]
	mov	rsi, rbx
	call	TAILQ_INSERT_TAIL@PLT
	add	DWORD PTR 0[rbp], 1
	mov	eax, DWORD PTR UQF_UMTXQ[rip]
	mov	QWORD PTR 8[rbx], rbp
	or	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rbp, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR link[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	rax, QWORD PTR 16[r12]
	mov	rsi, rbp
	lea	rdi, [rax+r13*4]
	call	LIST_INSERT_HEAD@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	umtxq_insert_queue, .-umtxq_insert_queue
	.comm	uq_link,4,4
	.comm	max_length,8,8
	.comm	link,4,4
	.comm	UQF_UMTXQ,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_kern_umtx.c_umtxq_insert_queue.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"umtx_q is already on queue\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	umtxq_insert_queue, %function
umtxq_insert_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r5, r0, #12
	mov	r4, r0
	mov	r0, r5
	mov	r6, r1
	bl	umtxq_getchain
	ldr	r8, .L6
	mov	r7, r0
	bl	UMTXQ_LOCKED_ASSERT
	ldr	r2, [r4]
	ldr	r3, [r8]
	ldr	r1, .L6+4
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	KASSERT
	mov	r0, r5
	mov	r1, r6
	bl	umtxq_queue_lookup
	subs	r5, r0, #0
	beq	.L2
	ldr	r3, .L6+8
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	add	r0, r7, #12
	bl	LIST_INSERT_HEAD
.L3:
	mov	r2, #0
	ldr	r3, .L6+12
	mov	r1, r4
	str	r2, [r4, #8]
	add	r0, r5, #4
	ldr	r2, [r3]
	bl	TAILQ_INSERT_TAIL
	ldr	r1, [r8]
	ldr	r3, [r4]
	ldr	r2, [r5]
	orr	r3, r3, r1
	add	r2, r2, #1
	str	r2, [r5]
	stm	r4, {r3, r5}
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r7, #8]
	ldr	r5, [r4, #8]
	ldr	r2, [r4, #12]
	ldr	r3, .L6+8
	str	r2, [r5, #8]
	mov	r1, r5
	ldr	r2, [r3]
	add	r0, r0, r6, lsl #2
	bl	LIST_INSERT_HEAD
	b	.L3
.L7:
	.align	2
.L6:
	.word	UQF_UMTXQ
	.word	.LC0
	.word	link
	.word	uq_link
	.size	umtxq_insert_queue, .-umtxq_insert_queue
	.comm	uq_link,4,4
	.comm	max_length,4,4
	.comm	link,4,4
	.comm	UQF_UMTXQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
