	.file	"extr_uma_core.c_hash_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hash size must be power of 2"
	.text
	.p2align 4
	.type	hash_alloc, @function
hash_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	movsx	rbx, esi
	mov	edi, ebx
	call	powerof2@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	KASSERT@PLT
	mov	eax, DWORD PTR UMA_HASH_SIZE_INIT[rip]
	cmp	eax, ebx
	jge	.L2
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	DWORD PTR 0[rbp], ebx
	lea	r12, 0[0+rbx*4]
	mov	esi, DWORD PTR M_UMAHASH[rip]
	mov	rdi, r12
	call	malloc@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
.L3:
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rsi, r12
	call	bzero@PLT
	mov	eax, DWORD PTR 0[rbp]
	sub	eax, 1
	mov	DWORD PTR 4[rbp], eax
	mov	eax, 1
.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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR hashzone[rip]
	mov	ecx, DWORD PTR M_WAITOK[rip]
	xor	esi, esi
	movsx	rbx, eax
	mov	edx, DWORD PTR UMA_ANYDOMAIN[rip]
	lea	r12, 0[0+rbx*4]
	call	zone_alloc_item@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
	mov	eax, DWORD PTR UMA_HASH_SIZE_INIT[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	hash_alloc, .-hash_alloc
	.comm	hashzone,4,4
	.comm	UMA_HASH_SIZE_INIT,4,4
	.comm	UMA_ANYDOMAIN,4,4
	.comm	M_WAITOK,4,4
	.comm	M_UMAHASH,4,4
	.comm	M_NOWAIT,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_core.c_hash_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hash size must be power of 2\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash_alloc, %function
hash_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r7, .L9
	mov	r0, r1
	bl	powerof2
	ldr	r1, .L9+4
	bl	KASSERT
	ldr	ip, [r7]
	cmp	ip, r4
	bge	.L2
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	lsl	r6, r4, #2
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r3]
	str	r4, [r5]
	bl	malloc
	cmp	r0, #0
	str	r0, [r5, #8]
	popeq	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r6
	bl	bzero
	ldr	r3, [r5]
	mov	r0, #1
	sub	r3, r3, #1
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L9+16
	ldr	r3, .L9+20
	ldr	r2, .L9+24
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	mov	r1, #0
	lsl	r6, ip, #2
	bl	zone_alloc_item
	ldr	r3, [r7]
	cmp	r0, #0
	str	r0, [r5, #8]
	str	r3, [r5]
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L8
.L10:
	.align	2
.L9:
	.word	UMA_HASH_SIZE_INIT
	.word	.LC0
	.word	M_UMAHASH
	.word	M_NOWAIT
	.word	hashzone
	.word	M_WAITOK
	.word	UMA_ANYDOMAIN
	.size	hash_alloc, .-hash_alloc
	.comm	hashzone,4,4
	.comm	UMA_HASH_SIZE_INIT,4,4
	.comm	UMA_ANYDOMAIN,4,4
	.comm	M_WAITOK,4,4
	.comm	M_UMAHASH,4,4
	.comm	M_NOWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
