	.file	"extr_vm_page.c_vm_domain_alloc_fail.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vm_domain_alloc_fail, @function
vm_domain_alloc_fail:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	vm_domain_free_assert_unlocked@PLT
	mov	ecx, DWORD PTR VM_ALLOC_COUNT_SHIFT[rip]
	mov	edi, ebx
	mov	esi, 1
	sar	edi, cl
	call	max@PLT
	lea	rdi, 4[rbp]
	mov	esi, eax
	call	atomic_add_int@PLT
	mov	eax, DWORD PTR VM_ALLOC_WAITOK[rip]
	or	eax, DWORD PTR VM_ALLOC_WAITFAIL[rip]
	test	eax, ebx
	je	.L5
	test	r12, r12
	je	.L4
	mov	rdi, r12
	call	VM_OBJECT_WUNLOCK@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	vm_wait_domain@PLT
	mov	rdi, r12
	call	VM_OBJECT_WLOCK@PLT
.L6:
	mov	eax, DWORD PTR EAGAIN[rip]
	test	DWORD PTR VM_ALLOC_WAITOK[rip], ebx
	jne	.L1
.L5:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	vm_wait_domain@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	vm_domain_alloc_fail, .-vm_domain_alloc_fail
	.comm	VM_ALLOC_WAITOK,4,4
	.comm	VM_ALLOC_WAITFAIL,4,4
	.comm	VM_ALLOC_COUNT_SHIFT,4,4
	.comm	EAGAIN,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_vm_page.c_vm_domain_alloc_fail.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_domain_alloc_fail, %function
vm_domain_alloc_fail:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r0
	mov	r6, r1
	bl	vm_domain_free_assert_unlocked
	ldr	r3, .L13
	mov	r1, #1
	ldr	r0, [r3]
	ldr	r7, .L13+4
	asr	r0, r4, r0
	bl	max
	mov	r1, r0
	add	r0, r5, #4
	bl	atomic_add_int
	ldr	r2, .L13+8
	ldr	r3, [r7]
	ldr	r2, [r2]
	orr	r3, r3, r2
	tst	r3, r4
	beq	.L5
	cmp	r6, #0
	beq	.L4
	mov	r0, r6
	bl	VM_OBJECT_WUNLOCK
	ldr	r0, [r5]
	bl	vm_wait_domain
	mov	r0, r6
	bl	VM_OBJECT_WLOCK
	ldr	r3, [r7]
	tst	r4, r3
	bne	.L12
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, [r5]
	bl	vm_wait_domain
	ldr	r3, [r7]
	tst	r4, r3
	beq	.L5
.L12:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	VM_ALLOC_COUNT_SHIFT
	.word	VM_ALLOC_WAITOK
	.word	VM_ALLOC_WAITFAIL
	.word	EAGAIN
	.size	vm_domain_alloc_fail, .-vm_domain_alloc_fail
	.comm	VM_ALLOC_WAITOK,4,4
	.comm	VM_ALLOC_WAITFAIL,4,4
	.comm	VM_ALLOC_COUNT_SHIFT,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
