	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_affs_read_symlink
_grub_affs_read_symlink:                ## @grub_affs_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_GRUB_AFFS_SYMLINK_SIZE
	movl	%eax, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movl	(%rbx), %edi
	movl	4(%rbx), %r15d
	movl	(%r14), %r14d
	movq	_GRUB_AFFS_SYMLINK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_GRUB_AFFS_SYMLINK_SIZE
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_grub_free
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_grub_dprintf
LBB0_5:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_AFFS_SYMLINK_OFFSET,4,2   ## @GRUB_AFFS_SYMLINK_OFFSET
	.comm	_grub_errno,8,3                 ## @grub_errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"affs"

L_.str.1:                               ## @.str.1
	.asciz	"Symlink: `%s'\n"

	.no_dead_strip	_grub_affs_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_affs_read_symlink
_grub_affs_read_symlink:                ; @grub_affs_read_symlink
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x23]
	bl	_GRUB_AFFS_SYMLINK_SIZE
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _GRUB_AFFS_SYMLINK_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_AFFS_SYMLINK_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldp	w0, w22, [x23]
	bl	_GRUB_AFFS_SYMLINK_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x4, x19
	bl	_grub_disk_read
Lloh3:
	adrp	x8, _grub_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_grub_free
	mov	x19, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_grub_dprintf
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_AFFS_SYMLINK_OFFSET,4,2   ; @GRUB_AFFS_SYMLINK_OFFSET
	.comm	_grub_errno,8,3                 ; @grub_errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"affs"

l_.str.1:                               ; @.str.1
	.asciz	"Symlink: `%s'\n"

	.no_dead_strip	_grub_affs_read_symlink
.subsections_via_symbols
