	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_pcie_init                  ## -- Begin function qib_pcie_init
	.p2align	4, 0x90
_qib_pcie_init:                         ## @qib_pcie_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
LBB0_13:
	callq	_qib_early_err
	jmp	LBB0_14
LBB0_2:
	movq	_QIB_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
LBB0_4:
	callq	_qib_devinfo
LBB0_5:
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	callq	_pci_release_regions
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$64, %r15d
	movl	$64, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	$32, %r15d
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_9:
	movl	%r15d, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_qib_early_err
	jmp	LBB0_5
LBB0_11:
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	callq	_pci_enable_pcie_error_reporting
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci enable failed: error %d\n"

	.comm	_QIB_DRV_NAME,4,2               ## @QIB_DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"pci_request_regions fails: err %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to set DMA mask: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to set DMA consistent mask: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to enable pcie error reporting: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_pcie_init                  ; -- Begin function qib_pcie_init
	.p2align	2
_qib_pcie_init:                         ; @qib_pcie_init
	.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, x0
	bl	_pci_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	neg	w2, w0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _QIB_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QIB_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
	neg	w2, w0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_4:
	bl	_qib_devinfo
LBB0_5:
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x19
	bl	_pci_release_regions
LBB0_6:
	mov	x0, x20
	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
	ret
LBB0_7:
	mov	w21, #64
	mov	w0, #64
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_10
; %bb.8:
	mov	w21, #32
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_4
LBB0_10:
	mov	x0, x21
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_qib_early_err
	b	LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_pci_set_master
	mov	x0, x19
	bl	_pci_enable_pcie_error_reporting
	cbz	w0, LBB0_14
; %bb.13:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
LBB0_14:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci enable failed: error %d\n"

	.comm	_QIB_DRV_NAME,4,2               ; @QIB_DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"pci_request_regions fails: err %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to set DMA mask: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to set DMA consistent mask: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to enable pcie error reporting: %d\n"

.subsections_via_symbols
