	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_add_library_path        ## -- Begin function ldfile_add_library_path
	.p2align	4, 0x90
_ldfile_add_library_path:               ## @ldfile_add_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_config@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
LBB0_2:
	movl	$24, %edi
	callq	_xmalloc
	movq	%rax, %r15
	addq	$8, %rax
	movq	$0, 8(%r15)
	movq	%rbx, 16(%r15)
	movq	_search_tail_ptr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r15, (%rdx)
	movq	%rax, (%rcx)
	cmpb	$61, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	_ld_sysroot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incq	%r14
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_concat
	movl	%eax, 4(%r15)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_xstrdup
	movl	%eax, 4(%r15)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_is_sysrooted_pathname
LBB0_5:
	movl	%eax, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config,8,3                     ## @config
	.comm	_search_tail_ptr,8,3            ## @search_tail_ptr
	.comm	_ld_sysroot,4,2                 ## @ld_sysroot
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_add_library_path        ; -- Begin function ldfile_add_library_path
	.p2align	2
_ldfile_add_library_path:               ; @ldfile_add_library_path
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	cbnz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
LBB0_2:
	mov	w0, #24
	bl	_xmalloc
	mov	x19, x0
	mov	x8, x0
	str	xzr, [x8, #8]!
Lloh3:
	adrp	x9, _search_tail_ptr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _search_tail_ptr@GOTPAGEOFF]
	str	x21, [x0, #16]
	ldr	x10, [x9]
	str	x0, [x10]
	str	x8, [x9]
	ldrb	w8, [x20]
	cmp	w8, #61
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _ld_sysroot@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ld_sysroot@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #1
	mov	x2, #0
	bl	_concat
	str	w0, [x19, #4]
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_xstrdup
	str	w0, [x19, #4]
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_sysrooted_pathname
LBB0_5:
	str	w0, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_config,8,3                     ; @config
	.comm	_search_tail_ptr,8,3            ; @search_tail_ptr
	.comm	_ld_sysroot,4,2                 ; @ld_sysroot
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
