	.file	"extr_ctl.c_ctl_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ctl_init, @function
ctl_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	tsd_tsdn@PLT
	lea	rsi, ctl_mtx[rip]
	mov	rdi, rax
	mov	r12, rax
	call	malloc_mutex_lock@PLT
	mov	r13d, DWORD PTR ctl_initialized[rip]
	test	r13d, r13d
	jne	.L11
	cmp	QWORD PTR ctl_arenas[rip], 0
	je	.L3
.L6:
	cmp	QWORD PTR config_stats[rip], 0
	je	.L5
	cmp	QWORD PTR ctl_stats[rip], 0
	je	.L28
.L5:
	mov	esi, DWORD PTR MALLCTL_ARENAS_ALL[rip]
	xor	edx, edx
	mov	ecx, 1
	mov	rdi, rbp
	call	arenas_i_impl@PLT
	test	rax, rax
	je	.L7
	mov	DWORD PTR [rax], 1
	mov	rdi, rbp
	mov	ecx, 1
	xor	edx, edx
	mov	esi, DWORD PTR MALLCTL_ARENAS_DESTROYED[rip]
	call	arenas_i_impl@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L7
	call	ctl_arena_clear@PLT
	xor	eax, eax
	mov	rbx, QWORD PTR ctl_arenas[rip]
	call	narenas_total_get@PLT
	mov	rdi, QWORD PTR ctl_arenas[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L9
	xor	ebx, ebx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR ctl_arenas[rip]
	add	ebx, 1
	cmp	DWORD PTR [rdi], ebx
	jbe	.L9
.L10:
	xor	edx, edx
	mov	ecx, 1
	mov	esi, ebx
	mov	rdi, rbp
	call	arenas_i_impl@PLT
	test	rax, rax
	jne	.L29
.L7:
	mov	r13d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r13d, r13d
.L2:
	mov	rdi, r12
	lea	rsi, ctl_mtx[rip]
	call	malloc_mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r14d, DWORD PTR QUANTUM[rip]
	xor	eax, eax
	call	b0get@PLT
	mov	edx, 8
	mov	rdi, r12
	mov	esi, eax
	mov	ecx, r14d
	call	base_alloc@PLT
	mov	QWORD PTR ctl_arenas[rip], rax
	test	rax, rax
	jne	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	add	rdi, 4
	call	ql_new@PLT
	mov	rdi, r12
	call	ctl_refresh@PLT
	mov	DWORD PTR ctl_initialized[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	mov	r14d, DWORD PTR QUANTUM[rip]
	xor	eax, eax
	call	b0get@PLT
	mov	edx, 4
	mov	rdi, r12
	mov	esi, eax
	mov	ecx, r14d
	call	base_alloc@PLT
	mov	QWORD PTR ctl_stats[rip], rax
	test	rax, rax
	jne	.L5
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ctl_init, .-ctl_init
	.comm	ctl_stats,8,8
	.comm	ctl_mtx,4,4
	.comm	ctl_initialized,4,4
	.comm	ctl_arenas,8,8
	.comm	config_stats,8,8
	.comm	QUANTUM,4,4
	.comm	MALLCTL_ARENAS_DESTROYED,4,4
	.comm	MALLCTL_ARENAS_ALL,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_ctl.c_ctl_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctl_init, %function
ctl_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	bl	tsd_tsdn
	ldr	r9, .L33
	ldr	r1, .L33+4
	mov	r6, r0
	bl	malloc_mutex_lock
	ldr	r7, [r9]
	cmp	r7, #0
	movne	r7, #0
	bne	.L2
	ldr	r8, .L33+8
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L3
.L6:
	ldr	r3, .L33+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r4, .L33+16
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L31
.L5:
	ldr	r2, .L33+20
	mov	r3, #1
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	bl	arenas_i_impl
	cmp	r0, #0
	beq	.L7
	mov	r3, #1
	ldr	r2, .L33+24
	str	r3, [r0]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	bl	arenas_i_impl
	cmp	r0, #0
	beq	.L7
	bl	ctl_arena_clear
	ldr	r4, [r8]
	bl	narenas_total_get
	ldr	r3, [r8]
	str	r0, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L9
	mov	r4, #0
	b	.L10
.L32:
	ldr	r3, [r8]
	ldr	r2, [r3]
	cmp	r2, r4
	bls	.L9
.L10:
	mov	r1, r4
	mov	r3, #1
	mov	r2, #0
	mov	r0, r5
	bl	arenas_i_impl
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L32
.L7:
	mov	r7, #1
.L2:
	mov	r0, r6
	ldr	r1, .L33+4
	bl	malloc_mutex_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	bl	b0get
	ldr	r3, .L33+28
	mov	r1, r0
	mov	r2, #8
	mov	r0, r6
	ldr	r3, [r3]
	bl	base_alloc
	cmp	r0, #0
	str	r0, [r8]
	bne	.L6
	b	.L7
.L9:
	add	r0, r3, #4
	bl	ql_new
	mov	r0, r6
	bl	ctl_refresh
	mov	r3, #1
	str	r3, [r9]
	b	.L2
.L31:
	bl	b0get
	ldr	r3, .L33+28
	mov	r1, r0
	mov	r2, #4
	mov	r0, r6
	ldr	r3, [r3]
	bl	base_alloc
	cmp	r0, #0
	str	r0, [r4]
	bne	.L5
	b	.L7
.L34:
	.align	2
.L33:
	.word	ctl_initialized
	.word	ctl_mtx
	.word	ctl_arenas
	.word	config_stats
	.word	ctl_stats
	.word	MALLCTL_ARENAS_ALL
	.word	MALLCTL_ARENAS_DESTROYED
	.word	QUANTUM
	.size	ctl_init, .-ctl_init
	.comm	ctl_stats,4,4
	.comm	ctl_mtx,4,4
	.comm	ctl_initialized,4,4
	.comm	ctl_arenas,4,4
	.comm	config_stats,4,4
	.comm	QUANTUM,4,4
	.comm	MALLCTL_ARENAS_DESTROYED,4,4
	.comm	MALLCTL_ARENAS_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
