	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_fbfs_open
_grub_fbfs_open:                        ## @grub_fbfs_open
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_grub_fbfs_mount
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	decq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %r12
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.4:
	movq	%r12, %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	_grub_strcasecmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r12), %rax
	leaq	(%rax,%r13), %r12
	addq	$2, %r12
	cmpl	$0, 2(%r13,%rax)
	movq	%r12, %r13
	jne	LBB0_5
LBB0_8:
	movq	_GRUB_ERR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
LBB0_9:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	%r15, 8(%r14)
	movq	%r13, (%r15)
	movl	4(%r13), %eax
	movl	%eax, (%r14)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ## @GRUB_ERR_FILE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file not found"

	.no_dead_strip	_grub_fbfs_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_fbfs_open
_grub_fbfs_open:                        ; @grub_fbfs_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_grub_fbfs_mount
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	sub	x21, x21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, #1]!
	cmp	w8, #47
	b.eq	LBB0_2
; %bb.3:
	ldr	x22, [x20, #8]
	ldr	w8, [x22]
	cbz	w8, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_grub_strcasecmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x22]
	add	x22, x22, x8
	ldr	w8, [x22, #2]!
	cbnz	w8, LBB0_4
LBB0_6:
Lloh0:
	adrp	x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_grub_error
LBB0_7:
Lloh5:
	adrp	x8, _grub_errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	str	x20, [x19, #8]
	str	x22, [x20]
	ldr	w8, [x22, #4]
	str	w8, [x19]
Lloh7:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ; @GRUB_ERR_FILE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file not found"

	.no_dead_strip	_grub_fbfs_open
.subsections_via_symbols
