	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_key_create             ## -- Begin function pthread_key_create
	.p2align	4, 0x90
_pthread_key_create:                    ## @pthread_key_create
	.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	%rsi, %r12
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$12, %rdi
	callq	_pte_osTlsAlloc
	movq	_PTE_OS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movq	_PTHREAD_MUTEX_INITIALIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_6
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, (%r14)
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PTE_OS_OK,8,3                  ## @PTE_OS_OK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PTHREAD_MUTEX_INITIALIZER,4,2  ## @PTHREAD_MUTEX_INITIALIZER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_key_create             ; -- Begin function pthread_key_create
	.p2align	2
_pthread_key_create:                    ; @pthread_key_create
	.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
	mov	x22, x1
	mov	x19, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, x20, #12
	bl	_pte_osTlsAlloc
Lloh0:
	adrp	x8, _PTE_OS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTE_OS_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w21, #0
	cbz	x22, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _PTHREAD_MUTEX_INITIALIZER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTHREAD_MUTEX_INITIALIZER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	str	x22, [x20]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_free
	mov	x20, #0
LBB0_6:
	str	x20, [x19]
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PTE_OS_OK,8,3                  ; @PTE_OS_OK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PTHREAD_MUTEX_INITIALIZER,4,2  ; @PTHREAD_MUTEX_INITIALIZER
.subsections_via_symbols
