	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_init
_ctl_init:                              ## @ctl_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_tsd_tsdn
	movq	%rax, %r14
	movq	_ctl_mtx@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_malloc_mutex_lock
	movq	_ctl_initialized@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_1:
	movq	_ctl_mtx@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_malloc_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ctl_arenas@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_b0get
	movq	_QUANTUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_base_alloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_15
LBB0_4:
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_ctl_stats@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_b0get
	movq	_QUANTUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_base_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	movq	_MALLCTL_ARENAS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_arenas_i_impl
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movl	$1, (%rax)
	movq	_MALLCTL_ARENAS_DESTROYED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_arenas_i_impl
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rax, %rdi
	callq	_ctl_arena_clear
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_narenas_total_get
	movq	(%r13), %rdi
	movl	%eax, (%rdi)
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_arenas_i_impl
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	movq	(%r13), %rdi
	cmpl	(%rdi), %ebx
	jb	LBB0_11
LBB0_13:
	addq	$4, %rdi
	callq	_ql_new
	movq	%r14, %rdi
	callq	_ctl_refresh
	movq	_ctl_initialized@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_15:
	movl	$1, %r12d
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_mtx,4,2                    ## @ctl_mtx
	.comm	_ctl_initialized,4,2            ## @ctl_initialized
	.comm	_ctl_arenas,8,3                 ## @ctl_arenas
	.comm	_QUANTUM,4,2                    ## @QUANTUM
	.comm	_config_stats,8,3               ## @config_stats
	.comm	_ctl_stats,8,3                  ## @ctl_stats
	.comm	_MALLCTL_ARENAS_ALL,4,2         ## @MALLCTL_ARENAS_ALL
	.comm	_MALLCTL_ARENAS_DESTROYED,4,2   ## @MALLCTL_ARENAS_DESTROYED
	.no_dead_strip	_ctl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_init
_ctl_init:                              ; @ctl_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_tsd_tsdn
	mov	x19, x0
Lloh0:
	adrp	x1, _ctl_mtx@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ctl_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
Lloh2:
	adrp	x23, _ctl_initialized@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ctl_initialized@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
Lloh4:
	adrp	x1, _ctl_mtx@GOTPAGE
Lloh5:
	ldr	x1, [x1, _ctl_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_malloc_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x24, _ctl_arenas@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ctl_arenas@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_5
; %bb.4:
	bl	_b0get
	mov	x1, x0
Lloh8:
	adrp	x8, _QUANTUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUANTUM@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_base_alloc
	str	x0, [x24]
	cbz	x0, LBB0_14
LBB0_5:
Lloh11:
	adrp	x8, _config_stats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x21, _ctl_stats@GOTPAGE
Lloh15:
	ldr	x21, [x21, _ctl_stats@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_7
; %bb.6:
	bl	_b0get
	mov	x1, x0
Lloh16:
	adrp	x8, _QUANTUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QUANTUM@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_base_alloc
	str	x0, [x21]
	cbz	x0, LBB0_14
LBB0_7:
Lloh19:
	adrp	x8, _MALLCTL_ARENAS_ALL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MALLCTL_ARENAS_ALL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w21, #1
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	_arenas_i_impl
	cbz	x0, LBB0_2
; %bb.8:
	str	w21, [x0]
Lloh22:
	adrp	x8, _MALLCTL_ARENAS_DESTROYED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MALLCTL_ARENAS_DESTROYED@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	_arenas_i_impl
	cbz	x0, LBB0_2
; %bb.9:
	bl	_ctl_arena_clear
	bl	_narenas_total_get
	ldr	x8, [x24]
	str	w0, [x8]
	cbz	w0, LBB0_13
; %bb.10:
	mov	w22, #0
	mov	w21, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	w3, #1
	bl	_arenas_i_impl
	cbz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldr	x8, [x24]
	ldr	w9, [x8]
	cmp	w22, w9
	b.lo	LBB0_11
LBB0_13:
	add	x0, x8, #4
	bl	_ql_new
	mov	x0, x19
	bl	_ctl_refresh
	mov	w21, #0
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_2
LBB0_14:
	mov	w21, #1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_mtx,4,2                    ; @ctl_mtx
	.comm	_ctl_initialized,4,2            ; @ctl_initialized
	.comm	_ctl_arenas,8,3                 ; @ctl_arenas
	.comm	_QUANTUM,4,2                    ; @QUANTUM
	.comm	_config_stats,8,3               ; @config_stats
	.comm	_ctl_stats,8,3                  ; @ctl_stats
	.comm	_MALLCTL_ARENAS_ALL,4,2         ; @MALLCTL_ARENAS_ALL
	.comm	_MALLCTL_ARENAS_DESTROYED,4,2   ; @MALLCTL_ARENAS_DESTROYED
	.no_dead_strip	_ctl_init
.subsections_via_symbols
