	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_blocklist
_read_blocklist:                        ## @read_blocklist
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	subq	(%rcx), %rdi
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	movl	%esi, %r15d
	addq	%rdi, %r15
	movslq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rdx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movq	-8(%rsi,%rdx), %rax
	movq	-16(%rsi,%rdx), %rdi
	addq	%rax, %rdi
	cmpq	%r15, %rdi
	jne	LBB0_3
## %bb.2:
	leaq	(%rsi,%rdx), %rcx
	addq	$-8, %rcx
	movl	%r14d, %edx
	addq	%rdx, %rax
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_3:
	movq	_BLOCKLIST_INC_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%rsi), %edx
	movq	16(%rbx), %rax
	testl	%ecx, %edx
	jne	LBB0_6
## %bb.4:
	addl	%ecx, %esi
	shll	$2, %esi
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_grub_realloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	8(%rbx), %ecx
LBB0_6:
	movslq	%ecx, %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	%r15, (%rax,%rdx)
	movl	%r14d, %esi
	movq	%rsi, 8(%rax,%rdx)
	incl	%ecx
	movl	%ecx, 8(%rbx)
LBB0_7:
	addl	%r14d, 12(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_DISK_SECTOR_BITS,8,3      ## @GRUB_DISK_SECTOR_BITS
	.comm	_BLOCKLIST_INC_STEP,4,2         ## @BLOCKLIST_INC_STEP
	.no_dead_strip	_read_blocklist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_blocklist
_read_blocklist:                        ; @read_blocklist
	.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	x19, x3
	mov	x20, x2
	ldr	x8, [x3]
	sub	x8, x0, x8
Lloh0:
	adrp	x9, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	add	x21, x8, w1, uxtw
	ldr	w8, [x3, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x10, [x19, #16]
	sub	w9, w8, #1
	sbfiz	x11, x9, #4, #32
	add	x9, x10, x11
	ldr	x11, [x10, x11]
	ldr	x10, [x9, #8]!
	add	x11, x10, x11
	cmp	x11, x21
	b.ne	LBB0_3
; %bb.2:
	add	x8, x10, w20, uxtw
	str	x8, [x9]
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x9, _BLOCKLIST_INC_STEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLOCKLIST_INC_STEP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w10, w9, #1
	ldr	x0, [x19, #16]
	tst	w10, w8
	b.ne	LBB0_6
; %bb.4:
	add	w8, w9, w8
	lsl	w1, w8, #2
	bl	_grub_realloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
LBB0_6:
	add	x9, x0, w8, sxtw #4
	mov	w10, w20
	stp	x21, x10, [x9]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_7:
	ldr	w8, [x19, #12]
	add	w8, w8, w20
	str	w8, [x19, #12]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_DISK_SECTOR_BITS,8,3      ; @GRUB_DISK_SECTOR_BITS
	.comm	_BLOCKLIST_INC_STEP,4,2         ; @BLOCKLIST_INC_STEP
	.no_dead_strip	_read_blocklist
.subsections_via_symbols
