	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hthr
_hthr:                                  ## @hthr
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_enter
	movq	_curstat@GOTPCREL(%rip), %r15
	incl	(%r15)
	movq	_kcv@GOTPCREL(%rip), %rdi
	callq	_cv_signal
	cmpl	$1, (%r15)
	jg	LBB0_3
## %bb.1:
	movq	_kcv@GOTPCREL(%rip), %r14
	movq	_mtx@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cv_wait
	cmpl	$2, (%r15)
	jl	LBB0_2
LBB0_3:
	movq	_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_exit
	movq	_kernel_map@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_VM_MAP_WANTVA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_kpause
	movq	(%r14), %rax
	movl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_6:
	movq	_store@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	___arraycount
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	_pp1@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_pool_put
	incq	%rbx
	movq	(%r15), %rdi
	callq	___arraycount
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kthread_exit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mtx,4,2                        ## @mtx
	.comm	_curstat,4,2                    ## @curstat
	.comm	_kcv,4,2                        ## @kcv
	.comm	_kernel_map,8,3                 ## @kernel_map
	.comm	_VM_MAP_WANTVA,4,2              ## @VM_MAP_WANTVA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"take5"

	.comm	_store,8,3                      ## @store
	.comm	_pp1,4,2                        ## @pp1
	.no_dead_strip	_hthr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hthr
_hthr:                                  ; @hthr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mtx@GOTPAGEOFF]
	bl	_mutex_enter
Lloh2:
	adrp	x21, _curstat@GOTPAGE
Lloh3:
	ldr	x21, [x21, _curstat@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh4:
	adrp	x0, _kcv@GOTPAGE
Lloh5:
	ldr	x0, [x0, _kcv@GOTPAGEOFF]
	bl	_cv_signal
	ldr	w8, [x21]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x19, _kcv@GOTPAGE
Lloh7:
	ldr	x19, [x19, _kcv@GOTPAGEOFF]
Lloh8:
	adrp	x20, _mtx@GOTPAGE
Lloh9:
	ldr	x20, [x20, _mtx@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_cv_wait
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_2
LBB0_3:
Lloh10:
	adrp	x0, _mtx@GOTPAGE
Lloh11:
	ldr	x0, [x0, _mtx@GOTPAGEOFF]
	bl	_mutex_exit
Lloh12:
	adrp	x20, _kernel_map@GOTPAGE
Lloh13:
	ldr	x20, [x20, _kernel_map@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh14:
	adrp	x21, _VM_MAP_WANTVA@GOTPAGE
Lloh15:
	ldr	x21, [x21, _VM_MAP_WANTVA@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
Lloh16:
	adrp	x19, l_.str@PAGE
Lloh17:
	add	x19, x19, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	x3, #0
	bl	_kpause
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_6:
Lloh18:
	adrp	x20, _store@GOTPAGE
Lloh19:
	ldr	x20, [x20, _store@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	___arraycount
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
Lloh20:
	adrp	x19, _pp1@GOTPAGE
Lloh21:
	ldr	x19, [x19, _pp1@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_pool_put
	add	x21, x21, #1
	ldr	x0, [x20]
	bl	___arraycount
	cmp	x21, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_kthread_exit
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_mtx,4,2                        ; @mtx
	.comm	_curstat,4,2                    ; @curstat
	.comm	_kcv,4,2                        ; @kcv
	.comm	_kernel_map,8,3                 ; @kernel_map
	.comm	_VM_MAP_WANTVA,4,2              ; @VM_MAP_WANTVA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"take5"

	.comm	_store,8,3                      ; @store
	.comm	_pp1,4,2                        ; @pp1
	.no_dead_strip	_hthr
.subsections_via_symbols
