	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_iso9660_read_symlink
_grub_iso9660_read_symlink:             ## @grub_iso9660_read_symlink
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	leaq	-40(%rbp), %r8
	movl	$8, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	-40(%rbp), %r12d
	movl	-36(%rbp), %r14d
	movq	16(%rbx), %rax
	movl	(%rax), %r15d
	movl	$1, %edi
	callq	_grub_malloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	%r12d, %ecx
	shrl	$31, %ecx
	addl	%r12d, %ecx
	andl	$-2, %ecx
	addl	%r15d, %ecx
	addl	$9, %ecx
	subl	%ecx, %r14d
	movb	$0, (%rax)
	movq	$0, -48(%rbp)
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	movslq	%ecx, %rdx
	addq	(%rbx), %rdx
	movq	_susp_iterate_sl@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %r9
	movl	%r14d, %ecx
	callq	_grub_iso9660_susp_iterate
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:
	movq	%rax, %rdi
	callq	_grub_free
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_susp_iterate_sl,4,2            ## @susp_iterate_sl
	.no_dead_strip	_grub_iso9660_read_symlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_iso9660_read_symlink
_grub_iso9660_read_symlink:             ; @grub_iso9660_read_symlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	add	x4, sp, #24
	mov	w3, #8
	bl	_grub_disk_read
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w21, [x8]
	ldp	w22, w20, [sp, #24]
	mov	w0, #1
	bl	_grub_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.2:
	and	w8, w22, #0x1
	cmp	w22, #0
	cneg	w8, w8, lt
	sub	w8, w22, w8
	add	w8, w8, w21
	add	w8, w8, #9
	sub	w3, w20, w8
	strb	wzr, [x0]
	str	xzr, [sp, #16]
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	ldr	x9, [x19]
	add	x2, x9, w8, sxtw
Lloh0:
	adrp	x8, _susp_iterate_sl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _susp_iterate_sl@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x5, sp, #8
	bl	_grub_iso9660_susp_iterate
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_grub_free
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_susp_iterate_sl,4,2            ; @susp_iterate_sl
	.no_dead_strip	_grub_iso9660_read_symlink
.subsections_via_symbols
