	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_setspecific            ## -- Begin function pthread_setspecific
	.p2align	4, 0x90
_pthread_setspecific:                   ## @pthread_setspecific
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_pte_selfThreadKey@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_pthread_self
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_3:
	movq	%r13, %rdi
	callq	_pthread_getspecific
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
LBB0_7:
	testq	%r13, %r13
	je	LBB0_8
LBB0_9:
	testq	%r15, %r15
	je	LBB0_21
## %bb.10:
	testq	%r14, %r14
	je	LBB0_21
## %bb.11:
	cmpq	$0, 8(%r13)
	je	LBB0_21
## %bb.12:
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_pthread_mutex_lock
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
LBB0_21:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_pte_osTlsSetValue
	movq	_PTE_OS_OK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.22:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_4:
	testq	%r14, %r14
	je	LBB0_2
## %bb.5:
	movq	(%r14), %r15
	testq	%r13, %r13
	jne	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, 8(%rax)
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_16
LBB0_19:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_pte_tkAssocCreate
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_17:
	xorl	%ebx, %ebx
LBB0_20:
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	movq	%r12, %rdi
	callq	_pthread_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_24
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_selfThreadKey,8,3          ## @pte_selfThreadKey
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PTE_OS_OK,8,3                  ## @PTE_OS_OK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_setspecific            ; -- Begin function pthread_setspecific
	.p2align	2
_pthread_setspecific:                   ; @pthread_setspecific
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _pte_selfThreadKey@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_selfThreadKey@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_3
; %bb.1:
	bl	_pthread_self
	mov	x21, x0
	cbnz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_15
LBB0_3:
	mov	x0, x20
	bl	_pthread_getspecific
	cbz	x0, LBB0_12
; %bb.4:
	mov	x21, x0
LBB0_5:
	cbz	x20, LBB0_14
LBB0_6:
	cbz	x21, LBB0_11
; %bb.7:
	cbz	x19, LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.9:
	add	x22, x20, #4
	mov	x0, x22
	bl	_pthread_mutex_lock
	cbz	x0, LBB0_16
; %bb.10:
	mov	x0, x22
	bl	_pthread_mutex_unlock
LBB0_11:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_pte_osTlsSetValue
Lloh6:
	adrp	x8, _PTE_OS_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTE_OS_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w23, wzr, w9, eq
	b	LBB0_15
LBB0_12:
	cbz	x19, LBB0_2
; %bb.13:
	ldr	x21, [x19]
	cbnz	x20, LBB0_6
LBB0_14:
	mov	w23, #0
LBB0_15:
	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_16:
	mov	x0, x21
	bl	_pthread_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_pte_tkAssocCreate
	mov	x23, x0
	b	LBB0_21
LBB0_20:
	mov	w23, #0
LBB0_21:
	mov	x0, x21
	bl	_pthread_mutex_unlock
	mov	x0, x22
	bl	_pthread_mutex_unlock
	cbnz	w23, LBB0_15
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_selfThreadKey,8,3          ; @pte_selfThreadKey
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PTE_OS_OK,8,3                  ; @PTE_OS_OK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
