	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guest_load_tls                 ## -- Begin function guest_load_tls
	.p2align	4, 0x90
_guest_load_tls:                        ## @guest_load_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GDT_ENTRY_TLS_MIN@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	shlq	$2, %rax
	addq	8(%rdi), %rax
	movq	%rsi, %rdx
	movq	_GDT_ENTRY_TLS_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	movq	%rax, %rsi
	callq	___lgread
	movq	(%r14), %rsi
	movq	_GDT_ENTRY_TLS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	%rbx, %rdi
	callq	_fixup_gdt_table
	movq	_CHANGED_GDT_TLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_ENTRY_TLS_MIN,8,3          ## @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_ENTRIES,4,2      ## @GDT_ENTRY_TLS_ENTRIES
	.comm	_GDT_ENTRY_TLS_MAX,8,3          ## @GDT_ENTRY_TLS_MAX
	.comm	_CHANGED_GDT_TLS,4,2            ## @CHANGED_GDT_TLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_guest_load_tls                 ; -- Begin function guest_load_tls
	.p2align	2
_guest_load_tls:                        ; @guest_load_tls
	.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	x2, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _GDT_ENTRY_TLS_MIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GDT_ENTRY_TLS_MIN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x8, x9, lsl #2
Lloh2:
	adrp	x8, _GDT_ENTRY_TLS_ENTRIES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GDT_ENTRY_TLS_ENTRIES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w3, w8, #2
	bl	___lgread
	ldr	x1, [x20]
Lloh5:
	adrp	x8, _GDT_ENTRY_TLS_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GDT_ENTRY_TLS_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x2, x8, #1
	mov	x0, x19
	bl	_fixup_gdt_table
Lloh8:
	adrp	x8, _CHANGED_GDT_TLS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHANGED_GDT_TLS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_ENTRY_TLS_MIN,8,3          ; @GDT_ENTRY_TLS_MIN
	.comm	_GDT_ENTRY_TLS_ENTRIES,4,2      ; @GDT_ENTRY_TLS_ENTRIES
	.comm	_GDT_ENTRY_TLS_MAX,8,3          ; @GDT_ENTRY_TLS_MAX
	.comm	_CHANGED_GDT_TLS,4,2            ; @CHANGED_GDT_TLS
.subsections_via_symbols
