	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uw_thread_wait
_uw_thread_wait:                        ## @uw_thread_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_PIDGET
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_thr_to_lwp
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, %edi
	callq	_PIDGET
	testq	%rax, %rax
	jg	LBB0_4
## %bb.3:
	movl	$-1, %edi
	callq	_pid_to_ptid
	movl	%eax, %ebx
LBB0_4:
	movq	_base_ops@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_CALL_BASE
	movq	(%r14), %rax
	movq	_TARGET_WAITKIND_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	8(%r14), %rax
	movq	_TARGET_SIGNAL_TRAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_libthread_stub
LBB0_7:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lwp_to_thr                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_base_ops,8,3                   ## @base_ops
	.comm	_TARGET_WAITKIND_STOPPED,8,3    ## @TARGET_WAITKIND_STOPPED
	.comm	_TARGET_SIGNAL_TRAP,8,3         ## @TARGET_SIGNAL_TRAP
	.no_dead_strip	_uw_thread_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uw_thread_wait
_uw_thread_wait:                        ; @uw_thread_wait
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_PIDGET
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_thr_to_lwp
	mov	x20, x0
LBB0_2:
	mov	x0, x20
	bl	_PIDGET
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.3:
	mov	w0, #-1
	bl	_pid_to_ptid
	mov	x20, x0
LBB0_4:
Lloh0:
	adrp	x8, _base_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _base_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x20, x0
	bl	_CALL_BASE
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _TARGET_WAITKIND_STOPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TARGET_WAITKIND_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _TARGET_SIGNAL_TRAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TARGET_SIGNAL_TRAP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_libthread_stub
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lwp_to_thr
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_base_ops,8,3                   ; @base_ops
	.comm	_TARGET_WAITKIND_STOPPED,8,3    ; @TARGET_WAITKIND_STOPPED
	.comm	_TARGET_SIGNAL_TRAP,8,3         ; @TARGET_SIGNAL_TRAP
	.no_dead_strip	_uw_thread_wait
.subsections_via_symbols
