	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_file
_find_file:                             ## @find_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_grub_strlen
	leaq	1(%rax), %rdi
	callq	_grub_malloc
	movq	%rax, %r15
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%r12d, -48(%rbp)
	movl	%r12d, -44(%rbp)
	movl	%r12d, 32(%r13)
	movq	%rbx, %rdi
	callq	_grub_strlen
	leaq	1(%rax), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_grub_strncpy
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$47, %al
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	jmp	LBB0_1
LBB0_2:
	testb	%al, %al
	jne	LBB0_3
## %bb.7:
	movl	%r12d, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_grub_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$47, (%rax)
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%rax), %r14
	movb	$0, (%rax)
	cmpb	$47, 1(%rax)
	movq	%r14, %rax
	je	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -96(%rbp)
	leaq	-52(%rbp), %rax
	movq	%rax, -88(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	%r12, -80(%rbp)
	movl	-48(%rbp), %edi
	movq	_iterate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax
	movq	_GRUB_FSHELP_SYMLINK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %eax
	incl	%eax
	movl	%eax, 8(%r13)
	cmpl	$8, %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi
	callq	*16(%r13)
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$47, (%rbx)
	movl	-44(%rbp), %esi
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, %edi
	movq	%r13, %rsi
	callq	_free_node
	movl	28(%r13), %esi
	movl	%esi, -44(%rbp)
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_find_file
	movl	24(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	%rbx, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	testq	%r14, %r14
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r14)
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	jmp	LBB0_4
LBB0_27:
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-52(%rbp), %eax
	movl	%eax, 24(%r13)
LBB0_8:
	movq	%r15, %rdi
	callq	_grub_free
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_13:
	movl	-48(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	movq	%r15, %rdi
	callq	_grub_free
	movq	_GRUB_ERR_BAD_FILE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_30
LBB0_15:
	movq	_grub_errno@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_29
## %bb.16:
	movq	%r15, %rdi
	callq	_grub_free
	movq	(%rbx), %rax
	jmp	LBB0_31
LBB0_21:
	movl	-44(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	movq	%r15, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_31
LBB0_19:
	movl	-48(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	movl	-44(%rbp), %edi
	movq	%r13, %rsi
	callq	_free_node
	movq	%r15, %rdi
	callq	_grub_free
	movq	_GRUB_ERR_SYMLINK_LOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_30
LBB0_29:
	movq	%r15, %rdi
	callq	_grub_free
	movq	_GRUB_ERR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_30:
	callq	_grub_error
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_GRUB_ERR_BAD_FILE_TYPE,4,2     ## @GRUB_ERR_BAD_FILE_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a directory"

	.comm	_iterate,4,2                    ## @iterate
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ## @GRUB_FSHELP_SYMLINK
	.comm	_GRUB_ERR_SYMLINK_LOOP,4,2      ## @GRUB_ERR_SYMLINK_LOOP
L_.str.1:                               ## @.str.1
	.asciz	"too deep nesting of symlinks"

	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ## @GRUB_ERR_FILE_NOT_FOUND
L_.str.2:                               ## @.str.2
	.asciz	"file not found"

	.no_dead_strip	_find_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_file
_find_file:                             ; @find_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x3
	mov	x25, x2
	mov	x23, x1
	mov	x22, x0
	bl	_grub_strlen
	add	x0, x0, #1
	bl	_grub_malloc
	mov	x21, x0
Lloh0:
	adrp	x24, _GRUB_FSHELP_DIR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GRUB_FSHELP_DIR@GOTPAGEOFF]
	ldr	w8, [x24]
	stp	w23, w8, [sp, #56]
	str	w23, [sp, #52]
	str	w23, [x20, #32]
	mov	x0, x22
	bl	_grub_strlen
	add	x2, x0, #1
	mov	x0, x21
	mov	x1, x22
	bl	_grub_strncpy
	mov	x19, x21
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x19, x19, #1
	b	LBB0_1
LBB0_3:
	cbnz	w8, LBB0_5
; %bb.4:
	str	w23, [x25]
	b	LBB0_24
LBB0_5:
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	add	x25, sp, #60
	add	x26, sp, #52
	add	x27, sp, #56
Lloh2:
	adrp	x28, _iterate@GOTPAGE
Lloh3:
	ldr	x28, [x28, _iterate@GOTPAGEOFF]
Lloh4:
	adrp	x23, _GRUB_FSHELP_SYMLINK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GRUB_FSHELP_SYMLINK@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x19
	mov	w1, #47
	bl	_grub_strchr
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22, #1]!
	strb	wzr, [x0]
	mov	x0, x22
	cmp	w8, #47
	b.eq	LBB0_9
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #60]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	stp	x19, x25, [sp, #16]
	stp	x27, x26, [sp, #32]
	ldr	x8, [x20]
	ldr	w0, [sp, #56]
	ldr	w1, [x28]
	add	x2, sp, #16
	blr	x8
	cbz	w0, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #60]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	cmp	w8, #8
	b.eq	LBB0_29
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [sp, #56]
	blr	x8
	mov	x19, x0
	ldr	w0, [sp, #56]
	mov	x1, x20
	bl	_free_node
	cbz	x19, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x19]
	ldr	w1, [sp, #52]
	cmp	w8, #47
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x1
	mov	x1, x20
	bl	_free_node
	ldr	w1, [x20, #28]
	str	w1, [sp, #52]
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #56
	mov	x0, x19
	mov	x3, x20
	bl	_find_file
	ldr	w8, [x20, #24]
	str	w8, [sp, #60]
	mov	x0, x19
	bl	_grub_free
Lloh6:
	adrp	x8, _grub_errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbnz	x8, LBB0_28
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #52]
	mov	x1, x20
	bl	_free_node
	cbz	x22, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x22]
	cbz	w8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x22
	b	LBB0_6
LBB0_23:
	ldr	w8, [sp, #56]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w8, [sp, #60]
	str	w8, [x20, #24]
LBB0_24:
	mov	x0, x21
	bl	_grub_free
	mov	x0, #0
	b	LBB0_32
LBB0_25:
	ldr	w0, [sp, #56]
	mov	x1, x20
	bl	_free_node
	mov	x0, x21
	bl	_grub_free
Lloh9:
	adrp	x8, _GRUB_ERR_BAD_FILE_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRUB_ERR_BAD_FILE_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_31
LBB0_26:
Lloh14:
	adrp	x19, _grub_errno@GOTPAGE
Lloh15:
	ldr	x19, [x19, _grub_errno@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_30
; %bb.27:
	mov	x0, x21
	bl	_grub_free
	ldr	x0, [x19]
	b	LBB0_32
LBB0_28:
	ldr	w0, [sp, #52]
	mov	x1, x20
	bl	_free_node
	mov	x0, x21
	bl	_grub_free
Lloh16:
	adrp	x8, _grub_errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_32
LBB0_29:
	ldr	w0, [sp, #56]
	mov	x1, x20
	bl	_free_node
	ldr	w0, [sp, #52]
	mov	x1, x20
	bl	_free_node
	mov	x0, x21
	bl	_grub_free
Lloh19:
	adrp	x8, _GRUB_ERR_SYMLINK_LOOP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GRUB_ERR_SYMLINK_LOOP@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_31
LBB0_30:
	mov	x0, x21
	bl	_grub_free
Lloh24:
	adrp	x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_31:
	bl	_grub_error
LBB0_32:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_GRUB_ERR_BAD_FILE_TYPE,4,2     ; @GRUB_ERR_BAD_FILE_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a directory"

	.comm	_iterate,4,2                    ; @iterate
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ; @GRUB_FSHELP_SYMLINK
	.comm	_GRUB_ERR_SYMLINK_LOOP,4,2      ; @GRUB_ERR_SYMLINK_LOOP
l_.str.1:                               ; @.str.1
	.asciz	"too deep nesting of symlinks"

	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ; @GRUB_ERR_FILE_NOT_FOUND
l_.str.2:                               ; @.str.2
	.asciz	"file not found"

	.no_dead_strip	_find_file
.subsections_via_symbols
