	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_mmio_enabled
_pci_mmio_enabled:                      ## @pci_mmio_enabled
	.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
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	_C_RX_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CNTR_INVALID_VL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read_port_cntr
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.3:
	movq	_PCI_ERS_RESULT_NEED_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movl	%r14d, %ecx
	callq	_dd_dev_info
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ## @PCI_ERS_RESULT_RECOVERED
	.comm	_C_RX_WORDS,4,2                 ## @C_RX_WORDS
	.comm	_CNTR_INVALID_VL,4,2            ## @CNTR_INVALID_VL
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ## @PCI_ERS_RESULT_NEED_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HFI1 mmio_enabled function called, read wordscntr %llx, returning %d\n"

	.no_dead_strip	_pci_mmio_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_mmio_enabled
_pci_mmio_enabled:                      ; @pci_mmio_enabled
	.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
	bl	_pci_get_drvdata
Lloh0:
	adrp	x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _C_RX_WORDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _C_RX_WORDS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CNTR_INVALID_VL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNTR_INVALID_VL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_read_port_cntr
	mov	x2, x0
Lloh9:
	adrp	x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_ERS_RESULT_NEED_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	x0, #1
	csel	w19, w8, w19, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dd_dev_info
LBB0_3:
	mov	x0, x19
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERS_RESULT_RECOVERED,4,2   ; @PCI_ERS_RESULT_RECOVERED
	.comm	_C_RX_WORDS,4,2                 ; @C_RX_WORDS
	.comm	_CNTR_INVALID_VL,4,2            ; @CNTR_INVALID_VL
	.comm	_PCI_ERS_RESULT_NEED_RESET,4,2  ; @PCI_ERS_RESULT_NEED_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HFI1 mmio_enabled function called, read wordscntr %llx, returning %d\n"

	.no_dead_strip	_pci_mmio_enabled
.subsections_via_symbols
