	.file	"extr_smm_test.c_guest_code.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	guest_code
	.type	guest_code, @function
guest_code:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR MSR_IA32_APICBASE[rip]
	call	rdmsr@PLT
	mov	edi, 1
	mov	ebx, eax
	call	sync_with_host@PLT
	or	ebx, DWORD PTR X2APIC_ENABLE[rip]
	mov	edi, DWORD PTR MSR_IA32_APICBASE[rip]
	mov	esi, ebx
	call	wrmsr@PLT
	mov	edi, 2
	call	sync_with_host@PLT
	xor	eax, eax
	call	self_smi@PLT
	mov	edi, 4
	call	sync_with_host@PLT
	test	rbp, rbp
	je	.L2
	mov	rdi, rbp
	call	prepare_for_vmx_operation@PLT
	mov	edi, eax
	call	GUEST_ASSERT@PLT
	mov	edi, 5
	call	sync_with_host@PLT
	xor	eax, eax
	call	self_smi@PLT
	mov	edi, 7
	call	sync_with_host@PLT
.L2:
	mov	edi, DWORD PTR DONE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	sync_with_host@PLT
	.cfi_endproc
.LFE0:
	.size	guest_code, .-guest_code
	.comm	X2APIC_ENABLE,4,4
	.comm	MSR_IA32_APICBASE,4,4
	.comm	DONE,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_smm_test.c_guest_code.c"
	.text
	.align	2
	.global	guest_code
	.syntax unified
	.arm
	.fpu softvfp
	.type	guest_code, %function
guest_code:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L8
	mov	r4, r0
	ldr	r0, [r6]
	bl	rdmsr
	mov	r5, r0
	mov	r0, #1
	bl	sync_with_host
	ldr	r3, .L8+4
	ldr	r0, [r6]
	ldr	r1, [r3]
	orr	r1, r5, r1
	bl	wrmsr
	mov	r0, #2
	bl	sync_with_host
	bl	self_smi
	mov	r0, #4
	bl	sync_with_host
	cmp	r4, #0
	beq	.L2
	mov	r0, r4
	bl	prepare_for_vmx_operation
	bl	GUEST_ASSERT
	mov	r0, #5
	bl	sync_with_host
	bl	self_smi
	mov	r0, #7
	bl	sync_with_host
.L2:
	pop	{r4, r5, r6, lr}
	ldr	r3, .L8+8
	ldr	r0, [r3]
	b	sync_with_host
.L9:
	.align	2
.L8:
	.word	MSR_IA32_APICBASE
	.word	X2APIC_ENABLE
	.word	DONE
	.size	guest_code, .-guest_code
	.comm	X2APIC_ENABLE,4,4
	.comm	MSR_IA32_APICBASE,4,4
	.comm	DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
