	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_callUserDestroyRoutines    ## -- Begin function pte_callUserDestroyRoutines
	.p2align	4, 0x90
_pte_callUserDestroyRoutines:           ## @pte_callUserDestroyRoutines
	.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
	subq	$24, %rsp
	.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_13
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_EBUSY@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movl	-60(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	16(%r14), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movl	$1, %edi
	callq	_pte_osThreadSleep
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_pthread_mutex_trylock
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	(%rbx), %r15
	movq	(%r15), %r13
	movl	12(%r15), %edi
	callq	_pte_osTlsGetValue
	movq	%rax, %r12
	movl	12(%r15), %edi
	xorl	%esi, %esi
	callq	_pte_osTlsSetValue
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_PTHREAD_DESTRUCTOR_ITERATIONS@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%r12, %rdi
	callq	*%r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_pte_tkAssocDestroy
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_EBUSY@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_PTHREAD_DESTRUCTOR_ITERATIONS,4,2 ## @PTHREAD_DESTRUCTOR_ITERATIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pte_callUserDestroyRoutines    ; -- Begin function pte_callUserDestroyRoutines
	.p2align	2
_pte_callUserDestroyRoutines:           ; @pte_callUserDestroyRoutines
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w24, #0
Lloh0:
	adrp	x22, _EBUSY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EBUSY@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PTHREAD_DESTRUCTOR_ITERATIONS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PTHREAD_DESTRUCTOR_ITERATIONS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x24, x26
	cbz	w25, LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	add	w26, w24, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	w0, #1
	bl	_pte_osThreadSleep
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_pthread_mutex_trylock
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x27, x8, [x20]
	str	x8, [x19, #8]
	ldr	x28, [x27]
	ldr	w0, [x27, #12]
	bl	_pte_osTlsGetValue
	mov	x21, x0
	ldr	w0, [x27, #12]
	mov	x1, #0
	bl	_pte_osTlsSetValue
	ldr	w8, [x23]
	cmp	x21, #0
	ccmp	w24, w8, #0, ne
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
	bl	_pte_tkAssocDestroy
	mov	x0, x19
	bl	_pthread_mutex_unlock
	add	x0, x27, #8
	bl	_pthread_mutex_unlock
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_pthread_mutex_unlock
	add	x0, x27, #8
	bl	_pthread_mutex_unlock
	add	w25, w25, #1
	mov	x0, x21
	blr	x28
	b	LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_PTHREAD_DESTRUCTOR_ITERATIONS,4,2 ; @PTHREAD_DESTRUCTOR_ITERATIONS
.subsections_via_symbols
