	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pteTlsGlobalInit               ## -- Begin function pteTlsGlobalInit
	.p2align	4, 0x90
_pteTlsGlobalInit:                      ## @pteTlsGlobalInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_globalTlsLock@GOTPCREL(%rip), %rdi
	callq	_pte_osMutexCreate
	leal	(,%rbx,4), %edi
	callq	_malloc
	movq	_keysUsed@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.3:
	movl	%ebx, %esi
	shlq	$2, %rsi
	movq	%rax, %rdi
	callq	___bzero
LBB0_4:
	movq	_maxTlsValues@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_PTE_OS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_PTE_OS_NO_RESOURCES@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_globalTlsLock,4,2              ## @globalTlsLock
	.comm	_keysUsed,8,3                   ## @keysUsed
	.comm	_maxTlsValues,4,2               ## @maxTlsValues
	.comm	_PTE_OS_OK,4,2                  ## @PTE_OS_OK
	.comm	_PTE_OS_NO_RESOURCES,4,2        ## @PTE_OS_NO_RESOURCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pteTlsGlobalInit               ; -- Begin function pteTlsGlobalInit
	.p2align	2
_pteTlsGlobalInit:                      ; @pteTlsGlobalInit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _globalTlsLock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _globalTlsLock@GOTPAGEOFF]
	bl	_pte_osMutexCreate
	lsl	w0, w19, #2
	bl	_malloc
Lloh2:
	adrp	x8, _keysUsed@GOTPAGE
Lloh3:
	ldr	x8, [x8, _keysUsed@GOTPAGEOFF]
Lloh4:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.2:
	mov	w8, w19
	lsl	x1, x8, #2
	bl	_bzero
LBB0_3:
Lloh5:
	adrp	x8, _maxTlsValues@GOTPAGE
Lloh6:
	ldr	x8, [x8, _maxTlsValues@GOTPAGEOFF]
Lloh7:
	str	w19, [x8]
Lloh8:
	adrp	x8, _PTE_OS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTE_OS_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _PTE_OS_NO_RESOURCES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PTE_OS_NO_RESOURCES@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_globalTlsLock,4,2              ; @globalTlsLock
	.comm	_keysUsed,8,3                   ; @keysUsed
	.comm	_maxTlsValues,4,2               ; @maxTlsValues
	.comm	_PTE_OS_OK,4,2                  ; @PTE_OS_OK
	.comm	_PTE_OS_NO_RESOURCES,4,2        ; @PTE_OS_NO_RESOURCES
.subsections_via_symbols
