	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lwp_cond_waitsupp
___lwp_cond_waitsupp:                   ## @__lwp_cond_waitsupp
	.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
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %r12d
	callq	___lwp_cond_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.3:
	movq	_LWP_MUTEX_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	jmp	LBB0_11
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	%r15, %rdi
	callq	_LWP_MutexUnlock
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.9:
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_10:
	movq	%r15, %rdi
	callq	_LWP_MutexLock
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, (%rbx)
	callq	__CPU_ISR_Disable
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	___lwp_threadqueue_csenter
	movq	__thr_executing@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	$0, (%rax)
	movq	%rbx, 16(%rax)
	movl	%r12d, 8(%rax)
	callq	__CPU_ISR_Restore
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___lwp_threadqueue_enqueue
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	movq	(%r13), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_10
	jmp	LBB0_12
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ## @LWP_MUTEX_NULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	__thr_executing,8,3             ## @_thr_executing
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.no_dead_strip	___lwp_cond_waitsupp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lwp_cond_waitsupp
___lwp_cond_waitsupp:                   ; @__lwp_cond_waitsupp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	___lwp_cond_open
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LWP_MUTEX_NULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LWP_MUTEX_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_LWP_MutexUnlock
	cbz	w23, LBB0_9
; %bb.3:
	bl	___lwp_thread_dispatchenable
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
LBB0_4:
	mov	x0, x19
	bl	_LWP_MutexLock
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_5:
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	bl	___lwp_thread_dispatchenable
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	x19, [x21], #8
	bl	__CPU_ISR_Disable
	mov	x0, x21
	bl	___lwp_threadqueue_csenter
Lloh9:
	adrp	x23, __thr_executing@GOTPAGE
Lloh10:
	ldr	x23, [x23, __thr_executing@GOTPAGEOFF]
	ldr	x8, [x23]
	str	xzr, [x8]
	str	x21, [x8, #16]
	str	w22, [x8, #8]
	bl	__CPU_ISR_Restore
	mov	x0, x21
	mov	x1, x20
	bl	___lwp_threadqueue_enqueue
	bl	___lwp_thread_dispatchenable
	ldr	x8, [x23]
	ldr	x20, [x8]
	cbz	x20, LBB0_4
; %bb.10:
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_4
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_MUTEX_NULL,8,3             ; @LWP_MUTEX_NULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	__thr_executing,8,3             ; @_thr_executing
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.no_dead_strip	___lwp_cond_waitsupp
.subsections_via_symbols
