	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cond_destroy              ## -- Begin function _thr_cond_destroy
	.p2align	4, 0x90
__thr_cond_destroy:                     ## @_thr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_THR_PSHARED_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_1
## %bb.6:
	movq	_THR_COND_INITIALIZER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %rdi
	je	LBB0_13
## %bb.7:
	movq	_THR_COND_DESTROYED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	je	LBB0_8
## %bb.9:
	cmpq	$0, 8(%rdi)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, (%rdi)
	je	LBB0_12
LBB0_11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	___thr_pshared_offpage
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_13
	jmp	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	%r14, %rdi
	callq	___thr_pshared_destroy
LBB0_5:
	movq	_THR_COND_DESTROYED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	%rax, (%r14)
	callq	_free
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_THR_PSHARED_PTR,8,3            ## @THR_PSHARED_PTR
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THR_COND_DESTROYED,8,3         ## @THR_COND_DESTROYED
	.comm	_THR_COND_INITIALIZER,8,3       ## @THR_COND_INITIALIZER
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_cond_destroy              ; -- Begin function _thr_cond_destroy
	.p2align	2
__thr_cond_destroy:                     ; @_thr_cond_destroy
	.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, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _THR_PSHARED_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THR_PSHARED_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _THR_COND_INITIALIZER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THR_COND_INITIALIZER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.2:
Lloh6:
	adrp	x8, _THR_COND_DESTROYED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THR_COND_DESTROYED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.3:
	ldr	x9, [x0, #8]
	cbnz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x0]
	cbz	x9, LBB0_12
LBB0_5:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	___thr_pshared_offpage
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	cbnz	w0, LBB0_14
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	___thr_pshared_destroy
LBB0_11:
	mov	w0, #0
Lloh18:
	adrp	x8, _THR_COND_DESTROYED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _THR_COND_DESTROYED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_14
LBB0_12:
	str	x8, [x19]
	bl	_free
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_THR_PSHARED_PTR,8,3            ; @THR_PSHARED_PTR
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THR_COND_DESTROYED,8,3         ; @THR_COND_DESTROYED
	.comm	_THR_COND_INITIALIZER,8,3       ; @THR_COND_INITIALIZER
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
