	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_fs_blocklist_open
_grub_fs_blocklist_open:                ## @grub_fs_blocklist_open
	.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, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$8, %ebx
	movq	%rsi, %rdi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r12d
	movl	$44, %esi
	callq	_grub_strchr
	leaq	1(%rax), %rdi
	addl	$8, %ebx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_grub_zalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	$0, (%r15)
	movq	%r14, -48(%rbp)
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_22
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.6:
	movl	%r12d, %r12d
	decq	%r12
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	cmpb	$43, %al
	je	LBB0_12
	.p2align	4, 0x90
LBB0_8:
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_grub_strtoull
	movl	%eax, (%rbx,%r13,8)
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi
	cmpb	$43, (%rdi)
	jne	LBB0_10
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	incq	%rdi
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_grub_strtoul
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%rbx,%r13,8)
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rcx
	movzbl	(%rcx), %ecx
	testb	%cl, %cl
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$44, %cl
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movsbl	%cl, %edi
	callq	_grub_isspace
	testl	%eax, %eax
	je	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	4(%rbx,%r13,8), %eax
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rbx,%r13,8), %edx
	leal	(%rax,%rdx), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%ecx, (%rsi)
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %ecx
	shll	%cl, %edx
	movl	%edx, (%rbx,%r13,8)
	movzbl	(%rsi), %ecx
	shll	%cl, %eax
	movl	%eax, 4(%rbx,%r13,8)
	addl	%eax, (%r15)
	movq	-48(%rbp), %rdi
	incq	%rdi
	movq	%rdi, -48(%rbp)
	cmpq	%r13, %r12
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movzbl	(%rdi), %eax
	incq	%r13
	cmpb	$43, %al
	jne	LBB0_8
	jmp	LBB0_12
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_22:
	movl	$0, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_GRUB_ULONG_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	shll	$9, %edx
	cmpl	%ecx, %eax
	cmovel	%ecx, %edx
	movl	%edx, 4(%rbx)
	movl	%edx, (%r15)
LBB0_23:
	movq	%rbx, 8(%r15)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_10:
	movq	_GRUB_ERR_BAD_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_grub_error
	jmp	LBB0_11
LBB0_19:
	movq	_GRUB_ERR_BAD_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_error
LBB0_11:
	movq	%rbx, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ULONG_MAX,4,2             ## @GRUB_ULONG_MAX
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.comm	_GRUB_ERR_BAD_FILENAME,4,2      ## @GRUB_ERR_BAD_FILENAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid file name `%s'"

L_.str.1:                               ## @.str.1
	.asciz	"beyond the total sectors"

	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_grub_fs_blocklist_open
.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_open
_grub_fs_blocklist_open:                ; @grub_fs_blocklist_open
	.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, x1
	mov	x19, x0
	mov	w23, #0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	mov	w21, #8
	mov	x0, x1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	mov	w1, #44
	bl	_grub_strchr
	mov	x8, x0
	add	x0, x0, #1
	add	w21, w21, #8
	cbnz	x8, LBB0_1
; %bb.2:
	mov	x0, x21
	bl	_grub_zalloc
	cbz	x0, LBB0_21
; %bb.3:
	mov	x21, x0
	str	wzr, [x19]
	str	x20, [sp, #8]
	ldrb	w8, [x20]
Lloh0:
	adrp	x24, _GRUB_ERR_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GRUB_ERR_NONE@GOTPAGEOFF]
	cbz	w8, LBB0_16
; %bb.4:
	cbz	w23, LBB0_17
; %bb.5:
	mov	x25, #0
	lsl	x9, x23, #3
	sub	x26, x9, #8
Lloh2:
	adrp	x23, _grub_errno@GOTPAGE
Lloh3:
	ldr	x23, [x23, _grub_errno@GOTPAGEOFF]
Lloh4:
	adrp	x27, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
	mov	x0, x20
	cmp	w8, #43
	b.eq	LBB0_8
LBB0_6:
	add	x1, sp, #8
	mov	w2, #0
	bl	_grub_strtoull
	str	w0, [x21, x25]
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.7:
	ldr	x0, [sp, #8]
	ldrb	w8, [x0]
	cmp	w8, #43
	b.ne	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x0, #1
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w2, #0
	bl	_grub_strtoul
	add	x28, x21, x25
	str	w0, [x28, #4]
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	ccmp	w0, #0, #4, eq
	b.eq	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #44
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtb	w0, w8
	bl	_grub_isspace
	cbz	w0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x28, #4]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x22]
	ldr	w8, [x21, x25]
	add	w10, w0, w8
	cmp	w9, w10
	b.lt	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x27]
	lsl	w8, w8, w9
	str	w8, [x21, x25]
	ldr	w8, [x27]
	lsl	w8, w0, w8
	str	w8, [x28, #4]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	str	x0, [sp, #8]
	cmp	x26, x25
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x0]
	add	x25, x25, #8
	cmp	w8, #43
	b.ne	LBB0_6
	b	LBB0_8
LBB0_16:
	str	wzr, [x21]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _GRUB_ULONG_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRUB_ULONG_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w10, w8, #9
	cmp	w8, w9
	csel	w8, w9, w10, eq
	str	w8, [x21, #4]
	str	w8, [x19]
LBB0_17:
	str	x21, [x19, #8]
	ldr	x0, [x24]
	b	LBB0_21
LBB0_18:
Lloh9:
	adrp	x8, _GRUB_ERR_BAD_FILENAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRUB_ERR_BAD_FILENAME@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh14:
	adrp	x8, _GRUB_ERR_BAD_FILENAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRUB_ERR_BAD_FILENAME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	bl	_grub_error
	mov	x0, x21
	bl	_grub_free
	ldr	x0, [x23]
LBB0_21:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ULONG_MAX,4,2             ; @GRUB_ULONG_MAX
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.comm	_GRUB_ERR_BAD_FILENAME,4,2      ; @GRUB_ERR_BAD_FILENAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid file name `%s'"

l_.str.1:                               ; @.str.1
	.asciz	"beyond the total sectors"

	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_grub_fs_blocklist_open
.subsections_via_symbols
