	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_hw_error_set_state
_hisi_zip_hw_error_set_state:           ## @hisi_zip_hw_error_set_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_QM_HW_V1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.5:
	movq	_HZIP_CORE_INT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZIP_CORE_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rdx
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_1:
	movl	%esi, %eax
	movq	_HZIP_CORE_INT_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rsi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_HZIP_CORE_INT_SOURCE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	_HZIP_CORE_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_3:
	movq	_HZIP_CORE_INT_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_HW_V1,8,3                   ## @QM_HW_V1
	.comm	_HZIP_CORE_INT_DISABLE,4,2      ## @HZIP_CORE_INT_DISABLE
	.comm	_HZIP_CORE_INT_MASK,8,3         ## @HZIP_CORE_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZIP v%d does not support hw error handle\n"

	.comm	_HZIP_CORE_INT_SOURCE,8,3       ## @HZIP_CORE_INT_SOURCE
	.no_dead_strip	_hisi_zip_hw_error_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_hw_error_set_state
_hisi_zip_hw_error_set_state:           ; @hisi_zip_hw_error_set_state
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QM_HW_V1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QM_HW_V1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HZIP_CORE_INT_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZIP_CORE_INT_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _HZIP_CORE_INT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZIP_CORE_INT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #16]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
LBB0_2:
Lloh11:
	adrp	x8, _HZIP_CORE_INT_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HZIP_CORE_INT_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	cbz	w1, LBB0_4
; %bb.3:
Lloh14:
	adrp	x9, _HZIP_CORE_INT_SOURCE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HZIP_CORE_INT_SOURCE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _HZIP_CORE_INT_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZIP_CORE_INT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x9, _HZIP_CORE_INT_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HZIP_CORE_INT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_HW_V1,8,3                   ; @QM_HW_V1
	.comm	_HZIP_CORE_INT_DISABLE,4,2      ; @HZIP_CORE_INT_DISABLE
	.comm	_HZIP_CORE_INT_MASK,8,3         ; @HZIP_CORE_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZIP v%d does not support hw error handle\n"

	.comm	_HZIP_CORE_INT_SOURCE,8,3       ; @HZIP_CORE_INT_SOURCE
	.no_dead_strip	_hisi_zip_hw_error_set_state
.subsections_via_symbols
