	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_cond_destroy           ## -- Begin function pthread_cond_destroy
	.p2align	4, 0x90
_pthread_cond_destroy:                  ## @pthread_cond_destroy
	.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_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_PTHREAD_COND_INITIALIZER@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_24
## %bb.4:
	movq	_pte_cond_list_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pte_osMutexLock
	movq	(%rbx), %r15
	leaq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_sem_wait
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_30
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_30
LBB0_24:
	movq	_pte_cond_test_init_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_pte_osMutexLock
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_25
## %bb.26:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_27
LBB0_6:
	leaq	32(%r15), %r12
	movq	%r12, %rdi
	callq	_pthread_mutex_trylock
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_sem_post
	jmp	LBB0_30
LBB0_25:
	movq	$0, (%rbx)
	xorl	%r13d, %r13d
LBB0_27:
	movl	(%r14), %edi
	callq	_pte_osMutexUnlock
	testl	%r13d, %r13d
	sete	%al
	xorl	%r12d, %r12d
LBB0_28:
	movl	%r12d, %r14d
LBB0_29:
	testb	%al, %al
	cmovnel	%r14d, %r13d
LBB0_30:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	callq	_sem_post
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_mutex_unlock
	movl	%eax, %r14d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_23
LBB0_12:
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_sem_destroy
	xorl	%r14d, %r14d
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %r13d
LBB0_14:
	leaq	36(%r15), %rdi
	callq	_sem_destroy
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%rbx), %r14d
LBB0_16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_pthread_mutex_destroy
	movl	%eax, %r12d
LBB0_18:
	movq	_pte_cond_list_head@GOTPCREL(%rip), %rax
	movq	24(%r15), %rcx
	cmpq	%r15, (%rax)
	je	LBB0_20
## %bb.19:
	movq	16(%r15), %rax
	addq	$24, %rax
LBB0_20:
	movq	%rcx, (%rax)
	movq	_pte_cond_list_tail@GOTPCREL(%rip), %rax
	movq	16(%r15), %rcx
	cmpq	%r15, (%rax)
	je	LBB0_22
## %bb.21:
	movq	24(%r15), %rax
	addq	$16, %rax
LBB0_22:
	movq	%rcx, (%rax)
	movq	%r15, %rdi
	callq	_free
LBB0_23:
	movq	_pte_cond_list_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pte_osMutexUnlock
	testl	%r13d, %r13d
	sete	%al
	testl	%r14d, %r14d
	jne	LBB0_29
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PTHREAD_COND_INITIALIZER,8,3   ## @PTHREAD_COND_INITIALIZER
	.comm	_pte_cond_list_lock,4,2         ## @pte_cond_list_lock
	.comm	_errno,4,2                      ## @errno
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_pte_cond_list_head,8,3         ## @pte_cond_list_head
	.comm	_pte_cond_list_tail,8,3         ## @pte_cond_list_tail
	.comm	_pte_cond_test_init_lock,4,2    ## @pte_cond_test_init_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_cond_destroy           ; -- Begin function pthread_cond_destroy
	.p2align	2
_pthread_cond_destroy:                  ; @pthread_cond_destroy
	.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_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x21, _PTHREAD_COND_INITIALIZER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PTHREAD_COND_INITIALIZER@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh2:
	adrp	x24, _pte_cond_list_lock@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pte_cond_list_lock@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_pte_osMutexLock
	ldr	x19, [x20]
	add	x21, x19, #40
	mov	x0, x21
	bl	_sem_wait
	cbz	x0, LBB0_8
; %bb.4:
Lloh4:
	adrp	x8, _errno@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	b	LBB0_14
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	b	LBB0_14
LBB0_6:
Lloh10:
	adrp	x19, _pte_cond_test_init_lock@GOTPAGE
Lloh11:
	ldr	x19, [x19, _pte_cond_test_init_lock@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_pte_osMutexLock
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.7:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	b	LBB0_11
LBB0_8:
	add	x22, x19, #32
	mov	x0, x22
	bl	_pthread_mutex_trylock
	cbz	w0, LBB0_15
; %bb.9:
	mov	x23, x0
	mov	x0, x21
	bl	_sem_post
	b	LBB0_14
LBB0_10:
	mov	w23, #0
	str	xzr, [x20]
LBB0_11:
	ldr	w0, [x19]
	bl	_pte_osMutexUnlock
	mov	w21, #0
	cmp	w23, #0
	cset	w8, eq
LBB0_12:
	mov	x20, x21
LBB0_13:
	cmp	w8, #0
	csel	w23, w20, w23, ne
LBB0_14:
	mov	x0, x23
	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_15:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.le	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_sem_post
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w23, wzr, w8, eq
	mov	x0, x22
	bl	_pthread_mutex_unlock
	mov	x20, x0
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_24
LBB0_17:
	str	xzr, [x20]
	mov	x0, x21
	bl	_sem_destroy
Lloh21:
	adrp	x20, _errno@GOTPAGE
Lloh22:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	x0, #0
	csel	w23, wzr, w8, eq
	add	x0, x19, #36
	bl	_sem_destroy
	ldr	w8, [x20]
	cmp	x0, #0
	csel	w20, wzr, w8, eq
	mov	x0, x22
	bl	_pthread_mutex_unlock
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_pthread_mutex_destroy
	mov	x21, x0
LBB0_19:
Lloh23:
	adrp	x9, _pte_cond_list_head@GOTPAGE
Lloh24:
	ldr	x9, [x9, _pte_cond_list_head@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x8, [x19, #24]
	cmp	x10, x19
	b.eq	LBB0_21
; %bb.20:
	ldr	x9, [x19, #16]
	add	x9, x9, #24
LBB0_21:
	str	x8, [x9]
Lloh25:
	adrp	x9, _pte_cond_list_tail@GOTPAGE
Lloh26:
	ldr	x9, [x9, _pte_cond_list_tail@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x8, [x19, #16]
	cmp	x10, x19
	b.eq	LBB0_23
; %bb.22:
	ldr	x9, [x19, #24]
	add	x9, x9, #16
LBB0_23:
	str	x8, [x9]
	mov	x0, x19
	bl	_free
LBB0_24:
	ldr	w0, [x24]
	bl	_pte_osMutexUnlock
	cmp	w23, #0
	cset	w8, eq
	cbnz	w20, LBB0_13
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PTHREAD_COND_INITIALIZER,8,3   ; @PTHREAD_COND_INITIALIZER
	.comm	_pte_cond_list_lock,4,2         ; @pte_cond_list_lock
	.comm	_errno,4,2                      ; @errno
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_pte_cond_list_head,8,3         ; @pte_cond_list_head
	.comm	_pte_cond_list_tail,8,3         ; @pte_cond_list_tail
	.comm	_pte_cond_test_init_lock,4,2    ; @pte_cond_test_init_lock
.subsections_via_symbols
