	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_do_7322_reset
_qib_do_7322_reset:                     ## @qib_do_7322_reset
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	52(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_qib_dev_err
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	_qib_pcie_getcmd
	movq	24(%r12), %rax
	movl	(%rax), %r15d
	movl	%r15d, -56(%rbp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_qib_7322_set_intr_state
	movq	%r12, %rdi
	callq	_qib_7322_free_irq
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	24(%r12), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r14d, %r14d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	%r15d, %rax
	addl	$2, %ebx
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QIB_7322_MsixTable_OFFS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	sarl	$2, %eax
	leal	(%rbx,%rax), %esi
	decl	%esi
	movq	%r13, %rdi
	callq	_qib_read_kreg64
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	sarl	$2, %esi
	addl	%ebx, %esi
	movq	%r13, %rdi
	callq	_qib_read_kreg64
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx,%r14,8)
	movl	%eax, 4(%rcx,%r14,8)
	movl	-56(%rbp), %r15d
	jmp	LBB0_7
LBB0_8:
	movl	%r15d, %r14d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_3:
	movl	%r15d, %r14d
LBB0_9:
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movups	%xmm0, (%rax)
	movq	%r12, %rdi
	callq	_qib_int_counter
	movl	%eax, 48(%r12)
	movq	_QIB_INITTED@GOTPCREL(%rip), %rax
	movq	_QIB_PRESENT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movq	_QIB_BADINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	(%r12), %ecx
	movl	%ecx, (%r12)
	movq	_QIB_DOING_RESET@GOTPCREL(%rip), %rbx
	orl	(%rbx), %ecx
	movl	%ecx, (%r12)
	movq	_QLOGIC_IB_C_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	4(%r12), %edi
	movq	_kr_control@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	40(%r12), %rsi
	callq	_writeq
	movl	$7000, %edi                     ## imm = 0x1B58
	callq	_msleep
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	callq	_qib_pcie_reenable
	movq	_kr_revision@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_readq
	cmpl	8(%r12), %eax
	je	LBB0_15
## %bb.10:
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_msleep
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	callq	_qib_pcie_reenable
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_readq
	cmpl	8(%r12), %eax
	je	LBB0_15
## %bb.11:
	movl	$13000, %edi                    ## imm = 0x32C8
	callq	_msleep
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	callq	_qib_pcie_reenable
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_readq
	cmpl	8(%r12), %eax
	je	LBB0_15
## %bb.12:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_msleep
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	callq	_qib_pcie_reenable
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_readq
	cmpl	8(%r12), %eax
	je	LBB0_15
## %bb.13:
	movl	$19000, %edi                    ## imm = 0x4A38
	callq	_msleep
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	callq	_qib_pcie_reenable
	movq	(%r13), %rdi
	shlq	$2, %rdi
	addq	40(%r12), %rdi
	callq	_readq
	cmpl	8(%r12), %eax
	jne	LBB0_14
LBB0_15:
	movl	(%r15), %eax
	orl	%eax, (%r12)
	testl	%r14d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_21
## %bb.16:
	movslq	%r14d, %r14
	movl	$1, %r15d
	xorl	%ebx, %ebx
	movq	_QIB_7322_MsixTable_OFFS@GOTPCREL(%rip), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	addl	$2, %r15d
	cmpq	%r14, %rbx
	jge	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rax,%rbx,8), %edx
	testl	%edx, %edx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r13), %eax
	sarl	$2, %eax
	leal	(%r15,%rax), %esi
	decl	%esi
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movl	(%r13), %esi
	sarl	$2, %esi
	addl	%r15d, %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%rbx,8), %edx
	movq	%r12, %rdi
	callq	_qib_write_kreg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_21:
	cmpl	$0, 12(%r12)
	jle	LBB0_24
## %bb.22:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r14, %rdi
	callq	_write_7322_init_portregs
	incq	%rbx
	movslq	12(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_23
LBB0_24:
	movq	%r12, %rdi
	callq	_write_7322_initregs
	movl	32(%r12), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_qib_pcie_params
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_qib_dev_err
LBB0_26:
	movl	-56(%rbp), %eax
	movq	24(%r12), %rcx
	movl	%eax, (%rcx)
	movl	$1, %r14d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_qib_setup_7322_interrupt
	cmpl	$0, 12(%r12)
	jle	LBB0_27
## %bb.28:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	leaq	(%r15,%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r15,%rbx), %eax
	movq	_QIBL_IB_FORCE_NOTIFY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15,%rbx)
	movq	_QIBL_IB_AUTONEG_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 4(%r15,%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	incq	%r13
	movslq	12(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_29
## %bb.30:
	movq	_QIB_DOING_RESET@GOTPCREL(%rip), %rbx
	movl	$1, %r14d
	jmp	LBB0_31
LBB0_27:
	movq	_QIB_DOING_RESET@GOTPCREL(%rip), %rbx
LBB0_31:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_qib_dev_err
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting InfiniPath unit %u\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_QIB_7322_MsixTable_OFFS,4,2    ## @QIB_7322_MsixTable_OFFS
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
	.comm	_QIB_PRESENT,4,2                ## @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ## @QIB_BADINTR
	.comm	_QIB_DOING_RESET,4,2            ## @QIB_DOING_RESET
	.comm	_QLOGIC_IB_C_RESET,4,2          ## @QLOGIC_IB_C_RESET
	.comm	_kr_control,8,3                 ## @kr_control
	.comm	_kr_revision,8,3                ## @kr_revision
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize after reset, unusable\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reset failed to setup PCIe or interrupts; continuing anyway\n"

	.comm	_QIBL_IB_FORCE_NOTIFY,4,2       ## @QIBL_IB_FORCE_NOTIFY
	.comm	_QIBL_IB_AUTONEG_FAILED,4,2     ## @QIBL_IB_AUTONEG_FAILED
	.no_dead_strip	_qib_do_7322_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_do_7322_reset
_qib_do_7322_reset:                     ; @qib_do_7322_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0, #52]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_qib_dev_err
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	mov	x0, x19
	bl	_qib_pcie_getcmd
	ldr	x8, [x19, #24]
	ldr	w23, [x8]
	str	w23, [sp, #28]
	mov	x0, x19
	mov	w1, #0
	bl	_qib_7322_set_intr_state
	mov	x0, x19
	bl	_qib_7322_free_irq
	cbz	w23, LBB0_6
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	lsl	w0, w8, #1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmalloc_array
	mov	x20, x0
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _QIB_7322_MsixTable_OFFS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _QIB_7322_MsixTable_OFFS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x22, x22, #2
	cmp	x24, w23, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	add	w1, w22, w8, asr #2
	mov	x0, x19
	bl	_qib_read_kreg64
	mov	x21, x0
	ldr	w8, [x25]
	add	w8, w22, w8, asr #2
	add	w1, w8, #1
	mov	x0, x19
	bl	_qib_read_kreg64
	cbz	x20, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, x22, lsl #2
	stp	w21, w0, [x8]
	ldr	w23, [sp, #28]
	b	LBB0_3
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	mov	x0, x19
	bl	_qib_int_counter
	str	w0, [x19, #48]
Lloh7:
	adrp	x8, _QIB_INITTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QIB_INITTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x21, _QIB_PRESENT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _QIB_PRESENT@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _QIB_BADINTR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QIB_BADINTR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	w9, w10, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x22, _QIB_DOING_RESET@GOTPAGE
Lloh16:
	ldr	x22, [x22, _QIB_DOING_RESET@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh17:
	adrp	x8, _QLOGIC_IB_C_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLOGIC_IB_C_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w0, w8, w10
	ldr	x8, [x19, #40]
Lloh20:
	adrp	x9, _kr_control@GOTPAGE
Lloh21:
	ldr	x9, [x9, _kr_control@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_writeq
	mov	w0, #7000
	bl	_msleep
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	mov	x0, x19
	bl	_qib_pcie_reenable
	ldr	x8, [x19, #40]
Lloh23:
	adrp	x24, _kr_revision@GOTPAGE
Lloh24:
	ldr	x24, [x24, _kr_revision@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_readq
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.8:
	mov	w0, #10000
	bl	_msleep
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	mov	x0, x19
	bl	_qib_pcie_reenable
	ldr	x8, [x19, #40]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_readq
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.9:
	mov	w0, #13000
	bl	_msleep
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	mov	x0, x19
	bl	_qib_pcie_reenable
	ldr	x8, [x19, #40]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_readq
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.10:
	mov	w0, #16000
	bl	_msleep
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	mov	x0, x19
	bl	_qib_pcie_reenable
	ldr	x8, [x19, #40]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_readq
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w0, #19000
	bl	_msleep
	ldp	w2, w1, [sp, #20]
	ldr	w3, [sp, #16]
	mov	x0, x19
	bl	_qib_pcie_reenable
	ldr	x8, [x19, #40]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	bl	_readq
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.ne	LBB0_28
LBB0_12:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	cmp	w23, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x21, #0
	mov	x24, #0
	sxtw	x23, w23
Lloh25:
	adrp	x25, _QIB_7322_MsixTable_OFFS@GOTPAGE
Lloh26:
	ldr	x25, [x25, _QIB_7322_MsixTable_OFFS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x24, x24, #1
	add	x21, x21, #2
	cmp	x24, x23
	b.ge	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w2, [x20, x21, lsl #2]
	cbz	w2, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x25]
	add	w1, w21, w8, asr #2
	mov	x0, x19
	bl	_qib_write_kreg
	ldr	w8, [x25]
	add	w8, w21, w8, asr #2
	add	w1, w8, #1
	add	x8, x20, x21, lsl #2
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_qib_write_kreg
	b	LBB0_14
LBB0_18:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x21, #0
	mov	x23, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_write_7322_init_portregs
	add	x23, x23, #1
	ldrsw	x8, [x19, #12]
	add	x21, x21, #16
	cmp	x23, x8
	b.lt	LBB0_20
LBB0_21:
	mov	x0, x19
	bl	_write_7322_initregs
	ldr	w1, [x19, #32]
	add	x2, sp, #28
	mov	x0, x19
	bl	_qib_pcie_params
	cbz	x0, LBB0_23
; %bb.22:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
LBB0_23:
	ldr	w8, [sp, #28]
	ldr	x9, [x19, #24]
	str	w8, [x9]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	_qib_setup_7322_interrupt
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.24:
	mov	x23, #0
	mov	w24, #4
Lloh29:
	adrp	x25, _QIBL_IB_FORCE_NOTIFY@GOTPAGE
Lloh30:
	ldr	x25, [x25, _QIBL_IB_FORCE_NOTIFY@GOTPAGEOFF]
Lloh31:
	adrp	x26, _QIBL_IB_AUTONEG_FAILED@GOTPAGE
Lloh32:
	ldr	x26, [x26, _QIBL_IB_AUTONEG_FAILED@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x27, x8, x24
	sub	x21, x27, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x25]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
	ldr	w9, [x26]
	bic	w8, w8, w9
	str	w8, [x27]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x23, x23, #1
	ldrsw	x8, [x19, #12]
	add	x24, x24, #16
	cmp	x23, x8
	b.lt	LBB0_25
; %bb.26:
	mov	w21, #1
LBB0_27:
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
	mov	w21, #0
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting InfiniPath unit %u\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_QIB_7322_MsixTable_OFFS,4,2    ; @QIB_7322_MsixTable_OFFS
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
	.comm	_QIB_PRESENT,4,2                ; @QIB_PRESENT
	.comm	_QIB_BADINTR,4,2                ; @QIB_BADINTR
	.comm	_QIB_DOING_RESET,4,2            ; @QIB_DOING_RESET
	.comm	_QLOGIC_IB_C_RESET,4,2          ; @QLOGIC_IB_C_RESET
	.comm	_kr_control,8,3                 ; @kr_control
	.comm	_kr_revision,8,3                ; @kr_revision
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize after reset, unusable\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reset failed to setup PCIe or interrupts; continuing anyway\n"

	.comm	_QIBL_IB_FORCE_NOTIFY,4,2       ; @QIBL_IB_FORCE_NOTIFY
	.comm	_QIBL_IB_AUTONEG_FAILED,4,2     ; @QIBL_IB_AUTONEG_FAILED
	.no_dead_strip	_qib_do_7322_reset
.subsections_via_symbols
