	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2k_ffs_fstest_newfs           ## -- Begin function p2k_ffs_fstest_newfs
	.p2align	4, 0x90
_p2k_ffs_fstest_newfs:                  ## @p2k_ffs_fstest_newfs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_rump_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	movl	%ebx, %ecx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %r8
	callq	_ffs_fstest_newfs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.3(%rip), %rdi
	callq	___UNCONST
	movq	%rax, -96(%rbp)
	movq	%r14, %rdi
	callq	___UNCONST
	movq	%rax, -88(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	___UNCONST
	movq	%rax, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-96(%rbp), %r9
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	callq	_donewfs
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ffs_fstest_delfs
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p2kffsfake"

	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"P2K_NODETACH"

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

L_.str.3:                               ## @.str.3
	.asciz	"rump_ffs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2k_ffs_fstest_newfs           ; -- Begin function p2k_ffs_fstest_newfs
	.p2align	2
_p2k_ffs_fstest_newfs:                  ; @p2k_ffs_fstest_newfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_rump_init
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_ffs_fstest_newfs
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #511
	bl	_mkdir
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_5
LBB0_3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_setenv
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	___UNCONST
	str	x0, [sp]
	mov	x0, x23
	bl	___UNCONST
	str	x0, [sp, #8]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	___UNCONST
	stp	x0, xzr, [sp, #16]
	mov	x5, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_donewfs
	mov	x24, x0
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_ffs_fstest_delfs
LBB0_5:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p2kffsfake"

	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"P2K_NODETACH"

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

l_.str.3:                               ; @.str.3
	.asciz	"rump_ffs"

.subsections_via_symbols
