	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_file_in_dir
_find_file_in_dir:                      ## @find_file_in_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_remap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CPP_OPTION
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_remap_filename
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_2:
	movq	(%r12), %rdi
	movq	24(%r12), %rsi
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	*%rax
	jmp	LBB0_5
LBB0_4:
	callq	_append_file_to_dir
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_6:
	movq	%rbx, %rdi
	callq	_htab_hash_string
	movl	%eax, %r13d
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_htab_find_with_hash
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_14
LBB0_8:
	movq	%rbx, 16(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_pch_open_file
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movq	%r12, %rdi
	callq	_open_file
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movq	8(%r12), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.12:
	leaq	4(%r14), %r15
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_obstack_copy0
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_free
	movl	(%r14), %edi
	movq	_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_htab_find_slot_with_hash
	movq	%r15, (%rax)
	movq	(%r12), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_14
LBB0_13:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	$0, 16(%r12)
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_open_file_failed
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_remap,4,2                      ## @remap
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_INSERT,4,2                     ## @INSERT
	.no_dead_strip	_find_file_in_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_file_in_dir
_find_file_in_dir:                      ; @find_file_in_dir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _remap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remap@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_CPP_OPTION
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_remap_filename
	mov	x22, x0
	cbnz	x0, LBB0_4
LBB0_2:
	ldr	x1, [x19, #24]
	ldr	x8, [x1]
	ldr	x0, [x19]
	cbz	x8, LBB0_10
; %bb.3:
	blr	x8
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_4:
	mov	x0, x22
	bl	_htab_hash_string
	mov	x23, x0
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, x23
	bl	_htab_find_with_hash
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_14
LBB0_6:
	str	x22, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_pch_open_file
	cbnz	x0, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_open_file
	cbnz	x0, LBB0_13
; %bb.8:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _ENOENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	add	x21, x20, #4
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_obstack_copy0
	mov	x21, x0
	mov	x0, x22
	bl	_free
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _INSERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INSERT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x23
	bl	_htab_find_slot_with_hash
	mov	x8, x0
	mov	w0, #0
	str	x21, [x8]
	ldr	x8, [x19]
	str	x8, [x19, #16]
	b	LBB0_14
LBB0_10:
	bl	_append_file_to_dir
	mov	x22, x0
	cbnz	x0, LBB0_4
LBB0_11:
	mov	w0, #0
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #8]
	b	LBB0_14
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_open_file_failed
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_remap,4,2                      ; @remap
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_INSERT,4,2                     ; @INSERT
	.no_dead_strip	_find_file_in_dir
.subsections_via_symbols
