	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cxa_finalize                 ## -- Begin function __cxa_finalize
	.p2align	4, 0x90
___cxa_finalize:                        ## @__cxa_finalize
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rsi
	callq	__rtld_addr_phdr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	_global_exit@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_atexit_mutex@GOTPCREL(%rip), %rdi
	callq	__MUTEX_LOCK
	movq	___atexit@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_21
## %bb.4:
	movq	_ATEXIT_FN_EMPTY@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_21
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	jmp	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	*%rbx
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_atexit_mutex@GOTPCREL(%rip), %rdi
	callq	__MUTEX_LOCK
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_ATEXIT_FN_EMPTY@GOTPCREL(%rip), %rsi
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	decq	%r15
	cmpq	$1, %r15
	jbe	LBB0_20
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%r15), %ecx
	movq	8(%r14), %rax
	leaq	(%rcx,%rcx,4), %r12
	movq	(%rax,%r12,8), %r13
	movq	(%rsi), %rcx
	cmpq	%rcx, %r13
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%rax,%r12,8), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rax,%r12,8), %rbx
	movl	32(%rax,%r12,8), %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rdx, 8(%rax,%r12,8)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_global_exit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	___elf_phdr_match_addr
	movq	_ATEXIT_FN_EMPTY@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rsi), %rcx
	movq	8(%r14), %rax
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rcx, (%rax,%r12,8)
	movq	_atexit_mutex@GOTPCREL(%rip), %rdi
	callq	__MUTEX_UNLOCK
	movq	_ATEXIT_FN_CXA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_ATEXIT_FN_STD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_18
LBB0_21:
	movq	%rdx, %rbx
	movq	_atexit_mutex@GOTPCREL(%rip), %rdi
	callq	__MUTEX_UNLOCK
	testq	%rbx, %rbx
	jne	LBB0_23
## %bb.22:
	movq	_atexit_mutex@GOTPCREL(%rip), %rdi
	callq	__MUTEX_DESTROY
LBB0_23:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.24:
	movq	_global_exit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_26
## %bb.25:
	leaq	-48(%rbp), %rdi
	callq	___pthread_cxa_finalize
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_global_exit,4,2                ## @global_exit
	.comm	_atexit_mutex,4,2               ## @atexit_mutex
	.comm	___atexit,8,3                   ## @__atexit
	.comm	_ATEXIT_FN_EMPTY,8,3            ## @ATEXIT_FN_EMPTY
	.comm	_ATEXIT_FN_CXA,8,3              ## @ATEXIT_FN_CXA
	.comm	_ATEXIT_FN_STD,8,3              ## @ATEXIT_FN_STD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cxa_finalize                 ; -- Begin function __cxa_finalize
	.p2align	2
___cxa_finalize:                        ; @__cxa_finalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x9, _global_exit@GOTPAGE
Lloh1:
	ldr	x9, [x9, _global_exit@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	__rtld_addr_phdr
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	w8, #1
	str	w8, [x9]
LBB0_3:
Lloh2:
	adrp	x0, _atexit_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _atexit_mutex@GOTPAGEOFF]
	bl	__MUTEX_LOCK
Lloh4:
	adrp	x8, ___atexit@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___atexit@GOTPAGEOFF]
Lloh6:
	ldr	x25, [x8]
	cbz	x25, LBB0_21
; %bb.4:
	mov	w26, #40
Lloh7:
	adrp	x27, _ATEXIT_FN_EMPTY@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ATEXIT_FN_EMPTY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x25, #16]
	cbz	x25, LBB0_21
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x8, #1
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x23
	blr	x22
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
Lloh9:
	adrp	x0, _atexit_mutex@GOTPAGE
Lloh10:
	ldr	x0, [x0, _atexit_mutex@GOTPAGEOFF]
	bl	__MUTEX_LOCK
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	sub	x24, x24, #1
	cmp	x24, #1
	b.ls	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w21, w24, #2
	ldr	x8, [x25, #8]
	umull	x9, w21, w26
	ldr	x20, [x8, x9]
	ldr	x9, [x27]
	cmp	x20, x9
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	madd	x10, x21, x26, x8
	ldp	x28, x22, [x10, #16]
	ldr	w23, [x10, #32]
	cbz	x19, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	madd	x10, x21, x26, x8
	ldr	x10, [x10, #8]
	cmp	x10, x19
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh11:
	adrp	x8, _global_exit@GOTPAGE
Lloh12:
	ldr	x8, [x8, _global_exit@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x0, sp, #8
	mov	x1, x22
	bl	___elf_phdr_match_addr
	cbz	w0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x27]
	ldr	x8, [x25, #8]
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=2
	mul	x10, x21, x26
	str	x9, [x8, x10]
Lloh14:
	adrp	x0, _atexit_mutex@GOTPAGE
Lloh15:
	ldr	x0, [x0, _atexit_mutex@GOTPAGEOFF]
	bl	__MUTEX_UNLOCK
Lloh16:
	adrp	x8, _ATEXIT_FN_CXA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATEXIT_FN_CXA@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=2
Lloh19:
	adrp	x8, _ATEXIT_FN_STD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATEXIT_FN_STD@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=2
	blr	x28
	b	LBB0_9
LBB0_21:
Lloh22:
	adrp	x0, _atexit_mutex@GOTPAGE
Lloh23:
	ldr	x0, [x0, _atexit_mutex@GOTPAGEOFF]
	bl	__MUTEX_UNLOCK
	cbnz	x19, LBB0_23
; %bb.22:
Lloh24:
	adrp	x0, _atexit_mutex@GOTPAGE
Lloh25:
	ldr	x0, [x0, _atexit_mutex@GOTPAGEOFF]
	bl	__MUTEX_DESTROY
LBB0_23:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_26
; %bb.24:
Lloh26:
	adrp	x8, _global_exit@GOTPAGE
Lloh27:
	ldr	x8, [x8, _global_exit@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_26
; %bb.25:
	add	x0, sp, #8
	bl	___pthread_cxa_finalize
LBB0_26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_global_exit,4,2                ; @global_exit
	.comm	_atexit_mutex,4,2               ; @atexit_mutex
	.comm	___atexit,8,3                   ; @__atexit
	.comm	_ATEXIT_FN_EMPTY,8,3            ; @ATEXIT_FN_EMPTY
	.comm	_ATEXIT_FN_CXA,8,3              ; @ATEXIT_FN_CXA
	.comm	_ATEXIT_FN_STD,8,3              ; @ATEXIT_FN_STD
.subsections_via_symbols
