	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_mft
_read_mft:                              ## @read_mft
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rcx, -32(%rbp)
	movl	(%rdi), %eax
	movq	_BLK_SHR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	addq	$4, %rdi
	movl	%eax, %edx
	imull	%r15d, %edx
	movq	_read_mft_hook@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-32(%rbp), %r10
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r10
	callq	_read_attr
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_grub_error
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fixup
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_SHR,4,2                    ## @BLK_SHR
	.comm	_read_mft_hook,4,2              ## @read_mft_hook
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read MFT 0x%X fails"

L_.str.1:                               ## @.str.1
	.asciz	"FILE"

	.no_dead_strip	_read_mft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mft
_read_mft:                              ; @read_mft
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	x3, [sp, #8]
	ldr	w8, [x0], #4
Lloh0:
	adrp	x9, _BLK_SHR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLK_SHR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	mul	w2, w3, w2
Lloh3:
	adrp	x8, _read_mft_hook@GOTPAGE
Lloh4:
	ldr	x8, [x8, _read_mft_hook@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	w4, #0
	mov	w7, #0
	bl	_read_attr
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_grub_error
	b	LBB0_3
LBB0_2:
	ldr	w2, [x21]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_fixup
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_SHR,4,2                    ; @BLK_SHR
	.comm	_read_mft_hook,4,2              ; @read_mft_hook
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read MFT 0x%X fails"

l_.str.1:                               ; @.str.1
	.asciz	"FILE"

	.no_dead_strip	_read_mft
.subsections_via_symbols
