	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_lmc_edac_probe
_octeon_lmc_edac_probe:                 ## @octeon_lmc_edac_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_opstate_init
	movq	_EDAC_MC_LAYER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$1, -56(%rbp)
	xorl	%eax, %eax
	callq	_OCTEON_IS_OCTEON1PLUS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_CVMX_LMCX_MEM_CFG0
	movl	%eax, %edi
	callq	_cvmx_read_csr
LBB0_3:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_CVMX_LMCX_CONFIG
	movl	%eax, %edi
	callq	_cvmx_read_csr
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_edac_mc_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	leaq	4(%rbx), %r15
	movq	%r15, 32(%rax)
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, 24(%r12)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_octeon_lmc_edac_poll_o2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_octeon_dev_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_edac_mc_add_mc_with_groups
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_edac_mc_free
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%r14d, %edi
	callq	_CVMX_LMCX_MEM_CFG0
	movl	%eax, %edi
	callq	_cvmx_read_csr
	movl	%r14d, %edi
	callq	_CVMX_LMCX_MEM_CFG0
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ## @EDAC_MC_LAYER_CHANNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabled (ECC not enabled)\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"octeon-lmc"

	.comm	_octeon_lmc_edac_poll,4,2       ## @octeon_lmc_edac_poll
	.comm	_octeon_dev_groups,4,2          ## @octeon_dev_groups
L_.str.3:                               ## @.str.3
	.asciz	"edac_mc_add_mc() failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"co_lmc_err"

	.comm	_octeon_lmc_edac_poll_o2,4,2    ## @octeon_lmc_edac_poll_o2
	.no_dead_strip	_octeon_lmc_edac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function octeon_lmc_edac_probe
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_octeon_lmc_edac_probe:                 ; @octeon_lmc_edac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w20, [x0]
	bl	_opstate_init
Lloh3:
	adrp	x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDAC_MC_LAYER_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	bl	_OCTEON_IS_OCTEON1PLUS
	cbz	x0, LBB0_6
; %bb.1:
	mov	w0, #0
	bl	_CVMX_LMCX_MEM_CFG0
	bl	_cvmx_read_csr
LBB0_2:
	add	x0, x19, #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	_CVMX_LMCX_CONFIG
	bl	_cvmx_read_csr
	cbz	w0, LBB0_2
; %bb.7:
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_edac_mc_alloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	add	x22, x19, #4
	str	x22, [x0, #32]
	mov	x0, x22
	bl	_dev_name
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x0, [x21, #24]
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh17:
	adrp	x10, _octeon_lmc_edac_poll_o2@GOTPAGE
Lloh18:
	ldr	x10, [x10, _octeon_lmc_edac_poll_o2@GOTPAGEOFF]
	stp	x8, x9, [x21]
Lloh19:
	ldr	w8, [x10]
	str	w8, [x21, #16]
Lloh20:
	adrp	x8, _octeon_dev_groups@GOTPAGE
Lloh21:
	ldr	x8, [x8, _octeon_dev_groups@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_edac_mc_add_mc_with_groups
	cbz	x0, LBB0_11
; %bb.9:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x21
	bl	_edac_mc_free
LBB0_10:
Lloh25:
	adrp	x8, _ENXIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_11:
	mov	x0, x20
	bl	_CVMX_LMCX_MEM_CFG0
	bl	_cvmx_read_csr
	mov	x0, x20
	bl	_CVMX_LMCX_MEM_CFG0
	mov	x1, #0
	bl	_cvmx_write_csr
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_MC_LAYER_CHANNEL,4,2      ; @EDAC_MC_LAYER_CHANNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabled (ECC not enabled)\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"octeon-lmc"

	.comm	_octeon_lmc_edac_poll,4,2       ; @octeon_lmc_edac_poll
	.comm	_octeon_dev_groups,4,2          ; @octeon_dev_groups
l_.str.3:                               ; @.str.3
	.asciz	"edac_mc_add_mc() failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"co_lmc_err"

	.comm	_octeon_lmc_edac_poll_o2,4,2    ; @octeon_lmc_edac_poll_o2
	.no_dead_strip	_octeon_lmc_edac_probe
.subsections_via_symbols
