	.file	"extr_vmbus_xact.c_vmbus_xact_get1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gxact"
.LC1:
	.string	"no free xact"
.LC2:
	.string	"xact has pending response"
	.text
	.p2align 4
	.type	vmbus_xact_get1, @function
vmbus_xact_get1:
.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
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, r13
	lea	r14, 8[rbx]
	call	mtx_lock@PLT
	test	DWORD PTR [rbx], ebp
	je	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r8d, r8d
	xor	edx, edx
	lea	rcx, .LC0[rip]
	mov	rsi, r13
	mov	rdi, r14
	call	mtx_sleep@PLT
	test	DWORD PTR [rbx], ebp
	jne	.L3
.L2:
	mov	r12, QWORD PTR 8[rbx]
	test	r12, r12
	je	.L4
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	KASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR [r12], 0
	lea	rsi, .LC2[rip]
	sete	dil
	call	KASSERT@PLT
	mov	QWORD PTR 8[rbx], 0
.L6:
	mov	rdi, r13
	call	mtx_unlock@PLT
	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
.L3:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	vmbus_xact_get1, .-vmbus_xact_get1
	.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_get1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gxact\000"
	.align	2
.LC1:
	.ascii	"no free xact\000"
	.align	2
.LC2:
	.ascii	"xact has pending response\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmbus_xact_get1, %function
vmbus_xact_get1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	mov	r6, r1
	add	r7, r0, #4
	mov	r0, r7
	sub	sp, sp, #12
	bl	mtx_lock
	ldr	r3, [r5]
	tst	r6, r3
	bne	.L3
	ldr	r8, .L12
	add	r9, r5, #8
	b	.L2
.L4:
	mov	r2, r4
	mov	r3, r8
	mov	r1, r7
	mov	r0, r9
	str	r4, [sp]
	bl	mtx_sleep
	ldr	r2, [r5]
	tst	r6, r2
	bne	.L3
.L2:
	ldr	r4, [r5, #8]
	cmp	r4, #0
	beq	.L4
	ldr	r1, .L12+4
	mov	r0, #1
	bl	KASSERT
	ldr	r0, [r4]
	ldr	r1, .L12+8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	mov	r3, #0
	str	r3, [r5, #8]
.L6:
	mov	r0, r7
	bl	mtx_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mov	r4, #0
	b	.L6
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	vmbus_xact_get1, .-vmbus_xact_get1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
