	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_fs_probe                  ## -- Begin function grub_fs_probe
	.p2align	4, 0x90
_grub_fs_probe:                         ## @grub_fs_probe
	.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	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_15
## %bb.1:
	movq	_grub_fs_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %r15
	movq	_grub_errno@GOTPCREL(%rip), %r13
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_grub_dprintf
	movq	_dummy_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ecx, %ecx
	callq	*(%rbx)
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_grub_error_push
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_grub_dprintf
	xorl	%eax, %eax
	callq	_grub_error_pop
	movq	(%r13), %rax
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	%rax, (%r13)
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_6:
	cmpl	$0, _grub_fs_probe.count(%rip)
	jne	LBB0_16
## %bb.7:
	movl	$1, _grub_fs_probe.count(%rip)
	xorl	%eax, %eax
	callq	_grub_fs_autoload_hook
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_grub_errno@GOTPCREL(%rip), %r13
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %r12
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_grub_fs_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_dummy_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ecx, %ecx
	callq	*(%rbx)
	movq	(%r13), %rcx
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%r15), %rcx
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, (%r13)
	xorl	%eax, %eax
	callq	_grub_fs_autoload_hook
	testq	%rax, %rax
	jne	LBB0_9
LBB0_14:
	decl	_grub_fs_probe.count(%rip)
	jmp	LBB0_16
LBB0_15:
	movq	(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_18
LBB0_16:
	movq	_GRUB_ERR_UNKNOWN_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_grub_error
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	decl	_grub_fs_probe.count(%rip)
	jmp	LBB0_18
LBB0_12:
	decl	_grub_fs_probe.count(%rip)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_grub_fs_probe.count,4,2 ## @grub_fs_probe.count
	.comm	_grub_fs_list,8,3               ## @grub_fs_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fs"

L_.str.1:                               ## @.str.1
	.asciz	"Detecting %s...\n"

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_dummy_func,4,2                 ## @dummy_func
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
L_.str.3:                               ## @.str.3
	.asciz	"%s detection failed.\n"

	.comm	_GRUB_ERR_BAD_FS,8,3            ## @GRUB_ERR_BAD_FS
	.comm	_GRUB_ERR_UNKNOWN_FS,4,2        ## @GRUB_ERR_UNKNOWN_FS
L_.str.4:                               ## @.str.4
	.asciz	"unknown filesystem"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_fs_probe                  ; -- Begin function grub_fs_probe
	.p2align	2
_grub_fs_probe:                         ; @grub_fs_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _grub_fs_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grub_fs_list@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_6
; %bb.2:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x26, _dummy_func@GOTPAGE
Lloh8:
	ldr	x26, [x26, _dummy_func@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.2@PAGE
Lloh10:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh11:
	adrp	x27, _grub_errno@GOTPAGE
Lloh12:
	ldr	x27, [x27, _grub_errno@GOTPAGEOFF]
Lloh13:
	adrp	x28, _GRUB_ERR_NONE@GOTPAGE
Lloh14:
	ldr	x28, [x28, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh15:
	adrp	x25, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh16:
	ldr	x25, [x25, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh17:
	adrp	x24, l_.str.3@PAGE
Lloh18:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_grub_dprintf
	ldr	x8, [x20]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	blr	x8
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_grub_error_push
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	x1, x24
	bl	_grub_dprintf
	bl	_grub_error_pop
	ldr	x8, [x27]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	str	x8, [x27]
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_3
LBB0_6:
	adrp	x22, _grub_fs_probe.count@PAGE
	ldr	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	cbnz	w8, LBB0_14
; %bb.7:
	mov	w8, #1
	str	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	bl	_grub_fs_autoload_hook
Lloh19:
	adrp	x27, _grub_fs_list@GOTPAGE
Lloh20:
	ldr	x27, [x27, _grub_fs_list@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.8:
Lloh21:
	adrp	x23, _dummy_func@GOTPAGE
Lloh22:
	ldr	x23, [x23, _dummy_func@GOTPAGEOFF]
Lloh23:
	adrp	x21, l_.str.2@PAGE
Lloh24:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh25:
	adrp	x24, _grub_errno@GOTPAGE
Lloh26:
	ldr	x24, [x24, _grub_errno@GOTPAGEOFF]
Lloh27:
	adrp	x25, _GRUB_ERR_NONE@GOTPAGE
Lloh28:
	ldr	x25, [x25, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh29:
	adrp	x26, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh30:
	ldr	x26, [x26, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x27]
	ldr	x8, [x20]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	blr	x8
	ldr	x9, [x24]
	ldr	x8, [x25]
	cmp	x9, x8
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [x24]
	bl	_grub_fs_autoload_hook
	cbnz	x0, LBB0_9
LBB0_12:
	ldr	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19]
	ldr	x20, [x8]
	cbnz	x20, LBB0_16
LBB0_14:
Lloh31:
	adrp	x8, _GRUB_ERR_UNKNOWN_FS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GRUB_ERR_UNKNOWN_FS@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_grub_error
LBB0_15:
	mov	x20, #0
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x20, #0
LBB0_18:
	ldr	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x22, _grub_fs_probe.count@PAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_grub_fs_probe.count,4,2 ; @grub_fs_probe.count
	.comm	_grub_fs_list,8,3               ; @grub_fs_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fs"

l_.str.1:                               ; @.str.1
	.asciz	"Detecting %s...\n"

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_dummy_func,4,2                 ; @dummy_func
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
l_.str.3:                               ; @.str.3
	.asciz	"%s detection failed.\n"

	.comm	_GRUB_ERR_BAD_FS,8,3            ; @GRUB_ERR_BAD_FS
	.comm	_GRUB_ERR_UNKNOWN_FS,4,2        ; @GRUB_ERR_UNKNOWN_FS
l_.str.4:                               ; @.str.4
	.asciz	"unknown filesystem"

.subsections_via_symbols
