	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_xfs_mount
_grub_xfs_mount:                        ## @grub_xfs_mount
	.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, %r14d
	movl	$80, %edi
	callq	_grub_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %r8
	addq	$40, %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	56(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_grub_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_grub_error
LBB0_6:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GRUB_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_grub_error
LBB0_8:
	movq	%rbx, %rdi
	callq	_grub_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movb	40(%rbx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	addl	$76, %esi
	movq	%rbx, %rdi
	callq	_grub_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, 16(%rax)
	movl	48(%rax), %edi
	movl	52(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
	callq	_grub_be_to_cpu32
	movq	%rax, 72(%rbx)
	movl	44(%rbx), %edi
	callq	_grub_be_to_cpu32
	movq	%rax, 64(%rbx)
	movl	%r14d, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	8(%rbx), %esi
	movq	%rbx, %rdx
	addq	$4, %rdx
	movq	%rbx, %rdi
	callq	_grub_xfs_read_inode
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XFSB"

	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
L_.str.1:                               ## @.str.1
	.asciz	"not a XFS filesystem"

	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ## @GRUB_ERR_OUT_OF_RANGE
L_.str.2:                               ## @.str.2
	.asciz	"not an XFS filesystem"

	.no_dead_strip	_grub_xfs_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_xfs_mount
_grub_xfs_mount:                        ; @grub_xfs_mount
	.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	x20, x0
	mov	w0, #80
	bl	_grub_zalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x4, x19, #40
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #4
	bl	_grub_disk_read
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_grub_strncmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_error
LBB0_4:
Lloh7:
	adrp	x8, _grub_errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _GRUB_ERR_OUT_OF_RANGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRUB_ERR_OUT_OF_RANGE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_grub_error
LBB0_6:
	mov	x0, x19
	bl	_grub_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	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
LBB0_8:
	ldr	w8, [x19, #40]
	mov	w21, #1
	lsl	w8, w21, w8
	add	w1, w8, #76
	mov	x0, x19
	bl	_grub_realloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.9:
	str	x19, [x19, #16]
	ldp	w0, w8, [x19, #48]
	str	w8, [x19, #8]
	str	w21, [x19]
	bl	_grub_be_to_cpu32
	str	x0, [x19, #72]
	ldr	w0, [x19, #44]
	bl	_grub_be_to_cpu32
	str	x0, [x19, #64]
	str	w20, [x19, #32]
	str	xzr, [x19, #24]
	ldr	w1, [x19, #8]
	add	x2, x19, #4
	mov	x0, x19
	bl	_grub_xfs_read_inode
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XFSB"

	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
l_.str.1:                               ; @.str.1
	.asciz	"not a XFS filesystem"

	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ; @GRUB_ERR_OUT_OF_RANGE
l_.str.2:                               ; @.str.2
	.asciz	"not an XFS filesystem"

	.no_dead_strip	_grub_xfs_mount
.subsections_via_symbols
