	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tls_entry
_set_tls_entry:                         ## @set_tls_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GDT_ENTRY_TLS_MIN@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	cmpl	%edx, %r9d
	jg	LBB0_2
## %bb.1:
	movq	_GDT_ENTRY_TLS_MAX@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	(%rdi), %rax
	movslq	%edx, %rdi
	subl	%r9d, %edx
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	(%rsi), %esi
	movl	%esi, 8(%rax,%rdx,4)
	movslq	(%r8), %rdx
	movq	%rdi, %rsi
	subq	%rdx, %rsi
	leaq	(%rsi,%rsi,2), %rdx
	movl	$1, (%rax,%rdx,4)
	movslq	(%r8), %rdx
	subq	%rdx, %rdi
	leaq	(%rdi,%rdi,2), %rdx
	movl	%ecx, 4(%rax,%rdx,4)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_ENTRY_TLS_MIN,4,2          ## @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_MAX,4,2          ## @GDT_ENTRY_TLS_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_tls_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tls_entry
_set_tls_entry:                         ; @set_tls_entry
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _GDT_ENTRY_TLS_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GDT_ENTRY_TLS_MIN@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh2:
	adrp	x11, _GDT_ENTRY_TLS_MAX@GOTPAGE
Lloh3:
	ldr	x11, [x11, _GDT_ENTRY_TLS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w10, w2
	ccmp	w11, w2, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8]
	sub	w10, w2, w10
	mov	w11, #12
	smaddl	x10, w10, w11, x8
	ldr	w12, [x1]
	str	w12, [x10, #8]
	ldr	w10, [x9]
	sub	w10, w2, w10
	smull	x10, w10, w11
	mov	w12, #1
	str	w12, [x8, x10]
	ldr	w9, [x9]
	sub	w9, w2, w9
	smaddl	x8, w9, w11, x8
	str	w3, [x8, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_ENTRY_TLS_MIN,4,2          ; @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_MAX,4,2          ; @GDT_ENTRY_TLS_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_tls_entry
.subsections_via_symbols
