	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_terminate              ## -- Begin function pthread_terminate
	.p2align	4, 0x90
_pthread_terminate:                     ## @pthread_terminate
	.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
	movq	_pte_processInitialized@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.1:
	movq	_pte_selfThreadKey@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_pthread_key_delete
	movq	$0, (%rbx)
LBB0_3:
	movq	_pte_cleanupKey@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_pthread_key_delete
	movq	$0, (%rbx)
LBB0_5:
	movq	_pte_thread_reuse_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_pte_osMutexLock
	movq	_pte_threadReuseTop@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PTE_THREAD_REUSE_EMPTY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rdi
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_free
	movq	%rbx, %rdi
	cmpq	(%r12), %rbx
	jne	LBB0_6
LBB0_7:
	movl	(%r15), %edi
	callq	_pte_osMutexUnlock
	movq	_PTE_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_processInitialized,8,3     ## @pte_processInitialized
	.comm	_pte_selfThreadKey,8,3          ## @pte_selfThreadKey
	.comm	_pte_cleanupKey,8,3             ## @pte_cleanupKey
	.comm	_pte_thread_reuse_lock,4,2      ## @pte_thread_reuse_lock
	.comm	_pte_threadReuseTop,8,3         ## @pte_threadReuseTop
	.comm	_PTE_THREAD_REUSE_EMPTY,8,3     ## @PTE_THREAD_REUSE_EMPTY
	.comm	_PTE_FALSE,8,3                  ## @PTE_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_terminate              ; -- Begin function pthread_terminate
	.p2align	2
_pthread_terminate:                     ; @pthread_terminate
	.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
Lloh0:
	adrp	x19, _pte_processInitialized@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pte_processInitialized@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x20, _pte_selfThreadKey@GOTPAGE
Lloh3:
	ldr	x20, [x20, _pte_selfThreadKey@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_pthread_key_delete
	str	xzr, [x20]
LBB0_3:
Lloh4:
	adrp	x20, _pte_cleanupKey@GOTPAGE
Lloh5:
	ldr	x20, [x20, _pte_cleanupKey@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_pthread_key_delete
	str	xzr, [x20]
LBB0_5:
Lloh6:
	adrp	x20, _pte_thread_reuse_lock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _pte_thread_reuse_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_pte_osMutexLock
Lloh8:
	adrp	x8, _pte_threadReuseTop@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pte_threadReuseTop@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x21, _PTE_THREAD_REUSE_EMPTY@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PTE_THREAD_REUSE_EMPTY@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x0]
	bl	_free
	ldr	x8, [x21]
	mov	x0, x22
	cmp	x22, x8
	b.ne	LBB0_6
LBB0_7:
	ldr	w0, [x20]
	bl	_pte_osMutexUnlock
Lloh13:
	adrp	x8, _PTE_FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PTE_FALSE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_processInitialized,8,3     ; @pte_processInitialized
	.comm	_pte_selfThreadKey,8,3          ; @pte_selfThreadKey
	.comm	_pte_cleanupKey,8,3             ; @pte_cleanupKey
	.comm	_pte_thread_reuse_lock,4,2      ; @pte_thread_reuse_lock
	.comm	_pte_threadReuseTop,8,3         ; @pte_threadReuseTop
	.comm	_PTE_THREAD_REUSE_EMPTY,8,3     ; @PTE_THREAD_REUSE_EMPTY
	.comm	_PTE_FALSE,8,3                  ; @PTE_FALSE
.subsections_via_symbols
