	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_log_hw_error
_hisi_zip_log_hw_error:                 ## @hisi_zip_log_hw_error
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_zip_hw_error@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rdx
	addq	$16, %r12
	testq	%rdx, %rdx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	testl	%r15d, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_warn
	movl	(%r12), %eax
	movq	_HZIP_CORE_INT_STATUS_M_ECC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HZIP_CORE_SRAM_ECC_ERR_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	_SRAM_ECC_ERR_NUM_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r13d, %eax
	sarl	%cl, %eax
	movzbl	%al, %edx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_SRAM_ECC_ERR_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r13d
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zip_hw_error,8,3               ## @zip_hw_error
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s [error status=0x%x] found\n"

	.comm	_HZIP_CORE_INT_STATUS_M_ECC,4,2 ## @HZIP_CORE_INT_STATUS_M_ECC
	.comm	_HZIP_CORE_SRAM_ECC_ERR_INFO,8,3 ## @HZIP_CORE_SRAM_ECC_ERR_INFO
L_.str.1:                               ## @.str.1
	.asciz	"hisi-zip multi ecc sram num=0x%x\n"

	.comm	_SRAM_ECC_ERR_NUM_SHIFT,4,2     ## @SRAM_ECC_ERR_NUM_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"hisi-zip multi ecc sram addr=0x%x\n"

	.comm	_SRAM_ECC_ERR_ADDR_SHIFT,4,2    ## @SRAM_ECC_ERR_ADDR_SHIFT
	.no_dead_strip	_hisi_zip_log_hw_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_log_hw_error
_hisi_zip_log_hw_error:                 ; @hisi_zip_log_hw_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _zip_hw_error@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zip_hw_error@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldr	x2, [x26, #8]
	cbz	x2, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x27, _HZIP_CORE_INT_STATUS_M_ECC@GOTPAGE
Lloh6:
	ldr	x27, [x27, _HZIP_CORE_INT_STATUS_M_ECC@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh9:
	adrp	x28, _SRAM_ECC_ERR_ADDR_SHIFT@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SRAM_ECC_ERR_ADDR_SHIFT@GOTPAGEOFF]
Lloh11:
	adrp	x24, l_.str.2@PAGE
Lloh12:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x26, #24]
	add	x26, x26, #16
	cbz	x2, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_warn
	ldr	w8, [x27]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _HZIP_CORE_SRAM_ECC_ERR_INFO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HZIP_CORE_SRAM_ECC_ERR_INFO@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x25, x0
Lloh16:
	adrp	x8, _SRAM_ECC_ERR_NUM_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SRAM_ECC_ERR_NUM_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	asr	w8, w0, w8
	and	w2, w8, #0xff
	mov	x0, x21
	mov	x1, x23
	bl	_dev_warn
	ldr	w8, [x28]
	asr	w2, w25, w8
	mov	x0, x21
	mov	x1, x24
	bl	_dev_warn
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_zip_hw_error,8,3               ; @zip_hw_error
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s [error status=0x%x] found\n"

	.comm	_HZIP_CORE_INT_STATUS_M_ECC,4,2 ; @HZIP_CORE_INT_STATUS_M_ECC
	.comm	_HZIP_CORE_SRAM_ECC_ERR_INFO,8,3 ; @HZIP_CORE_SRAM_ECC_ERR_INFO
l_.str.1:                               ; @.str.1
	.asciz	"hisi-zip multi ecc sram num=0x%x\n"

	.comm	_SRAM_ECC_ERR_NUM_SHIFT,4,2     ; @SRAM_ECC_ERR_NUM_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"hisi-zip multi ecc sram addr=0x%x\n"

	.comm	_SRAM_ECC_ERR_ADDR_SHIFT,4,2    ; @SRAM_ECC_ERR_ADDR_SHIFT
	.no_dead_strip	_hisi_zip_log_hw_error
.subsections_via_symbols
