	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_lmc_edac_poll
_octeon_lmc_edac_poll:                  ## @octeon_lmc_edac_poll
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %edi
	callq	_CVMX_LMCX_MEM_CFG0
	movl	%eax, %edi
	callq	_cvmx_read_csr
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
LBB0_2:
	movl	(%r14), %edi
	callq	_CVMX_LMCX_FADR
	movl	%eax, %edi
	callq	_cvmx_read_csr
	movq	%rax, %r8
	shrq	$32, %r8
	subq	$16, %rsp
	leaq	L_.str(%rip), %rdx
	leaq	-96(%rbp), %rdi
	movl	$64, %esi
	movl	%eax, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_snprintf
	addq	$16, %rsp
LBB0_3:
	leaq	L_.str.1(%rip), %r15
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	$8, %rsp
	leaq	-96(%rbp), %rax
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rax
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	orq	%rax, %rbx
	movq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_8
LBB0_6:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	$8, %rsp
	leaq	-96(%rbp), %rax
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rax
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	orq	%rax, %rbx
LBB0_7:
	movl	(%r14), %edi
	callq	_CVMX_LMCX_MEM_CFG0
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_cvmx_write_csr
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIMM %d rank %d bank %d row %d col %d"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.no_dead_strip	_octeon_lmc_edac_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_lmc_edac_poll
_octeon_lmc_edac_poll:                  ; @octeon_lmc_edac_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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]
	stur	x8, [x29, #-40]
	ldr	w0, [x0]
	bl	_CVMX_LMCX_MEM_CFG0
	bl	_cvmx_read_csr
	mov	x20, x0
	cmp	w20, #0
	lsr	x22, x0, #32
	ccmp	x22, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_CVMX_LMCX_FADR
	bl	_cvmx_read_csr
	mov	x3, x0
	lsr	x4, x0, #32
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #64
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_snprintf
LBB0_2:
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	cbz	w20, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x8, sp, #24
	stp	x8, x21, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
	orr	x20, x20, #0xffffffff
	lsr	x8, x20, #32
	cbnz	x8, LBB0_5
	b	LBB0_6
LBB0_4:
	cbz	x22, LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x8, sp, #24
	stp	x8, x21, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
	orr	x20, x20, #0xffffffff00000000
LBB0_6:
	ldr	w0, [x19]
	bl	_CVMX_LMCX_MEM_CFG0
	mov	x1, x20
	bl	_cvmx_write_csr
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIMM %d rank %d bank %d row %d col %d"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.no_dead_strip	_octeon_lmc_edac_poll
.subsections_via_symbols
