	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_cond_init              ## -- Begin function pthread_cond_init
	.p2align	4, 0x90
_pthread_cond_init:                     ## @pthread_cond_init
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	movq	_PTHREAD_PROCESS_SHARED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	leaq	16(%rax), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movq	$0, 48(%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_sem_init
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_10:
	leaq	20(%r15), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	addq	$24, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_sem_destroy
LBB0_14:
	movq	%r12, %rdi
	callq	_sem_destroy
LBB0_15:
	movq	%r15, %rdi
	callq	_free
LBB0_16:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	jne	LBB0_22
LBB0_17:
	movq	_pte_cond_list_lock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_pte_osMutexLock
	movq	$0, (%r15)
	movq	_pte_cond_list_tail@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	movq	%r15, (%rcx)
LBB0_19:
	movq	%r15, (%rax)
	movq	_pte_cond_list_head@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	%r15, (%rax)
LBB0_21:
	movl	(%rbx), %edi
	callq	_pte_osMutexUnlock
	xorl	%ebx, %ebx
LBB0_22:
	movq	%r15, (%r14)
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PTHREAD_PROCESS_SHARED,8,3     ## @PTHREAD_PROCESS_SHARED
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_pte_cond_list_lock,4,2         ## @pte_cond_list_lock
	.comm	_pte_cond_list_tail,8,3         ## @pte_cond_list_tail
	.comm	_pte_cond_list_head,8,3         ## @pte_cond_list_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_cond_init              ; -- Begin function pthread_cond_init
	.p2align	2
_pthread_cond_init:                     ; @pthread_cond_init
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PTHREAD_PROCESS_SHARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTHREAD_PROCESS_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	add	x22, x0, #16
	stp	xzr, xzr, [x0, #32]
	str	xzr, [x0, #48]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_sem_init
	cbz	x0, LBB0_11
; %bb.7:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
	mov	x20, #0
	cbnz	w21, LBB0_22
	b	LBB0_17
LBB0_11:
	add	x23, x20, #20
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	cbz	x0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_13:
	add	x0, x20, #24
	mov	w1, #0
	bl	_pthread_mutex_init
	cbz	w0, LBB0_17
; %bb.14:
	mov	x21, x0
	mov	x0, x23
	bl	_sem_destroy
LBB0_15:
	mov	x0, x22
	bl	_sem_destroy
LBB0_16:
	mov	x0, x20
	bl	_free
	mov	x20, #0
	cbnz	w21, LBB0_22
LBB0_17:
Lloh16:
	adrp	x21, _pte_cond_list_lock@GOTPAGE
Lloh17:
	ldr	x21, [x21, _pte_cond_list_lock@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_pte_osMutexLock
	str	xzr, [x20]
Lloh18:
	adrp	x8, _pte_cond_list_tail@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pte_cond_list_tail@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x20, #8]
	cbz	x9, LBB0_19
; %bb.18:
	str	x20, [x9]
LBB0_19:
	str	x20, [x8]
Lloh20:
	adrp	x8, _pte_cond_list_head@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pte_cond_list_head@GOTPAGEOFF]
	ldr	x9, [x8]
	cbnz	x9, LBB0_21
; %bb.20:
	str	x20, [x8]
LBB0_21:
	ldr	w0, [x21]
	bl	_pte_osMutexUnlock
	mov	w21, #0
LBB0_22:
	str	x20, [x19]
LBB0_23:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PTHREAD_PROCESS_SHARED,8,3     ; @PTHREAD_PROCESS_SHARED
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_pte_cond_list_lock,4,2         ; @pte_cond_list_lock
	.comm	_pte_cond_list_tail,8,3         ; @pte_cond_list_tail
	.comm	_pte_cond_list_head,8,3         ; @pte_cond_list_head
.subsections_via_symbols
