	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_disk_read                 ## -- Begin function grub_disk_read
	.p2align	4, 0x90
_grub_disk_read:                        ## @grub_disk_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%esi, -44(%rbp)
	movl	%edx, -76(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.1:
	movq	%rdi, %r13
	leaq	-44(%rbp), %rsi
	leaq	-76(%rbp), %rdx
	movq	%rcx, %r14
	callq	_grub_disk_adjust_range
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.2:
	movl	-76(%rbp), %ebx
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_GRUB_DISK_CACHE_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	callq	_grub_malloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:
	movq	%r14, %rsi
	movl	-44(%rbp), %r15d
	movq	_GRUB_DISK_CACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_GRUB_DISK_CACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r15d
	movl	%r15d, -44(%rbp)
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r12), %rcx
	testq	%rdx, %rdx
	cmovneq	%rcx, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subq	%r12, %rsi
	je	LBB0_23
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	%r15d, %edx
	negl	%eax
	movl	%eax, %r15d
	andl	%edx, %r15d
	subl	%r15d, %edx
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_GRUB_DISK_CACHE_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r12
	movslq	%edx, %r14
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax), %rbx
	subq	%rbx, %r12
	cmpq	%rsi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	cmovgeq	%rsi, %r12
	movq	24(%r13), %rax
	movl	8(%rax), %edi
	movl	16(%r13), %esi
	movl	%r15d, %edx
	callq	_grub_disk_cache_fetch
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jge	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_grub_memcpy
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r13), %rax
	movl	8(%rax), %edi
	movl	16(%r13), %esi
	movl	%r15d, %edx
	callq	_grub_disk_cache_unlock
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_GRUB_DISK_CACHE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	(%rdx,%r15), %eax
	cmpl	(%r13), %eax
	jg	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r13), %rax
	movq	%r13, %rdi
	movl	%r15d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*(%rax)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%rbx, %r14
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_grub_memcpy
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r13), %rax
	movl	8(%rax), %edi
	movl	16(%r13), %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_grub_disk_cache_store
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %r14d
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %r12
	cmovlq	%r12, %rdx
	movl	4(%r13), %ecx
	movl	%r14d, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	*%rax
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rax
	subq	%rbx, %rax
	cmpq	%rax, %r12
	jl	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	%rax, %rbx
	je	LBB0_4
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpq	%rdx, %rbx
	cmovlq	%rbx, %rdx
	movl	4(%r13), %ecx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	*8(%r13)
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	%r14d
	movq	%rax, %rdx
	cmpq	%rax, %rbx
	jge	LBB0_19
	jmp	LBB0_4
LBB0_21:
	xorl	%eax, %eax
	callq	_grub_error_push
	movslq	-44(%rbp), %rdx
	movq	_grub_errmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_dprintf
	xorl	%eax, %eax
	callq	_grub_error_pop
	jmp	LBB0_25
LBB0_22:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_23:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_24:
	movq	%r14, %rdi
	callq	_grub_free
LBB0_25:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_27:
	movq	_grub_errno@GOTPCREL(%rip), %rdi
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx), %r12
	leaq	(%rax,%r12), %rbx
	decq	%rbx
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rbx
	movq	%rdx, (%rdi)
	movl	%ebx, %esi
	shll	%cl, %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_grub_realloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.28:
	movq	%rax, %r15
	movq	24(%r13), %rax
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	callq	_grub_error_push
	movslq	32(%r13), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_dprintf
	xorl	%eax, %eax
	callq	_grub_error_pop
	movq	%r15, %r14
	jmp	LBB0_24
LBB0_30:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	movq	%r15, %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_grub_memcpy
LBB0_32:
	movq	8(%r13), %r8
	testq	%r8, %r8
	movq	_grub_errno@GOTPCREL(%rip), %r14
	je	LBB0_38
## %bb.33:
	movl	-44(%rbp), %edi
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rbx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subq	%rsi, %rbx
	cmpq	%rax, %r12
	cmovleq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	4(%r13), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	callq	*%r8
	movq	(%r14), %rax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.34:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	incl	%edi
	movl	%edi, -44(%rbp)
	subq	%rbx, %r12
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %r12
	cmovlq	%r12, %rbx
	movl	4(%r13), %ecx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	*8(%r13)
	movq	(%r14), %rax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_35
LBB0_38:
	movq	%r15, %r14
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disk"

L_.str.1:                               ## @.str.1
	.asciz	"Read out of range: sector 0x%llx (%s).\n"

	.comm	_grub_errmsg,4,2                ## @grub_errmsg
	.comm	_GRUB_DISK_SECTOR_SIZE,8,3      ## @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_DISK_CACHE_BITS,8,3       ## @GRUB_DISK_CACHE_BITS
	.comm	_GRUB_DISK_CACHE_SIZE,4,2       ## @GRUB_DISK_CACHE_SIZE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.comm	_GRUB_ERR_BAD_FS,8,3            ## @GRUB_ERR_BAD_FS
L_.str.2:                               ## @.str.2
	.asciz	"%s read failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_disk_read                 ; -- Begin function grub_disk_read
	.p2align	2
_grub_disk_read:                        ; @grub_disk_read
	.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	x20, x3
	stp	w2, w1, [sp, #8]
Lloh0:
	adrp	x26, _grub_errno@GOTPAGE
Lloh1:
	ldr	x26, [x26, _grub_errno@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x21, x4
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, x20
	bl	_grub_disk_adjust_range
Lloh2:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.2:
Lloh5:
	adrp	x27, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
	ldr	w23, [sp, #8]
	ldr	x8, [x27]
Lloh7:
	adrp	x9, _GRUB_DISK_CACHE_BITS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GRUB_DISK_CACHE_BITS@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	lsl	x0, x8, x9
	bl	_grub_malloc
	cbz	x0, LBB0_29
; %bb.3:
	mov	x22, x0
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _GRUB_DISK_CACHE_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRUB_DISK_CACHE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
Lloh13:
	adrp	x8, _GRUB_DISK_CACHE_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRUB_DISK_CACHE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	add	w8, w9, w24
	str	w8, [sp, #12]
	add	x10, x21, x25
	cmp	x21, #0
	csel	x21, xzr, x10, eq
	subs	x20, x20, x25
	b.eq	LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	neg	w9, w9
	and	w24, w8, w9
	sub	w8, w8, w24
Lloh16:
	adrp	x9, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	sxtw	x26, w8
	ldr	x8, [x27]
Lloh19:
	adrp	x9, _GRUB_DISK_CACHE_BITS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GRUB_DISK_CACHE_BITS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	mov	w23, w23
	add	x28, x26, x23
	sub	x8, x8, x28
	cmp	x8, x20
	csel	x25, x8, x20, lt
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #16]
	mov	x2, x24
	bl	_grub_disk_cache_fetch
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x25, x28
	cmp	x8, x20
	b.ge	LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, x26
	add	x1, x8, x23
	mov	x0, x21
	mov	x2, x25
	bl	_grub_memcpy
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #16]
	mov	x2, x24
	bl	_grub_disk_cache_unlock
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_15
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x8, _GRUB_DISK_CACHE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GRUB_DISK_CACHE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	ldr	w8, [x19]
	add	w9, w2, w24
	cmp	w9, w8
	b.gt	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x22
	blr	x8
Lloh25:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x22, x26
	add	x1, x8, x23
	mov	x0, x21
	mov	x2, x25
	bl	_grub_memcpy
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #16]
	mov	x2, x24
	mov	x3, x22
	bl	_grub_disk_cache_store
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x25, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w26, [sp, #12]
	ldr	x9, [x27]
	cmp	x25, x9
	csel	x2, x25, x9, lt
	ldr	w3, [x19, #4]
	mov	x0, x26
	mov	x1, x23
	blr	x8
	ldr	x8, [x27]
	sub	x9, x8, x23
	cmp	x25, x9
	b.lt	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w26, #1
	mov	x26, x25
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	x26, x26, x9
	b.eq	LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x9, [x19, #8]
	cmp	x26, x8
	csel	x2, x26, x8, lt
	ldr	w3, [x19, #4]
	mov	x0, x23
	mov	w1, #0
	blr	x9
	ldr	x9, [x27]
	add	w23, w23, #1
	mov	x8, x9
	cmp	x26, x9
	b.ge	LBB0_18
	b	LBB0_4
LBB0_20:
	bl	_grub_error_push
	ldrsw	x2, [sp, #12]
Lloh28:
	adrp	x8, _grub_errmsg@GOTPAGE
Lloh29:
	ldr	x8, [x8, _grub_errmsg@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_dprintf
	bl	_grub_error_pop
	b	LBB0_29
LBB0_21:
Lloh35:
	adrp	x26, _grub_errno@GOTPAGE
Lloh36:
	ldr	x26, [x26, _grub_errno@GOTPAGEOFF]
	b	LBB0_28
LBB0_22:
Lloh37:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x26, _grub_errno@GOTPAGE
Lloh41:
	ldr	x26, [x26, _grub_errno@GOTPAGEOFF]
	str	x8, [x26]
	b	LBB0_28
LBB0_23:
Lloh42:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
LBB0_24:
Lloh45:
	adrp	x26, _grub_errno@GOTPAGE
Lloh46:
	ldr	x26, [x26, _grub_errno@GOTPAGEOFF]
	str	x8, [x26]
	ldr	x8, [x27]
	add	x9, x23, x20
	add	x8, x9, x8
	sub	x8, x8, #1
Lloh47:
	adrp	x9, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh48:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	asr	x25, x8, x9
	lsl	w1, w25, w9
	mov	x0, x22
	bl	_grub_realloc
	cbz	x0, LBB0_28
; %bb.25:
	mov	x24, x0
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x25
	mov	x3, x24
	blr	x8
	cbz	x0, LBB0_30
; %bb.26:
	bl	_grub_error_push
	ldrsw	x2, [x19, #32]
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_grub_dprintf
	bl	_grub_error_pop
LBB0_27:
	mov	x22, x24
LBB0_28:
	mov	x0, x22
	bl	_grub_free
LBB0_29:
	ldr	x0, [x26]
	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_30:
	cbz	x21, LBB0_32
; %bb.31:
	add	x1, x24, x23
	mov	x0, x21
	mov	x2, x20
	bl	_grub_memcpy
LBB0_32:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_27
; %bb.33:
	ldr	w0, [sp, #12]
	ldr	x9, [x27]
	sub	x10, x9, x23
	add	x11, x20, x23
	cmp	x11, x9
	csel	x21, x10, x20, gt
	ldr	w3, [x19, #4]
	mov	x1, x23
	mov	x2, x21
	blr	x8
	ldr	x8, [x26]
Lloh54:
	adrp	x9, _GRUB_ERR_NONE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	add	w0, w8, #1
	str	w0, [sp, #12]
	subs	x20, x20, x21
	b.eq	LBB0_27
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x20, x9
	csel	x21, x20, x9, lt
	ldr	w3, [x19, #4]
	mov	w1, #0
	mov	x2, x21
	blr	x8
	ldr	x8, [x26]
Lloh57:
	adrp	x9, _GRUB_ERR_NONE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_34
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disk"

l_.str.1:                               ; @.str.1
	.asciz	"Read out of range: sector 0x%llx (%s).\n"

	.comm	_grub_errmsg,4,2                ; @grub_errmsg
	.comm	_GRUB_DISK_SECTOR_SIZE,8,3      ; @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_DISK_CACHE_BITS,8,3       ; @GRUB_DISK_CACHE_BITS
	.comm	_GRUB_DISK_CACHE_SIZE,4,2       ; @GRUB_DISK_CACHE_SIZE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.comm	_GRUB_ERR_BAD_FS,8,3            ; @GRUB_ERR_BAD_FS
l_.str.2:                               ; @.str.2
	.asciz	"%s read failed\n"

.subsections_via_symbols
