	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_file
_init_file:                             ## @init_file
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	movq	48(%rdi), %rax
	movl	(%rax), %edi
	movq	_BLK_SHR@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_grub_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	48(%rbx), %rdi
	leaq	40(%rbx), %rcx
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_read_mft
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	32(%rbx), %rdi
	movl	$22, %esi
	callq	_u16at
	testb	$1, %al
	jne	LBB0_6
## %bb.4:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
LBB0_6:
	movzwl	%ax, %eax
	leaq	8(%rbx), %rdi
	testb	$2, %al
	jne	LBB0_14
## %bb.7:
	movq	_AT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_locate_attr
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	cmpb	$0, 8(%rax)
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	movl	$48, %esi
	callq	_u64at
	jmp	LBB0_11
LBB0_14:
	movq	%rbx, %rsi
	callq	_init_attr
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_u32at
LBB0_11:
	movl	%eax, 24(%rbx)
	movq	_AF_ALST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, 8(%rbx)
	jne	LBB0_15
## %bb.12:
	movq	$0, 16(%rbx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_SHR,4,2                    ## @BLK_SHR
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MFT 0x%X is not in use"

	.comm	_AT_DATA,4,2                    ## @AT_DATA
L_.str.1:                               ## @.str.1
	.asciz	"no $DATA in MFT 0x%X"

	.comm	_AF_ALST,4,2                    ## @AF_ALST
	.no_dead_strip	_init_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_file
_init_file:                             ; @init_file
	.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	x20, x1
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	ldr	x8, [x0, #48]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _BLK_SHR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BLK_SHR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_grub_malloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	x0, [x19, #48]
	add	x3, x19, #40
	mov	x2, x20
	bl	_read_mft
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _grub_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19, #32]
	mov	w1, #22
	bl	_u16at
	tbnz	w0, #0, LBB0_7
; %bb.5:
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
LBB0_6:
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_grub_error
LBB0_7:
	mov	x8, x0
	add	x0, x19, #8
	tbnz	w8, #1, LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _AT_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AT_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_locate_attr
	cbz	x0, LBB0_12
; %bb.9:
	ldrb	w8, [x0, #8]
	cbz	w8, LBB0_13
; %bb.10:
	mov	w1, #48
	bl	_u64at
	b	LBB0_14
LBB0_11:
	mov	x1, x19
	bl	_init_attr
	b	LBB0_15
LBB0_12:
Lloh14:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_13:
	mov	w1, #16
	bl	_u32at
LBB0_14:
	str	w0, [x19, #24]
	ldr	w8, [x19, #8]
Lloh19:
	adrp	x9, _AF_ALST@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AF_ALST@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_3
LBB0_16:
	mov	w0, #0
	str	xzr, [x19, #16]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_SHR,4,2                    ; @BLK_SHR
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MFT 0x%X is not in use"

	.comm	_AT_DATA,4,2                    ; @AT_DATA
l_.str.1:                               ; @.str.1
	.asciz	"no $DATA in MFT 0x%X"

	.comm	_AF_ALST,4,2                    ; @AF_ALST
	.no_dead_strip	_init_file
.subsections_via_symbols
