	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_blocklist_convert         ## -- Begin function grub_blocklist_convert
	.p2align	4, 0x90
_grub_blocklist_convert:                ## @grub_blocklist_convert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	32(%rdi), %rax
	cmpq	_grub_fs_blocklist@GOTPCREL(%rip), %rax
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.3:
	movq	$0, 16(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	(%rax), %edi
	callq	_grub_partition_get_start
	movl	%eax, -32(%rbp)
	movq	_read_blocklist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	leaq	-48(%rbp), %rax
	movq	%rax, 48(%rbx)
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_grub_file_read
	movq	$0, 40(%rbx)
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	_grub_fs_blocklist@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	$0, (%rax)
	movq	-40(%rbp), %rdi
	callq	_grub_free
LBB0_9:
	movq	$0, 16(%rbx)
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_fs_blocklist,8,3          ## @grub_fs_blocklist
	.comm	_read_blocklist,8,3             ## @read_blocklist
	.comm	_grub_errno,8,3                 ## @grub_errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_blocklist_convert         ; -- Begin function grub_blocklist_convert
	.p2align	2
_grub_blocklist_convert:                ; @grub_blocklist_convert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x20, _grub_fs_blocklist@GOTPAGE
Lloh1:
	ldr	x20, [x20, _grub_fs_blocklist@GOTPAGEOFF]
	cmp	x8, x20
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x9, [x19]
	cbz	x9, LBB0_10
; %bb.3:
	str	xzr, [x19, #16]
	mov	w9, #1
	str	w9, [x19, #8]
	str	xzr, [sp, #24]
	stp	xzr, xzr, [sp]
	ldr	w0, [x8]
	bl	_grub_partition_get_start
Lloh2:
	adrp	x8, _read_blocklist@GOTPAGE
Lloh3:
	ldr	x8, [x8, _read_blocklist@GOTPAGEOFF]
	str	w0, [sp, #16]
Lloh4:
	ldr	x8, [x8]
	mov	x9, sp
	stp	x8, x9, [x19, #40]
	ldr	x2, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_grub_file_read
	str	xzr, [x19, #40]
Lloh5:
	adrp	x8, _grub_errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
; %bb.4:
	ldr	x9, [sp]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	ldr	x8, [sp, #8]
	stp	x8, x20, [x19, #24]
	b	LBB0_9
LBB0_8:
	str	xzr, [x8]
	ldr	x0, [sp, #8]
	bl	_grub_free
LBB0_9:
	str	xzr, [x19, #16]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_fs_blocklist,8,3          ; @grub_fs_blocklist
	.comm	_read_blocklist,8,3             ; @read_blocklist
	.comm	_grub_errno,8,3                 ; @grub_errno
.subsections_via_symbols
