	.file	"extr_amd.c___log_error.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__log_error, @function
__log_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdi, r14
	call	mce_setup@PLT
	xor	eax, eax
	mov	DWORD PTR [rsp], r13d
	mov	QWORD PTR 24[rsp], r12
	mov	DWORD PTR 4[rsp], ebp
	call	rdtsc@PLT
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR MCI_STATUS_ADDRV[rip], eax
	je	.L2
	cmp	QWORD PTR mce_flags[rip], 0
	mov	DWORD PTR 8[rsp], ebx
	jne	.L15
.L4:
	mov	rdi, r14
	call	mce_log@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	ecx, 56
	mov	esi, ebx
	mov	edi, 55
	sar	esi, cl
	and	esi, 63
	call	GENMASK_ULL@PLT
	and	DWORD PTR 8[rsp], eax
.L2:
	cmp	QWORD PTR mce_flags[rip], 0
	je	.L4
	mov	r12d, DWORD PTR 16[rsp]
	mov	edi, ebp
	call	MSR_AMD64_SMCA_MCx_IPID@PLT
	mov	edi, eax
	mov	esi, r12d
	call	rdmsrl@PLT
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR MCI_STATUS_SYNDV[rip], eax
	je	.L4
	mov	r12d, DWORD PTR 12[rsp]
	mov	edi, ebp
	call	MSR_AMD64_SMCA_MCx_SYND@PLT
	mov	edi, eax
	mov	esi, r12d
	call	rdmsrl@PLT
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__log_error, .-__log_error
	.comm	mce_flags,8,8
	.comm	MCI_STATUS_SYNDV,4,4
	.comm	MCI_STATUS_ADDRV,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_amd.c___log_error.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__log_error, %function
__log_error:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	mov	r5, r3
	mov	r4, r0
	sub	sp, sp, #36
	ldr	r3, .L20
	mov	r0, sp
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	mce_setup
	str	r5, [sp, #24]
	str	r6, [sp]
	str	r4, [sp, #4]
	bl	rdtsc
	ldr	r3, .L20+4
	ldr	r2, [sp]
	ldr	r3, [r3]
	ldr	r5, .L20+8
	tst	r2, r3
	str	r0, [sp, #20]
	beq	.L2
	ldr	r3, [r5]
	str	r7, [sp, #8]
	cmp	r3, #0
	bne	.L18
.L4:
	mov	r0, sp
	bl	mce_log
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r1, #56
	asr	r1, r7, r1
	mov	r0, #55
	and	r1, r1, #63
	bl	GENMASK_ULL
	ldr	r3, [sp, #8]
	and	r3, r3, r0
	str	r3, [sp, #8]
.L2:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L4
	mov	r0, r4
	bl	MSR_AMD64_SMCA_MCx_IPID
	ldr	r1, [sp, #16]
	bl	rdmsrl
	ldr	r3, .L20+12
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	mov	r0, r4
	bl	MSR_AMD64_SMCA_MCx_SYND
	ldr	r1, [sp, #12]
	bl	rdmsrl
	b	.L4
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	MCI_STATUS_ADDRV
	.word	mce_flags
	.word	MCI_STATUS_SYNDV
	.size	__log_error, .-__log_error
	.comm	mce_flags,4,4
	.comm	MCI_STATUS_SYNDV,4,4
	.comm	MCI_STATUS_ADDRV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
