	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_load_libs_dir
_dt_load_libs_dir:                      ## @dt_load_libs_dir
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movq	%rax, %r14
	leaq	24(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rbx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_dt_dprintf
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_22
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r14), %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %r8
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rbx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dt_list_next
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	incq	%r13
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%r12, %rdi
	callq	_dt_list_next
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%r12)
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dt_lib_depend_add
	testq	%rax, %rax
	jne	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_DT_CTX_DPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DTRACE_PROBESPEC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DTRACE_C_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DTRACE_C_EMPTY@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	subq	$8, %rsp
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_dt_compile
	addq	$32, %rsp
	testq	%rax, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EDT_COMPILER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %r14
	movq	_D_PRAGMA_DEPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dt_errtag
	cmpq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_27
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_dtrace_errno
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dtrace_errmsg
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_dt_dprintf
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	$0, (%r12)
	jmp	LBB0_4
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rsi
	movq	(%r12), %rdx
	leaq	L_.str.5(%rip), %rdi
	callq	_dt_dprintf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	%rbx, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_22:
	movq	%r15, %rdi
	callq	_closedir
	jmp	LBB0_24
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_dt_dprintf
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movl	$-1, %eax
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping lib dir %s: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	".d"

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"skipping library %s: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"skipping library %s, already processed library with the same name: %s"

	.comm	_DT_CTX_DPROG,4,2               ## @DT_CTX_DPROG
	.comm	_DTRACE_PROBESPEC_NAME,4,2      ## @DTRACE_PROBESPEC_NAME
	.comm	_DTRACE_C_EMPTY,4,2             ## @DTRACE_C_EMPTY
	.comm	_DTRACE_C_CTL,4,2               ## @DTRACE_C_CTL
	.comm	_EDT_COMPILER,8,3               ## @EDT_COMPILER
	.comm	_D_PRAGMA_DEPEND,4,2            ## @D_PRAGMA_DEPEND
L_.str.6:                               ## @.str.6
	.asciz	"error parsing library %s: %s\n"

	.no_dead_strip	_dt_load_libs_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_load_libs_dir
_dt_load_libs_dir:                      ; @dt_load_libs_dir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x1
	bl	_opendir
	cbz	x0, LBB0_22
; %bb.1:
	mov	x23, x0
	bl	_readdir
	cbz	x0, LBB0_21
; %bb.2:
	mov	x26, x0
	add	x8, x20, #24
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
Lloh8:
	adrp	x25, l_.str.1@PAGE
Lloh9:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_dt_dprintf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_readdir
	mov	x26, x0
	cbz	x0, LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x0, [x26]
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x25
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x26]
	mov	x0, x22
	mov	x1, x21
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_snprintf
	mov	x0, x22
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x0
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	bl	_dt_list_next
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x27]
	mov	w1, #47
	bl	_strrchr
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	add	x0, x24, #1
	ldr	x1, [x26]
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x27
	bl	_dt_list_next
	mov	x27, x0
	cbnz	x0, LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x22, [x20]
	mov	x0, x20
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x2, x22
	bl	_dt_lib_depend_add
	cbnz	x0, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _DT_CTX_DPROG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DT_CTX_DPROG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _DTRACE_PROBESPEC_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DTRACE_PROBESPEC_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _DTRACE_C_EMPTY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DTRACE_C_EMPTY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _DTRACE_C_CTL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DTRACE_C_CTL@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w4, w9, w8
	str	xzr, [sp, #-16]!
	mov	x0, x20
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, x28
	bl	_dt_compile
	add	sp, sp, #16
	cbz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh31:
	adrp	x9, _EDT_COMPILER@GOTPAGE
Lloh32:
	ldr	x9, [x9, _EDT_COMPILER@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [x20, #16]
Lloh34:
	adrp	x8, _D_PRAGMA_DEPEND@GOTPAGE
Lloh35:
	ldr	x8, [x8, _D_PRAGMA_DEPEND@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_dt_errtag
	cmp	x24, x0
	b.ne	LBB0_26
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_dtrace_errno
	mov	x1, x0
	mov	x0, x20
	bl	_dtrace_errmsg
	mov	x2, x0
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_dt_dprintf
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x28
	bl	_fclose
	str	xzr, [x20]
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x26]
	ldr	x2, [x27]
Lloh39:
	adrp	x0, l_.str.5@PAGE
Lloh40:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dt_dprintf
	mov	x0, x28
	bl	_fclose
	b	LBB0_4
LBB0_21:
	mov	x0, x23
	bl	_closedir
	b	LBB0_23
LBB0_22:
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh44:
	adrp	x0, l_.str@PAGE
Lloh45:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dt_dprintf
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	x0, x28
	bl	_fclose
	mov	w0, #-1
	b	LBB0_24
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping lib dir %s: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	".d"

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"skipping library %s: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"skipping library %s, already processed library with the same name: %s"

	.comm	_DT_CTX_DPROG,4,2               ; @DT_CTX_DPROG
	.comm	_DTRACE_PROBESPEC_NAME,4,2      ; @DTRACE_PROBESPEC_NAME
	.comm	_DTRACE_C_EMPTY,4,2             ; @DTRACE_C_EMPTY
	.comm	_DTRACE_C_CTL,4,2               ; @DTRACE_C_CTL
	.comm	_EDT_COMPILER,8,3               ; @EDT_COMPILER
	.comm	_D_PRAGMA_DEPEND,4,2            ; @D_PRAGMA_DEPEND
l_.str.6:                               ; @.str.6
	.asciz	"error parsing library %s: %s\n"

	.no_dead_strip	_dt_load_libs_dir
.subsections_via_symbols
