	.file	"extr_trap.c_dblfault_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.ascii	"\nFatal doubl"
	.string	"e fault\nrip %#lx rsp %#lx rbp %#lx\nrax %#lx rdx %#lx rbx %#lx\nrcx %#lx rsi %#lx rdi %#lx\nr8 %#lx r9 %#lx r10 %#lx\nr11 %#lx r12 %#lx r13 %#lx\nr14 %#lx r15 %#lx rflags %#lx\ncs %#lx ss %#lx ds %#hx es %#hx fs %#hx gs %#hx\nfsbase %#lx gsbase %#lx kgsbase %#lx\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"double fault"
	.text
	.p2align 4
	.globl	dblfault_handler
	.type	dblfault_handler, @function
dblfault_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR MSR_KGSBASE[rip]
	call	rdmsr@PLT
	mov	edi, DWORD PTR MSR_GSBASE[rip]
	mov	r12d, eax
	call	rdmsr@PLT
	mov	edi, DWORD PTR MSR_FSBASE[rip]
	mov	ebp, eax
	call	rdmsr@PLT
	mov	ecx, DWORD PTR 84[rbx]
	mov	edx, DWORD PTR 88[rbx]
	push	r12
	.cfi_def_cfa_offset 40
	push	rbp
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 92[rbx]
	lea	rdi, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR [rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 8[rbx]
	push	rax
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR 12[rbx]
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 16[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 20[rbx]
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 24[rbx]
	push	rax
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR 28[rbx]
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 32[rbx]
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR 36[rbx]
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR 40[rbx]
	push	rax
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 44[rbx]
	push	rax
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 48[rbx]
	push	rax
	.cfi_def_cfa_offset 160
	mov	eax, DWORD PTR 52[rbx]
	mov	r9d, DWORD PTR 76[rbx]
	mov	r8d, DWORD PTR 80[rbx]
	push	rax
	.cfi_def_cfa_offset 168
	mov	eax, DWORD PTR 56[rbx]
	push	rax
	.cfi_def_cfa_offset 176
	mov	eax, DWORD PTR 60[rbx]
	push	rax
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR 64[rbx]
	push	rax
	.cfi_def_cfa_offset 192
	mov	eax, DWORD PTR 68[rbx]
	push	rax
	.cfi_def_cfa_offset 200
	mov	eax, DWORD PTR 72[rbx]
	push	rax
	.cfi_def_cfa_offset 208
	xor	eax, eax
	call	printf@PLT
	add	rsp, 176
	.cfi_def_cfa_offset 32
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	panic@PLT
	.cfi_endproc
.LFE0:
	.size	dblfault_handler, .-dblfault_handler
	.comm	cpuid,4,4
	.comm	apic_id,4,4
	.comm	MSR_KGSBASE,4,4
	.comm	MSR_GSBASE,4,4
	.comm	MSR_FSBASE,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_trap.c_dblfault_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012Fatal double fault\012rip %#lx rsp %#lx rbp %#l"
	.ascii	"x\012rax %#lx rdx %#lx rbx %#lx\012rcx %#lx rsi %#l"
	.ascii	"x rdi %#lx\012r8 %#lx r9 %#lx r10 %#lx\012r11 %#lx "
	.ascii	"r12 %#lx r13 %#lx\012r14 %#lx r15 %#lx rflags %#lx\012"
	.ascii	"cs %#lx ss %#lx ds %#hx es %#hx fs %#hx gs %#hx\012"
	.ascii	"fsbase %#lx gsbase %#lx kgsbase %#lx\012\000"
	.align	2
.LC1:
	.ascii	"double fault\000"
	.text
	.align	2
	.global	dblfault_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	dblfault_handler, %function
dblfault_handler:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L4
	ldr	r1, [ip, #80]
	ldr	r2, [ip, #72]
	ldr	r4, [ip, #48]
	ldr	r5, [ip, #44]
	ldr	r8, [r0, #92]
	ldr	r0, [r3]
	ldr	r3, [ip, #76]
	sub	sp, sp, #172
	ldr	lr, [ip, #64]
	ldr	r7, [ip, #40]
	ldr	r6, [ip, #28]
	str	r1, [sp, #164]
	str	r3, [sp, #96]
	ldr	r1, [ip, #68]
	ldr	r3, [ip, #56]
	str	r2, [sp, #100]
	str	r4, [sp, #112]
	ldr	r2, [ip, #52]
	ldr	r4, [ip, #36]
	str	r5, [sp, #116]
	ldr	r5, [ip, #32]
	str	lr, [sp, #108]
	ldr	r9, [ip, #88]
	ldr	r10, [ip, #84]
	ldr	fp, [ip, #60]
	str	r1, [sp, #104]
	str	r2, [sp, #156]
	str	r7, [sp, #120]
	str	r4, [sp, #124]
	str	r5, [sp, #128]
	str	r6, [sp, #132]
	str	r3, [sp, #160]
	ldr	r3, [ip, #24]
	ldr	r2, [ip, #20]
	ldr	r1, [ip, #16]
	ldr	r4, [ip, #12]
	ldr	r5, [ip, #8]
	str	r3, [sp, #136]
	str	r2, [sp, #140]
	str	r1, [sp, #144]
	ldr	r6, [ip, #4]
	ldr	r7, [ip]
	str	r4, [sp, #148]
	str	r5, [sp, #152]
	bl	rdmsr
	ldr	ip, .L4+4
	mov	r4, r0
	ldr	r0, [ip]
	bl	rdmsr
	ldr	ip, .L4+8
	mov	r5, r0
	ldr	r0, [ip]
	bl	rdmsr
	mov	ip, r0
	ldr	r1, [sp, #164]
	ldr	r2, [sp, #156]
	ldr	r3, [sp, #160]
	str	r1, [sp]
	str	r2, [sp, #28]
	ldr	r1, [sp, #104]
	ldr	r2, [sp, #100]
	str	r3, [sp, #24]
	ldr	r3, [sp, #96]
	ldr	lr, [sp, #108]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	mov	r1, r8
	mov	r2, r9
	ldr	r8, [sp, #144]
	ldr	r9, [sp, #148]
	str	r3, [sp, #4]
	mov	r3, r10
	ldr	r10, [sp, #152]
	str	fp, [sp, #20]
	str	lr, [sp, #16]
	ldr	fp, [sp, #136]
	ldr	lr, [sp, #140]
	str	r10, [sp, #72]
	str	r9, [sp, #68]
	ldr	r10, [sp, #132]
	ldr	r9, [sp, #128]
	str	r8, [sp, #64]
	ldr	r8, [sp, #124]
	str	r7, [sp, #80]
	str	r6, [sp, #76]
	str	lr, [sp, #60]
	str	fp, [sp, #56]
	str	r10, [sp, #52]
	str	r9, [sp, #48]
	str	r8, [sp, #44]
	ldr	r7, [sp, #120]
	ldr	r6, [sp, #116]
	ldr	lr, [sp, #112]
	str	r7, [sp, #40]
	str	r6, [sp, #36]
	str	lr, [sp, #32]
	str	r5, [sp, #88]
	str	r4, [sp, #84]
	ldr	r0, .L4+12
	str	ip, [sp, #92]
	bl	printf
	ldr	r0, .L4+16
	add	sp, sp, #172
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	panic
.L5:
	.align	2
.L4:
	.word	MSR_FSBASE
	.word	MSR_GSBASE
	.word	MSR_KGSBASE
	.word	.LC0
	.word	.LC1
	.size	dblfault_handler, .-dblfault_handler
	.comm	cpuid,4,4
	.comm	apic_id,4,4
	.comm	MSR_KGSBASE,4,4
	.comm	MSR_GSBASE,4,4
	.comm	MSR_FSBASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
