	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_makefs                     ## -- Begin function ffs_makefs
	.p2align	4, 0x90
_ffs_makefs:                            ## @ffs_makefs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_debug@GOTPCREL(%rip), %rcx
	movq	_DEBUG_FS_MAKEFS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	callq	_TIMER_START
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ffs_validate
	leaq	L_.str.1(%rip), %rsi
	callq	_TIMER_RESULTS
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	callq	_TIMER_START
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ffs_create_image
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	callq	_TIMER_RESULTS
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	$10, %edi
	callq	_putchar
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	callq	_TIMER_START
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ffs_populate_dir
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
LBB0_8:
	leaq	L_.str.7(%rip), %rsi
	callq	_TIMER_RESULTS
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_bcleanup
LBB0_10:
	movq	8(%rbx), %rdi
	movq	$0, 32(%rdi)
	movups	(%rdi), %xmm0
	movups	%xmm0, 16(%rdi)
	movq	%rbx, %rsi
	callq	_ffs_write_superblock
	movl	(%rbx), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_12:
	movl	$-1, (%rbx)
	leaq	L_.str.9(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_FS_MAKEFS,4,2            ## @DEBUG_FS_MAKEFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffs_makefs: image %s directory %s root %p\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Calculated size of `%s': %lld bytes, %lld inodes\n"

L_.str.3:                               ## @.str.3
	.asciz	"Image file `%s' not created."

L_.str.4:                               ## @.str.4
	.asciz	"ffs_create_image"

	.comm	_UFS_ROOTINO,4,2                ## @UFS_ROOTINO
L_.str.5:                               ## @.str.5
	.asciz	"Populating `%s'\n"

L_.str.6:                               ## @.str.6
	.asciz	"Image file `%s' not populated."

L_.str.7:                               ## @.str.7
	.asciz	"ffs_populate_dir"

L_.str.8:                               ## @.str.8
	.asciz	"Closing `%s'"

L_.str.9:                               ## @.str.9
	.asciz	"Image `%s' complete\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_makefs                     ; -- Begin function ffs_makefs
	.p2align	2
_ffs_makefs:                            ; @ffs_makefs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x23, _debug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _DEBUG_FS_MAKEFS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DEBUG_FS_MAKEFS@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	stp	x22, x21, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_2:
	mov	x0, #0
	bl	_TIMER_START
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ffs_validate
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_TIMER_RESULTS
	ldp	x9, x8, [x20, #24]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	x0, #0
	bl	_TIMER_START
	mov	x0, x19
	mov	x1, x20
	bl	_ffs_create_image
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_4:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_TIMER_RESULTS
Lloh14:
	adrp	x8, _UFS_ROOTINO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UFS_ROOTINO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #10
	bl	_putchar
LBB0_6:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	x0, #0
	bl	_TIMER_START
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ffs_populate_dir
	cbnz	w0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_8:
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, #0
	bl	_TIMER_RESULTS
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_bcleanup
LBB0_10:
	ldr	x0, [x20, #8]
	str	xzr, [x0, #32]
	ldr	q0, [x0]
	str	q0, [x0, #16]
	mov	x1, x20
	bl	_ffs_write_superblock
	ldr	w0, [x20]
	bl	_close
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_12:
	mov	w8, #-1
	str	w8, [x20]
Lloh25:
	adrp	x0, l_.str.9@PAGE
Lloh26:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_printf
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_FS_MAKEFS,4,2            ; @DEBUG_FS_MAKEFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffs_makefs: image %s directory %s root %p\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Calculated size of `%s': %lld bytes, %lld inodes\n"

l_.str.3:                               ; @.str.3
	.asciz	"Image file `%s' not created."

l_.str.4:                               ; @.str.4
	.asciz	"ffs_create_image"

	.comm	_UFS_ROOTINO,4,2                ; @UFS_ROOTINO
l_.str.5:                               ; @.str.5
	.asciz	"Populating `%s'\n"

l_.str.6:                               ; @.str.6
	.asciz	"Image file `%s' not populated."

l_.str.7:                               ; @.str.7
	.asciz	"ffs_populate_dir"

l_.str.8:                               ; @.str.8
	.asciz	"Closing `%s'"

l_.str.9:                               ; @.str.9
	.asciz	"Image `%s' complete\n"

.subsections_via_symbols
