	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _octeon_l2c_poll_oct2
__octeon_l2c_poll_oct2:                 ## @_octeon_l2c_poll_oct2
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, %edi
	callq	_CVMX_L2C_ERR_TDTX
	movl	%eax, %edi
	callq	_cvmx_read_csr
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movabsq	$4294967296, %r13               ## imm = 0x100000000
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	shrq	$32, %rbx
	leaq	L_.str.1(%rip), %rdx
	leaq	-192(%rbp), %r12
	leaq	-112(%rbp), %rcx
	movq	%r12, %rdi
	movl	$80, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_edac_device_handle_ue
	movl	$1, %r12d
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	shrq	$32, %rbx
	je	LBB0_6
## %bb.2:
	xorl	%r12d, %r12d
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	leaq	-192(%rbp), %rbx
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%eax, %eax
	callq	_snprintf
	orq	%r13, %r12
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_edac_device_handle_ce
LBB0_5:
	movl	%r15d, %edi
	callq	_CVMX_L2C_ERR_TDTX
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_cvmx_write_csr
LBB0_6:
	movl	%r15d, %edi
	callq	_CVMX_L2C_ERR_TTGX
	movl	%eax, %edi
	callq	_cvmx_read_csr
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_10:
	shrq	$32, %rbx
	leaq	L_.str.5(%rip), %rdx
	leaq	-192(%rbp), %r12
	leaq	-112(%rbp), %rcx
	movq	%r12, %rdi
	movl	$80, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_edac_device_handle_ue
	movl	$1, %r12d
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	xorl	%eax, %eax
	callq	_snprintf
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_11:
	shrq	$32, %rbx
	je	LBB0_15
## %bb.12:
	xorl	%r12d, %r12d
LBB0_13:
	leaq	L_.str.6(%rip), %rdx
	leaq	-192(%rbp), %rbx
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%eax, %eax
	callq	_snprintf
	orq	%r13, %r12
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_edac_device_handle_ce
LBB0_14:
	movl	%r15d, %edi
	callq	_CVMX_L2C_ERR_TTGX
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_cvmx_write_csr
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type:%d, syn:0x%x, way:%d"

L_.str.1:                               ## @.str.1
	.asciz	"L2D Double bit error (detected):%s"

L_.str.2:                               ## @.str.2
	.asciz	"L2D Single bit error (corrected):%s"

L_.str.5:                               ## @.str.5
	.asciz	"Tag Double bit error (detected):%s"

L_.str.6:                               ## @.str.6
	.asciz	"Tag Single bit error (corrected):%s"

	.no_dead_strip	__octeon_l2c_poll_oct2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _octeon_l2c_poll_oct2
__octeon_l2c_poll_oct2:                 ; @_octeon_l2c_poll_oct2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, x1
	bl	_CVMX_L2C_ERR_TDTX
	bl	_cvmx_read_csr
	mov	x22, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x21, sp, #104
	add	x0, sp, #104
	mov	w1, #64
	bl	_snprintf
	cbz	w22, LBB0_2
; %bb.1:
	str	x21, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	bl	_snprintf
	mov	w21, #1
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_edac_device_handle_ue
	lsr	x8, x22, #32
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_2:
	lsr	x8, x22, #32
	cbz	x8, LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:
	add	x8, sp, #104
	str	x8, [sp]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	bl	_snprintf
	orr	x21, x21, #0x100000000
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_edac_device_handle_ce
LBB0_5:
	mov	x0, x19
	bl	_CVMX_L2C_ERR_TDTX
	mov	x1, x21
	bl	_cvmx_write_csr
LBB0_6:
	mov	x0, x19
	bl	_CVMX_L2C_ERR_TTGX
	bl	_cvmx_read_csr
	mov	x21, x0
	lsr	x22, x0, #32
	cbnz	w21, LBB0_10
; %bb.7:
	cbnz	x22, LBB0_10
; %bb.8:
	cbz	w21, LBB0_11
LBB0_9:
	add	x8, sp, #104
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.5@PAGE
Lloh10:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	bl	_snprintf
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_edac_device_handle_ue
	mov	w21, #1
	cbnz	x22, LBB0_13
	b	LBB0_14
LBB0_10:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #104
	mov	w1, #64
	bl	_snprintf
	cbnz	w21, LBB0_9
LBB0_11:
	cbz	x22, LBB0_15
; %bb.12:
	mov	x21, #0
LBB0_13:
	add	x8, sp, #104
	str	x8, [sp]
Lloh13:
	adrp	x2, l_.str.6@PAGE
Lloh14:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #24
	mov	w1, #80
	bl	_snprintf
	orr	x21, x21, #0x100000000
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_edac_device_handle_ce
LBB0_14:
	mov	x0, x19
	bl	_CVMX_L2C_ERR_TTGX
	mov	x1, x21
	bl	_cvmx_write_csr
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type:%d, syn:0x%x, way:%d"

l_.str.1:                               ; @.str.1
	.asciz	"L2D Double bit error (detected):%s"

l_.str.2:                               ; @.str.2
	.asciz	"L2D Single bit error (corrected):%s"

l_.str.5:                               ; @.str.5
	.asciz	"Tag Double bit error (detected):%s"

l_.str.6:                               ; @.str.6
	.asciz	"Tag Single bit error (corrected):%s"

	.no_dead_strip	__octeon_l2c_poll_oct2
.subsections_via_symbols
