	.file	"extr_slab.c_cache_estimate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cache_estimate, @function
cache_estimate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r10d, ecx
	mov	ecx, edi
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR PAGE_SIZE[rip]
	sal	r12, cl
	test	DWORD PTR CFLGS_OFF_SLAB[rip], r10d
	je	.L2
	xor	edx, edx
	mov	rax, r12
	div	rsi
	cmp	DWORD PTR SLAB_LIMIT[rip], eax
	mov	ebx, eax
	cmovle	ebx, DWORD PTR SLAB_LIMIT[rip]
.L3:
	mov	DWORD PTR [r15], ebx
	movsx	rbx, ebx
	imul	rbx, r14
	sub	r12, rbx
	mov	QWORD PTR 0[r13], r12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, rdx
	lea	rcx, 4[r14]
	lea	rax, -4[r12]
	xor	edx, edx
	div	rcx
	mov	QWORD PTR 8[rsp], rsi
	mov	rbp, rax
	mov	edi, eax
	call	slab_mgmt_size@PLT
	movsx	rdx, ebp
	mov	rsi, QWORD PTR 8[rsp]
	imul	rdx, r14
	cdqe
	add	rdx, rax
	cmp	r12, rdx
	sbb	ebp, 0
	cmp	DWORD PTR SLAB_LIMIT[rip], ebp
	mov	ebx, ebp
	cmovle	ebx, DWORD PTR SLAB_LIMIT[rip]
	mov	edi, ebx
	call	slab_mgmt_size@PLT
	cdqe
	sub	r12, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cache_estimate, .-cache_estimate
	.comm	SLAB_LIMIT,4,4
	.comm	PAGE_SIZE,8,8
	.comm	CFLGS_OFF_SLAB,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_slab.c_cache_estimate.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cache_estimate, %function
cache_estimate:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L7
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	lr, .L7+4
	ldr	ip, [ip]
	ldr	r4, [lr]
	tst	r3, ip
	mov	r6, r1
	ldr	r7, [sp, #32]
	ldr	r8, [sp, #36]
	lsl	r4, r4, r0
	beq	.L2
	mov	r0, r4
	bl	__aeabi_uidiv
	ldr	r3, .L7+8
	ldr	r5, [r3]
	cmp	r0, r5
	movlt	r5, r0
.L3:
	mul	r6, r5, r6
	sub	r4, r4, r6
	str	r5, [r8]
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r9, r2
	add	r1, r1, #4
	sub	r0, r4, #4
	bl	__aeabi_uidiv
	mov	r1, r9
	mov	r5, r0
	bl	slab_mgmt_size
	mla	r0, r6, r5, r0
	ldr	r3, .L7+8
	cmp	r0, r4
	ldr	r0, [r3]
	subhi	r5, r5, #1
	cmp	r5, r0
	movge	r5, r0
	mov	r1, r9
	mov	r0, r5
	bl	slab_mgmt_size
	sub	r4, r4, r0
	b	.L3
.L8:
	.align	2
.L7:
	.word	CFLGS_OFF_SLAB
	.word	PAGE_SIZE
	.word	SLAB_LIMIT
	.size	cache_estimate, .-cache_estimate
	.comm	SLAB_LIMIT,4,4
	.comm	PAGE_SIZE,4,4
	.comm	CFLGS_OFF_SLAB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
