	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	callq	_OpenVolume
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_BackupBootSector
	movq	16(%rbx), %rdi
	callq	_InstallBootSector
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	8(%rbx), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	__tprintf
	xorl	%eax, %eax
	callq	_CloseVolume
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syntax: install x: [fs_type]\nwhere fs_type is fat or fat32\n"

L_.str.1:                               ## @.str.1
	.asciz	"You must now copy freeldr.sys & freeldr.ini to %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	bl	__tprintf
	b	LBB0_4
LBB0_2:
	mov	x19, x1
	ldr	x0, [x1, #8]
	bl	_OpenVolume
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_BackupBootSector
	ldr	x0, [x19, #16]
	bl	_InstallBootSector
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	ldr	x8, [x19, #8]
	str	x8, [sp]
	bl	__tprintf
	bl	_CloseVolume
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syntax: install x: [fs_type]\nwhere fs_type is fat or fat32\n"

l_.str.1:                               ; @.str.1
	.asciz	"You must now copy freeldr.sys & freeldr.ini to %s.\n"

.subsections_via_symbols
