	.file	"extr_uma_core.c_uma_startup_count.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uma_startup_count
	.type	uma_startup_count, @function
uma_startup_count:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	movsx	rax, DWORD PTR vm_ndomains[rip]
	mov	esi, DWORD PTR CACHE_LINE_SIZE[rip]
	mov	r12, QWORD PTR PAGE_SIZE[rip]
	add	rax, 1
	lea	edx, 0[0+rax*4]
	mov	DWORD PTR ksize[rip], edx
	mov	edx, DWORD PTR mp_maxid[rip]
	lea	edi, 1[rdx+rax]
	sal	edi, 2
	mov	DWORD PTR zsize[rip], edi
	call	roundup@PLT
	mov	esi, DWORD PTR CACHE_LINE_SIZE[rip]
	mov	edi, DWORD PTR ksize[rip]
	mov	ebx, eax
	call	roundup@PLT
	mov	esi, r12d
	lea	edi, [rax+rbx*2]
	call	howmany@PLT
	mov	edi, DWORD PTR zsize[rip]
	add	ebp, DWORD PTR UMA_BOOT_ZONES[rip]
	cmp	edi, DWORD PTR UMA_SLAB_SPACE[rip]
	mov	r12d, eax
	jle	.L2
	mov	esi, DWORD PTR UMA_BOOT_ALIGN[rip]
	mov	rbx, QWORD PTR PAGE_SIZE[rip]
	call	roundup2@PLT
	mov	esi, ebx
	mov	edi, eax
	call	howmany@PLT
	mov	r13, QWORD PTR PAGE_SIZE[rip]
	mov	esi, DWORD PTR UMA_BOOT_ALIGN[rip]
	movsx	rbx, eax
	mov	edi, DWORD PTR zsize[rip]
	imul	r13, rbx
	call	roundup2@PLT
	cdqe
	sub	r13, rax
	xor	eax, eax
	cmp	r13, QWORD PTR SIZEOF_UMA_SLAB[rip]
	setl	al
	add	rbx, rax
	imul	ebx, ebp
	add	r12d, ebx
	mov	ebx, DWORD PTR UMA_SLAB_SPACE[rip]
.L4:
	mov	esi, DWORD PTR UMA_BOOT_ALIGN[rip]
	mov	edi, DWORD PTR ksize[rip]
	call	roundup2@PLT
	lea	edi, 1[rbp]
	mov	r8d, eax
	mov	eax, ebx
	cdq
	idiv	r8d
	mov	esi, eax
	call	howmany@PLT
	movsx	rcx, DWORD PTR UMA_HASH_SIZE_INIT[rip]
	xor	edx, edx
	mov	edi, ebp
	add	r12d, eax
	movsx	rax, DWORD PTR UMA_SLAB_SPACE[rip]
	sal	rcx, 3
	div	rcx
	mov	esi, eax
	call	howmany@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	add	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR UMA_BOOT_ALIGN[rip]
	call	roundup2@PLT
	mov	ebx, DWORD PTR UMA_SLAB_SPACE[rip]
	cmp	eax, ebx
	jle	.L5
	add	r12d, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR UMA_BOOT_ALIGN[rip]
	mov	edi, DWORD PTR zsize[rip]
	call	roundup2@PLT
	mov	edi, ebp
	mov	r8d, eax
	mov	eax, ebx
	cdq
	idiv	r8d
	mov	esi, eax
	call	howmany@PLT
	mov	ebx, DWORD PTR UMA_SLAB_SPACE[rip]
	add	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	uma_startup_count, .-uma_startup_count
	.comm	zsize,4,4
	.comm	vm_ndomains,4,4
	.comm	mp_maxid,4,4
	.comm	ksize,4,4
	.comm	UMA_SLAB_SPACE,4,4
	.comm	UMA_HASH_SIZE_INIT,4,4
	.comm	UMA_BOOT_ZONES,4,4
	.comm	UMA_BOOT_ALIGN,4,4
	.comm	SIZEOF_UMA_SLAB,8,8
	.comm	PAGE_SIZE,8,8
	.comm	CACHE_LINE_SIZE,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_uma_startup_count.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_uidiv
	.align	2
	.global	uma_startup_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	uma_startup_count, %function
uma_startup_count:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L8
	ldr	r3, .L8+4
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r5, .L8+8
	add	r0, r3, r0
	ldr	r7, .L8+12
	ldr	r8, .L8+16
	add	r0, r0, #2
	add	r3, r3, #1
	ldr	r1, [r5]
	lsl	r3, r3, #2
	lsl	r0, r0, #2
	str	r3, [r7]
	str	r0, [r8]
	bl	roundup
	mov	r3, r0
	ldr	r1, [r5]
	ldr	r0, [r7]
	mov	r5, r3
	bl	roundup
	ldr	r10, .L8+20
	add	r0, r0, r5, lsl #1
	ldr	r1, [r10]
	bl	howmany
	ldr	r6, .L8+24
	ldr	r2, .L8+28
	ldr	r3, [r8]
	ldr	r1, [r6]
	ldr	r2, [r2]
	ldr	fp, .L8+32
	cmp	r3, r1
	mov	r9, r0
	ldr	r1, [fp]
	mov	r0, r3
	add	r4, r4, r2
	ble	.L2
	bl	roundup2
	ldr	r1, [r10]
	bl	howmany
	mov	r5, r0
	ldr	r3, [r10]
	ldr	r0, [r8]
	ldr	r1, [fp]
	mul	r8, r3, r5
	bl	roundup2
	ldr	r3, .L8+36
	sub	r8, r8, r0
	ldr	r3, [r3]
	ldr	r10, [r6]
	cmp	r8, r3
	addlt	r5, r5, #1
	mla	r5, r4, r5, r9
.L4:
	ldr	r1, [fp]
	ldr	r0, [r7]
	bl	roundup2
	mov	r1, r0
	mov	r0, r10
	bl	__aeabi_idiv
	mov	r1, r0
	add	r0, r4, #1
	bl	howmany
	mov	r3, r0
	ldr	r2, .L8+40
	ldr	r0, [r6]
	ldr	r1, [r2]
	add	r5, r5, r3
	lsl	r1, r1, #2
	bl	__aeabi_uidiv
	mov	r1, r0
	mov	r0, r4
	bl	howmany
	add	r0, r5, r0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	roundup2
	ldr	r10, [r6]
	cmp	r0, r10
	addgt	r5, r9, r4
	bgt	.L4
	ldr	r1, [fp]
	ldr	r0, [r8]
	bl	roundup2
	mov	r1, r0
	mov	r0, r10
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r4
	bl	howmany
	ldr	r10, [r6]
	add	r5, r9, r0
	b	.L4
.L9:
	.align	2
.L8:
	.word	mp_maxid
	.word	vm_ndomains
	.word	CACHE_LINE_SIZE
	.word	ksize
	.word	zsize
	.word	PAGE_SIZE
	.word	UMA_SLAB_SPACE
	.word	UMA_BOOT_ZONES
	.word	UMA_BOOT_ALIGN
	.word	SIZEOF_UMA_SLAB
	.word	UMA_HASH_SIZE_INIT
	.size	uma_startup_count, .-uma_startup_count
	.comm	zsize,4,4
	.comm	vm_ndomains,4,4
	.comm	mp_maxid,4,4
	.comm	ksize,4,4
	.comm	UMA_SLAB_SPACE,4,4
	.comm	UMA_HASH_SIZE_INIT,4,4
	.comm	UMA_BOOT_ZONES,4,4
	.comm	UMA_BOOT_ALIGN,4,4
	.comm	SIZEOF_UMA_SLAB,4,4
	.comm	PAGE_SIZE,4,4
	.comm	CACHE_LINE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
