	.file	"extr_mca.c_mca_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mca"
.LC1:
	.string	"count"
.LC2:
	.string	"Record count"
.LC3:
	.string	"maxcount"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Maximum record count (-1 is unlimited)"
	.section	.rodata.str1.1
.LC5:
	.string	"I"
.LC6:
	.string	"interval"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Periodic interval in seconds to scan for machine checks"
	.section	.rodata.str1.1
.LC8:
	.string	"records"
.LC9:
	.string	"Machine check records"
.LC10:
	.string	"force_scan"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"Force an immediate scan for machine checks"
	.text
	.p2align 4
	.type	mca_setup, @function
mca_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR CPU_VENDOR_AMD[rip]
	cmp	QWORD PTR cpu_vendor_id[rip], rax
	je	.L7
.L3:
	mov	ecx, DWORD PTR MTX_SPIN[rip]
	xor	edx, edx
	and	ebx, DWORD PTR MCG_CAP_COUNT[rip]
	lea	rsi, .LC0[rip]
	lea	rdi, mca_lock[rip]
	mov	DWORD PTR mca_banks[rip], ebx
	lea	rbp, .LC5[rip]
	call	mtx_init@PLT
	lea	rdi, mca_records[rip]
	call	STAILQ_INIT@PLT
	lea	rdi, mca_pending[rip]
	call	STAILQ_INIT@PLT
	mov	edx, DWORD PTR mca_scan_cpus[rip]
	xor	ecx, ecx
	xor	esi, esi
	lea	rdi, mca_scan_task[rip]
	call	TASK_INIT@PLT
	mov	esi, 1
	lea	rdi, mca_timer[rip]
	call	callout_init@PLT
	lea	rdi, mca_freelist[rip]
	call	STAILQ_INIT@PLT
	mov	edx, DWORD PTR mca_resize[rip]
	xor	ecx, ecx
	xor	esi, esi
	lea	rdi, mca_resize_task[rip]
	call	TASK_INIT@PLT
	xor	eax, eax
	call	mca_resize_freelist@PLT
	mov	edi, DWORD PTR _hw_mca[rip]
	mov	ebx, DWORD PTR CTLFLAG_RD[rip]
	mov	r12d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_STATIC_CHILDREN@PLT
	mov	r8d, ebx
	lea	r9, mca_count[rip]
	xor	edi, edi
	mov	esi, eax
	lea	rax, .LC2[rip]
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 56
	lea	rcx, .LC1[rip]
	push	0
	.cfi_def_cfa_offset 64
	call	SYSCTL_ADD_INT@PLT
	mov	edi, DWORD PTR _hw_mca[rip]
	mov	r13d, DWORD PTR sysctl_mca_maxcount[rip]
	mov	r12d, DWORD PTR OID_AUTO[rip]
	mov	ebx, DWORD PTR CTLTYPE_INT[rip]
	or	ebx, DWORD PTR CTLFLAG_RWTUN[rip]
	or	ebx, DWORD PTR CTLFLAG_MPSAFE[rip]
	call	SYSCTL_STATIC_CHILDREN@PLT
	mov	r8d, ebx
	mov	edx, r12d
	xor	edi, edi
	mov	esi, eax
	lea	rax, .LC4[rip]
	lea	r9, mca_maxcount[rip]
	push	rax
	.cfi_def_cfa_offset 72
	lea	rcx, .LC3[rip]
	push	rbp
	.cfi_def_cfa_offset 80
	push	r13
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	call	SYSCTL_ADD_PROC@PLT
	mov	edi, DWORD PTR _hw_mca[rip]
	add	rsp, 48
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR sysctl_positive_int[rip]
	mov	r12d, DWORD PTR OID_AUTO[rip]
	mov	ebx, DWORD PTR CTLTYPE_INT[rip]
	or	ebx, DWORD PTR CTLFLAG_RW[rip]
	or	ebx, DWORD PTR CTLFLAG_MPSAFE[rip]
	call	SYSCTL_STATIC_CHILDREN@PLT
	mov	r8d, ebx
	mov	edx, r12d
	xor	edi, edi
	mov	esi, eax
	lea	rax, .LC7[rip]
	lea	r9, mca_ticks[rip]
	push	rax
	.cfi_def_cfa_offset 56
	lea	rcx, .LC6[rip]
	push	rbp
	.cfi_def_cfa_offset 64
	push	r13
	.cfi_def_cfa_offset 72
	push	0
	.cfi_def_cfa_offset 80
	call	SYSCTL_ADD_PROC@PLT
	mov	edi, DWORD PTR _hw_mca[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR sysctl_mca_records[rip]
	mov	ebx, DWORD PTR CTLFLAG_RD[rip]
	mov	r12d, DWORD PTR OID_AUTO[rip]
	call	SYSCTL_STATIC_CHILDREN@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9d, r13d
	xor	edi, edi
	mov	esi, eax
	lea	rax, .LC9[rip]
	mov	r8d, ebx
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 64
	lea	rcx, .LC8[rip]
	call	SYSCTL_ADD_NODE@PLT
	mov	edi, DWORD PTR _hw_mca[rip]
	mov	r13d, DWORD PTR sysctl_mca_scan[rip]
	mov	r12d, DWORD PTR OID_AUTO[rip]
	mov	ebx, DWORD PTR CTLTYPE_INT[rip]
	or	ebx, DWORD PTR CTLFLAG_RW[rip]
	or	ebx, DWORD PTR CTLFLAG_MPSAFE[rip]
	call	SYSCTL_STATIC_CHILDREN@PLT
	mov	r8d, ebx
	mov	edx, r12d
	xor	r9d, r9d
	mov	esi, eax
	lea	rax, .LC11[rip]
	lea	rcx, .LC10[rip]
	xor	edi, edi
	push	rax
	.cfi_def_cfa_offset 72
	push	rbp
	.cfi_def_cfa_offset 80
	push	r13
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	call	SYSCTL_ADD_PROC@PLT
	add	rsp, 56
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR cpu_id[rip]
	call	CPUID_TO_FAMILY@PLT
	cmp	eax, 16
	jne	.L3
	cmp	QWORD PTR amd10h_L1TP[rip], 0
	je	.L3
	mov	DWORD PTR workaround_erratum383[rip], 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mca_setup, .-mca_setup
	.comm	workaround_erratum383,4,4
	.comm	sysctl_positive_int,4,4
	.comm	sysctl_mca_scan,4,4
	.comm	sysctl_mca_records,4,4
	.comm	sysctl_mca_maxcount,4,4
	.comm	mca_timer,4,4
	.comm	mca_ticks,4,4
	.comm	mca_scan_task,4,4
	.comm	mca_scan_cpus,4,4
	.comm	mca_resize_task,4,4
	.comm	mca_resize,4,4
	.comm	mca_records,4,4
	.comm	mca_pending,4,4
	.comm	mca_maxcount,4,4
	.comm	mca_lock,4,4
	.comm	mca_freelist,4,4
	.comm	mca_count,4,4
	.comm	mca_banks,4,4
	.comm	cpu_vendor_id,8,8
	.comm	cpu_id,4,4
	.comm	amd10h_L1TP,8,8
	.comm	_hw_mca,4,4
	.comm	OID_AUTO,4,4
	.comm	MTX_SPIN,4,4
	.comm	MCG_CAP_COUNT,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RW,4,4
	.comm	CTLFLAG_RD,4,4
	.comm	CTLFLAG_MPSAFE,4,4
	.comm	CPU_VENDOR_AMD,8,8
	.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_mca.c_mca_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mca\000"
	.align	2
.LC1:
	.ascii	"count\000"
	.align	2
.LC2:
	.ascii	"Record count\000"
	.align	2
.LC3:
	.ascii	"maxcount\000"
	.align	2
.LC4:
	.ascii	"Maximum record count (-1 is unlimited)\000"
	.align	2
.LC5:
	.ascii	"I\000"
	.align	2
.LC6:
	.ascii	"interval\000"
	.align	2
.LC7:
	.ascii	"Periodic interval in seconds to scan for machine ch"
	.ascii	"ecks\000"
	.align	2
.LC8:
	.ascii	"records\000"
	.align	2
.LC9:
	.ascii	"Machine check records\000"
	.align	2
.LC10:
	.ascii	"force_scan\000"
	.align	2
.LC11:
	.ascii	"Force an immediate scan for machine checks\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mca_setup, %function
mca_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	sub	sp, sp, #28
	beq	.L10
.L3:
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	ip, [r2]
	ldr	lr, .L11+16
	and	ip, ip, r4
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r1, .L11+20
	ldr	r0, .L11+24
	str	ip, [lr]
	bl	mtx_init
	ldr	r0, .L11+28
	bl	STAILQ_INIT
	ldr	r0, .L11+32
	bl	STAILQ_INIT
	mov	r3, #0
	ldr	r2, .L11+36
	mov	r1, r3
	ldr	r2, [r2]
	ldr	r0, .L11+40
	bl	TASK_INIT
	mov	r1, #1
	ldr	r0, .L11+44
	bl	callout_init
	ldr	r0, .L11+48
	bl	STAILQ_INIT
	mov	r3, #0
	ldr	r2, .L11+52
	ldr	r6, .L11+56
	mov	r1, r3
	ldr	r2, [r2]
	ldr	r0, .L11+60
	bl	TASK_INIT
	bl	mca_resize_freelist
	ldr	r0, [r6]
	bl	SYSCTL_STATIC_CHILDREN
	mov	r4, #0
	ldr	fp, .L11+64
	ldr	r5, .L11+68
	ldr	r2, [fp]
	ldr	ip, .L11+72
	ldr	r3, .L11+76
	mov	r1, r0
	str	ip, [sp, #12]
	str	r2, [sp]
	str	r3, [sp, #4]
	ldr	r2, [r5]
	ldr	r3, .L11+80
	mov	r0, r4
	str	r4, [sp, #8]
	bl	SYSCTL_ADD_INT
	ldr	r0, [r6]
	bl	SYSCTL_STATIC_CHILDREN
	ldr	r9, .L11+84
	ldr	r2, .L11+88
	ldr	r8, .L11+92
	ldr	ip, [r2]
	ldr	r3, [r9]
	ldr	r2, .L11+96
	mov	r1, r0
	ldr	r0, [r8]
	ldr	r2, [r2]
	ldr	lr, .L11+100
	ldr	r7, .L11+104
	orr	r3, r3, ip
	ldr	ip, .L11+108
	orr	r3, r3, r0
	str	lr, [sp, #20]
	str	ip, [sp, #4]
	str	r3, [sp]
	str	r2, [sp, #12]
	ldr	r3, .L11+112
	ldr	r2, [r5]
	mov	r0, r4
	str	r4, [sp, #8]
	str	r7, [sp, #16]
	bl	SYSCTL_ADD_PROC
	ldr	r0, [r6]
	bl	SYSCTL_STATIC_CHILDREN
	ldr	r10, .L11+116
	ldr	r3, [r9]
	ldr	ip, [r10]
	ldr	r2, .L11+120
	mov	r1, r0
	ldr	r0, [r8]
	ldr	r2, [r2]
	ldr	lr, .L11+124
	orr	r3, r3, ip
	ldr	ip, .L11+128
	orr	r3, r3, r0
	str	ip, [sp, #20]
	str	lr, [sp, #4]
	str	r3, [sp]
	str	r2, [sp, #12]
	ldr	r3, .L11+132
	ldr	r2, [r5]
	mov	r0, r4
	str	r7, [sp, #16]
	str	r4, [sp, #8]
	bl	SYSCTL_ADD_PROC
	ldr	r0, [r6]
	bl	SYSCTL_STATIC_CHILDREN
	ldr	r3, .L11+136
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r0, [fp]
	ldr	r3, .L11+140
	stm	sp, {r0, r2}
	str	r3, [sp, #8]
	ldr	r2, [r5]
	ldr	r3, .L11+144
	mov	r0, r4
	bl	SYSCTL_ADD_NODE
	ldr	r0, [r6]
	bl	SYSCTL_STATIC_CHILDREN
	ldr	ip, [r10]
	mov	r1, r0
	ldr	r3, [r9]
	ldr	r0, .L11+148
	ldr	r2, [r8]
	ldr	lr, [r0]
	orr	r3, r3, ip
	ldr	ip, .L11+152
	orr	r3, r3, r2
	str	r3, [sp]
	mov	r0, r4
	ldr	r2, [r5]
	ldr	r3, .L11+156
	str	r7, [sp, #16]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	lr, [sp, #12]
	str	ip, [sp, #20]
	bl	SYSCTL_ADD_PROC
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L11+160
	ldr	r0, [r3]
	bl	CPUID_TO_FAMILY
	cmp	r0, #16
	bne	.L3
	ldr	r3, .L11+164
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r2, #1
	ldrne	r3, .L11+168
	strne	r2, [r3]
	b	.L3
.L12:
	.align	2
.L11:
	.word	cpu_vendor_id
	.word	CPU_VENDOR_AMD
	.word	MCG_CAP_COUNT
	.word	MTX_SPIN
	.word	mca_banks
	.word	.LC0
	.word	mca_lock
	.word	mca_records
	.word	mca_pending
	.word	mca_scan_cpus
	.word	mca_scan_task
	.word	mca_timer
	.word	mca_freelist
	.word	mca_resize
	.word	_hw_mca
	.word	mca_resize_task
	.word	CTLFLAG_RD
	.word	OID_AUTO
	.word	.LC2
	.word	mca_count
	.word	.LC1
	.word	CTLTYPE_INT
	.word	CTLFLAG_RWTUN
	.word	CTLFLAG_MPSAFE
	.word	sysctl_mca_maxcount
	.word	.LC4
	.word	.LC5
	.word	mca_maxcount
	.word	.LC3
	.word	CTLFLAG_RW
	.word	sysctl_positive_int
	.word	mca_ticks
	.word	.LC7
	.word	.LC6
	.word	sysctl_mca_records
	.word	.LC9
	.word	.LC8
	.word	sysctl_mca_scan
	.word	.LC11
	.word	.LC10
	.word	cpu_id
	.word	amd10h_L1TP
	.word	workaround_erratum383
	.size	mca_setup, .-mca_setup
	.comm	workaround_erratum383,4,4
	.comm	sysctl_positive_int,4,4
	.comm	sysctl_mca_scan,4,4
	.comm	sysctl_mca_records,4,4
	.comm	sysctl_mca_maxcount,4,4
	.comm	mca_timer,4,4
	.comm	mca_ticks,4,4
	.comm	mca_scan_task,4,4
	.comm	mca_scan_cpus,4,4
	.comm	mca_resize_task,4,4
	.comm	mca_resize,4,4
	.comm	mca_records,4,4
	.comm	mca_pending,4,4
	.comm	mca_maxcount,4,4
	.comm	mca_lock,4,4
	.comm	mca_freelist,4,4
	.comm	mca_count,4,4
	.comm	mca_banks,4,4
	.comm	cpu_vendor_id,4,4
	.comm	cpu_id,4,4
	.comm	amd10h_L1TP,4,4
	.comm	_hw_mca,4,4
	.comm	OID_AUTO,4,4
	.comm	MTX_SPIN,4,4
	.comm	MCG_CAP_COUNT,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RW,4,4
	.comm	CTLFLAG_RD,4,4
	.comm	CTLFLAG_MPSAFE,4,4
	.comm	CPU_VENDOR_AMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
