	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pte_threadDestroyCommon
_pte_threadDestroyCommon:               ## @pte_threadDestroyCommon
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_pte_threadReusePush
	leaq	-20(%rbp), %rdi
	callq	_pthread_mutex_destroy
	leaq	-24(%rbp), %rdi
	callq	_pthread_mutex_destroy
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	testb	%r14b, %r14b
	je	LBB0_4
## %bb.3:
	callq	_pte_osThreadExitAndDelete
	jmp	LBB0_5
LBB0_4:
	callq	_pte_osThreadDelete
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pte_threadDestroyCommon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pte_threadDestroyCommon
_pte_threadDestroyCommon:               ; @pte_threadDestroyCommon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, sp
	mov	x0, sp
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	mov	x0, x20
	bl	_pte_threadReusePush
	add	x0, x21, #12
	bl	_pthread_mutex_destroy
	add	x0, x21, #8
	bl	_pthread_mutex_destroy
	ldr	x0, [sp]
	cbz	x0, LBB0_5
; %bb.2:
	cbz	w19, LBB0_4
; %bb.3:
	bl	_pte_osThreadExitAndDelete
	b	LBB0_5
LBB0_4:
	bl	_pte_osThreadDelete
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pte_threadDestroyCommon
.subsections_via_symbols
