	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_xfs_mode_to_filetype
_grub_xfs_mode_to_filetype:             ## @grub_xfs_mode_to_filetype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_grub_be_to_cpu16
	movq	_FILETYPE_INO_MASK@GOTPCREL(%rip), %r14
	andl	(%r14), %eax
	movq	_FILETYPE_INO_DIRECTORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, %edi
	callq	_grub_be_to_cpu16
	andl	(%r14), %eax
	movq	_FILETYPE_INO_SYMLINK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_GRUB_FSHELP_SYMLINK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	%ebx, %edi
	callq	_grub_be_to_cpu16
	andl	(%r14), %eax
	movq	_FILETYPE_INO_REG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_GRUB_FSHELP_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_GRUB_FSHELP_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FILETYPE_INO_MASK,4,2          ## @FILETYPE_INO_MASK
	.comm	_FILETYPE_INO_DIRECTORY,4,2     ## @FILETYPE_INO_DIRECTORY
	.comm	_GRUB_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_FILETYPE_INO_SYMLINK,4,2       ## @FILETYPE_INO_SYMLINK
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ## @GRUB_FSHELP_SYMLINK
	.comm	_FILETYPE_INO_REG,4,2           ## @FILETYPE_INO_REG
	.comm	_GRUB_FSHELP_REG,4,2            ## @GRUB_FSHELP_REG
	.comm	_GRUB_FSHELP_UNKNOWN,4,2        ## @GRUB_FSHELP_UNKNOWN
	.no_dead_strip	_grub_xfs_mode_to_filetype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_xfs_mode_to_filetype
_grub_xfs_mode_to_filetype:             ; @grub_xfs_mode_to_filetype
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_grub_be_to_cpu16
Lloh0:
	adrp	x20, _FILETYPE_INO_MASK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FILETYPE_INO_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w8, w8, w0
Lloh2:
	adrp	x9, _FILETYPE_INO_DIRECTORY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FILETYPE_INO_DIRECTORY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _GRUB_FSHELP_DIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_FSHELP_DIR@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_grub_be_to_cpu16
	ldr	w8, [x20]
	and	w8, w8, w0
Lloh7:
	adrp	x9, _FILETYPE_INO_SYMLINK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FILETYPE_INO_SYMLINK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _GRUB_FSHELP_SYMLINK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRUB_FSHELP_SYMLINK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_grub_be_to_cpu16
	ldr	w8, [x20]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _FILETYPE_INO_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FILETYPE_INO_REG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _GRUB_FSHELP_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _GRUB_FSHELP_UNKNOWN@GOTPAGEOFF]
Lloh17:
	adrp	x11, _GRUB_FSHELP_REG@GOTPAGE
Lloh18:
	ldr	x11, [x11, _GRUB_FSHELP_REG@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x10, eq
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FILETYPE_INO_MASK,4,2          ; @FILETYPE_INO_MASK
	.comm	_FILETYPE_INO_DIRECTORY,4,2     ; @FILETYPE_INO_DIRECTORY
	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_FILETYPE_INO_SYMLINK,4,2       ; @FILETYPE_INO_SYMLINK
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ; @GRUB_FSHELP_SYMLINK
	.comm	_FILETYPE_INO_REG,4,2           ; @FILETYPE_INO_REG
	.comm	_GRUB_FSHELP_REG,4,2            ; @GRUB_FSHELP_REG
	.comm	_GRUB_FSHELP_UNKNOWN,4,2        ; @GRUB_FSHELP_UNKNOWN
	.no_dead_strip	_grub_xfs_mode_to_filetype
.subsections_via_symbols
