	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rumptest_busypage              ## -- Begin function rumptest_busypage
	.p2align	4, 0x90
_rumptest_busypage:                     ## @rumptest_busypage
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tcv@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_cv_init
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_uao_create
	movq	_uobj@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	(%rax), %edi
	callq	_mutex_enter
	movq	(%r14), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_uvm_pagealloc
	movq	_testpg@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_mutex_exit
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_panic
LBB0_2:
	movq	_PRI_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KTHREAD_MUSTJOIN@GOTPCREL(%rip), %rax
	movq	_KTHREAD_MPSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %r9
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kthread_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_panic
LBB0_4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_mutex_enter
	movq	_threadrun@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_7
## %bb.5:
	movq	_tcv@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cv_wait
	cmpl	$0, (%r15)
	je	LBB0_6
LBB0_7:
	movq	_testpg@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_uvm_page_unbusy
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_mutex_exit
	movq	-32(%rbp), %rdi
	callq	_kthread_join
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_panic
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcv,4,2                        ## @tcv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"napina"

	.comm	_uobj,8,3                       ## @uobj
	.comm	_testpg,8,3                     ## @testpg
L_.str.1:                               ## @.str.1
	.asciz	"couldn't create vm page"

	.comm	_PRI_NONE,4,2                   ## @PRI_NONE
	.comm	_KTHREAD_MUSTJOIN,4,2           ## @KTHREAD_MUSTJOIN
	.comm	_KTHREAD_MPSAFE,4,2             ## @KTHREAD_MPSAFE
	.comm	_thread,4,2                     ## @thread
L_.str.2:                               ## @.str.2
	.asciz	"jointest"

L_.str.3:                               ## @.str.3
	.asciz	"thread creation failed: %d"

	.comm	_threadrun,4,2                  ## @threadrun
L_.str.4:                               ## @.str.4
	.asciz	"thread join failed: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rumptest_busypage              ; -- Begin function rumptest_busypage
	.p2align	2
_rumptest_busypage:                     ; @rumptest_busypage
	.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
Lloh0:
	adrp	x0, _tcv@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tcv@GOTPAGEOFF]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cv_init
	mov	w0, #1
	mov	w1, #0
	bl	_uao_create
Lloh4:
	adrp	x20, _uobj@GOTPAGE
Lloh5:
	ldr	x20, [x20, _uobj@GOTPAGEOFF]
	str	x0, [x20]
	ldr	w0, [x0]
	bl	_mutex_enter
	ldr	x0, [x20]
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_uvm_pagealloc
Lloh6:
	adrp	x19, _testpg@GOTPAGE
Lloh7:
	ldr	x19, [x19, _testpg@GOTPAGEOFF]
	str	x0, [x19]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_mutex_exit
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
Lloh10:
	adrp	x8, _PRI_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PRI_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _KTHREAD_MUSTJOIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KTHREAD_MUSTJOIN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _KTHREAD_MPSAFE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KTHREAD_MPSAFE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh19:
	adrp	x8, _thread@GOTPAGE
Lloh20:
	ldr	x8, [x8, _thread@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x6, l_.str.2@PAGE
Lloh23:
	add	x6, x6, l_.str.2@PAGEOFF
	add	x5, sp, #8
	mov	x2, #0
	mov	x4, #0
	bl	_kthread_create
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.3:
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_panic
LBB0_4:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_mutex_enter
Lloh26:
	adrp	x21, _threadrun@GOTPAGE
Lloh27:
	ldr	x21, [x21, _threadrun@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_7
; %bb.5:
Lloh28:
	adrp	x19, _tcv@GOTPAGE
Lloh29:
	ldr	x19, [x19, _tcv@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cv_wait
	ldr	w8, [x21]
	cbz	w8, LBB0_6
LBB0_7:
Lloh30:
	adrp	x0, _testpg@GOTPAGE
Lloh31:
	ldr	x0, [x0, _testpg@GOTPAGEOFF]
	mov	w1, #1
	bl	_uvm_page_unbusy
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_mutex_exit
	ldr	x0, [sp, #8]
	bl	_kthread_join
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.8:
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_panic
LBB0_9:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_tcv,4,2                        ; @tcv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"napina"

	.comm	_uobj,8,3                       ; @uobj
	.comm	_testpg,8,3                     ; @testpg
l_.str.1:                               ; @.str.1
	.asciz	"couldn't create vm page"

	.comm	_PRI_NONE,4,2                   ; @PRI_NONE
	.comm	_KTHREAD_MUSTJOIN,4,2           ; @KTHREAD_MUSTJOIN
	.comm	_KTHREAD_MPSAFE,4,2             ; @KTHREAD_MPSAFE
	.comm	_thread,4,2                     ; @thread
l_.str.2:                               ; @.str.2
	.asciz	"jointest"

l_.str.3:                               ; @.str.3
	.asciz	"thread creation failed: %d"

	.comm	_threadrun,4,2                  ; @threadrun
l_.str.4:                               ; @.str.4
	.asciz	"thread join failed: %d"

.subsections_via_symbols
