	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rumptest_alloc                 ## -- Begin function rumptest_alloc
	.p2align	4, 0x90
_rumptest_alloc:                        ## @rumptest_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MUTEX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPL_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_init
	movq	_kcv@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_cv_init
	movq	_PRI_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KTHREAD_MPSAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_hthr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_kthread_create
	addq	$16, %rsp
	movl	(%r15), %eax
	movq	_pool_allocator_nointr@GOTPCREL(%rip), %rbx
	movq	_pp1@GOTPCREL(%rip), %rdi
	leaq	L_.str.2(%rip), %r9
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%rbx
	callq	_pool_init
	addq	$16, %rsp
	movl	(%r15), %eax
	movq	_pp2@GOTPCREL(%rip), %rdi
	leaq	L_.str.3(%rip), %r9
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%rbx
	callq	_pool_init
	addq	$16, %rsp
	movq	_store@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	___arraycount
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PR_NOWAIT@GOTPCREL(%rip), %r15
	movq	_pp1@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	___arraycount
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pool_get
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r13), %rdi
	cmpq	$0, (%rdi,%rbx,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_panic
	movq	(%r13), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_enter
	movq	_curstat@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.6:
	movq	_kcv@GOTPCREL(%rip), %r15
	movq	_mtx@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_cv_wait
	cmpq	$0, (%rbx)
	je	LBB0_7
LBB0_8:
	movq	_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_exit
	xorl	%ebx, %ebx
	leaq	L_.str.5(%rip), %r15
	movq	_PR_NOWAIT@GOTPCREL(%rip), %r12
	movq	_pp2@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$-1024, %eax                    ## imm = 0xFC00
	cmpq	%r14, %rax
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_panic
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_pool_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$97, (%rax)
	addq	$1024, %rbx                     ## imm = 0x400
	jmp	LBB0_9
LBB0_12:
	movq	_mtx@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_enter
	movq	_curstat@GOTPCREL(%rip), %rax
	incq	(%rax)
	movq	_kcv@GOTPCREL(%rip), %rdi
	callq	_cv_signal
	movq	%rbx, %rdi
	callq	_mutex_exit
	movq	_PR_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pp2@GOTPCREL(%rip), %rdi
	callq	_pool_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_panic                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mtx,4,2                        ## @mtx
	.comm	_MUTEX_DEFAULT,4,2              ## @MUTEX_DEFAULT
	.comm	_IPL_NONE,4,2                   ## @IPL_NONE
	.comm	_kcv,4,2                        ## @kcv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"venailu"

	.comm	_PRI_NONE,4,2                   ## @PRI_NONE
	.comm	_KTHREAD_MPSAFE,4,2             ## @KTHREAD_MPSAFE
	.comm	_hthr,4,2                       ## @hthr
L_.str.1:                               ## @.str.1
	.asciz	"h"

	.comm	_pp1,4,2                        ## @pp1
L_.str.2:                               ## @.str.2
	.asciz	"vara-allas"

	.comm	_pool_allocator_nointr,4,2      ## @pool_allocator_nointr
	.comm	_pp2,4,2                        ## @pp2
L_.str.3:                               ## @.str.3
	.asciz	"allas"

	.comm	_store,8,3                      ## @store
	.comm	_PR_NOWAIT,4,2                  ## @PR_NOWAIT
L_.str.4:                               ## @.str.4
	.asciz	"pool_get store failed"

	.comm	_curstat,8,3                    ## @curstat
L_.str.5:                               ## @.str.5
	.asciz	"managed to allocate over limit"

	.comm	_PR_WAITOK,4,2                  ## @PR_WAITOK
L_.str.6:                               ## @.str.6
	.asciz	"pool get PR_WAITOK failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rumptest_alloc                 ; -- Begin function rumptest_alloc
	.p2align	2
_rumptest_alloc:                        ; @rumptest_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _MUTEX_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MUTEX_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _IPL_NONE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IPL_NONE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x0, _mtx@GOTPAGE
Lloh6:
	ldr	x0, [x0, _mtx@GOTPAGEOFF]
	bl	_mutex_init
Lloh7:
	adrp	x0, _kcv@GOTPAGE
Lloh8:
	ldr	x0, [x0, _kcv@GOTPAGEOFF]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cv_init
Lloh11:
	adrp	x8, _PRI_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PRI_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _KTHREAD_MPSAFE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KTHREAD_MPSAFE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _hthr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hthr@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x6, l_.str.1@PAGE
Lloh21:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x2, #0
	mov	x4, #0
	mov	x5, #0
	bl	_kthread_create
	ldr	w7, [x21]
Lloh22:
	adrp	x0, _pp1@GOTPAGE
Lloh23:
	ldr	x0, [x0, _pp1@GOTPAGEOFF]
Lloh24:
	adrp	x5, l_.str.2@PAGE
Lloh25:
	add	x5, x5, l_.str.2@PAGEOFF
Lloh26:
	adrp	x20, _pool_allocator_nointr@GOTPAGE
Lloh27:
	ldr	x20, [x20, _pool_allocator_nointr@GOTPAGEOFF]
	mov	w1, #1024
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x6, x20
	bl	_pool_init
	ldr	w7, [x21]
Lloh28:
	adrp	x0, _pp2@GOTPAGE
Lloh29:
	ldr	x0, [x0, _pp2@GOTPAGEOFF]
Lloh30:
	adrp	x5, l_.str.3@PAGE
Lloh31:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	w1, #1024
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x6, x20
	bl	_pool_init
Lloh32:
	adrp	x23, _store@GOTPAGE
Lloh33:
	ldr	x23, [x23, _store@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	___arraycount
Lloh34:
	adrp	x22, _PR_NOWAIT@GOTPAGE
Lloh35:
	ldr	x22, [x22, _PR_NOWAIT@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
Lloh36:
	adrp	x20, _pp1@GOTPAGE
Lloh37:
	ldr	x20, [x20, _pp1@GOTPAGEOFF]
Lloh38:
	adrp	x21, l_.str.4@PAGE
Lloh39:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	___arraycount
	cmp	x24, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pool_get
	ldr	x8, [x23]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x0, [x23]
	ldr	x8, [x0, x9]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_panic
	ldr	x0, [x23]
	b	LBB0_2
LBB0_5:
Lloh40:
	adrp	x0, _mtx@GOTPAGE
Lloh41:
	ldr	x0, [x0, _mtx@GOTPAGEOFF]
	bl	_mutex_enter
Lloh42:
	adrp	x23, _curstat@GOTPAGE
Lloh43:
	ldr	x23, [x23, _curstat@GOTPAGEOFF]
	ldr	x8, [x23]
	cbnz	x8, LBB0_8
; %bb.6:
Lloh44:
	adrp	x20, _kcv@GOTPAGE
Lloh45:
	ldr	x20, [x20, _kcv@GOTPAGEOFF]
Lloh46:
	adrp	x21, _mtx@GOTPAGE
Lloh47:
	ldr	x21, [x21, _mtx@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cv_wait
	ldr	x8, [x23]
	cbz	x8, LBB0_7
LBB0_8:
Lloh48:
	adrp	x0, _mtx@GOTPAGE
Lloh49:
	ldr	x0, [x0, _mtx@GOTPAGEOFF]
	bl	_mutex_exit
	mov	x24, #0
Lloh50:
	adrp	x20, _pp2@GOTPAGE
Lloh51:
	ldr	x20, [x20, _pp2@GOTPAGEOFF]
	mov	w25, #97
Lloh52:
	adrp	x21, l_.str.5@PAGE
Lloh53:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x24, #0xfffffc00
	cmp	x8, x19
	b.ls	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_panic
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pool_get
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	strb	w25, [x0]
	add	x24, x24, #1024
	b	LBB0_9
LBB0_13:
Lloh54:
	adrp	x19, _mtx@GOTPAGE
Lloh55:
	ldr	x19, [x19, _mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_enter
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
Lloh56:
	adrp	x0, _kcv@GOTPAGE
Lloh57:
	ldr	x0, [x0, _kcv@GOTPAGEOFF]
	bl	_cv_signal
	mov	x0, x19
	bl	_mutex_exit
Lloh58:
	adrp	x8, _PR_WAITOK@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PR_WAITOK@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x0, _pp2@GOTPAGE
Lloh62:
	ldr	x0, [x0, _pp2@GOTPAGEOFF]
	bl	_pool_get
	cbz	x0, LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh63:
	adrp	x0, l_.str.6@PAGE
Lloh64:
	add	x0, x0, l_.str.6@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_panic
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_mtx,4,2                        ; @mtx
	.comm	_MUTEX_DEFAULT,4,2              ; @MUTEX_DEFAULT
	.comm	_IPL_NONE,4,2                   ; @IPL_NONE
	.comm	_kcv,4,2                        ; @kcv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"venailu"

	.comm	_PRI_NONE,4,2                   ; @PRI_NONE
	.comm	_KTHREAD_MPSAFE,4,2             ; @KTHREAD_MPSAFE
	.comm	_hthr,4,2                       ; @hthr
l_.str.1:                               ; @.str.1
	.asciz	"h"

	.comm	_pp1,4,2                        ; @pp1
l_.str.2:                               ; @.str.2
	.asciz	"vara-allas"

	.comm	_pool_allocator_nointr,4,2      ; @pool_allocator_nointr
	.comm	_pp2,4,2                        ; @pp2
l_.str.3:                               ; @.str.3
	.asciz	"allas"

	.comm	_store,8,3                      ; @store
	.comm	_PR_NOWAIT,4,2                  ; @PR_NOWAIT
l_.str.4:                               ; @.str.4
	.asciz	"pool_get store failed"

	.comm	_curstat,8,3                    ; @curstat
l_.str.5:                               ; @.str.5
	.asciz	"managed to allocate over limit"

	.comm	_PR_WAITOK,4,2                  ; @PR_WAITOK
l_.str.6:                               ; @.str.6
	.asciz	"pool get PR_WAITOK failed"

.subsections_via_symbols
