	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_thread
_cleanup_thread:                        ## @cleanup_thread
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_threads_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	$0, (%rax)
	movq	_read_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_destroy
	movq	_counter_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_destroy
	movq	_work_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_destroy
	movq	_type_cas_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_destroy
	movq	_show_stat@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_deepest_delta_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_destroy
LBB0_3:
	movq	_nr_threads@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_thread_data@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_close
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_key@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pthread_key_delete
	movq	_thread_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_threads_active,8,3             ## @threads_active
	.comm	_read_mutex,4,2                 ## @read_mutex
	.comm	_counter_mutex,4,2              ## @counter_mutex
	.comm	_work_mutex,4,2                 ## @work_mutex
	.comm	_type_cas_mutex,4,2             ## @type_cas_mutex
	.comm	_show_stat,8,3                  ## @show_stat
	.comm	_deepest_delta_mutex,4,2        ## @deepest_delta_mutex
	.comm	_nr_threads,4,2                 ## @nr_threads
	.comm	_thread_data,8,3                ## @thread_data
	.comm	_key,4,2                        ## @key
	.no_dead_strip	_cleanup_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_thread
_cleanup_thread:                        ; @cleanup_thread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _threads_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _threads_active@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.1:
	str	xzr, [x8]
Lloh2:
	adrp	x0, _read_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _read_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_destroy
Lloh4:
	adrp	x0, _counter_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _counter_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_destroy
Lloh6:
	adrp	x0, _work_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _work_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_destroy
Lloh8:
	adrp	x0, _type_cas_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _type_cas_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_destroy
Lloh10:
	adrp	x8, _show_stat@GOTPAGE
Lloh11:
	ldr	x8, [x8, _show_stat@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh13:
	adrp	x0, _deepest_delta_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _deepest_delta_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_destroy
LBB0_3:
Lloh15:
	adrp	x20, _nr_threads@GOTPAGE
Lloh16:
	ldr	x20, [x20, _nr_threads@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh17:
	adrp	x19, _thread_data@GOTPAGE
Lloh18:
	ldr	x19, [x19, _thread_data@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_close
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
Lloh19:
	adrp	x8, _key@GOTPAGE
Lloh20:
	ldr	x8, [x8, _key@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_pthread_key_delete
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_threads_active,8,3             ; @threads_active
	.comm	_read_mutex,4,2                 ; @read_mutex
	.comm	_counter_mutex,4,2              ; @counter_mutex
	.comm	_work_mutex,4,2                 ; @work_mutex
	.comm	_type_cas_mutex,4,2             ; @type_cas_mutex
	.comm	_show_stat,8,3                  ; @show_stat
	.comm	_deepest_delta_mutex,4,2        ; @deepest_delta_mutex
	.comm	_nr_threads,4,2                 ; @nr_threads
	.comm	_thread_data,8,3                ; @thread_data
	.comm	_key,4,2                        ; @key
	.no_dead_strip	_cleanup_thread
.subsections_via_symbols
