	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctl_arena_init
_ctl_arena_init:                        ## @ctl_arena_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	%rsi, %r14
	movq	%rdi, %r15
	movq	_ctl_arenas@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	$4, %rdi
	movq	_destroyed_link@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ql_last
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	addq	$4, %rdi
	movl	(%r13), %edx
	movq	%rax, %rsi
	callq	_ql_remove
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %rbx
LBB0_3:
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_arenas_i_impl
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_arena_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	(%r12), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.7:
	leal	1(%rbx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_8
LBB0_4:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_arenas,8,3                 ## @ctl_arenas
	.comm	_destroyed_link,4,2             ## @destroyed_link
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_ctl_arena_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctl_arena_init
_ctl_arena_init:                        ; @ctl_arena_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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _ctl_arenas@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ctl_arenas@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #4
Lloh2:
	adrp	x23, _destroyed_link@GOTPAGE
Lloh3:
	ldr	x23, [x23, _destroyed_link@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ql_last
	ldr	x8, [x22]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x8, #4
	ldr	w2, [x23]
	mov	x1, x20
	bl	_ql_remove
	b	LBB0_3
LBB0_2:
	mov	x20, x8
LBB0_3:
	ldr	w20, [x20]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	bl	_arenas_i_impl
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_tsd_tsdn
	mov	x1, x20
	mov	x2, x19
	bl	_arena_init
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w20, w9
	b.ne	LBB0_8
; %bb.6:
	add	w9, w20, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_arenas,8,3                 ; @ctl_arenas
	.comm	_destroyed_link,4,2             ; @destroyed_link
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_ctl_arena_init
.subsections_via_symbols
