	.file	"extr_uma_core.c_keg_alloc_slab.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"keg_alloc_slab: allocated slab %p for %s(%p)"
	.text
	.p2align 4
	.type	keg_alloc_slab, @function
keg_alloc_slab:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	movsx	rsi, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	esi, esi
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR vm_ndomains[rip], esi
	setg	dil
.L2:
	call	KASSERT@PLT
	mov	rdi, rbp
	call	KEG_LOCK_ASSERT@PLT
	lea	rax, 64[rbp]
	xor	edi, edi
	cmp	QWORD PTR 0[r13], rax
	sete	dil
	xor	r14d, r14d
	call	MPASS@PLT
	mov	rax, QWORD PTR 56[rbp]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	KEG_UNLOCK@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR UMA_ZONE_OFFPAGE[rip], edx
	jne	.L40
.L3:
	mov	eax, DWORD PTR M_ZERO[rip]
	mov	ecx, r15d
	or	ecx, eax
	not	eax
	and	eax, r15d
	test	DWORD PTR UMA_ZONE_MALLOC[rip], edx
	cmovne	ecx, eax
	mov	r8d, ecx
	test	DWORD PTR UMA_ZONE_NODUMP[rip], edx
	jne	.L41
.L8:
	mov	r9d, DWORD PTR 4[rbp]
	mov	rdi, r13
	mov	rax, QWORD PTR [rsp]
	lea	rcx, 20[rsp]
	imul	r9d, DWORD PTR PAGE_SIZE[rip]
	mov	edx, r12d
	movsx	r9, r9d
	mov	QWORD PTR 8[rsp], r9
	mov	rsi, r9
	call	rax
	mov	r9, QWORD PTR 8[rsp]
	test	rax, rax
	mov	r13, rax
	je	.L42
	mov	rdi, r9
	call	uma_total_inc@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR UMA_ZONE_OFFPAGE[rip], eax
	jne	.L11
	movsx	rdx, DWORD PTR 8[rbp]
	lea	r14, 0[r13+rdx*4]
.L11:
	test	DWORD PTR UMA_ZONE_VTOSLAB[rip], eax
	jne	.L12
.L15:
	mov	eax, DWORD PTR 12[rbp]
	mov	QWORD PTR 32[r14], rbp
	lea	rsi, 20[r14]
	mov	QWORD PTR 8[r14], r13
	mov	edi, DWORD PTR SLAB_SETSIZE[rip]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 4[r14], r12d
	mov	DWORD PTR 24[r14], eax
	call	BIT_FILL@PLT
	mov	rcx, QWORD PTR 16[rbp]
	test	rcx, rcx
	je	.L14
	mov	eax, DWORD PTR 12[rbp]
	xor	r12d, r12d
	test	eax, eax
	jg	.L19
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 12[rbp]
	add	r12d, 1
	cmp	eax, r12d
	jle	.L17
	mov	rcx, QWORD PTR 16[rbp]
.L19:
	mov	eax, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 8[r14]
	mov	esi, DWORD PTR 44[rbp]
	imul	eax, r12d
	cdqe
	lea	rdi, [rdx+rax*4]
	mov	edx, ebx
	call	rcx
	test	rax, rax
	je	.L18
	mov	eax, DWORD PTR 12[rbp]
.L17:
	cmp	r12d, eax
	jne	.L43
.L14:
	mov	rdi, rbp
	call	KEG_LOCK@PLT
	mov	ecx, DWORD PTR 40[rbp]
	mov	r8, rbp
	mov	rdx, r14
	mov	edi, DWORD PTR KTR_UMA[rip]
	lea	rsi, .LC0[rip]
	call	CTR3@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR UMA_ZONE_HASH[rip], eax
	jne	.L44
.L20:
	mov	eax, DWORD PTR 4[rbp]
	add	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 12[rbp]
	add	DWORD PTR 32[rbp], eax
.L5:
	endbr64
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
.L41:
	.cfi_restore_state
	or	r8d, DWORD PTR M_NODUMP[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jle	.L15
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR PAGE_SIZE[rip]
	mov	rsi, r14
	imul	edi, r15d
	add	r15d, 1
	movsx	rdi, edi
	add	rdi, r13
	call	vsetslab@PLT
	cmp	DWORD PTR 4[rbp], r15d
	jg	.L16
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rdi, 36[rbp]
	mov	rdx, r13
	mov	rsi, r14
	call	UMA_HASH_INSERT@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR 48[rbp]
	mov	ecx, r15d
	mov	edx, r12d
	xor	esi, esi
	call	zone_alloc_item@PLT
	mov	r14, rax
	test	rax, rax
	je	.L38
	mov	edx, DWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rsi, r14
	mov	edx, r12d
	mov	rdi, rbp
	xor	r14d, r14d
	call	keg_free_slab@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR UMA_ZONE_OFFPAGE[rip], eax
	je	.L38
	mov	edi, DWORD PTR 48[rbp]
	mov	ecx, DWORD PTR SKIP_NONE[rip]
	xor	edx, edx
	mov	rsi, r14
	call	zone_free_item@PLT
.L38:
	xor	r14d, r14d
	jmp	.L1
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	keg_alloc_slab, .-keg_alloc_slab
	.comm	vm_ndomains,4,4
	.comm	UMA_ZONE_VTOSLAB,4,4
	.comm	UMA_ZONE_OFFPAGE,4,4
	.comm	UMA_ZONE_NODUMP,4,4
	.comm	UMA_ZONE_MALLOC,4,4
	.comm	UMA_ZONE_HASH,4,4
	.comm	SLAB_SETSIZE,4,4
	.comm	SKIP_NONE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_NODUMP,4,4
	.comm	KTR_UMA,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_keg_alloc_slab.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"keg_alloc_slab: allocated slab %p for %s(%p)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	keg_alloc_slab, %function
keg_alloc_slab:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L43
	sub	sp, sp, #28
	subs	r9, r2, #0
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	movlt	r0, #0
	ldr	r10, [sp, #64]
	blt	.L2
	ldr	r3, .L43+4
	ldr	r0, [r3]
	cmp	r0, r9
	movle	r0, #0
	movgt	r0, #1
.L2:
	mov	r1, r9
	bl	KASSERT
	mov	r0, r4
	bl	KEG_LOCK_ASSERT
	ldr	r0, [r5]
	add	r3, r4, #52
	sub	r0, r0, r3
	clz	r0, r0
	ldr	fp, .L43+8
	lsr	r0, r0, #5
	bl	MPASS
	mov	r0, r4
	ldr	r8, [r4, #48]
	bl	KEG_UNLOCK
	ldr	r6, [fp]
	ldr	r3, [r4]
	ands	r6, r3, r6
	bne	.L38
.L3:
	ldr	r1, .L43+12
	ldr	r2, .L43+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	tst	r3, r1
	ldr	r1, .L43+20
	bicne	r2, r10, r2
	ldr	r1, [r1]
	orreq	r2, r10, r2
	tst	r3, r1
	ldrne	r3, .L43+24
	ldr	r10, .L43+28
	ldrne	r3, [r3]
	ldr	r1, [r4, #4]
	orrne	r2, r2, r3
	ldr	r3, [r10]
	mov	r0, r5
	mul	r1, r3, r1
	str	r2, [sp]
	str	r1, [sp, #12]
	mov	r2, r9
	add	r3, sp, #16
	blx	r8
	subs	r8, r0, #0
	ldr	r1, [sp, #12]
	beq	.L39
	mov	r0, r1
	bl	uma_total_inc
	ldr	r2, [fp]
	ldr	r3, [r4]
	tst	r3, r2
	ldr	r2, .L43+32
	ldreq	r6, [r4, #8]
	ldr	r2, [r2]
	addeq	r6, r8, r6, lsl #2
	tst	r3, r2
	bne	.L12
.L15:
	ldr	r3, [r4, #12]
	ldr	r2, [sp, #16]
	str	r3, [r6]
	ldr	r3, .L43+36
	str	r4, [r6, #24]
	ldr	r0, [r3]
	str	r8, [r6, #8]
	str	r9, [r6, #4]
	str	r2, [r6, #20]
	add	r1, r6, #16
	bl	BIT_FILL
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [r4, #12]
	mov	r5, #0
	cmp	r2, #0
	bgt	.L19
	b	.L17
.L18:
	add	r5, r5, #1
	cmp	r2, r5
	ble	.L17
	ldr	r3, [r4, #16]
.L19:
	ldr	r1, [r4, #20]
	ldr	r0, [r6, #8]
	mul	r1, r5, r1
	mov	r2, r7
	add	r0, r0, r1, lsl #2
	ldr	r1, [r4, #40]
	blx	r3
	cmp	r0, #0
	ldr	r2, [r4, #12]
	beq	.L18
.L17:
	cmp	r5, r2
	bne	.L40
.L14:
	mov	r0, r4
	bl	KEG_LOCK
	ldr	r3, .L43+40
	str	r4, [sp]
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L43+44
	ldr	r3, [r4, #36]
	bl	CTR3
	ldr	r3, .L43+48
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L41
.L20:
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #28]
	ldr	r0, [r4, #4]
	ldr	r1, [r4, #12]
	add	r2, r2, r0
	add	r3, r3, r1
	str	r2, [r4, #24]
	str	r3, [r4, #28]
.L5:
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L15
	mov	r5, #0
.L16:
	ldr	r0, [r10]
	mov	r1, r6
	mla	r0, r5, r0, r8
	bl	vsetslab
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L16
	b	.L15
.L41:
	mov	r2, r8
	mov	r1, r6
	add	r0, r4, #32
	bl	UMA_HASH_INSERT
	b	.L20
.L38:
	mov	r3, r10
	mov	r2, r9
	mov	r1, #0
	ldr	r0, [r4, #44]
	bl	zone_alloc_item
	subs	r6, r0, #0
	ldrne	r3, [r4]
	bne	.L3
.L36:
	mov	r6, #0
	b	.L1
.L39:
	ldr	r3, [fp]
	ldr	r2, [r4]
	tst	r2, r3
	beq	.L36
	ldr	r3, .L43+52
	mov	r1, r6
	mov	r2, r8
	ldr	r0, [r4, #44]
	ldr	r3, [r3]
	bl	zone_free_item
	mov	r6, r8
	b	.L1
.L40:
	mov	r1, r6
	mov	r2, r5
	mov	r0, r4
	bl	keg_free_slab
	mov	r6, #0
	b	.L1
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	.LC1
	.word	vm_ndomains
	.word	UMA_ZONE_OFFPAGE
	.word	UMA_ZONE_MALLOC
	.word	M_ZERO
	.word	UMA_ZONE_NODUMP
	.word	M_NODUMP
	.word	PAGE_SIZE
	.word	UMA_ZONE_VTOSLAB
	.word	SLAB_SETSIZE
	.word	KTR_UMA
	.word	.LC0
	.word	UMA_ZONE_HASH
	.word	SKIP_NONE
	.size	keg_alloc_slab, .-keg_alloc_slab
	.comm	vm_ndomains,4,4
	.comm	UMA_ZONE_VTOSLAB,4,4
	.comm	UMA_ZONE_OFFPAGE,4,4
	.comm	UMA_ZONE_NODUMP,4,4
	.comm	UMA_ZONE_MALLOC,4,4
	.comm	UMA_ZONE_HASH,4,4
	.comm	SLAB_SETSIZE,4,4
	.comm	SKIP_NONE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	M_ZERO,4,4
	.comm	M_NODUMP,4,4
	.comm	KTR_UMA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
