	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_init_one
_qib_init_one:                          ## @qib_init_one
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_qib_pcie_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.1:
	movl	(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %edx
	jne	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$130, %edx
	callq	_qib_early_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qib_init_iba7322_funcs
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qib_init_iba7220_funcs
LBB0_6:
	movq	%rax, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_qib_early_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movq	%r14, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
LBB0_11:
	testl	%r13d, %r13d
	jne	LBB0_36
## %bb.12:
	movq	%r14, %rdi
	callq	_qib_create_workqueues
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_36
## %bb.13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qib_init
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_qib_register_ib_device
	movl	%eax, %r13d
	movq	_qib_mini_init@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_17
## %bb.14:
	testl	%r15d, %r15d
	jne	LBB0_17
## %bb.15:
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.16:
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
LBB0_17:
	movq	%r14, %rdi
	callq	_qib_device_create
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	negl	%eax
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_qib_dev_err
LBB0_19:
	movq	%r14, %rdi
	callq	_qibfs_add
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%r12d, %edx
	negl	%edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_qib_dev_err
LBB0_21:
	cmpq	$0, (%rbx)
	jne	LBB0_24
## %bb.22:
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.23:
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.33:
	movq	%r14, %rdi
	callq	_qib_enable_wc
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	negl	%eax
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_qib_dev_err
LBB0_35:
	movq	%r14, %rdi
	callq	_qib_verify_pioperf
	xorl	%r13d, %r13d
	jmp	LBB0_36
LBB0_24:
	movq	%r14, %rdi
	callq	_qib_stop_timers
	movq	_ib_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	cmpl	$0, (%r14)
	jle	LBB0_27
## %bb.25:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	callq	*16(%r14)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
LBB0_27:
	movq	_qib_mini_init@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_36
## %bb.28:
	testl	%r12d, %r12d
	jne	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	callq	_qibfs_remove
	movq	%r14, %rdi
	callq	_qib_device_remove
LBB0_30:
	testl	%r13d, %r13d
	jne	LBB0_32
## %bb.31:
	movq	%r14, %rdi
	callq	_qib_unregister_ib_device
LBB0_32:
	movq	%r14, %rdi
	callq	_qib_postinit_cleanup
	testl	%r15d, %r15d
	cmovnel	%r15d, %r13d
LBB0_36:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Intel PCIE device 0x%x cannot work if CONFIG_PCI_MSI is not enabled\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Failing on unknown Intel deviceid 0x%x\n"

	.comm	_qib_mini_init,8,3              ## @qib_mini_init
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create /dev devices: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed filesystem setup for counters: %d\n"

	.comm	_ib_wq,4,2                      ## @ib_wq
L_.str.4:                               ## @.str.4
	.asciz	"Write combining not enabled (err %d): performance may be poor\n"

	.no_dead_strip	_qib_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_init_one
_qib_init_one:                          ; @qib_init_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_qib_pcie_init
	mov	x20, x0
	cbnz	w0, LBB0_36
; %bb.1:
	ldr	w2, [x21]
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #130
	b.ne	LBB0_8
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_qib_init_iba7322_funcs
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_qib_init_iba7220_funcs
LBB0_7:
	mov	x19, x0
	mov	w20, #0
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
	mov	x19, #0
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
LBB0_11:
	cbnz	w20, LBB0_36
; %bb.12:
	mov	x0, x19
	bl	_qib_create_workqueues
	mov	x20, x0
	cbnz	w0, LBB0_36
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_qib_init
	mov	x21, x0
	mov	x0, x19
	bl	_qib_register_ib_device
	mov	x20, x0
Lloh10:
	adrp	x23, _qib_mini_init@GOTPAGE
Lloh11:
	ldr	x23, [x23, _qib_mini_init@GOTPAGEOFF]
	ldr	x8, [x23]
	cbnz	x8, LBB0_17
; %bb.14:
	cbnz	w21, LBB0_17
; %bb.15:
	cbnz	w20, LBB0_17
; %bb.16:
Lloh12:
	adrp	x8, _QIB_INITTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QIB_INITTED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_17:
	mov	x0, x19
	bl	_qib_device_create
	cbz	w0, LBB0_19
; %bb.18:
	neg	w2, w0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_19:
	mov	x0, x19
	bl	_qibfs_add
	mov	x22, x0
	cbz	w0, LBB0_21
; %bb.20:
	neg	w2, w22
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_21:
	ldr	x8, [x23]
	cbnz	x8, LBB0_27
; %bb.22:
	cbnz	w21, LBB0_27
; %bb.23:
	cbnz	w20, LBB0_27
; %bb.24:
	mov	x0, x19
	bl	_qib_enable_wc
	cbz	w0, LBB0_26
; %bb.25:
	neg	w2, w0
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_26:
	mov	x0, x19
	bl	_qib_verify_pioperf
	mov	w20, #0
	b	LBB0_36
LBB0_27:
	mov	x0, x19
	bl	_qib_stop_timers
Lloh21:
	adrp	x8, _ib_wq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ib_wq@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_flush_workqueue
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x24, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	add	x0, x24, x9
	blr	x8
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_29
LBB0_30:
	ldr	x8, [x23]
	cbnz	x8, LBB0_36
; %bb.31:
	cbnz	w22, LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_qibfs_remove
	mov	x0, x19
	bl	_qib_device_remove
LBB0_33:
	cbnz	w20, LBB0_35
; %bb.34:
	mov	x0, x19
	bl	_qib_unregister_ib_device
LBB0_35:
	mov	x0, x19
	bl	_qib_postinit_cleanup
	cmp	w21, #0
	csel	w20, w21, w20, ne
LBB0_36:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Intel PCIE device 0x%x cannot work if CONFIG_PCI_MSI is not enabled\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Failing on unknown Intel deviceid 0x%x\n"

	.comm	_qib_mini_init,8,3              ; @qib_mini_init
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create /dev devices: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed filesystem setup for counters: %d\n"

	.comm	_ib_wq,4,2                      ; @ib_wq
l_.str.4:                               ; @.str.4
	.asciz	"Write combining not enabled (err %d): performance may be poor\n"

	.no_dead_strip	_qib_init_one
.subsections_via_symbols
