	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_bars
_read_bars:                             ## @read_bars
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_PCI_BASE_ADDRESS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	negl	%eax
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ipath_dev_err
LBB0_2:
	movq	_PCI_BASE_ADDRESS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	negl	%eax
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ipath_dev_err
LBB0_4:
	movl	(%r12), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipath_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BASE_ADDRESS_0,4,2         ## @PCI_BASE_ADDRESS_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read bar0 before enable: error %d\n"

	.comm	_PCI_BASE_ADDRESS_1,4,2         ## @PCI_BASE_ADDRESS_1
L_.str.1:                               ## @.str.1
	.asciz	"failed to read bar1 before enable: error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Read bar0 %x bar1 %x\n"

	.no_dead_strip	_read_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_bars
_read_bars:                             ; @read_bars
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PCI_BASE_ADDRESS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pci_read_config_dword
	cbz	w0, LBB0_2
; %bb.1:
	neg	w2, w0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ipath_dev_err
LBB0_2:
Lloh5:
	adrp	x8, _PCI_BASE_ADDRESS_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x19
	bl	_pci_read_config_dword
	cbz	w0, LBB0_4
; %bb.3:
	neg	w2, w0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ipath_dev_err
LBB0_4:
	ldr	w1, [x20]
	ldr	w2, [x19]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ipath_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BASE_ADDRESS_0,4,2         ; @PCI_BASE_ADDRESS_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read bar0 before enable: error %d\n"

	.comm	_PCI_BASE_ADDRESS_1,4,2         ; @PCI_BASE_ADDRESS_1
l_.str.1:                               ; @.str.1
	.asciz	"failed to read bar1 before enable: error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Read bar0 %x bar1 %x\n"

	.no_dead_strip	_read_bars
.subsections_via_symbols
