	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_clear_errors
_dpu_hw_clear_errors:                   ## @dpu_hw_clear_errors
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_VBIF_XIN_PND_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DPU_REG_READ
	movl	%eax, %r12d
	movq	_VBIF_XIN_SRC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_DPU_REG_READ
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	%r12d, (%r15)
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movl	%eax, (%r14)
LBB0_5:
	movq	_VBIF_XIN_CLR_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	%r12d, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_REG_WRITE                  ## TAILCALL
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBIF_XIN_PND_ERR,4,2           ## @VBIF_XIN_PND_ERR
	.comm	_VBIF_XIN_SRC_ERR,4,2           ## @VBIF_XIN_SRC_ERR
	.comm	_VBIF_XIN_CLR_ERR,4,2           ## @VBIF_XIN_CLR_ERR
	.no_dead_strip	_dpu_hw_clear_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_clear_errors
_dpu_hw_clear_errors:                   ; @dpu_hw_clear_errors
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VBIF_XIN_PND_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBIF_XIN_PND_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DPU_REG_READ
	mov	x22, x0
Lloh3:
	adrp	x8, _VBIF_XIN_SRC_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VBIF_XIN_SRC_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DPU_REG_READ
	cbz	x21, LBB0_3
; %bb.2:
	str	w22, [x21]
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	str	w0, [x20]
LBB0_5:
Lloh6:
	adrp	x8, _VBIF_XIN_CLR_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VBIF_XIN_CLR_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	orr	w2, w0, w22
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DPU_REG_WRITE
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VBIF_XIN_PND_ERR,4,2           ; @VBIF_XIN_PND_ERR
	.comm	_VBIF_XIN_SRC_ERR,4,2           ; @VBIF_XIN_SRC_ERR
	.comm	_VBIF_XIN_CLR_ERR,4,2           ; @VBIF_XIN_CLR_ERR
	.no_dead_strip	_dpu_hw_clear_errors
.subsections_via_symbols
