	.file	"extr_uma_machdep.c_uma_small_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uma_small_alloc
	.type	uma_small_alloc, @function
uma_small_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR UMA_SLAB_PRIV[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, r8d
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, r8d
	mov	DWORD PTR [rcx], eax
	call	malloc2vm_flags@PLT
	mov	ecx, DWORD PTR VM_ALLOC_NOOBJ[rip]
	xor	esi, esi
	xor	edi, edi
	or	ecx, DWORD PTR VM_ALLOC_WIRED[rip]
	mov	edx, r12d
	or	ecx, eax
	call	vm_page_alloc_domain@PLT
	test	rax, rax
	je	.L4
	mov	r12d, DWORD PTR 4[rax]
	mov	rbp, rax
	test	DWORD PTR M_NODUMP[rip], ebx
	je	.L10
.L3:
	mov	edi, r12d
	call	PHYS_TO_DMAP@PLT
	mov	r12, rax
	test	DWORD PTR M_ZERO[rip], ebx
	je	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR PG_ZERO[rip], eax
	je	.L11
.L1:
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	edi, r12d
	call	dump_add_page@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, r12
	call	bzero@PLT
	mov	rax, r12
	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
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	uma_small_alloc, .-uma_small_alloc
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	UMA_SLAB_PRIV,4,4
	.comm	PG_ZERO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_NODUMP,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_uma_machdep.c_uma_small_alloc.c"
	.text
	.align	2
	.global	uma_small_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	uma_small_alloc, %function
uma_small_alloc:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L12
	push	{r4, r5, r6, lr}
	ldr	r1, [r1]
	ldr	r5, [sp, #16]
	str	r1, [r3]
	mov	r0, r5
	mov	r4, r2
	bl	malloc2vm_flags
	mov	r1, #0
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	mov	r2, r4
	orr	r3, ip, r3
	orr	r3, r3, r0
	mov	r0, r1
	bl	vm_page_alloc_domain
	subs	r4, r0, #0
	beq	.L4
	ldr	r3, .L12+12
	ldr	r6, [r4, #4]
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L10
.L3:
	mov	r0, r6
	bl	PHYS_TO_DMAP
	ldr	r3, .L12+16
	mov	r6, r0
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L1
	ldr	r3, .L12+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, r6
	bl	dump_add_page
	b	.L3
.L11:
	ldr	r3, .L12+24
	ldr	r1, [r3]
	bl	bzero
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L4:
	mov	r6, r4
	b	.L1
.L13:
	.align	2
.L12:
	.word	UMA_SLAB_PRIV
	.word	VM_ALLOC_NOOBJ
	.word	VM_ALLOC_WIRED
	.word	M_NODUMP
	.word	M_ZERO
	.word	PG_ZERO
	.word	PAGE_SIZE
	.size	uma_small_alloc, .-uma_small_alloc
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	UMA_SLAB_PRIV,4,4
	.comm	PG_ZERO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_NODUMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
