	.file	"extr_arena.c_arena_slab_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arena_slab_alloc, @function
arena_slab_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r12d, DWORD PTR WITNESS_RANK_CORE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r15, 48[rsp]
	call	tsdn_witness_tsdp_get@PLT
	xor	edx, edx
	mov	esi, r12d
	mov	edi, eax
	call	witness_assert_depth_to_rank@PLT
	mov	rax, QWORD PTR EXTENT_HOOKS_INITIALIZER[rip]
	mov	edi, DWORD PTR 12[rbp]
	mov	QWORD PTR 48[rsp], rax
	call	sz_size2index@PLT
	lea	r11, 44[rsp]
	xor	r8d, r8d
	mov	rdx, r15
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR PAGE[rip]
	mov	rsi, r13
	mov	rdi, r14
	mov	DWORD PTR 40[rsp], 0
	mov	r9d, DWORD PTR 8[rbp]
	lea	rcx, 4[r13]
	mov	DWORD PTR 44[rsp], 1
	push	r11
	.cfi_def_cfa_offset 136
	lea	r10, 48[rsp]
	mov	QWORD PTR 24[rsp], r11
	push	r10
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], r10
	push	rbx
	.cfi_def_cfa_offset 152
	push	1
	.cfi_def_cfa_offset 160
	push	rax
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	call	extents_alloc@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r10, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR 16[rsp]
	test	rax, rax
	mov	r12, rax
	je	.L10
.L2:
	mov	rdi, r12
	call	extent_slab_get@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rdi, r12
	call	extent_slab_data_get@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r12
	mov	rbx, rax
	call	extent_nfree_set@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	xor	edx, edx
	call	bitmap_init@PLT
	mov	rdi, r12
	call	extent_size_get@PLT
	mov	ecx, DWORD PTR LG_PAGE[rip]
	mov	rdi, r13
	sar	eax, cl
	mov	esi, eax
	call	arena_nactive_add@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR PAGE[rip]
	push	r11
	.cfi_def_cfa_offset 136
	xor	r8d, r8d
	mov	rcx, r13
	push	r10
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR 8[rbp]
	mov	rdx, r15
	mov	rsi, r13
	push	rbx
	.cfi_def_cfa_offset 152
	mov	rdi, r14
	push	1
	.cfi_def_cfa_offset 160
	push	rax
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	call	extents_alloc@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r12, rax
	test	rax, rax
	jne	.L2
	mov	r8d, DWORD PTR 28[rsp]
	mov	rcx, rbp
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r14
	call	arena_slab_alloc_hard@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L2
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arena_slab_alloc, .-arena_slab_alloc
	.comm	WITNESS_RANK_CORE,4,4
	.comm	PAGE,4,4
	.comm	LG_PAGE,4,4
	.comm	EXTENT_HOOKS_INITIALIZER,8,8
	.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_arena.c_arena_slab_alloc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arena_slab_alloc, %function
arena_slab_alloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L12
	sub	sp, sp, #52
	mov	r6, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r7, r0
	bl	tsdn_witness_tsdp_get
	ldr	r3, .L12+4
	mov	r2, #0
	ldr	r1, [r3]
	bl	witness_assert_depth_to_rank
	ldr	r3, .L12+8
	ldr	r0, [r5, #12]
	ldr	r3, [r3]
	mov	r10, #1
	str	r3, [sp, #32]
	bl	sz_size2index
	mov	ip, #0
	ldr	fp, .L12+12
	ldr	r3, [r5, #8]
	ldr	r2, [fp]
	str	r3, [sp, #4]
	str	r2, [sp, #12]
	add	r2, sp, #40
	str	r2, [sp, #28]
	add	r2, sp, #36
	str	r2, [sp, #24]
	mov	r9, r0
	mov	r1, r6
	mov	r0, r7
	str	r8, [sp, #20]
	add	r3, r6, #4
	str	ip, [sp, #8]
	str	ip, [sp]
	str	r10, [sp, #16]
	add	r2, sp, #32
	str	ip, [sp, #36]
	str	r10, [sp, #40]
	bl	extents_alloc
	subs	r4, r0, #0
	beq	.L10
.L2:
	mov	r0, r4
	bl	extent_slab_get
	bl	assert
	mov	r0, r4
	bl	extent_slab_data_get
	mov	r7, r0
	ldr	r1, [r5, #4]
	mov	r0, r4
	bl	extent_nfree_set
	mov	r1, r5
	mov	r2, #0
	ldr	r0, [r7]
	bl	bitmap_init
	mov	r0, r4
	bl	extent_size_get
	mov	r1, r0
	ldr	r3, .L12+16
	mov	r0, r6
	ldr	r3, [r3]
	asr	r1, r1, r3
	bl	arena_nactive_add
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r2, [fp]
	ldr	r3, [r5, #8]
	str	r2, [sp, #12]
	add	r2, sp, #40
	str	r2, [sp, #28]
	add	r2, sp, #36
	str	r2, [sp, #24]
	str	r4, [sp, #8]
	str	r4, [sp]
	str	r3, [sp, #4]
	mov	r1, r6
	mov	r3, r6
	mov	r0, r7
	str	r8, [sp, #20]
	str	r10, [sp, #16]
	add	r2, sp, #32
	bl	extents_alloc
	subs	r4, r0, #0
	bne	.L2
	mov	r0, r7
	mov	r3, r5
	mov	r1, r6
	str	r9, [sp]
	add	r2, sp, #32
	bl	arena_slab_alloc_hard
	subs	r4, r0, #0
	bne	.L2
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	WITNESS_RANK_CORE
	.word	EXTENT_HOOKS_INITIALIZER
	.word	PAGE
	.word	LG_PAGE
	.size	arena_slab_alloc, .-arena_slab_alloc
	.comm	WITNESS_RANK_CORE,4,4
	.comm	PAGE,4,4
	.comm	LG_PAGE,4,4
	.comm	EXTENT_HOOKS_INITIALIZER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
