	.file	"extr_arena.c_arena_extent_alloc_large.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arena_extent_alloc_large
	.type	arena_extent_alloc_large, @function
arena_extent_alloc_large:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r13d, DWORD PTR WITNESS_RANK_CORE[rip]
	mov	QWORD PTR [rsp], r8
	lea	r15, 48[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR EXTENT_HOOKS_INITIALIZER[rip]
	mov	QWORD PTR 48[rsp], rax
	call	tsdn_witness_tsdp_get@PLT
	mov	esi, r13d
	xor	edx, edx
	mov	edi, eax
	call	witness_assert_depth_to_rank@PLT
	mov	rdi, r12
	call	sz_size2index@PLT
	lea	rdx, 44[rsp]
	mov	r9, r12
	xor	r8d, r8d
	mov	QWORD PTR 16[rsp], rdx
	lea	rcx, 8[rbp]
	mov	rsi, rbp
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	mov	DWORD PTR 44[rsp], 1
	push	rdx
	.cfi_def_cfa_offset 136
	mov	rdx, r15
	push	QWORD PTR 8[rsp]
	.cfi_def_cfa_offset 144
	push	rax
	.cfi_def_cfa_offset 152
	push	0
	.cfi_def_cfa_offset 160
	push	rbx
	.cfi_def_cfa_offset 168
	push	QWORD PTR sz_large_pad[rip]
	.cfi_def_cfa_offset 176
	call	extents_alloc@PLT
	mov	r11, QWORD PTR sz_large_pad[rip]
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r13, rax
	add	r11, r12
	test	rax, rax
	je	.L21
.L5:
	cmp	QWORD PTR config_stats[rip], 0
	jne	.L8
.L9:
	mov	rcx, QWORD PTR LG_PAGE[rip]
	mov	rsi, r11
	mov	rdi, rbp
	shr	rsi, cl
	call	arena_nactive_add@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L8:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR [rsp], r11
	call	arena_stats_lock@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r14
	call	arena_large_malloc_stats_update@PLT
	mov	r11, QWORD PTR [rsp]
.L10:
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR [rsp], r11
	call	arena_stats_unlock@PLT
	mov	r11, QWORD PTR [rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	arena_may_have_muzzy@PLT
	test	rax, rax
	jne	.L3
	mov	r9, QWORD PTR sz_large_pad[rip]
	lea	r11, [r12+r9]
.L4:
	mov	QWORD PTR 24[rsp], r11
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	xor	ecx, ecx
	mov	r8, r12
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 36[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	push	0
	.cfi_def_cfa_offset 168
	push	rbx
	.cfi_def_cfa_offset 176
	call	extent_alloc_wrapper@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r11, QWORD PTR 24[rsp]
	cmp	QWORD PTR config_stats[rip], 0
	mov	r13, rax
	je	.L23
	test	rax, rax
	je	.L1
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR [rsp], r11
	call	arena_stats_lock@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r14
	call	arena_large_malloc_stats_update@PLT
	mov	r11, QWORD PTR [rsp]
	test	r11, r11
	je	.L10
	mov	rcx, r11
	mov	rdx, rbp
	mov	rsi, rbp
	mov	rdi, r14
	call	arena_stats_add_zu@PLT
	mov	r11, QWORD PTR [rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	test	rax, rax
	je	.L1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 136
	mov	r9, r12
	lea	rcx, 4[rbp]
	xor	r8d, r8d
	push	QWORD PTR 8[rsp]
	.cfi_def_cfa_offset 144
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	mov	eax, DWORD PTR 28[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	push	0
	.cfi_def_cfa_offset 160
	push	rbx
	.cfi_def_cfa_offset 168
	push	QWORD PTR sz_large_pad[rip]
	.cfi_def_cfa_offset 176
	call	extents_alloc@PLT
	mov	r9, QWORD PTR sz_large_pad[rip]
	add	rsp, 48
	.cfi_def_cfa_offset 128
	mov	r13, rax
	lea	r11, [r9+r12]
	test	rax, rax
	je	.L4
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arena_extent_alloc_large, .-arena_extent_alloc_large
	.comm	sz_large_pad,8,8
	.comm	config_stats,8,8
	.comm	WITNESS_RANK_CORE,4,4
	.comm	LG_PAGE,8,8
	.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_extent_alloc_large.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	arena_extent_alloc_large
	.syntax unified
	.arm
	.fpu softvfp
	.type	arena_extent_alloc_large, %function
arena_extent_alloc_large:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	ip, .L23
	mov	r4, r1
	mov	r8, r3
	ldr	r1, [ip]
	ldr	r3, .L23+4
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r7, r0
	ldr	fp, [sp, #88]
	str	r1, [sp, #36]
	bl	tsdn_witness_tsdp_get
	ldr	r3, .L23+8
	mov	r2, #0
	ldr	r1, [r3]
	bl	witness_assert_depth_to_rank
	mov	r0, r5
	bl	sz_size2index
	mov	r2, #0
	mov	ip, #1
	ldr	r10, .L23+12
	str	r8, [sp, #12]
	ldr	lr, [r10]
	str	r2, [sp, #16]
	str	r2, [sp]
	add	r2, sp, #40
	str	r0, [sp, #20]
	str	r2, [sp, #28]
	mov	r9, r0
	mov	r1, r4
	mov	r0, r7
	str	r5, [sp, #4]
	str	fp, [sp, #24]
	add	r3, r4, #8
	str	lr, [sp, #8]
	add	r2, sp, #36
	str	ip, [sp, #40]
	bl	extents_alloc
	subs	r6, r0, #0
	beq	.L20
	ldr	r10, [r10]
	add	r10, r5, r10
.L5:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
.L9:
	ldr	r3, .L23+20
	mov	r0, r4
	ldr	r1, [r3]
	lsr	r1, r10, r1
	bl	arena_nactive_add
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r6
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r1, r4
	mov	r0, r7
	bl	arena_stats_lock
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	arena_large_malloc_stats_update
.L10:
	mov	r0, r7
	mov	r1, r4
	bl	arena_stats_unlock
	b	.L9
.L20:
	mov	r0, r4
	bl	arena_may_have_muzzy
	cmp	r0, #0
	bne	.L3
	ldr	r2, [r10]
	add	r10, r5, r2
.L4:
	mov	r3, #0
	add	r1, sp, #40
	stmib	sp, {r2, r8}
	str	r1, [sp, #24]
	str	r3, [sp, #12]
	mov	r1, r4
	mov	r0, r7
	str	fp, [sp, #20]
	str	r9, [sp, #16]
	str	r5, [sp]
	add	r2, sp, #36
	bl	extent_alloc_wrapper
	ldr	r3, .L23+16
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	cmp	r0, #0
	beq	.L1
	mov	r1, r4
	mov	r0, r7
	bl	arena_stats_lock
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	arena_large_malloc_stats_update
	cmp	r10, #0
	beq	.L10
	mov	r3, r10
	mov	r2, r4
	mov	r1, r4
	mov	r0, r7
	bl	arena_stats_add_zu
	b	.L10
.L22:
	cmp	r0, #0
	beq	.L1
	b	.L9
.L3:
	ldr	r3, [r10]
	add	r2, sp, #40
	str	r2, [sp, #28]
	str	r6, [sp, #16]
	str	r6, [sp]
	str	r3, [sp, #8]
	add	r2, sp, #36
	mov	r1, r4
	mov	r0, r7
	str	fp, [sp, #24]
	str	r9, [sp, #20]
	str	r8, [sp, #12]
	str	r5, [sp, #4]
	add	r3, r4, #4
	bl	extents_alloc
	ldr	r2, [r10]
	subs	r6, r0, #0
	add	r10, r2, r5
	beq	.L4
	b	.L5
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	EXTENT_HOOKS_INITIALIZER
	.word	.LC0
	.word	WITNESS_RANK_CORE
	.word	sz_large_pad
	.word	config_stats
	.word	LG_PAGE
	.size	arena_extent_alloc_large, .-arena_extent_alloc_large
	.comm	sz_large_pad,4,4
	.comm	config_stats,4,4
	.comm	WITNESS_RANK_CORE,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
