	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtld_exit
_rtld_exit:                             ## @rtld_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_rtld_bind_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_wlock_acquire
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	_list_fini@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_objlist_call_fini
	movq	_libmap_disable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_lm_fini
LBB0_2:
	movl	(%r14), %edi
	leaq	-20(%rbp), %rsi
	callq	_lock_release
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtld_bind_lock,4,2             ## @rtld_bind_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtld_exit()"

	.comm	_list_fini,4,2                  ## @list_fini
	.comm	_libmap_disable,4,2             ## @libmap_disable
	.no_dead_strip	_rtld_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtld_exit
_rtld_exit:                             ; @rtld_exit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _rtld_bind_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _rtld_bind_lock@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_wlock_acquire
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
Lloh4:
	adrp	x0, _list_fini@GOTPAGE
Lloh5:
	ldr	x0, [x0, _list_fini@GOTPAGEOFF]
	add	x2, sp, #12
	mov	x1, #0
	bl	_objlist_call_fini
Lloh6:
	adrp	x8, _libmap_disable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _libmap_disable@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_lm_fini
LBB0_2:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_lock_release
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rtld_bind_lock,4,2             ; @rtld_bind_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtld_exit()"

	.comm	_list_fini,4,2                  ; @list_fini
	.comm	_libmap_disable,4,2             ; @libmap_disable
	.no_dead_strip	_rtld_exit
.subsections_via_symbols
