	.file	"extr_vchi_bsd.c__completion_claim.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"_completion_claim should be called with acquired lock"
	.align 8
.LC1:
	.string	"_completion_claim on non-waited completion"
	.text
	.p2align 4
	.type	_completion_claim, @function
_completion_claim:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	add	rdi, 4
	call	mtx_owned@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	KASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	eax, eax
	setne	dil
	call	KASSERT@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L2
	sub	eax, 1
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	cmp	eax, -1
	movsx	rsi, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	sete	dil
	jmp	KASSERT@PLT
	.cfi_endproc
.LFE0:
	.size	_completion_claim, .-_completion_claim
	.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_vchi_bsd.c__completion_claim.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_completion_claim should be called with acquired lo"
	.ascii	"ck\000"
	.align	2
.LC1:
	.ascii	"_completion_claim on non-waited completion\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_completion_claim, %function
_completion_claim:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	add	r0, r0, #4
	bl	mtx_owned
	ldr	r1, .L7
	bl	KASSERT
	ldr	r0, [r4]
	ldr	r1, .L7+4
	subs	r0, r0, #0
	movne	r0, #1
	bl	KASSERT
	ldr	r1, [r4]
	cmp	r1, #0
	ble	.L2
	sub	r1, r1, #1
	str	r1, [r4]
	pop	{r4, pc}
.L2:
	cmn	r1, #1
	movne	r0, #0
	pop	{r4, lr}
	moveq	r0, #1
	b	KASSERT
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.size	_completion_claim, .-_completion_claim
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
