	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_open_file               ## -- Begin function ldfile_open_file
	.p2align	4, 0x90
_ldfile_open_file:                      ## @ldfile_open_file
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_1
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r12
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.6:
	movq	_search_arch_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.7:
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.3(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ldfile_open_file_search
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_ldemul_find_potential_libraries
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_14
LBB0_2:
	movl	24(%r12), %edi
	movq	%r12, %rsi
	callq	_ldfile_try_open_bfd
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movl	(%r12), %esi
	movl	24(%r12), %edi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	(%r12), %edx
	movl	24(%r12), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_einfo                          ## TAILCALL
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_13
LBB0_14:
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.15:
	movq	_ld_sysroot@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_17
## %bb.16:
	movl	(%r12), %edi
	callq	_IS_ABSOLUTE_PATH
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	(%r12), %esi
	movq	(%rbx), %rdx
	movl	%eax, %edi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_einfo                          ## TAILCALL
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	__
	movl	(%r12), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_einfo                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%F%P: %s (%s): No such file: %E\n"

L_.str.1:                               ## @.str.1
	.asciz	"%F%P: %s: No such file: %E\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_search_arch_head,8,3           ## @search_arch_head
L_.str.2:                               ## @.str.2
	.asciz	"lib"

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

	.comm	_ld_sysroot,8,3                 ## @ld_sysroot
L_.str.4:                               ## @.str.4
	.asciz	"%F%P: cannot find %s inside %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%F%P: cannot find %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldfile_open_file               ; -- Begin function ldfile_open_file
	.p2align	2
_ldfile_open_file:                      ; @ldfile_open_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
LBB0_1:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _search_arch_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _search_arch_head@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x22, _FALSE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cbz	x23, LBB0_11
; %bb.4:
Lloh5:
	adrp	x20, l_.str.2@PAGE
Lloh6:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh7:
	adrp	x21, l_.str.3@PAGE
Lloh8:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_ldfile_open_file_search
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_ldemul_find_potential_libraries
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_5
	b	LBB0_13
LBB0_8:
	ldr	w0, [x19, #24]
	mov	x1, x19
	bl	_ldfile_try_open_bfd
	cbnz	x0, LBB0_1
; %bb.9:
	ldr	w0, [x19, #24]
	ldr	w1, [x19]
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19, #24]
	ldr	w8, [x19]
	b	LBB0_17
LBB0_11:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
LBB0_12:
	ldr	x8, [x22]
	str	x8, [x19, #16]
	b	LBB0_1
LBB0_13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.14:
Lloh11:
	adrp	x20, _ld_sysroot@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ld_sysroot@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.15:
	ldr	w0, [x19]
	bl	_IS_ABSOLUTE_PATH
	cbz	x0, LBB0_18
; %bb.16:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	w1, [x19]
	ldr	x8, [x20]
LBB0_17:
	str	x8, [sp]
	bl	_einfo
	b	LBB0_1
LBB0_18:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_20:
	bl	__
	ldr	w1, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_einfo
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%F%P: %s (%s): No such file: %E\n"

l_.str.1:                               ; @.str.1
	.asciz	"%F%P: %s: No such file: %E\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_search_arch_head,8,3           ; @search_arch_head
l_.str.2:                               ; @.str.2
	.asciz	"lib"

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

	.comm	_ld_sysroot,8,3                 ; @ld_sysroot
l_.str.4:                               ; @.str.4
	.asciz	"%F%P: cannot find %s inside %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%F%P: cannot find %s\n"

.subsections_via_symbols
