	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_read_symlink
_grub_reiserfs_read_symlink:            ## @grub_reiserfs_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rsi
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_grub_memcpy
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_grub_reiserfs_set_key_offset
	movq	_GRUB_REISERFS_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_grub_reiserfs_get_key_version
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_grub_reiserfs_set_key_type
	movq	(%r14), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rsi
	callq	_grub_reiserfs_get_item
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_grub_le_to_cpu16
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	callq	_grub_le_to_cpu16
	movq	%rax, %r15
	movq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-48(%rbp), %edi
	callq	_grub_le_to_cpu16
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	1(%r15), %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movl	%r13d, %ecx
	sarl	%cl, %r12d
	imull	-72(%rbp), %r12d                ## 4-byte Folded Reload
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	movq	%rbx, %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.6:
	movslq	%r15d, %rax
	movb	$0, (%rbx,%rax)
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rdi
	callq	_grub_free
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_REISERFS_DIRECT,4,2       ## @GRUB_REISERFS_DIRECT
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.comm	_grub_errno,8,3                 ## @grub_errno
	.no_dead_strip	_grub_reiserfs_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_reiserfs_read_symlink
_grub_reiserfs_read_symlink:            ; @grub_reiserfs_read_symlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	add	x1, x0, #8
	add	x0, sp, #8
	mov	w2, #4
	bl	_grub_memcpy
	add	x0, sp, #8
	mov	w1, #1
	bl	_grub_reiserfs_set_key_offset
Lloh0:
	adrp	x8, _GRUB_REISERFS_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_REISERFS_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, sp, #8
	bl	_grub_reiserfs_get_key_version
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_grub_reiserfs_set_key_type
	ldr	x0, [x19]
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_grub_reiserfs_get_item
Lloh3:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_grub_le_to_cpu16
	mov	x22, x0
	ldr	w0, [sp, #28]
	bl	_grub_le_to_cpu16
	mov	x20, x0
	ldr	x24, [sp, #16]
Lloh6:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
	ldr	w0, [sp, #24]
	bl	_grub_le_to_cpu16
	mov	x23, x0
	add	w0, w20, #1
	bl	_grub_malloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	asr	w8, w22, w25
	mul	w1, w8, w24
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x2, x23
	mov	x3, x20
	mov	x4, x21
	bl	_grub_disk_read
Lloh9:
	adrp	x8, _grub_errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_grub_free
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_6:
	strb	wzr, [x21, w20, sxtw]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_REISERFS_DIRECT,4,2       ; @GRUB_REISERFS_DIRECT
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.comm	_grub_errno,8,3                 ; @grub_errno
	.no_dead_strip	_grub_reiserfs_read_symlink
.subsections_via_symbols
