	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_sfs_read_block
_grub_sfs_read_block:                   ## @grub_sfs_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r15d
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_grub_sfs_read_extent
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	subl	-48(%rbp), %eax
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d
	movl	%eax, %ebx
	testl	%r15d, %r15d
	jne	LBB0_2
LBB0_7:
	movq	_GRUB_ERR_FILE_READ_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	addl	%ebx, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_FILE_READ_ERROR,4,2   ## @GRUB_ERR_FILE_READ_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading a SFS block outside the extent"

	.no_dead_strip	_grub_sfs_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_sfs_read_block
_grub_sfs_read_block:                   ; @grub_sfs_read_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w19, [x0]
	str	xzr, [sp, #8]
	cbz	w19, LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #4]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x19
	bl	_grub_sfs_read_extent
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	subs	w8, w21, w8
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [sp, #8]
	mov	x21, x8
	cbnz	w19, LBB0_2
LBB0_6:
Lloh0:
	adrp	x8, _GRUB_ERR_FILE_READ_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_ERR_FILE_READ_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	add	w19, w19, w21
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_FILE_READ_ERROR,4,2   ; @GRUB_ERR_FILE_READ_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading a SFS block outside the extent"

	.no_dead_strip	_grub_sfs_read_block
.subsections_via_symbols
