	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngene_error_detected
_ngene_error_detected:                  ## @ngene_error_detected
	.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
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_pci_channel_io_perm_failure@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_pci_channel_io_frozen@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rax
	cmpl	%ebx, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_PCI_ERS_RESULT_CAN_RECOVER@GOTPCREL(%rip), %rax
	cmpl	%ebx, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI error\n"

	.comm	_pci_channel_io_perm_failure,4,2 ## @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ## @PCI_ERS_RESULT_DISCONNECT
	.comm	_pci_channel_io_frozen,4,2      ## @pci_channel_io_frozen
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_CAN_RECOVER,4,2 ## @PCI_ERS_RESULT_CAN_RECOVER
	.no_dead_strip	_ngene_error_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngene_error_detected
_ngene_error_detected:                  ; @ngene_error_detected
	.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, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _pci_channel_io_perm_failure@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pci_channel_io_perm_failure@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _pci_channel_io_frozen@GOTPAGE
Lloh6:
	ldr	x9, [x9, _pci_channel_io_frozen@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
Lloh10:
	adrp	x11, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
Lloh12:
	adrp	x12, _PCI_ERS_RESULT_CAN_RECOVER@GOTPAGE
Lloh13:
	ldr	x12, [x12, _PCI_ERS_RESULT_CAN_RECOVER@GOTPAGEOFF]
	cmp	w9, w19
	csel	x9, x11, x12, eq
	cmp	w8, w19
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI error\n"

	.comm	_pci_channel_io_perm_failure,4,2 ; @pci_channel_io_perm_failure
	.comm	_PCI_ERS_RESULT_DISCONNECT,4,2  ; @PCI_ERS_RESULT_DISCONNECT
	.comm	_pci_channel_io_frozen,4,2      ; @pci_channel_io_frozen
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
	.comm	_PCI_ERS_RESULT_CAN_RECOVER,4,2 ; @PCI_ERS_RESULT_CAN_RECOVER
	.no_dead_strip	_ngene_error_detected
.subsections_via_symbols
