	.file	"extr_ip27-nmi.c_nmi_cpu_eframe_save.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NMI nasid %d: slice %d\n"
.LC1:
	.string	"$%2d   :"
.LC2:
	.string	" %016lx"
.LC3:
	.string	"\n"
.LC4:
	.string	"Hi    : (value lost)\n"
.LC5:
	.string	"Lo    : (value lost)\n"
.LC6:
	.string	"epc   : %016lx %pS\n"
.LC7:
	.string	"%s\n"
.LC8:
	.string	"ErrEPC: %016lx %pS\n"
.LC9:
	.string	"ra    : %016lx %pS\n"
.LC10:
	.string	"Status: %08lx\t      "
.LC11:
	.string	"KX "
.LC12:
	.string	"SX "
.LC13:
	.string	"UX "
.LC14:
	.string	"USER "
.LC15:
	.string	"SUPERVISOR "
.LC16:
	.string	"KERNEL "
.LC17:
	.string	"BAD_MODE "
.LC18:
	.string	"ERL "
.LC19:
	.string	"EXL "
.LC20:
	.string	"IE "
.LC21:
	.string	"Cause : %08lx\n"
.LC22:
	.string	"PrId  : %08x\n"
.LC23:
	.string	"BadVA : %016lx\n"
.LC24:
	.string	"CErr  : %016lx\n"
.LC25:
	.string	"NMI_SR: %016lx\n"
	.text
	.p2align 4
	.globl	nmi_cpu_eframe_save
	.type	nmi_cpu_eframe_save, @function
nmi_cpu_eframe_save:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR IP27_NMI_KREGS_OFFSET[rip]
	call	TO_NODE@PLT
	mov	edi, eax
	call	TO_UNCAC@PLT
	mov	r12d, DWORD PTR IP27_NMI_KREGS_CPU_SIZE[rip]
	mov	edx, r13d
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	imul	r12d, r13d
	lea	r13, .LC1[rip]
	movsx	r12, r12d
	add	r12, rax
	xor	eax, eax
	call	pr_emerg@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 24[r12]
	lea	rdi, .LC2[rip]
	add	ebp, 1
	mov	rsi, QWORD PTR [rax+rbx*8]
	xor	eax, eax
	call	pr_cont@PLT
	and	ebp, 3
	je	.L36
	add	rbx, 1
	cmp	rbx, 32
	je	.L37
.L4:
	mov	ebp, ebx
	test	bl, 3
	jne	.L2
	mov	esi, ebx
	mov	rdi, r13
	xor	eax, eax
	call	pr_emerg@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L36:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	add	rbx, 1
	call	pr_cont@PLT
	cmp	rbx, 32
	jne	.L4
.L37:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	mov	rsi, QWORD PTR 40[r12]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	mov	rdx, rsi
	call	pr_emerg@PLT
	xor	eax, eax
	call	print_tainted@PLT
	lea	rdi, .LC7[rip]
	mov	esi, eax
	xor	eax, eax
	call	pr_emerg@PLT
	mov	rsi, QWORD PTR 32[r12]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	mov	rdx, rsi
	call	pr_emerg@PLT
	mov	rax, QWORD PTR 24[r12]
	lea	rdi, .LC9[rip]
	mov	rsi, QWORD PTR 248[rax]
	xor	eax, eax
	mov	rdx, rsi
	call	pr_emerg@PLT
	mov	esi, DWORD PTR [r12]
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_KX[rip], eax
	jne	.L38
	test	DWORD PTR ST0_SX[rip], eax
	jne	.L39
.L6:
	test	DWORD PTR ST0_UX[rip], eax
	jne	.L40
.L7:
	and	eax, DWORD PTR ST0_KSU[rip]
	cmp	eax, 129
	je	.L8
.L45:
	cmp	eax, 130
	je	.L9
	cmp	eax, 128
	je	.L41
	lea	rdi, .LC17[rip]
	xor	eax, eax
	call	pr_cont@PLT
.L11:
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_ERL[rip], eax
	jne	.L42
.L12:
	test	DWORD PTR ST0_EXL[rip], eax
	jne	.L43
.L13:
	test	DWORD PTR ST0_IE[rip], eax
	jne	.L44
.L14:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, .LC21[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	xor	eax, eax
	call	read_c0_prid@PLT
	lea	rdi, .LC22[rip]
	mov	esi, eax
	xor	eax, eax
	call	pr_emerg@PLT
	mov	esi, DWORD PTR 12[r12]
	lea	rdi, .LC23[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	mov	esi, DWORD PTR 8[r12]
	lea	rdi, .LC24[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	mov	esi, DWORD PTR 4[r12]
	lea	rdi, .LC25[rip]
	xor	eax, eax
	call	pr_emerg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC3[rip]
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	pr_emerg@PLT
.L38:
	.cfi_restore_state
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_SX[rip], eax
	je	.L6
.L39:
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_UX[rip], eax
	je	.L7
.L40:
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	and	eax, DWORD PTR ST0_KSU[rip]
	cmp	eax, 129
	jne	.L45
.L8:
	lea	rdi, .LC15[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_ERL[rip], eax
	je	.L12
.L42:
	lea	rdi, .LC18[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_EXL[rip], eax
	je	.L13
.L43:
	lea	rdi, .LC19[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR ST0_IE[rip], eax
	je	.L14
.L44:
	lea	rdi, .LC20[rip]
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L41:
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC16[rip]
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	nmi_cpu_eframe_save, .-nmi_cpu_eframe_save
	.comm	ST0_UX,4,4
	.comm	ST0_SX,4,4
	.comm	ST0_KX,4,4
	.comm	ST0_KSU,4,4
	.comm	ST0_IE,4,4
	.comm	ST0_EXL,4,4
	.comm	ST0_ERL,4,4
	.comm	IP27_NMI_KREGS_OFFSET,4,4
	.comm	IP27_NMI_KREGS_CPU_SIZE,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_ip27-nmi.c_nmi_cpu_eframe_save.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NMI nasid %d: slice %d\012\000"
	.align	2
.LC1:
	.ascii	"$%2d   :\000"
	.align	2
.LC2:
	.ascii	" %016lx\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"Hi    : (value lost)\012\000"
	.align	2
.LC5:
	.ascii	"Lo    : (value lost)\012\000"
	.align	2
.LC6:
	.ascii	"epc   : %016lx %pS\012\000"
	.align	2
.LC7:
	.ascii	"%s\012\000"
	.align	2
.LC8:
	.ascii	"ErrEPC: %016lx %pS\012\000"
	.align	2
.LC9:
	.ascii	"ra    : %016lx %pS\012\000"
	.align	2
.LC10:
	.ascii	"Status: %08lx\011      \000"
	.align	2
.LC11:
	.ascii	"KX \000"
	.align	2
.LC12:
	.ascii	"SX \000"
	.align	2
.LC13:
	.ascii	"UX \000"
	.align	2
.LC14:
	.ascii	"USER \000"
	.align	2
.LC15:
	.ascii	"SUPERVISOR \000"
	.align	2
.LC16:
	.ascii	"KERNEL \000"
	.align	2
.LC17:
	.ascii	"BAD_MODE \000"
	.align	2
.LC18:
	.ascii	"ERL \000"
	.align	2
.LC19:
	.ascii	"EXL \000"
	.align	2
.LC20:
	.ascii	"IE \000"
	.align	2
.LC21:
	.ascii	"Cause : %08lx\012\000"
	.align	2
.LC22:
	.ascii	"PrId  : %08x\012\000"
	.align	2
.LC23:
	.ascii	"BadVA : %016lx\012\000"
	.align	2
.LC24:
	.ascii	"CErr  : %016lx\012\000"
	.align	2
.LC25:
	.ascii	"NMI_SR: %016lx\012\000"
	.text
	.align	2
	.global	nmi_cpu_eframe_save
	.syntax unified
	.arm
	.fpu softvfp
	.type	nmi_cpu_eframe_save, %function
nmi_cpu_eframe_save:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L45
	mov	r8, r1
	ldr	r1, [r3]
	mov	r5, r0
	bl	TO_NODE
	bl	TO_UNCAC
	mov	r4, #0
	mov	fp, r0
	ldr	r3, .L45+4
	mov	r2, r8
	ldr	r3, [r3]
	mov	r1, r5
	mul	r8, r3, r8
	ldr	r0, .L45+8
	mov	r5, r4
	bl	pr_emerg
	ldr	r10, .L45+12
	ldr	r7, .L45+16
	ldr	r9, .L45+20
	add	r6, r8, fp
	b	.L4
.L2:
	ldr	r3, [r6, #20]
	mov	r0, r7
	ldr	r1, [r3, r4, lsl #2]
	add	r4, r4, #1
	bl	pr_cont
	ands	r5, r4, #3
	beq	.L36
	cmp	r4, #32
	beq	.L37
.L4:
	cmp	r5, #0
	bne	.L2
	mov	r1, r4
	mov	r0, r10
	bl	pr_emerg
	b	.L2
.L36:
	mov	r0, r9
	bl	pr_cont
	cmp	r4, #32
	bne	.L4
.L37:
	ldr	r0, .L45+24
	bl	pr_emerg
	ldr	r0, .L45+28
	bl	pr_emerg
	ldr	r2, [r6, #28]
	ldr	r0, .L45+32
	mov	r1, r2
	bl	pr_emerg
	bl	print_tainted
	mov	r1, r0
	ldr	r0, .L45+36
	bl	pr_emerg
	ldr	r2, [r6, #24]
	ldr	r0, .L45+40
	mov	r1, r2
	bl	pr_emerg
	ldr	r3, [r6, #20]
	ldr	r0, .L45+44
	ldr	r2, [r3, #124]
	mov	r1, r2
	bl	pr_emerg
	ldr	r1, [r8, fp]
	ldr	r0, .L45+48
	bl	pr_emerg
	ldr	r2, .L45+52
	ldr	r3, [r8, fp]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L38
	ldr	r2, .L45+56
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L39
.L6:
	ldr	r2, .L45+60
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L40
.L7:
	ldr	r2, .L45+64
	ldr	r2, [r2]
	and	r3, r3, r2
	cmp	r3, #129
	beq	.L8
	cmp	r3, #130
	beq	.L9
	cmp	r3, #128
	beq	.L41
	ldr	r0, .L45+68
	bl	pr_cont
.L11:
	ldr	r2, .L45+72
	ldr	r3, [r8, fp]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L42
.L12:
	ldr	r2, .L45+76
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L43
.L13:
	ldr	r2, .L45+80
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L44
.L14:
	ldr	r0, .L45+20
	bl	pr_cont
	ldr	r1, [r6, #16]
	ldr	r0, .L45+84
	bl	pr_emerg
	bl	read_c0_prid
	mov	r1, r0
	ldr	r0, .L45+88
	bl	pr_emerg
	ldr	r1, [r6, #12]
	ldr	r0, .L45+92
	bl	pr_emerg
	ldr	r1, [r6, #8]
	ldr	r0, .L45+96
	bl	pr_emerg
	ldr	r1, [r6, #4]
	ldr	r0, .L45+100
	bl	pr_emerg
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L45+20
	b	pr_emerg
.L38:
	ldr	r0, .L45+104
	bl	pr_cont
	ldr	r2, .L45+56
	ldr	r3, [r8, fp]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L6
.L39:
	ldr	r0, .L45+108
	bl	pr_cont
	ldr	r2, .L45+60
	ldr	r3, [r8, fp]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L7
.L40:
	ldr	r0, .L45+112
	bl	pr_cont
	ldr	r3, [r8, fp]
	b	.L7
.L44:
	ldr	r0, .L45+116
	bl	pr_cont
	b	.L14
.L43:
	ldr	r0, .L45+120
	bl	pr_cont
	ldr	r3, [r8, fp]
	b	.L13
.L42:
	ldr	r0, .L45+124
	bl	pr_cont
	ldr	r3, [r8, fp]
	b	.L12
.L41:
	ldr	r0, .L45+128
	bl	pr_cont
	b	.L11
.L9:
	ldr	r0, .L45+132
	bl	pr_cont
	b	.L11
.L8:
	ldr	r0, .L45+136
	bl	pr_cont
	b	.L11
.L46:
	.align	2
.L45:
	.word	IP27_NMI_KREGS_OFFSET
	.word	IP27_NMI_KREGS_CPU_SIZE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	ST0_KX
	.word	ST0_SX
	.word	ST0_UX
	.word	ST0_KSU
	.word	.LC17
	.word	ST0_ERL
	.word	ST0_EXL
	.word	ST0_IE
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC20
	.word	.LC19
	.word	.LC18
	.word	.LC14
	.word	.LC16
	.word	.LC15
	.size	nmi_cpu_eframe_save, .-nmi_cpu_eframe_save
	.comm	ST0_UX,4,4
	.comm	ST0_SX,4,4
	.comm	ST0_KX,4,4
	.comm	ST0_KSU,4,4
	.comm	ST0_IE,4,4
	.comm	ST0_EXL,4,4
	.comm	ST0_ERL,4,4
	.comm	IP27_NMI_KREGS_OFFSET,4,4
	.comm	IP27_NMI_KREGS_CPU_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
