	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to_new_gdt              ## -- Begin function switch_to_new_gdt
	.p2align	4, 0x90
_switch_to_new_gdt:                     ## @switch_to_new_gdt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_get_cpu_gdt_table
	movq	%rax, -24(%rbp)
	movq	_GDT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, -16(%rbp)
	leaq	-24(%rbp), %rdi
	callq	_load_gdt
	movl	%ebx, %edi
	callq	_load_percpu_segment
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_SIZE,8,3                   ## @GDT_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to_new_gdt              ; -- Begin function switch_to_new_gdt
	.p2align	2
_switch_to_new_gdt:                     ; @switch_to_new_gdt
	.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
	mov	x19, x0
	bl	_get_cpu_gdt_table
Lloh0:
	adrp	x8, _GDT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GDT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x8, #1
	stp	x0, x8, [sp]
	mov	x0, sp
	bl	_load_gdt
	mov	x0, x19
	bl	_load_percpu_segment
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_SIZE,8,3                   ; @GDT_SIZE
.subsections_via_symbols
