	.file	"extr_mp_desc.c_cpu_desc_load.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cpu_desc_load
	.type	cpu_desc_load, @function
cpu_desc_load:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rbp, 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR CPU_DESC_LOAD_ENTRY[rip]
	call	postcode@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_GS_BASE[rip]
	call	postcode@PLT
	mov	edi, DWORD PTR MSR_IA32_GS_BASE[rip]
	mov	rsi, rbx
	call	wrmsr64@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_KERNEL_GS_BASE[rip]
	call	postcode@PLT
	mov	edi, DWORD PTR MSR_IA32_KERNEL_GS_BASE[rip]
	mov	rsi, rbx
	call	wrmsr64@PLT
	mov	edi, DWORD PTR KERNEL_TSS[rip]
	call	gdt_desc_p@PLT
	mov	r8, rax
	mov	eax, DWORD PTR ACC_TSS_BUSY[rip]
	not	eax
	and	DWORD PTR [r8], eax
	mov	eax, DWORD PTR GDTSZ[rip]
	mov	edi, DWORD PTR CPU_DESC_LOAD_GDT[rip]
	lea	eax, -1[0+rax*4]
	mov	DWORD PTR 32[rbx], eax
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR [rbx]
	add	rax, 4096
	mov	QWORD PTR 24[rbx], rax
	mov	QWORD PTR 8[rbx], rax
	call	postcode@PLT
	lea	rdi, 16[rbx]
	call	lgdt@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_IDT[rip]
	call	postcode@PLT
	mov	rdi, rbp
	call	lidt@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_LDT[rip]
	call	postcode@PLT
	mov	edi, DWORD PTR KERNEL_LDT[rip]
	call	lldt@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_TSS[rip]
	call	postcode@PLT
	mov	edi, DWORD PTR KERNEL_TSS[rip]
	call	set_tr@PLT
	mov	edi, DWORD PTR CPU_DESC_LOAD_EXIT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	postcode@PLT
	.cfi_endproc
.LFE0:
	.size	cpu_desc_load, .-cpu_desc_load
	.comm	MSR_IA32_KERNEL_GS_BASE,4,4
	.comm	MSR_IA32_GS_BASE,4,4
	.comm	KERNEL_TSS,4,4
	.comm	KERNEL_LDT,4,4
	.comm	GDTSZ,4,4
	.comm	CPU_DESC_LOAD_TSS,4,4
	.comm	CPU_DESC_LOAD_LDT,4,4
	.comm	CPU_DESC_LOAD_KERNEL_GS_BASE,4,4
	.comm	CPU_DESC_LOAD_IDT,4,4
	.comm	CPU_DESC_LOAD_GS_BASE,4,4
	.comm	CPU_DESC_LOAD_GDT,4,4
	.comm	CPU_DESC_LOAD_EXIT,4,4
	.comm	CPU_DESC_LOAD_ENTRY,4,4
	.comm	ACC_TSS_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mp_desc.c_cpu_desc_load.c"
	.text
	.align	2
	.global	cpu_desc_load
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_desc_load, %function
cpu_desc_load:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L4
	ldr	r6, .L4+4
	ldr	r0, [r3]
	bl	postcode
	ldr	r3, .L4+8
	mov	r5, r4
	ldr	r0, [r3]
	bl	postcode
	ldr	r3, .L4+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	wrmsr64
	ldr	r3, .L4+16
	ldr	r0, [r3]
	bl	postcode
	ldr	r3, .L4+20
	mov	r1, r4
	ldr	r0, [r3]
	bl	wrmsr64
	ldr	r0, [r6]
	bl	gdt_desc_p
	ldr	r2, .L4+24
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r1, .L4+28
	bic	r3, r3, r2
	ldr	r2, .L4+32
	str	r3, [r0]
	ldr	r3, [r2]
	ldr	r2, [r4]
	lsl	r3, r3, #2
	add	r2, r2, #4096
	sub	r3, r3, #1
	str	r2, [r4, #12]
	ldr	r0, [r1]
	str	r3, [r4, #16]
	str	r3, [r4, #8]
	str	r2, [r5, #4]!
	bl	postcode
	add	r0, r5, #4
	bl	lgdt
	ldr	r3, .L4+36
	ldr	r0, [r3]
	bl	postcode
	mov	r0, r5
	bl	lidt
	ldr	r3, .L4+40
	ldr	r0, [r3]
	bl	postcode
	ldr	r3, .L4+44
	ldr	r0, [r3]
	bl	lldt
	ldr	r3, .L4+48
	ldr	r0, [r3]
	bl	postcode
	ldr	r0, [r6]
	bl	set_tr
	pop	{r4, r5, r6, lr}
	ldr	r3, .L4+52
	ldr	r0, [r3]
	b	postcode
.L5:
	.align	2
.L4:
	.word	CPU_DESC_LOAD_ENTRY
	.word	KERNEL_TSS
	.word	CPU_DESC_LOAD_GS_BASE
	.word	MSR_IA32_GS_BASE
	.word	CPU_DESC_LOAD_KERNEL_GS_BASE
	.word	MSR_IA32_KERNEL_GS_BASE
	.word	ACC_TSS_BUSY
	.word	CPU_DESC_LOAD_GDT
	.word	GDTSZ
	.word	CPU_DESC_LOAD_IDT
	.word	CPU_DESC_LOAD_LDT
	.word	KERNEL_LDT
	.word	CPU_DESC_LOAD_TSS
	.word	CPU_DESC_LOAD_EXIT
	.size	cpu_desc_load, .-cpu_desc_load
	.comm	MSR_IA32_KERNEL_GS_BASE,4,4
	.comm	MSR_IA32_GS_BASE,4,4
	.comm	KERNEL_TSS,4,4
	.comm	KERNEL_LDT,4,4
	.comm	GDTSZ,4,4
	.comm	CPU_DESC_LOAD_TSS,4,4
	.comm	CPU_DESC_LOAD_LDT,4,4
	.comm	CPU_DESC_LOAD_KERNEL_GS_BASE,4,4
	.comm	CPU_DESC_LOAD_IDT,4,4
	.comm	CPU_DESC_LOAD_GS_BASE,4,4
	.comm	CPU_DESC_LOAD_GDT,4,4
	.comm	CPU_DESC_LOAD_EXIT,4,4
	.comm	CPU_DESC_LOAD_ENTRY,4,4
	.comm	ACC_TSS_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
