	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_lmc_threaded_isr
_thunderx_lmc_threaded_isr:             ## @thunderx_lmc_threaded_isr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_LMC_MESSAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, %rbx
	movq	_LMC_OTHER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.1:
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	24(%r15), %ebx
	movl	(%r15), %r14d
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r14d, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_phys_to_pfn
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_offset_in_page
	subq	$8, %rsp
	movl	%r14d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ebx
	incl	%ebx
	movl	%ebx, (%r15)
	movl	24(%r15), %r14d
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%ebx, %esi
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	callq	_CIRC_CNT
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ebx
	movq	16(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ring_pos
	movq	8(%r15), %rdi
	movq	16(%r15), %r14
	leaq	(%rax,%rax,4), %r12
	movl	(%r14,%r12,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	8(%r15), %rdi
	movl	4(%r14,%r12,4), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	8(%r15), %rdi
	movl	8(%r14,%r12,4), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	8(%r15), %rdi
	movl	12(%r14,%r12,4), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movq	8(%r15), %rdi
	movl	16(%r14,%r12,4), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	movq	_LMC_MESSAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	12(%r14,%r12,4), %edi
	callq	_LMC_FADR_FDIMM
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%r14,%r12,4), %edi
	callq	_LMC_FADR_FBUNK
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	12(%r14,%r12,4), %edi
	callq	_LMC_FADR_FBANK
	movl	%eax, %ebx
	movl	12(%r14,%r12,4), %edi
	callq	_LMC_FADR_FROW
	movl	%eax, %r13d
	movl	12(%r14,%r12,4), %edi
	callq	_LMC_FADR_FCOL
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r13
	callq	_snprintf
	addq	$16, %rsp
	movq	_LMC_OTHER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_lmc_errors@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14,%r12,4), %ecx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_decode_register
	movl	4(%r14,%r12,4), %edi
	movq	%r15, %rsi
	callq	_thunderx_faddr_to_phys
	movl	%eax, %ebx
	movl	(%r14,%r12,4), %ecx
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movq	_LMC_INT_UE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movq	_LMC_INT_CE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_LMC_MESSAGE_SIZE,4,2           ## @LMC_MESSAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_LMC_OTHER_SIZE,4,2             ## @LMC_OTHER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LMC_INT: %016llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"LMC_FADR: %016llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"LMC_NXM_FADR: %016llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"LMC_SCRAM_FADR: %016llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"LMC_ECC_SYND: %016llx\n"

L_.str.5:                               ## @.str.5
	.asciz	"DIMM %lld rank %lld bank %lld row %lld col %lld"

	.comm	_lmc_errors,4,2                 ## @lmc_errors
	.comm	_LMC_INT_UE,4,2                 ## @LMC_INT_UE
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.comm	_LMC_INT_CE,4,2                 ## @LMC_INT_CE
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_thunderx_lmc_threaded_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thunderx_lmc_threaded_isr
_thunderx_lmc_threaded_isr:             ; @thunderx_lmc_threaded_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x25, _LMC_MESSAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LMC_MESSAGE_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kmalloc
	mov	x20, x0
Lloh7:
	adrp	x8, _LMC_OTHER_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LMC_OTHER_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_kmalloc
	mov	x22, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w23, [x21, #24]
	ldr	w24, [x21]
	ldr	x0, [x21, #16]
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_CIRC_CNT
	cbnz	x0, LBB0_6
LBB0_2:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
LBB0_3:
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [x9]
	mov	x0, x23
	bl	_phys_to_pfn
	mov	x25, x0
	mov	x0, x23
	bl	_offset_in_page
	mov	x4, x0
	stp	x20, x22, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x24
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #1
	mov	x3, x25
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	add	w23, w8, #1
	str	w23, [x21]
	ldr	w24, [x21, #24]
	ldr	x0, [x21, #16]
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_CIRC_CNT
	mov	x25, x19
	cbz	x0, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21]
	ldr	x0, [x21, #16]
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x23
	bl	_ring_pos
	ldp	x8, x9, [x21, #8]
	mov	w10, #20
	madd	x28, x0, x10, x9
	ldr	w2, [x28]
	mov	x0, x8
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x21, #8]
	ldr	w2, [x28, #4]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x21, #8]
	ldr	w2, [x28, #8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x21, #8]
	ldr	w2, [x28, #12]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x21, #8]
	ldr	w2, [x28, #16]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	mov	x19, x25
	ldr	w23, [x25]
	ldr	w0, [x28, #12]
	bl	_LMC_FADR_FDIMM
	mov	x24, x0
	ldr	w0, [x28, #12]
	bl	_LMC_FADR_FBUNK
	mov	x25, x0
	ldr	w0, [x28, #12]
	bl	_LMC_FADR_FBANK
	mov	x26, x0
	ldr	w0, [x28, #12]
	bl	_LMC_FADR_FROW
	mov	x27, x0
	ldr	w0, [x28, #12]
	bl	_LMC_FADR_FCOL
	mov	x7, x0
	mov	x0, x20
	mov	x1, x23
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	bl	_snprintf
Lloh25:
	adrp	x8, _LMC_OTHER_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LMC_OTHER_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _lmc_errors@GOTPAGE
Lloh29:
	ldr	x8, [x8, _lmc_errors@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	ldr	w3, [x28]
	mov	x0, x22
	bl	_decode_register
	ldr	w0, [x28, #4]
	mov	x1, x21
	bl	_thunderx_faddr_to_phys
	mov	x23, x0
	ldr	w8, [x28]
Lloh31:
	adrp	x9, _LMC_INT_UE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LMC_INT_UE@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x9]
Lloh34:
	adrp	x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
	tst	w10, w8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh36:
	adrp	x9, _LMC_INT_CE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _LMC_INT_CE@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x9]
Lloh39:
	adrp	x9, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
	tst	w10, w8
	b.ne	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_LMC_MESSAGE_SIZE,4,2           ; @LMC_MESSAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_LMC_OTHER_SIZE,4,2             ; @LMC_OTHER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LMC_INT: %016llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"LMC_FADR: %016llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"LMC_NXM_FADR: %016llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"LMC_SCRAM_FADR: %016llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"LMC_ECC_SYND: %016llx\n"

l_.str.5:                               ; @.str.5
	.asciz	"DIMM %lld rank %lld bank %lld row %lld col %lld"

	.comm	_lmc_errors,4,2                 ; @lmc_errors
	.comm	_LMC_INT_UE,4,2                 ; @LMC_INT_UE
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.comm	_LMC_INT_CE,4,2                 ; @LMC_INT_CE
	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_thunderx_lmc_threaded_isr
.subsections_via_symbols
