	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_fs_blocklist_rw
_grub_fs_blocklist_rw:                  ## @grub_fs_blocklist_rw
	.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	%rdx, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %r12
	movq	8(%rsi), %r14
	subq	%r14, %r12
	cmpq	%rcx, %r12
	cmovgeq	%rcx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %r15
	movq	(%r15), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	testq	%r12, %r12
	jle	LBB0_14
## %bb.2:
	addq	$16, %r15
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rbx
	subq	%r14, %rbx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	(%r14,%r12), %rcx
	cmpq	%rdx, %rcx
	cmovleq	%r12, %rbx
	movq	-8(%r15), %rdx
	addq	%r14, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_grub_disk_write
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rcx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %r9d
	xorl	%esi, %esi
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_grub_disk_read_ex
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%ebx, %eax
	subq	%rbx, %r12
	leaq	(%rbx,%r13), %rcx
	testq	%r13, %r13
	cmovneq	%rcx, %r13
	addq	%rbx, %r14
	movq	-16(%r15), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	subq	%rcx, %r14
	addq	$16, %r15
	testq	%r12, %r12
	jg	LBB0_3
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.no_dead_strip	_grub_fs_blocklist_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_fs_blocklist_rw
_grub_fs_blocklist_rw:                  ; @grub_fs_blocklist_rw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldp	x8, x24, [x1]
	sub	x8, x8, x24
	cmp	x8, x3
	csel	x25, x8, x3, lt
	ldr	x9, [x1, #32]
	ldr	x8, [x9]
	cmp	x8, #0
	ccmp	x25, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_11
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	w20, #0
	add	x26, x9, #8
Lloh0:
	adrp	x27, _GRUB_ERR_NONE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w5, [x19, #16]
	mov	w1, #0
	mov	x3, x23
	mov	x4, x21
	bl	_grub_disk_read_ex
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, w23
	sub	x25, x25, x23
	add	x8, x21, x23
	cmp	x21, #0
	csel	x21, x8, xzr, ne
	add	x24, x23, x24
	ldur	x8, [x26, #-8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x24, x24, x8
	ldr	x8, [x26, #8]
	add	x26, x26, #16
	cmp	x8, #0
	ccmp	x25, #0, #4, ne
	b.le	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	subs	x9, x8, x24
	b.le	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x24, x25
	cmp	x10, x8
	csel	x23, x9, x25, gt
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	x8, [x26]
	add	x2, x8, x24
	cbz	w22, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x21, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w1, #0
	mov	x3, x23
	mov	x4, x21
	bl	_grub_disk_write
	cbz	w0, LBB0_4
LBB0_10:
	mov	w20, #-1
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.no_dead_strip	_grub_fs_blocklist_rw
.subsections_via_symbols
