	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_ntfs_read
_grub_ntfs_read:                        ## @grub_ntfs_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rax
	movq	16(%rdi), %rdi
	movl	8(%rax), %r9d
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	$1, (%rdi)
LBB0_2:
	movl	12(%rax), %edx
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	movl	%r14d, %ecx
	movl	$1, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_read_attr
	addq	$16, %rsp
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	cmovel	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,8,3                 ## @grub_errno
	.no_dead_strip	_grub_ntfs_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_ntfs_read
_grub_ntfs_read:                        ; @grub_ntfs_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x8, x0
	ldr	x0, [x0, #16]
	ldr	w5, [x8, #8]
	cbz	w5, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x0]
LBB0_2:
	ldr	w2, [x8, #12]
	ldp	w7, w6, [x8]
	mov	x3, x19
	mov	w4, #1
	bl	_read_attr
Lloh0:
	adrp	x8, _grub_errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w0, w19, wzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,8,3                 ; @grub_errno
	.no_dead_strip	_grub_ntfs_read
.subsections_via_symbols
