	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basic_test
_basic_test:                            ## @basic_test
	.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	$24, %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	%r8, %r12
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	movl	%eax, %edi
	callq	_RL
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	___UNCONST
	movl	%eax, -48(%rbp)
	movq	_MOUNT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	leaq	-48(%rbp), %rcx
	movl	$4, %r8d
	callq	_rump_sys_mount
	movl	%eax, %edi
	callq	_RL
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	testl	%ebx, %ebx
	leaq	L_.str(%rip), %rdi
	cmoveq	%r15, %rdi
	callq	*%r12
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_remount_ro
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	testl	%ebx, %ebx
	leaq	L_.str(%rip), %rdi
	cmoveq	%r15, %rdi
	callq	*%r14
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_rump_sys_unmount
	movl	%eax, %edi
	callq	_RL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/nullm"

	.comm	_MOUNT_NULL,4,2                 ## @MOUNT_NULL
	.no_dead_strip	_basic_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basic_test
_basic_test:                            ; @basic_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
	mov	x0, x25
	mov	w1, #511
	bl	_rump_sys_mkdir
	bl	_RL
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	bl	___UNCONST
	str	w0, [sp, #8]
Lloh2:
	adrp	x8, _MOUNT_NULL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MOUNT_NULL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x3, sp, #8
	mov	x1, x25
	mov	w2, #0
	mov	w4, #4
	bl	_rump_sys_mount
	bl	_RL
LBB0_2:
Lloh5:
	adrp	x25, l_.str@PAGE
Lloh6:
	add	x25, x25, l_.str@PAGEOFF
	cbz	x24, LBB0_4
; %bb.3:
	cmp	w19, #0
	csel	x0, x21, x25, eq
	blr	x24
LBB0_4:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_remount_ro
	cbz	x20, LBB0_6
; %bb.5:
	cmp	w19, #0
	csel	x0, x21, x25, eq
	blr	x20
LBB0_6:
	cbz	w19, LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_rump_sys_unmount
	bl	_RL
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/nullm"

	.comm	_MOUNT_NULL,4,2                 ; @MOUNT_NULL
	.no_dead_strip	_basic_test
.subsections_via_symbols
