	.file	"extr_k10temp.c_has_erratum_319.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	has_erratum_319, @function
has_erratum_319:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR boot_cpu_data[rip], 16
	je	.L9
.L2:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rbx, rdi
	mov	edi, -2147483647
	call	cpuid_ebx@PLT
	and	eax, DWORD PTR CPUID_PKGTYPE_MASK[rip]
	cmp	DWORD PTR CPUID_PKGTYPE_F[rip], eax
	je	.L5
	cmp	DWORD PTR CPUID_PKGTYPE_AM2R2_AM3[rip], eax
	jne	.L2
	mov	edi, DWORD PTR [rbx]
	mov	r12d, DWORD PTR REG_DCT0_CONFIG_HIGH[rip]
	call	PCI_SLOT@PLT
	mov	esi, 2
	mov	edi, eax
	call	PCI_DEVFN@PLT
	mov	edi, DWORD PTR 4[rbx]
	lea	rcx, 4[rsp]
	mov	edx, r12d
	mov	esi, eax
	call	pci_bus_read_config_dword@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR DDR3_MODE[rip], eax
	jne	.L2
	mov	eax, DWORD PTR boot_cpu_data[rip+4]
	cmp	eax, 3
	jle	.L5
	cmp	eax, 4
	jne	.L2
	cmp	DWORD PTR boot_cpu_data[rip+8], 2
	jg	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, 1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	has_erratum_319, .-has_erratum_319
	.comm	boot_cpu_data,12,8
	.comm	REG_DCT0_CONFIG_HIGH,4,4
	.comm	DDR3_MODE,4,4
	.comm	CPUID_PKGTYPE_MASK,4,4
	.comm	CPUID_PKGTYPE_F,4,4
	.comm	CPUID_PKGTYPE_AM2R2_AM3,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_k10temp.c_has_erratum_319.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	has_erratum_319, %function
has_erratum_319:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L11
	ldr	r2, .L11+4
	ldr	r3, [r5]
	sub	sp, sp, #12
	cmp	r3, #16
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	beq	.L9
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	mov	r4, r0
	mov	r0, #-2147483647
	bl	cpuid_ebx
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	and	r0, r0, r2
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L2
	ldm	r4, {r0, r4}
	bl	PCI_SLOT
	mov	r1, #2
	bl	PCI_DEVFN
	ldr	r3, .L11+20
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, sp
	bl	pci_bus_read_config_dword
	ldr	r3, .L11+24
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
	ldr	r3, [r5, #4]
	cmp	r3, #3
	ble	.L5
	cmp	r3, #4
	bne	.L2
	ldr	r3, [r5, #8]
	cmp	r3, #2
	bgt	.L2
.L5:
	mov	r0, #1
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	boot_cpu_data
	.word	.LC0
	.word	CPUID_PKGTYPE_MASK
	.word	CPUID_PKGTYPE_F
	.word	CPUID_PKGTYPE_AM2R2_AM3
	.word	REG_DCT0_CONFIG_HIGH
	.word	DDR3_MODE
	.size	has_erratum_319, .-has_erratum_319
	.comm	boot_cpu_data,12,4
	.comm	REG_DCT0_CONFIG_HIGH,4,4
	.comm	DDR3_MODE,4,4
	.comm	CPUID_PKGTYPE_MASK,4,4
	.comm	CPUID_PKGTYPE_F,4,4
	.comm	CPUID_PKGTYPE_AM2R2_AM3,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
