	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_lookup
_file_lookup:                           ## @file_lookup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r14d
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	_emptyextlist@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_2:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	leaq	8(%r15), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	cmpl	%r12d, %eax
	cmovgl	%eax, %r12d
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r13, %rbx
	leal	(%r14,%r13), %eax
	leal	(%r12,%rax), %edi
	addl	$2, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memmove
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.8:
	leal	-1(%r14), %eax
	cmpb	$47, (%r12,%rax)
	je	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	incl	%r14d
	movb	$47, (%r12,%rax)
LBB0_10:
	movslq	%r14d, %rax
	addq	%rax, %r13
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memmove
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.11:
	movslq	%ebx, %rax
	addq	%rax, %r13
	addq	$8, %r15
	leaq	-48(%rbp), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15), %rsi
	addq	$8, %r15
	testq	%rsi, %rsi
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_14
	jmp	LBB0_17
LBB0_15:
	movq	%r12, %rdi
	callq	_free
LBB0_16:
	xorl	%r12d, %r12d
LBB0_17:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_emptyextlist,8,3               ## @emptyextlist
	.no_dead_strip	_file_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_lookup
_file_lookup:                           ; @file_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_strlen
	mov	x22, x0
Lloh0:
	adrp	x8, _emptyextlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _emptyextlist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, #0
	csel	x24, x8, x20, eq
	ldr	x0, [x24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	w20, #0
	add	x25, x24, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	cmp	w0, w20
	csel	w20, w0, w20, gt
	ldr	x0, [x25], #8
	cbnz	x0, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	add	w8, w19, w22
	add	w8, w8, w20
	add	w0, w8, #2
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.5:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_memmove
	subs	w8, w22, #1
	b.lt	LBB0_8
; %bb.6:
	ldrb	w8, [x20, w8, uxtw]
	cmp	w8, #47
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #47
	strb	w8, [x20, w22, uxtw]
	add	w8, w22, #1
	mov	x22, x8
LBB0_8:
	add	x22, x20, w22, sxtw
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_memmove
	ldr	x1, [x24]
	cbz	x1, LBB0_13
; %bb.9:
	add	x19, x22, w19, sxtw
	add	x21, x24, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [x21], #8
	cbz	x1, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcpy
	add	x1, sp, #8
	mov	x0, x20
	bl	_stat
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbz	x0, LBB0_10
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_free
	mov	x20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_emptyextlist,8,3               ; @emptyextlist
	.no_dead_strip	_file_lookup
.subsections_via_symbols
