	.file	"extr_octeon_edac-lmc.c_octeon_lmc_edac_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Disabled (ECC not enabled)\n"
.LC1:
	.string	"octeon-lmc"
.LC2:
	.string	"octeon-lmc-err"
.LC3:
	.string	"edac_mc_add_mc() failed\n"
.LC4:
	.string	"co_lmc_err"
	.text
	.p2align 4
	.type	octeon_lmc_edac_probe, @function
octeon_lmc_edac_probe:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r13d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	opstate_init@PLT
	mov	eax, DWORD PTR EDAC_MC_LAYER_CHANNEL[rip]
	mov	QWORD PTR 12[rsp], 1
	mov	DWORD PTR 20[rsp], eax
	xor	eax, eax
	call	OCTEON_IS_OCTEON1PLUS@PLT
	xor	edi, edi
	test	rax, rax
	je	.L2
	call	CVMX_LMCX_MEM_CFG0@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
.L8:
	lea	rdi, 4[rbp]
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	call	CVMX_LMCX_CONFIG@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	test	eax, eax
	je	.L8
	lea	r12, 12[rsp]
	mov	rdi, r12
	call	ARRAY_SIZE@PLT
	mov	rdx, r12
	mov	ecx, 4
	mov	edi, r13d
	mov	esi, eax
	call	edac_mc_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	lea	r14, 4[rbp]
	mov	QWORD PTR 32[rax], r14
	mov	rdi, r14
	call	dev_name@PLT
	mov	esi, DWORD PTR octeon_dev_groups[rip]
	mov	rdi, r12
	mov	QWORD PTR 24[r12], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR [r12], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR octeon_lmc_edac_poll_o2[rip]
	mov	DWORD PTR 16[r12], eax
	call	edac_mc_add_mc_with_groups@PLT
	test	rax, rax
	jne	.L16
	mov	edi, r13d
	call	CVMX_LMCX_MEM_CFG0@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, r13d
	call	CVMX_LMCX_MEM_CFG0@PLT
	xor	esi, esi
	mov	edi, eax
	call	cvmx_write_csr@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r14
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	mov	rdi, r12
	call	edac_mc_free@PLT
.L13:
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	octeon_lmc_edac_probe, .-octeon_lmc_edac_probe
	.comm	octeon_lmc_edac_poll_o2,4,4
	.comm	octeon_lmc_edac_poll,4,4
	.comm	octeon_dev_groups,4,4
	.comm	ENXIO,4,4
	.comm	EDAC_MC_LAYER_CHANNEL,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_octeon_edac-lmc.c_octeon_lmc_edac_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Disabled (ECC not enabled)\012\000"
	.align	2
.LC1:
	.ascii	"octeon-lmc\000"
	.align	2
.LC2:
	.ascii	"octeon-lmc-err\000"
	.align	2
.LC3:
	.ascii	"edac_mc_add_mc() failed\012\000"
	.align	2
.LC4:
	.ascii	"co_lmc_err\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_lmc_edac_probe, %function
octeon_lmc_edac_probe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, #0
	mov	r4, r0
	ldr	r6, [r0]
	bl	opstate_init
	mov	r2, #1
	ldr	r3, .L20+4
	str	r2, [sp]
	ldr	r3, [r3]
	str	r5, [sp, #4]
	str	r3, [sp, #8]
	bl	OCTEON_IS_OCTEON1PLUS
	cmp	r0, r5
	beq	.L2
	mov	r0, r5
	bl	CVMX_LMCX_MEM_CFG0
	bl	cvmx_read_csr
.L8:
	ldr	r1, .L20+8
	add	r0, r4, #4
	bl	dev_info
	mov	r0, #0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	CVMX_LMCX_CONFIG
	bl	cvmx_read_csr
	cmp	r0, #0
	beq	.L8
	mov	r0, sp
	bl	ARRAY_SIZE
	mov	r2, sp
	mov	r1, r0
	mov	r3, #4
	mov	r0, r6
	bl	edac_mc_alloc
	subs	r5, r0, #0
	beq	.L16
	add	r8, r4, #4
	mov	r0, r8
	str	r8, [r5, #16]
	bl	dev_name
	ldr	r3, .L20+12
	ldr	r1, .L20+16
	ldr	r3, [r3]
	ldr	r2, .L20+20
	str	r3, [r5, #8]
	ldr	r3, .L20+24
	stm	r5, {r1, r2}
	str	r0, [r5, #12]
	ldr	r1, [r3]
	mov	r0, r5
	bl	edac_mc_add_mc_with_groups
	subs	r7, r0, #0
	bne	.L19
	mov	r0, r6
	bl	CVMX_LMCX_MEM_CFG0
	bl	cvmx_read_csr
	mov	r0, r6
	bl	CVMX_LMCX_MEM_CFG0
	mov	r1, r7
	bl	cvmx_write_csr
	mov	r1, r5
	mov	r0, r4
	bl	platform_set_drvdata
	mov	r0, #0
	b	.L1
.L19:
	mov	r0, r8
	ldr	r1, .L20+28
	bl	dev_err
	mov	r0, r5
	bl	edac_mc_free
.L16:
	ldr	r3, .L20+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	EDAC_MC_LAYER_CHANNEL
	.word	.LC0
	.word	octeon_lmc_edac_poll_o2
	.word	.LC1
	.word	.LC4
	.word	octeon_dev_groups
	.word	.LC3
	.word	ENXIO
	.size	octeon_lmc_edac_probe, .-octeon_lmc_edac_probe
	.comm	octeon_lmc_edac_poll_o2,4,4
	.comm	octeon_lmc_edac_poll,4,4
	.comm	octeon_dev_groups,4,4
	.comm	ENXIO,4,4
	.comm	EDAC_MC_LAYER_CHANNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
