	.file	"extr_core.c___mc_scan_banks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__mc_scan_banks, @function
__mc_scan_banks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR mce_banks_array[rip]
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR [rsp], r8d
	mov	QWORD PTR 40[rsp], r9
	call	this_cpu_ptr@PLT
	mov	r15, rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR mce_num_banks[rip]
	mov	r14d, ebx
	call	this_cpu_read@PLT
	cmp	eax, ebx
	jle	.L23
	mov	rsi, r12
	mov	edi, ebx
	call	__clear_bit@PLT
	mov	rsi, r13
	mov	edi, ebx
	call	test_bit@PLT
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR [r15+rbx*4]
	test	edx, edx
	je	.L4
	mov	edi, ebx
	mov	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 0[rbp], ebx
	call	[QWORD PTR msr_ops[rip]]
	mov	edi, eax
	call	mce_rdmsrl@PLT
	mov	DWORD PTR 4[rbp], eax
	test	DWORD PTR MCI_STATUS_VAL[rip], eax
	je	.L4
	cmp	QWORD PTR mca_cfg[rip+8], 0
	mov	edx, DWORD PTR MCI_STATUS_UC[rip]
	je	.L7
	mov	edx, DWORD PTR MCI_STATUS_S[rip]
.L7:
	and	eax, edx
	or	eax, DWORD PTR [rsp]
	je	.L4
	mov	esi, DWORD PTR LOCKDEP_NOW_UNRELIABLE[rip]
	mov	edi, DWORD PTR TAINT_MACHINE_CHECK[rip]
	call	add_taint@PLT
	mov	esi, DWORD PTR mca_cfg[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 1
	call	mce_severity@PLT
	cmp	DWORD PTR MCE_KEEP_SEVERITY[rip], eax
	mov	edx, eax
	je	.L8
	cmp	DWORD PTR MCE_UCNA_SEVERITY[rip], eax
	je	.L8
.L9:
	mov	rsi, r12
	mov	edi, r14d
	mov	DWORD PTR 36[rsp], edx
	call	__set_bit@PLT
	mov	edx, DWORD PTR 36[rsp]
	cmp	DWORD PTR MCE_NO_SEVERITY[rip], edx
	je	.L4
	mov	esi, r14d
	mov	rdi, rbp
	call	mce_read_aux@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], edx
	call	mce_log@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 36[rsp]
	cmp	DWORD PTR [rax], edx
	jge	.L4
	movdqu	xmm3, XMMWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 24[rsp]
	movups	XMMWORD PTR [rcx], xmm3
	movdqu	xmm4, XMMWORD PTR 16[rbp]
	movups	XMMWORD PTR 16[rcx], xmm4
	mov	DWORD PTR [rax], edx
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 24[rsp]
	movdqu	xmm0, XMMWORD PTR [rax]
	movups	XMMWORD PTR 0[rbp], xmm0
	movdqu	xmm2, XMMWORD PTR 16[rax]
	movaps	XMMWORD PTR [rsp], xmm0
	movups	XMMWORD PTR 16[rbp], xmm2
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsp]
	test	eax, eax
	jne	.L9
	add	rbx, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	__mc_scan_banks, .-__mc_scan_banks
	.comm	msr_ops,8,8
	.comm	mce_num_banks,4,4
	.comm	mce_banks_array,4,4
	.comm	mca_cfg,16,16
	.comm	TAINT_MACHINE_CHECK,4,4
	.comm	MCI_STATUS_VAL,4,4
	.comm	MCI_STATUS_UC,4,4
	.comm	MCI_STATUS_S,4,4
	.comm	MCE_UCNA_SEVERITY,4,4
	.comm	MCE_NO_SEVERITY,4,4
	.comm	MCE_KEEP_SEVERITY,4,4
	.comm	LOCKDEP_NOW_UNRELIABLE,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_core.c___mc_scan_banks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__mc_scan_banks, %function
__mc_scan_banks:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L28
	sub	sp, sp, #12
	mov	r5, r0
	ldr	r0, [ip]
	mov	r6, r2
	mov	r7, r3
	str	r1, [sp, #4]
	bl	this_cpu_ptr
	ldr	r8, .L28+4
	mov	r9, r0
	ldr	r0, [r8]
	mov	r4, #0
	bl	this_cpu_read
	cmp	r0, r4
	ldr	fp, .L28+8
	ldr	r10, .L28+12
	ble	.L26
.L10:
	mov	r1, r6
	mov	r0, r4
	bl	__clear_bit
	mov	r1, r7
	mov	r0, r4
	bl	test_bit
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r9, r4, lsl #2]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	mov	r0, r4
	str	r3, [r5, #16]
	str	r3, [r5, #12]
	str	r4, [r5]
	ldr	r3, [fp]
	blx	r3
	bl	mce_rdmsrl
	ldr	r3, [r10]
	str	r0, [r5, #4]
	tst	r0, r3
	beq	.L4
	ldr	r3, .L28+16
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ldrne	r3, .L28+20
	ldreq	r3, .L28+24
	ldr	r3, [r3]
	and	r0, r0, r3
	ldr	r3, [sp, #48]
	orrs	r3, r0, r3
	beq	.L4
	ldr	r3, .L28+28
	ldr	r1, [r3]
	ldr	r3, .L28+32
	ldr	r0, [r3]
	bl	add_taint
	ldr	r1, .L28+16
	mov	r3, #1
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r1]
	bl	mce_severity
	ldr	r3, .L28+36
	str	r0, [sp]
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
	ldr	r3, .L28+40
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
.L9:
	mov	r1, r6
	mov	r0, r4
	bl	__set_bit
	ldr	r3, .L28+44
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	mce_read_aux
	ldr	r2, [sp]
	mov	r0, r5
	str	r2, [r5, #8]
	bl	mce_log
	ldr	r3, [sp, #52]
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r3, r2
	bge	.L4
	mov	lr, r5
	ldr	ip, [sp, #4]
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	ldr	r2, [sp]
	str	r3, [ip]
	ldr	r3, [sp, #52]
	str	r2, [r3]
.L4:
	add	r4, r4, #1
.L27:
	ldr	r0, [r8]
	bl	this_cpu_read
	cmp	r0, r4
	bgt	.L10
.L26:
	ldr	ip, [sp, #4]
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, [sp, #48]
	cmp	r3, #0
	bne	.L9
	add	r4, r4, #1
	b	.L27
.L29:
	.align	2
.L28:
	.word	mce_banks_array
	.word	mce_num_banks
	.word	msr_ops
	.word	MCI_STATUS_VAL
	.word	mca_cfg
	.word	MCI_STATUS_S
	.word	MCI_STATUS_UC
	.word	LOCKDEP_NOW_UNRELIABLE
	.word	TAINT_MACHINE_CHECK
	.word	MCE_KEEP_SEVERITY
	.word	MCE_UCNA_SEVERITY
	.word	MCE_NO_SEVERITY
	.size	__mc_scan_banks, .-__mc_scan_banks
	.comm	msr_ops,4,4
	.comm	mce_num_banks,4,4
	.comm	mce_banks_array,4,4
	.comm	mca_cfg,8,4
	.comm	TAINT_MACHINE_CHECK,4,4
	.comm	MCI_STATUS_VAL,4,4
	.comm	MCI_STATUS_UC,4,4
	.comm	MCI_STATUS_S,4,4
	.comm	MCE_UCNA_SEVERITY,4,4
	.comm	MCE_NO_SEVERITY,4,4
	.comm	MCE_KEEP_SEVERITY,4,4
	.comm	LOCKDEP_NOW_UNRELIABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
