	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_dlclose
_test_dlclose:                          ## @test_dlclose
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_sleep_init@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_sleep_fini@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_dlclose_cookie@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_printf
	movq	_init_fini_helper@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	___UNCONST
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_pthread_create
	movl	$1, %edi
	callq	_sleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_printf
	cmpl	$2, (%r15)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	___UNCONST
	leaq	-36(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_pthread_create
	movl	$1, %edi
	callq	_sleep
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	cmpl	$2, (%r15)
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	__exit
LBB0_3:
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_sleep_init,8,3                 ## @sleep_init
	.comm	_sleep_fini,4,2                 ## @sleep_fini
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_dlclose_cookie,4,2             ## @dlclose_cookie
	.comm	_init_fini_helper,4,2           ## @init_fini_helper
L_.str.1:                               ## @.str.1
	.asciz	"libh_helper_dso2.so"

L_.str.2:                               ## @.str.2
	.asciz	"libutil.so"

	.no_dead_strip	_test_dlclose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_dlclose
_test_dlclose:                          ; @test_dlclose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _sleep_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sleep_init@GOTPAGEOFF]
Lloh2:
	adrp	x9, _sleep_fini@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sleep_fini@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
	mov	w8, #1
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x21, _dlclose_cookie@GOTPAGE
Lloh7:
	ldr	x21, [x21, _dlclose_cookie@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	bl	_printf
Lloh10:
	adrp	x22, _init_fini_helper@GOTPAGE
Lloh11:
	ldr	x22, [x22, _init_fini_helper@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	___UNCONST
	mov	x3, x0
	add	x0, sp, #12
	mov	x1, #0
	mov	x2, x20
	bl	_pthread_create
	mov	w0, #1
	bl	_sleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_printf
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	w19, [x22]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	___UNCONST
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, x19
	bl	_pthread_create
	mov	w0, #1
	bl	_sleep
	ldr	w1, [x21]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	bl	__exit
LBB0_3:
	mov	w0, #1
	bl	__exit
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_sleep_init,8,3                 ; @sleep_init
	.comm	_sleep_fini,4,2                 ; @sleep_fini
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_dlclose_cookie,4,2             ; @dlclose_cookie
	.comm	_init_fini_helper,4,2           ; @init_fini_helper
l_.str.1:                               ; @.str.1
	.asciz	"libh_helper_dso2.so"

l_.str.2:                               ; @.str.2
	.asciz	"libutil.so"

	.no_dead_strip	_test_dlclose
.subsections_via_symbols
