	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm_hw_error_handle_v2
_qm_hw_error_handle_v2:                 ## @qm_hw_error_handle_v2
	.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
	movq	_QM_ABNORMAL_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	andl	(%r14), %ebx
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qm_log_hw_error
	movq	_QM_ABNORMAL_INT_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ABNORMAL_INT_STATUS,8,3     ## @QM_ABNORMAL_INT_STATUS
	.comm	_QM_ABNORMAL_INT_SOURCE,8,3     ## @QM_ABNORMAL_INT_SOURCE
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_qm_hw_error_handle_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm_hw_error_handle_v2
_qm_hw_error_handle_v2:                 ; @qm_hw_error_handle_v2
	.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, #8]
Lloh0:
	adrp	x9, _QM_ABNORMAL_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QM_ABNORMAL_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x19]
	ands	w20, w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_qm_log_hw_error
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _QM_ABNORMAL_INT_SOURCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QM_ABNORMAL_INT_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh6:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ABNORMAL_INT_STATUS,8,3     ; @QM_ABNORMAL_INT_STATUS
	.comm	_QM_ABNORMAL_INT_SOURCE,8,3     ; @QM_ABNORMAL_INT_SOURCE
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.no_dead_strip	_qm_hw_error_handle_v2
.subsections_via_symbols
