	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_process_hw_error
_hisi_zip_process_hw_error:             ## @hisi_zip_process_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hisi_qm_hw_error_handle
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_hisi_zip_hw_error_handle
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rdx, %rcx
	cmpq	%rsi, %rax
	je	LBB0_4
## %bb.3:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rcx
LBB0_4:
	cmpq	%rsi, %r14
	cmoveq	%rdx, %rcx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_PCI_ERS_RESULT_NONE@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't recover ZIP-error occurred during device init\n"

	.comm	_PCI_ERS_RESULT_NONE,8,3        ## @PCI_ERS_RESULT_NONE
	.comm	_PCI_ERS_RESULT_NEED_RESET,8,3  ## @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_RECOVERED,8,3   ## @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_hisi_zip_process_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_process_hw_error
_hisi_zip_process_hw_error:             ; @hisi_zip_process_hw_error
	.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
	bl	_pci_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_hisi_qm_hw_error_handle
	mov	x19, x0
	mov	x0, x20
	bl	_hisi_zip_hw_error_handle
Lloh0:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x0, x9
	ccmp	x19, x9, #4, ne
Lloh2:
	adrp	x9, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _PCI_ERS_RESULT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ERS_RESULT_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't recover ZIP-error occurred during device init\n"

	.comm	_PCI_ERS_RESULT_NONE,8,3        ; @PCI_ERS_RESULT_NONE
	.comm	_PCI_ERS_RESULT_NEED_RESET,8,3  ; @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_RECOVERED,8,3   ; @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_hisi_zip_process_hw_error
.subsections_via_symbols
