	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_puffs_fstest_unmount           ## -- Begin function puffs_fstest_unmount
	.p2align	4, 0x90
_puffs_fstest_unmount:                  ## @puffs_fstest_unmount
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	_theargs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rump_sys_unmount
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_rump_sys_rmdir
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%r12), %edi
	movq	_WNOHANG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rsi
	callq	_waitpid
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jg	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	movl	$10, %edi
	callq	_usleep
	movl	(%r12), %edi
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rsi
	callq	_waitpid
	testq	%rax, %rax
	jg	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	movq	_SIGKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_usleep
	leaq	-36(%rbp), %rdi
	callq	_wait
	leaq	L_.str(%rip), %rdi
	callq	_rmdir
LBB0_5:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_theargs,8,3                    ## @theargs
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGKILL,4,2                    ## @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p2kffsfake"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_puffs_fstest_unmount           ; -- Begin function puffs_fstest_unmount
	.p2align	2
_puffs_fstest_unmount:                  ; @puffs_fstest_unmount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _theargs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _theargs@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_signal
	mov	x0, x19
	mov	x1, x20
	bl	_rump_sys_unmount
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_rump_sys_rmdir
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x21]
Lloh9:
	adrp	x19, _WNOHANG@GOTPAGE
Lloh10:
	ldr	x19, [x19, _WNOHANG@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x1, sp, #12
	bl	_waitpid
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.3:
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_kill
	mov	w0, #10
	bl	_usleep
	ldr	w0, [x21]
	ldr	w2, [x19]
	add	x1, sp, #12
	bl	_waitpid
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _SIGKILL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGKILL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_kill
	mov	w0, #500
	bl	_usleep
	add	x0, sp, #12
	bl	_wait
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rmdir
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_theargs,8,3                    ; @theargs
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGKILL,4,2                    ; @SIGKILL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p2kffsfake"

.subsections_via_symbols
