	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function donewfs
_donewfs:                               ## @donewfs
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, (%rsi)
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rcx
	xorl	%edx, %edx
	callq	_socketpair
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_childfail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-68(%rbp), %edi
	callq	_close
	movl	-72(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_snprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.6:
	movq	(%r14), %rdi
	movq	%r14, %rsi
	callq	_execvp
	cmpl	$-1, %eax
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %edi
	callq	_close
	movl	-68(%rbp), %edi
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_xread
	cmpl	$8, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	movq	-64(%rbp), %rdx
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdx
	jbe	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	-64(%rbp), %rdx
LBB0_11:
	movl	-68(%rbp), %edi
	movq	8(%r13), %rsi
	xorl	%eax, %eax
	callq	_xread
	cltq
	cmpq	%rax, -64(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_13:
	movl	-68(%rbp), %edi
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_xread
	cmpl	$8, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_15:
	movq	-64(%rbp), %rdx
	cmpq	(%r14), %rdx
	jbe	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	-64(%rbp), %rdx
LBB0_17:
	movl	-68(%rbp), %edi
	movq	16(%r13), %rsi
	xorl	%eax, %eax
	callq	_xread
	cltq
	cmpq	%rax, -64(%rbp)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_19:
	movl	-68(%rbp), %edi
	leaq	-92(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_xread
	cmpl	$4, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_21:
	movl	-68(%rbp), %edi
	addq	$24, %r12
	movl	$4, %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_xread
	cmpl	$4, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_23:
	movl	24(%r13), %edi
	callq	_malloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	32(%r13), %rax
LBB0_25:
	movl	-68(%rbp), %edi
	movl	(%r12), %edx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_xread
	cmpl	(%r12), %eax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_27:
	movl	-68(%rbp), %edi
	xorl	%ebx, %ebx
	movl	$4, %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_xread
	cmpl	$4, %eax
	je	LBB0_29
## %bb.28:
	leaq	L_.str.12(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_29:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 44(%r13)
	movl	-68(%rbp), %eax
	movl	%eax, 40(%r13)
	movq	16(%r13), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_strlcpy
	movq	_theargs@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	movq	%r13, (%r15)
	jmp	LBB0_30
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_childfail,4,2                  ## @childfail
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

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

L_.str.2:                               ## @.str.2
	.asciz	"mp 1 %zd"

	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
L_.str.3:                               ## @.str.3
	.asciz	"mntpath > MAXPATHLEN"

L_.str.4:                               ## @.str.4
	.asciz	"mp 2"

L_.str.5:                               ## @.str.5
	.asciz	"fn 1"

L_.str.6:                               ## @.str.6
	.asciz	"devpath > MAXPATHLEN"

L_.str.7:                               ## @.str.7
	.asciz	"fn 2"

L_.str.8:                               ## @.str.8
	.asciz	"mntflags"

L_.str.9:                               ## @.str.9
	.asciz	"puffstest_args len"

L_.str.10:                              ## @.str.10
	.asciz	"malloc"

L_.str.11:                              ## @.str.11
	.asciz	"puffstest_args"

L_.str.12:                              ## @.str.12
	.asciz	"pflags"

	.comm	_theargs,8,3                    ## @theargs
	.no_dead_strip	_donewfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function donewfs
_donewfs:                               ; @donewfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x5
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	xzr, [x1]
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh3:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #32
	mov	w2, #0
	bl	_socketpair
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _childfail@GOTPAGE
Lloh13:
	ldr	x8, [x8, _childfail@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_signal
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w0, [sp, #36]
	bl	_close
	ldr	w3, [sp, #32]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #4
	bl	_snprintf
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #40
	mov	w2, #1
	bl	_setenv
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x23]
	mov	x1, x23
	bl	_execvp
	cmn	w0, #1
LBB0_6:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_7:
	ldr	x8, [sp, #56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	w0, [sp, #32]
	bl	_close
	ldr	w0, [sp, #36]
	mov	w8, #8
	add	x9, sp, #40
	stp	x9, x8, [sp]
	bl	_xread
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #8
	b.eq	LBB0_11
; %bb.10:
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	ldr	x8, [sp, #40]
Lloh27:
	adrp	x23, _MAXPATHLEN@GOTPAGE
Lloh28:
	ldr	x23, [x23, _MAXPATHLEN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ls	LBB0_13
; %bb.12:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x8, [sp, #40]
LBB0_13:
	ldr	w0, [sp, #36]
	ldr	x9, [x21, #8]
	stp	x9, x8, [sp]
	bl	_xread
	ldr	x8, [sp, #40]
	cmp	x8, w0, sxtw
	b.eq	LBB0_15
; %bb.14:
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_15:
	ldr	w0, [sp, #36]
	mov	w8, #8
	add	x9, sp, #40
	stp	x9, x8, [sp]
	bl	_xread
	cmp	w0, #8
	b.eq	LBB0_17
; %bb.16:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_17:
	ldr	x8, [sp, #40]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ls	LBB0_19
; %bb.18:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x8, [sp, #40]
LBB0_19:
	ldr	w0, [sp, #36]
	ldr	x9, [x21, #16]
	stp	x9, x8, [sp]
	bl	_xread
	ldr	x8, [sp, #40]
	cmp	x8, w0, sxtw
	b.eq	LBB0_21
; %bb.20:
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_21:
	ldr	w0, [sp, #36]
	mov	w8, #4
	add	x9, sp, #28
	stp	x9, x8, [sp]
	bl	_xread
	cmp	w0, #4
	b.eq	LBB0_23
; %bb.22:
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_23:
	ldr	w0, [sp, #36]
	add	x23, x21, #24
	mov	w8, #4
	stp	x23, x8, [sp]
	bl	_xread
	cmp	w0, #4
	b.eq	LBB0_25
; %bb.24:
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_25:
	ldr	w0, [x21, #24]
	bl	_malloc
	str	x0, [x21, #32]
	cbnz	x0, LBB0_27
; %bb.26:
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [x21, #32]
LBB0_27:
	ldr	w8, [sp, #36]
	ldr	w9, [x23]
	stp	x0, x9, [sp]
	mov	x0, x8
	bl	_xread
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_29
; %bb.28:
Lloh45:
	adrp	x1, l_.str.11@PAGE
Lloh46:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_29:
	ldr	w0, [sp, #36]
	mov	w8, #4
	stp	x21, x8, [sp]
	bl	_xread
	cmp	w0, #4
	b.eq	LBB0_31
; %bb.30:
Lloh47:
	adrp	x1, l_.str.12@PAGE
Lloh48:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_31:
	ldr	w8, [sp, #36]
	stp	w8, w22, [x21, #40]
	ldr	x0, [x21, #16]
	mov	x1, x20
	mov	w2, #8
	bl	_strlcpy
	mov	w0, #0
Lloh49:
	adrp	x8, _theargs@GOTPAGE
Lloh50:
	ldr	x8, [x8, _theargs@GOTPAGEOFF]
Lloh51:
	str	x21, [x8]
	str	x21, [x19]
	b	LBB0_7
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_childfail,4,2                  ; @childfail
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

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

l_.str.2:                               ; @.str.2
	.asciz	"mp 1 %zd"

	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
l_.str.3:                               ; @.str.3
	.asciz	"mntpath > MAXPATHLEN"

l_.str.4:                               ; @.str.4
	.asciz	"mp 2"

l_.str.5:                               ; @.str.5
	.asciz	"fn 1"

l_.str.6:                               ; @.str.6
	.asciz	"devpath > MAXPATHLEN"

l_.str.7:                               ; @.str.7
	.asciz	"fn 2"

l_.str.8:                               ; @.str.8
	.asciz	"mntflags"

l_.str.9:                               ; @.str.9
	.asciz	"puffstest_args len"

l_.str.10:                              ; @.str.10
	.asciz	"malloc"

l_.str.11:                              ; @.str.11
	.asciz	"puffstest_args"

l_.str.12:                              ; @.str.12
	.asciz	"pflags"

	.comm	_theargs,8,3                    ; @theargs
	.no_dead_strip	_donewfs
.subsections_via_symbols
