	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_CondInit                   ## -- Begin function LWP_CondInit
	.p2align	4, 0x90
_LWP_CondInit:                          ## @LWP_CondInit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	___lwp_cond_allocate
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	_LWP_MUTEX_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_LWP_THREADQ_MODEFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LWP_STATES_WAITING_FOR_CONDVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	___lwp_threadqueue_init
	movq	_LWP_OBJTYPE_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWP_OBJMASKTYPE
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_LWP_OBJMASKID
	orl	%r12d, %eax
	cltq
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LWP_MUTEX_NULL,4,2             ## @LWP_MUTEX_NULL
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ## @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_CONDVAR,4,2 ## @LWP_STATES_WAITING_FOR_CONDVAR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_LWP_OBJTYPE_COND,4,2           ## @LWP_OBJTYPE_COND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_CondInit                   ; -- Begin function LWP_CondInit
	.p2align	2
_LWP_CondInit:                          ; @LWP_CondInit
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	___lwp_cond_allocate
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _LWP_MUTEX_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_MUTEX_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	add	x0, x0, #4
Lloh3:
	adrp	x8, _LWP_THREADQ_MODEFIFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_THREADQ_MODEFIFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _LWP_STATES_WAITING_FOR_CONDVAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LWP_STATES_WAITING_FOR_CONDVAR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	___lwp_threadqueue_init
Lloh12:
	adrp	x8, _LWP_OBJTYPE_COND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LWP_OBJTYPE_COND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_LWP_OBJMASKTYPE
	mov	x21, x0
	ldr	w0, [x20]
	bl	_LWP_OBJMASKID
	orr	w8, w0, w21
	sxtw	x8, w8
	str	x8, [x19]
	bl	___lwp_thread_dispatchenable
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LWP_MUTEX_NULL,4,2             ; @LWP_MUTEX_NULL
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ; @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_FOR_CONDVAR,4,2 ; @LWP_STATES_WAITING_FOR_CONDVAR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_LWP_OBJTYPE_COND,4,2           ; @LWP_OBJTYPE_COND
.subsections_via_symbols
