	.file	"extr_vmbus_xact.c_vmbus_xact_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"xact mismatch"
	.text
	.p2align 4
	.globl	vmbus_xact_poll
	.type	vmbus_xact_poll, @function
vmbus_xact_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR 8[rdi]
	lea	r14, 4[rbx]
	mov	rdi, r14
	call	mtx_lock@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rbp
	lea	rsi, .LC0[rip]
	sete	dil
	call	KASSERT@PLT
	mov	r12, QWORD PTR 0[rbp]
	test	r12, r12
	je	.L6
.L2:
	mov	rdi, rbp
	mov	rsi, r13
	call	vmbus_xact_return@PLT
	mov	rdi, r14
	mov	r12, rax
	call	mtx_unlock@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR VMBUS_XACT_CTXF_DESTROY[rip], eax
	jne	.L2
	mov	rdi, r14
	call	mtx_unlock@PLT
	mov	QWORD PTR 0[r13], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vmbus_xact_poll, .-vmbus_xact_poll
	.comm	VMBUS_XACT_CTXF_DESTROY,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_vmbus_xact.c_vmbus_xact_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xact mismatch\000"
	.text
	.align	2
	.global	vmbus_xact_poll
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmbus_xact_poll, %function
vmbus_xact_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, [r0, #4]
	mov	r6, r1
	add	r8, r7, #4
	mov	r0, r8
	bl	mtx_lock
	ldr	r0, [r7, #8]
	ldr	r1, .L7
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r5, [r4]
	cmp	r5, #0
	beq	.L6
.L2:
	mov	r1, r6
	mov	r0, r4
	bl	vmbus_xact_return
	mov	r5, r0
	mov	r0, r8
	bl	mtx_unlock
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	mov	r0, r8
	bl	mtx_unlock
	str	r5, [r6]
	b	.L1
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	VMBUS_XACT_CTXF_DESTROY
	.size	vmbus_xact_poll, .-vmbus_xact_poll
	.comm	VMBUS_XACT_CTXF_DESTROY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
