	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_llcc_clear_error_status
_qcom_llcc_clear_error_status:          ## @qcom_llcc_clear_error_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ecx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.1:
	leal	-130(%rcx), %eax
	cmpl	$1, %eax
	ja	LBB0_8
## %bb.2:
	movl	(%r14), %edi
	movq	_DRP_INTERRUPT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRP_TRP_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	(%r14), %edi
	movq	_DRP_ECC_ERROR_CNTR_CLEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movl	(%r14), %edi
	movq	_TRP_INTERRUPT_0_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRP_TRP_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r14), %edi
	movq	_TRP_ECC_ERROR_CNTR_CLEAR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	_DRP_TRP_CNT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_KERN_CRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EDAC_LLCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_edac_printk
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRP_INTERRUPT_CLEAR,4,2        ## @DRP_INTERRUPT_CLEAR
	.comm	_DRP_TRP_INT_CLEAR,4,2          ## @DRP_TRP_INT_CLEAR
	.comm	_DRP_ECC_ERROR_CNTR_CLEAR,4,2   ## @DRP_ECC_ERROR_CNTR_CLEAR
	.comm	_DRP_TRP_CNT_CLEAR,4,2          ## @DRP_TRP_CNT_CLEAR
	.comm	_TRP_INTERRUPT_0_CLEAR,4,2      ## @TRP_INTERRUPT_0_CLEAR
	.comm	_TRP_ECC_ERROR_CNTR_CLEAR,4,2   ## @TRP_ECC_ERROR_CNTR_CLEAR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KERN_CRIT,4,2                  ## @KERN_CRIT
	.comm	_EDAC_LLCC,4,2                  ## @EDAC_LLCC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected error type: %d\n"

	.no_dead_strip	_qcom_llcc_clear_error_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_llcc_clear_error_status
_qcom_llcc_clear_error_status:          ; @qcom_llcc_clear_error_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	mov	x3, x0
	sub	w8, w0, #130
	cmp	w8, #1
	b.hi	LBB0_7
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _DRP_INTERRUPT_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRP_INTERRUPT_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DRP_TRP_INT_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRP_TRP_INT_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _DRP_ECC_ERROR_CNTR_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRP_ECC_ERROR_CNTR_CLEAR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _TRP_INTERRUPT_0_CLEAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRP_INTERRUPT_0_CLEAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DRP_TRP_INT_CLEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRP_TRP_INT_CLEAR@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _TRP_ECC_ERROR_CNTR_CLEAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRP_ECC_ERROR_CNTR_CLEAR@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DRP_TRP_CNT_CLEAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DRP_TRP_CNT_CLEAR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	x20, x0
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
Lloh22:
	adrp	x8, _KERN_CRIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KERN_CRIT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _EDAC_LLCC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EDAC_LLCC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str@PAGE
Lloh29:
	add	x2, x2, l_.str@PAGEOFF
	bl	_edac_printk
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DRP_INTERRUPT_CLEAR,4,2        ; @DRP_INTERRUPT_CLEAR
	.comm	_DRP_TRP_INT_CLEAR,4,2          ; @DRP_TRP_INT_CLEAR
	.comm	_DRP_ECC_ERROR_CNTR_CLEAR,4,2   ; @DRP_ECC_ERROR_CNTR_CLEAR
	.comm	_DRP_TRP_CNT_CLEAR,4,2          ; @DRP_TRP_CNT_CLEAR
	.comm	_TRP_INTERRUPT_0_CLEAR,4,2      ; @TRP_INTERRUPT_0_CLEAR
	.comm	_TRP_ECC_ERROR_CNTR_CLEAR,4,2   ; @TRP_ECC_ERROR_CNTR_CLEAR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KERN_CRIT,4,2                  ; @KERN_CRIT
	.comm	_EDAC_LLCC,4,2                  ; @EDAC_LLCC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected error type: %d\n"

	.no_dead_strip	_qcom_llcc_clear_error_status
.subsections_via_symbols
