	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_library_path
_search_library_path:                   ## @search_library_path
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)
	callq	_strlen
	movl	%eax, -36(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_xmalloc
	movl	%eax, -44(%rbp)
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	$-1, -48(%rbp)
	movq	_try_library_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_path_enumerate
	movq	%rax, %rbx
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	movl	-44(%rbp), %edi
	callq	_free
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_try_library_path,4,2           ## @try_library_path
	.no_dead_strip	_search_library_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_library_path
_search_library_path:                   ; @search_library_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	str	x0, [sp, #8]
	bl	_strlen
	str	w0, [sp, #28]
Lloh0:
	adrp	x22, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PATH_MAX@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_xmalloc
	ldr	w8, [x22]
	stp	w0, w8, [sp, #20]
	mov	w8, #-1
	str	w8, [sp, #16]
Lloh2:
	adrp	x8, _try_library_path@GOTPAGE
Lloh3:
	ldr	x8, [x8, _try_library_path@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_path_enumerate
	mov	x20, x0
	ldp	w8, w0, [sp, #16]
	str	w8, [x19]
	bl	_free
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_try_library_path,4,2           ; @try_library_path
	.no_dead_strip	_search_library_path
.subsections_via_symbols
