	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function testbody
_testbody:                              ## @testbody
	.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
	movl	%edi, %r14d
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_srandom
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	xorl	%eax, %eax
	callq	_rump_init
	movq	_damtx@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	_dacv@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movq	_respondthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	leaq	L_.str.1(%rip), %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	_ITERATIONS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	leaq	-48(%rbp), %rbx
	leaq	L_.str.1(%rip), %r15
	movq	_damtx@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_unfixup
	movq	%r12, %rdi
	callq	_pthread_mutex_lock
	movq	_dafd@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	incl	%r13d
	movq	_ITERATIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_tests_makegarbage
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_fixup
	movq	_MOUNT_PUFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	$4, %r8d
	callq	_rump_sys_mount
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_pthread_mutex_lock
	movl	-48(%rbp), %eax
	movq	_dafd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_dacv@GOTPCREL(%rip), %rdi
	callq	_pthread_cond_signal
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_rump_sys_stat
	movq	_MNT_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rump_sys_unmount
	jmp	LBB0_4
LBB0_5:
	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	"test seeded RNG with %lu\n"

	.comm	_damtx,4,2                      ## @damtx
	.comm	_dacv,4,2                       ## @dacv
	.comm	_respondthread,4,2              ## @respondthread
L_.str.1:                               ## @.str.1
	.asciz	"/mnt"

	.comm	_ITERATIONS,4,2                 ## @ITERATIONS
	.comm	_MOUNT_PUFFS,4,2                ## @MOUNT_PUFFS
	.comm	_dafd,4,2                       ## @dafd
	.comm	_MNT_FORCE,4,2                  ## @MNT_FORCE
	.no_dead_strip	_testbody
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function testbody
_testbody:                              ; @testbody
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	x0, #0
	bl	_time
	mov	x20, x0
	bl	_srandom
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printf
	bl	_rump_init
Lloh2:
	adrp	x0, _damtx@GOTPAGE
Lloh3:
	ldr	x0, [x0, _damtx@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_mutex_init
Lloh4:
	adrp	x0, _dacv@GOTPAGE
Lloh5:
	ldr	x0, [x0, _dacv@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
Lloh6:
	adrp	x8, _respondthread@GOTPAGE
Lloh7:
	ldr	x8, [x8, _respondthread@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
Lloh11:
	adrp	x23, _ITERATIONS@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ITERATIONS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w24, #0
Lloh13:
	adrp	x25, _MOUNT_PUFFS@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MOUNT_PUFFS@GOTPAGEOFF]
Lloh15:
	adrp	x20, _damtx@GOTPAGE
Lloh16:
	ldr	x20, [x20, _damtx@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.1@PAGE
Lloh18:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh19:
	adrp	x26, _dafd@GOTPAGE
Lloh20:
	ldr	x26, [x26, _dafd@GOTPAGEOFF]
Lloh21:
	adrp	x22, _dacv@GOTPAGE
Lloh22:
	ldr	x22, [x22, _dacv@GOTPAGEOFF]
	mov	w27, #-1
Lloh23:
	adrp	x28, _MNT_FORCE@GOTPAGE
Lloh24:
	ldr	x28, [x28, _MNT_FORCE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_unfixup
	mov	x0, x20
	bl	_pthread_mutex_lock
	str	w27, [x26]
	mov	x0, x20
	bl	_pthread_mutex_unlock
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #4
	bl	_tests_makegarbage
	add	x1, sp, #8
	mov	x0, x19
	bl	_fixup
	ldr	w0, [x25]
	add	x3, sp, #8
	mov	x1, x21
	mov	w2, #0
	mov	w4, #4
	bl	_rump_sys_mount
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	w8, [sp, #8]
	str	w8, [x26]
	mov	x0, x22
	bl	_pthread_cond_signal
	mov	x0, x20
	bl	_pthread_mutex_unlock
	mov	x1, sp
	mov	x0, x21
	bl	_rump_sys_stat
	ldr	w1, [x28]
	mov	x0, x21
	bl	_rump_sys_unmount
	b	LBB0_2
LBB0_5:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test seeded RNG with %lu\n"

	.comm	_damtx,4,2                      ; @damtx
	.comm	_dacv,4,2                       ; @dacv
	.comm	_respondthread,4,2              ; @respondthread
l_.str.1:                               ; @.str.1
	.asciz	"/mnt"

	.comm	_ITERATIONS,4,2                 ; @ITERATIONS
	.comm	_MOUNT_PUFFS,4,2                ; @MOUNT_PUFFS
	.comm	_dafd,4,2                       ; @dafd
	.comm	_MNT_FORCE,4,2                  ; @MNT_FORCE
	.no_dead_strip	_testbody
.subsections_via_symbols
