	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_initial_tls           ## -- Begin function allocate_initial_tls
	.p2align	4, 0x90
_allocate_initial_tls:                  ## @allocate_initial_tls
	.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
	movq	_tls_last_offset@GOTPCREL(%rip), %rax
	movq	_RTLD_STATIC_TLS_EXTRA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_tls_static_space@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	xorl	%esi, %esi
	movl	$12, %edx
	movl	$4, %ecx
	callq	_allocate_tls
	movq	%rax, %rbx
	movq	%rax, -16(%rbp)
	xorl	%eax, %eax
	callq	___getosreldate
	movq	_P_OSREL_WRFSBASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	_cpu_stdext_feature@GOTPCREL(%rip), %rax
	movq	_CPUID_STDEXT_FSGSBASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wrfsbase                       ## TAILCALL
LBB0_2:
	movq	_AMD64_SET_FSBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	callq	_sysarch
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_last_offset,8,3            ## @tls_last_offset
	.comm	_RTLD_STATIC_TLS_EXTRA,8,3      ## @RTLD_STATIC_TLS_EXTRA
	.comm	_tls_static_space,8,3           ## @tls_static_space
	.comm	_P_OSREL_WRFSBASE,8,3           ## @P_OSREL_WRFSBASE
	.comm	_cpu_stdext_feature,4,2         ## @cpu_stdext_feature
	.comm	_CPUID_STDEXT_FSGSBASE,4,2      ## @CPUID_STDEXT_FSGSBASE
	.comm	_AMD64_SET_FSBASE,4,2           ## @AMD64_SET_FSBASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_allocate_initial_tls           ; -- Begin function allocate_initial_tls
	.p2align	2
_allocate_initial_tls:                  ; @allocate_initial_tls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _tls_last_offset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tls_last_offset@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RTLD_STATIC_TLS_EXTRA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTLD_STATIC_TLS_EXTRA@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
Lloh6:
	adrp	x9, _tls_static_space@GOTPAGE
Lloh7:
	ldr	x9, [x9, _tls_static_space@GOTPAGEOFF]
Lloh8:
	str	x8, [x9]
	mov	w1, #0
	mov	w2, #12
	mov	w3, #4
	bl	_allocate_tls
	mov	x19, x0
	str	x0, [sp, #8]
	bl	___getosreldate
Lloh9:
	adrp	x8, _P_OSREL_WRFSBASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P_OSREL_WRFSBASE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _cpu_stdext_feature@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cpu_stdext_feature@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CPUID_STDEXT_FSGSBASE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CPUID_STDEXT_FSGSBASE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wrfsbase
LBB0_3:
Lloh18:
	adrp	x8, _AMD64_SET_FSBASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AMD64_SET_FSBASE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_sysarch
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_last_offset,8,3            ; @tls_last_offset
	.comm	_RTLD_STATIC_TLS_EXTRA,8,3      ; @RTLD_STATIC_TLS_EXTRA
	.comm	_tls_static_space,8,3           ; @tls_static_space
	.comm	_P_OSREL_WRFSBASE,8,3           ; @P_OSREL_WRFSBASE
	.comm	_cpu_stdext_feature,4,2         ; @cpu_stdext_feature
	.comm	_CPUID_STDEXT_FSGSBASE,4,2      ; @CPUID_STDEXT_FSGSBASE
	.comm	_AMD64_SET_FSBASE,4,2           ; @AMD64_SET_FSBASE
.subsections_via_symbols
