	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_lib_dir                 ## -- Begin function search_lib_dir
	.p2align	4, 0x90
_search_lib_dir:                        ## @search_lib_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -80(%rbp)                 ## 4-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDEWEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAXNAMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r12
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movb	$0, (%r13)
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movb	$0, (%rbx)
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rbx
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	5(%rax), %r13
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %r13
	ja	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	addq	$3, %rdi
	movq	%rbx, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	cmpb	$46, 3(%rax,%rcx)
	jne	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%rcx), %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcpy
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_MAXDEWEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	addq	$3, %rbx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_getdewey
	cmpl	$2, %eax
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-136(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_21
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$-1, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, (%rcx)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, 4(%rcx)
	jl	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rdi
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_cmpndewey
	testq	%rax, %rax
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_strcpy
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	shll	$2, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-136(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_21
LBB0_22:
	movq	%r12, %rdi
	callq	_closedir
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	cmpb	$0, (%rsi)
	je	LBB0_25
## %bb.23:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	4(%rdx), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rsi, %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	jmp	LBB0_24
LBB0_25:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	cmpb	$0, (%rdx)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_26
LBB0_24:
	leaq	L_.str.3(%rip), %rsi
	callq	_concat
	jmp	LBB0_27
LBB0_26:
	xorl	%eax, %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDEWEY,4,2                   ## @MAXDEWEY
	.comm	_MAXNAMLEN,4,2                  ## @MAXNAMLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lib"

L_.str.1:                               ## @.str.1
	.asciz	"so."

L_.str.2:                               ## @.str.2
	.asciz	"a"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_lib_dir                 ; -- Begin function search_lib_dir
	.p2align	2
_search_lib_dir:                        ; @search_lib_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, #80
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, 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, _MAXDEWEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXDEWEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh8:
	adrp	x8, _MAXNAMLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXNAMLEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x25, x9, x12
	mov	sp, x25
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x12
	mov	sp, x26
	bl	_opendir
	cbz	x0, LBB0_26
; %bb.1:
	mov	x27, x0
	stur	w22, [x29, #-116]               ; 4-byte Folded Spill
	stp	x20, x21, [x29, #-112]          ; 16-byte Folded Spill
	stur	x19, [x29, #-96]                ; 8-byte Folded Spill
	mov	x0, x23
	bl	_strlen
	mov	x21, x0
	strb	wzr, [x25]
	strb	wzr, [x26]
	mov	x0, x27
	bl	_readdir
	cbz	x0, LBB0_22
; %bb.2:
	mov	x20, x0
	stur	wzr, [x29, #-132]               ; 4-byte Folded Spill
	sxtw	x28, w21
	add	x21, x28, #3
	add	x19, x28, #5
Lloh15:
	adrp	x22, l_.str@PAGE
Lloh16:
	add	x22, x22, l_.str@PAGEOFF
	stur	x24, [x29, #-128]               ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x24
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_readdir
	mov	x20, x0
	cbz	x0, LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_strlen
	cmp	x19, w0, sxtw
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	mov	x1, x22
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x0, x8, #3
	mov	x1, x23
	mov	x2, x28
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldrb	w9, [x8, x21]
	cmp	w9, #46
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x21
	add	x8, x8, x28
	add	x21, x8, #4
	mov	x0, x21
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x29, #-116]                ; 4-byte Folded Reload
	cbz	w8, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x25
	bl	_strcpy
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, sp
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh21:
	adrp	x8, _MAXDEWEY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAXDEWEY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh24:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh25:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x0, x9, x8
	mov	sp, x0
	add	x1, x21, #3
	stur	x0, [x29, #-152]                ; 8-byte Folded Spill
	bl	_getdewey
	cmp	w0, #2
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x24
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, x0
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmn	w8, #1
	mov	x21, x24
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
	ldur	x10, [x29, #-152]               ; 8-byte Folded Reload
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x10]
	cmp	w9, w8
	b.ne	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x10, #4]
	cmp	w9, w8
	b.lt	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x10
	stur	w11, [x29, #-156]               ; 4-byte Folded Spill
	mov	x1, x11
	mov	x2, x24
	ldur	w3, [x29, #-132]                ; 4-byte Folded Reload
	bl	_cmpndewey
	cmp	x0, #1
	b.lt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x26
	bl	_strcpy
	ldur	w20, [x29, #-156]               ; 4-byte Folded Reload
	lsl	w2, w20, #2
	mov	x0, x24
	ldur	x1, [x29, #-152]                ; 8-byte Folded Reload
	bl	_memcpy
	stur	w20, [x29, #-132]               ; 4-byte Folded Spill
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	mov	sp, x8
	b	LBB0_4
LBB0_22:
	mov	x0, x27
	bl	_closedir
	ldrb	w8, [x26]
	cbz	w8, LBB0_24
; %bb.23:
	ldp	w8, w9, [x24]
	ldp	x10, x0, [x29, #-104]           ; 16-byte Folded Reload
	str	w8, [x10]
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	str	w9, [x8]
	mov	x25, x26
	b	LBB0_25
LBB0_24:
	ldrb	w8, [x25]
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	cbz	w8, LBB0_28
LBB0_25:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_concat
LBB0_26:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.27:
	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_28:
	mov	x0, #0
	b	LBB0_26
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDEWEY,4,2                   ; @MAXDEWEY
	.comm	_MAXNAMLEN,4,2                  ; @MAXNAMLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lib"

l_.str.1:                               ; @.str.1
	.asciz	"so."

l_.str.2:                               ; @.str.2
	.asciz	"a"

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

.subsections_via_symbols
