	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_open_file_search        ## -- Begin function ldfile_open_file_search
	.p2align	4, 0x90
_ldfile_open_file_search:               ## @ldfile_open_file_search
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	cmpq	$0, 16(%rsi)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_search_head@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	je	LBB0_26
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r13)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_link_info@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_ldemul_open_dynamic_archive
	testq	%rax, %rax
	jne	LBB0_19
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rdi
	callq	_strlen
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_slash@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	callq	_strlen
	movq	%r13, %r12
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	addq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%r13, %rbx
	movq	%r12, %r13
	addq	%r14, %rbx
	leaq	(%rax,%rbx), %rdi
	incq	%rdi
	callq	_xmalloc
	cmpq	$0, 16(%r12)
	movq	%rax, %r14
	movq	8(%r15), %rdx
	movq	_slash@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%r12), %r9
	movq	%r14, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_sprintf
	addq	$16, %rsp
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	%r9, %r8
	xorl	%eax, %eax
	callq	_sprintf
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ldfile_try_open_bfd
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_free
	movq	16(%r15), %r15
	testq	%r15, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_22
LBB0_11:
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.12:
	movq	8(%r13), %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	_ld_sysroot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rsi
	xorl	%edx, %edx
	callq	_concat
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_ldfile_try_open_bfd
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	%r14, 8(%r13)
	jmp	LBB0_25
LBB0_15:
	movq	8(%r13), %rdi
	movq	%r13, %rsi
	callq	_ldfile_try_open_bfd
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	8(%r13), %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	8(%r13), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_is_sysrooted_pathname
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_24
LBB0_18:
	movq	%r14, 8(%r13)
LBB0_19:
	movl	(%r15), %eax
	movl	%eax, (%r13)
	jmp	LBB0_25
LBB0_20:
	movq	%r14, %rdi
	callq	_free
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_21:
	movq	8(%r13), %rdi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_1
LBB0_22:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	xorl	%ecx, %ecx
LBB0_24:
	movl	%ecx, (%r13)
LBB0_25:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ld_sysroot,4,2                 ## @ld_sysroot
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_search_head,8,3                ## @search_head
	.comm	_link_info,4,2                  ## @link_info
	.comm	_slash,8,3                      ## @slash
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s%s%s%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_open_file_search        ; -- Begin function ldfile_open_file_search
	.p2align	2
_ldfile_open_file_search:               ; @ldfile_open_file_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_9
LBB0_1:
Lloh0:
	adrp	x8, _search_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _search_head@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	cbz	x23, LBB0_22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _link_info@GOTPAGE
Lloh4:
	ldr	x9, [x9, _link_info@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_ldemul_open_dynamic_archive
	cbnz	x0, LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23, #8]
	bl	_strlen
	mov	x26, x0
Lloh6:
	adrp	x8, _slash@GOTPAGE
Lloh7:
	ldr	x8, [x8, _slash@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_strlen
	mov	x27, x0
	mov	x0, x21
	bl	_strlen
	mov	x28, x0
	ldr	x0, [x19, #8]
	bl	_strlen
	mov	x24, x0
	mov	x0, x20
	bl	_strlen
	mov	x25, x0
	mov	x22, x21
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_strlen
	add	x8, x26, x27
	add	x8, x8, x28
	add	x8, x8, x24
	add	x8, x8, x25
	add	x8, x8, x0
	add	x0, x8, #1
	bl	_xmalloc
	mov	x26, x0
	ldr	x2, [x23, #8]
Lloh9:
	adrp	x8, _slash@GOTPAGE
Lloh10:
	ldr	x8, [x8, _slash@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
	ldp	x4, x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x20, x21, [sp, #8]
	str	x4, [sp]
	mov	x0, x26
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x22
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_sprintf
	mov	x21, x22
	mov	x0, x26
	mov	x1, x19
	bl	_ldfile_try_open_bfd
	cbnz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_free
	ldr	x23, [x23, #16]
	cbnz	x23, LBB0_2
	b	LBB0_22
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_13
; %bb.10:
	ldr	x0, [x19, #8]
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _ld_sysroot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ld_sysroot@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	mov	x2, #0
	bl	_concat
	mov	x23, x0
	mov	x1, x19
	bl	_ldfile_try_open_bfd
	cbz	x0, LBB0_20
; %bb.12:
	str	x23, [x19, #8]
	b	LBB0_19
LBB0_13:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_ldfile_try_open_bfd
	cbz	x0, LBB0_21
; %bb.14:
	ldr	x0, [x19, #8]
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_24
; %bb.15:
	ldr	x0, [x19, #8]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_is_sysrooted_pathname
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_18
LBB0_16:
	str	x26, [x19, #8]
LBB0_17:
	ldr	w8, [x23]
LBB0_18:
	str	w8, [x19]
LBB0_19:
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
	mov	x0, x23
	bl	_free
LBB0_21:
	ldr	x0, [x19, #8]
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_1
LBB0_22:
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	mov	w8, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ld_sysroot,4,2                 ; @ld_sysroot
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_search_head,8,3                ; @search_head
	.comm	_link_info,4,2                  ; @link_info
	.comm	_slash,8,3                      ; @slash
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s%s%s%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s%s"

.subsections_via_symbols
