	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread
_thread:                                ## @thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_uobj@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_mutex_enter
	movq	_threadrun@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_tcv@GOTPCREL(%rip), %rdi
	callq	_cv_signal
	movq	_PG_WANTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_testpg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	orl	%eax, (%rdi)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_UVM_UNLOCK_AND_WAIT
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kthread_exit                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_uobj,8,3                       ## @uobj
	.comm	_threadrun,4,2                  ## @threadrun
	.comm	_tcv,4,2                        ## @tcv
	.comm	_PG_WANTED,4,2                  ## @PG_WANTED
	.comm	_testpg,8,3                     ## @testpg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tw"

	.no_dead_strip	_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread
_thread:                                ; @thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _uobj@GOTPAGE
Lloh1:
	ldr	x19, [x19, _uobj@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_mutex_enter
Lloh2:
	adrp	x8, _threadrun@GOTPAGE
Lloh3:
	ldr	x8, [x8, _threadrun@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
Lloh5:
	adrp	x0, _tcv@GOTPAGE
Lloh6:
	ldr	x0, [x0, _tcv@GOTPAGEOFF]
	bl	_cv_signal
Lloh7:
	adrp	x8, _PG_WANTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PG_WANTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _testpg@GOTPAGE
Lloh11:
	ldr	x9, [x9, _testpg@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x9]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	w4, #0
	bl	_UVM_UNLOCK_AND_WAIT
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kthread_exit
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uobj,8,3                       ; @uobj
	.comm	_threadrun,4,2                  ; @threadrun
	.comm	_tcv,4,2                        ; @tcv
	.comm	_PG_WANTED,4,2                  ; @PG_WANTED
	.comm	_testpg,8,3                     ; @testpg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tw"

	.no_dead_strip	_thread
.subsections_via_symbols
