	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_xfs_read_block
_grub_xfs_read_block:                   ## @grub_xfs_read_block
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	movq	_XFS_INODE_FORMAT_BTREE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_15
## %bb.1:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movq	%rax, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	callq	_grub_be_to_cpu16
	movq	24(%rbx), %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rbx,8), %rdi
	callq	_grub_be_to_cpu64
	cmpq	%r12, %rax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	16(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leal	(%rbx,%r13), %eax
	decl	%eax
	cltq
	movq	(%r15,%rax,8), %rdi
	callq	_grub_be_to_cpu64
	movq	(%r14), %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%rdx), %ecx
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rsi
	subl	(%rsi), %ecx
	movl	8(%rdx), %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_28
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_grub_strncmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %edi
	callq	_grub_be_to_cpu16
	movq	(%r14), %r15
	cmpq	$0, 24(%r14)
	jne	LBB0_3
## %bb.14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_15:
	movq	_XFS_INODE_FORMAT_EXT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_27
## %bb.16:
	movl	40(%rbx), %edi
	callq	_grub_be_to_cpu32
	movq	16(%rbx), %r15
	xorl	%r14d, %r14d
LBB0_17:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_24
## %bb.18:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_GRUB_XFS_EXTENT_BLOCK
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_GRUB_XFS_EXTENT_OFFSET
	movq	%rax, %r13
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_GRUB_XFS_EXTENT_SIZE
	cmpq	%r12, %r13
	jg	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	%r13, %rax
	cmpq	%r12, %rax
	jg	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%r14d
	movl	%ebx, %eax
	cmpl	%r14d, %ebx
	jne	LBB0_19
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%r13d, %r13d
LBB0_24:
	testq	%r14, %r14
	je	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	callq	_grub_free
LBB0_26:
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GRUB_XFS_FSB_TO_BLOCK          ## TAILCALL
LBB0_27:
	movq	_GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_error
	jmp	LBB0_28
LBB0_9:
	movq	%r14, %rdi
	callq	_grub_free
	jmp	LBB0_28
LBB0_12:
	movq	%r14, %rdi
	callq	_grub_free
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_error
LBB0_28:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	subq	%r13, %rax
	movq	%rax, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_25
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_XFS_INODE_FORMAT_BTREE,8,3     ## @XFS_INODE_FORMAT_BTREE
	.comm	_GRUB_DISK_SECTOR_BITS,8,3      ## @GRUB_DISK_SECTOR_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BMAP"

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

	.comm	_XFS_INODE_FORMAT_EXT,8,3       ## @XFS_INODE_FORMAT_EXT
	.comm	_GRUB_ERR_NOT_IMPLEMENTED_YET,4,2 ## @GRUB_ERR_NOT_IMPLEMENTED_YET
L_.str.2:                               ## @.str.2
	.asciz	"XFS does not support inode format %d yet"

	.no_dead_strip	_grub_xfs_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_xfs_read_block
_grub_xfs_read_block:                   ; @grub_xfs_read_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _XFS_INODE_FORMAT_BTREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XFS_INODE_FORMAT_BTREE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_grub_malloc
	cbz	x0, LBB0_26
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_grub_be_to_cpu16
	mov	x24, x0
	ldr	x22, [x19, #24]
Lloh3:
	adrp	x25, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	mov	w26, w24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x22, x27, lsl #3]
	bl	_grub_be_to_cpu64
	cmp	x0, x21
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x27, x27, #1
	cmp	x26, x27
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x26
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w27, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	w24, [x8, #16]
	add	w8, w26, w27
	sub	w8, w8, #1
	ldr	x0, [x22, w8, sxtw #3]
	bl	_grub_be_to_cpu64
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x10, [x25]
	sub	x9, x9, x10
	lsl	x1, x0, x9
	ldr	w3, [x8, #8]
	mov	x0, x24
	mov	w2, #0
	mov	x4, x20
	bl	_grub_disk_read
	cbnz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #16]
	mov	x1, x23
	mov	w2, #4
	bl	_grub_strncmp
	cbnz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #8]
	bl	_grub_be_to_cpu16
	mov	x24, x0
	ldr	x22, [x20]
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
; %bb.12:
	cmp	w24, #1
	b.ge	LBB0_15
	b	LBB0_19
LBB0_13:
Lloh7:
	adrp	x9, _XFS_INODE_FORMAT_EXT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XFS_INODE_FORMAT_EXT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.14:
	ldr	w0, [x19, #40]
	bl	_grub_be_to_cpu32
	mov	x24, x0
	mov	x20, #0
	ldr	x22, [x19, #16]
	cmp	w24, #1
	b.lt	LBB0_19
LBB0_15:
	mov	w23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_GRUB_XFS_EXTENT_BLOCK
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_GRUB_XFS_EXTENT_OFFSET
	mov	x26, x0
	mov	x0, x22
	mov	x1, x23
	bl	_GRUB_XFS_EXTENT_SIZE
	cmp	x26, x21
	b.gt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x0, x26
	cmp	x8, x21
	b.gt	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w23, w23, #1
	cmp	w24, w23
	b.ne	LBB0_16
LBB0_19:
	mov	x21, #0
	cbz	x20, LBB0_21
LBB0_20:
	mov	x0, x20
	bl	_grub_free
LBB0_21:
	ldr	x0, [x19]
	mov	x1, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_GRUB_XFS_FSB_TO_BLOCK
LBB0_22:
Lloh10:
	adrp	x9, _GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_23:
	mov	x0, x20
	bl	_grub_free
	b	LBB0_26
LBB0_24:
	mov	x0, x20
	bl	_grub_free
Lloh15:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_25:
	bl	_grub_error
LBB0_26:
	mov	x0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
	add	x8, x25, x21
	sub	x21, x8, x26
	cbnz	x20, LBB0_20
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XFS_INODE_FORMAT_BTREE,8,3     ; @XFS_INODE_FORMAT_BTREE
	.comm	_GRUB_DISK_SECTOR_BITS,8,3      ; @GRUB_DISK_SECTOR_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BMAP"

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

	.comm	_XFS_INODE_FORMAT_EXT,8,3       ; @XFS_INODE_FORMAT_EXT
	.comm	_GRUB_ERR_NOT_IMPLEMENTED_YET,4,2 ; @GRUB_ERR_NOT_IMPLEMENTED_YET
l_.str.2:                               ; @.str.2
	.asciz	"XFS does not support inode format %d yet"

	.no_dead_strip	_grub_xfs_read_block
.subsections_via_symbols
