	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_ruc_loopback
_qib_ruc_loopback:                      ## @qib_ruc_loopback
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	120(%rdi), %edi
	movl	296(%rbx), %esi
	callq	_to_iport
	movq	%rax, %r14
	movl	152(%rbx), %esi
	movq	%rax, %rdi
	callq	_qib_lookup_qpn
	movq	%rax, %r13
	leaq	88(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_QIB_S_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_QIB_S_ANY_WAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	jne	LBB0_76
## %bb.1:
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	8(%rbx), %rsi
	movq	_QIB_PROCESS_OR_FLUSH_SEND@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rdx,%rsi,4)
	je	LBB0_76
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	16(%rbx), %rsi
	cmpq	24(%rbx), %rsi
	je	LBB0_75
## %bb.3:
	leaq	96(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	96(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	248(%rbx), %r12
	leaq	176(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	168(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	160(%r13), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_65:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movl	156(%r13), %eax
	movl	%eax, -144(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -176(%rbp)
	movl	(%rcx), %eax
	movl	%eax, -184(%rbp)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -152(%rbp)
	movl	152(%r13), %eax
	movl	%eax, -160(%rbp)
	movl	148(%r13), %eax
	movl	%eax, -164(%rbp)
	movl	144(%r13), %eax
	movl	%eax, -168(%rbp)
	movl	$1, -180(%rbp)
	movl	124(%r13), %edi
	movq	%rcx, %r15
	callq	_to_icq
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	16(%r15), %edx
	movl	%eax, %edi
	leaq	-184(%rbp), %rsi
	callq	_qib_cq_enter
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %r15
LBB0_66:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	incl	4(%r14)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
LBB0_67:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	64(%rbx), %rax
	movq	%rax, 56(%rbx)
	movq	%rbx, %rdi
	callq	_qib_send_complete
	movq	16(%rbx), %rsi
	cmpq	24(%rbx), %rsi
	je	LBB0_75
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
	movq	%rbx, %rdi
	callq	_get_swqe_ptr
	movq	%rax, %rsi
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_QIB_PROCESS_NEXT_SEND_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	cmpq	32(%rbx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	40(%rbx), %rax
	movl	$0, %ecx
	cmovgeq	%rcx, %rax
	movq	%rax, 32(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testq	%r13, %r13
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	8(%r13), %rcx
	movq	_QIB_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-184(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	64(%rcx), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 32(%r12)
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	movq	64(%rcx), %rax
	addq	$48, %rax
	movq	%rax, 240(%rbx)
	movl	8(%rcx), %eax
	movl	%eax, 232(%rbx)
	movl	(%rcx), %eax
	movl	%eax, 48(%rbx)
	movl	12(%rcx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_52
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_40:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%edi, %edi
	andl	52(%r13), %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_41
## %bb.46:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	40(%r15), %r8d
	movl	44(%r15), %ecx
	movl	(%r14), %r9d
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_qib_rkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	216(%r13), %rsi
	movq	32(%r15), %r14
	cmpl	$133, 12(%r15)
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_atomic64_add_return
	cltq
	subq	%r14, %rax
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_QIB_FLUSH_SEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_75
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_67
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_WC_WITH_IMM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	56(%rax), %eax
	movl	%eax, -136(%rbp)
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_qib_get_rwqe
	testl	%eax, %eax
	js	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	jne	LBB0_21
	jmp	LBB0_68
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	52(%r13), %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_41
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_WC_WITH_IMM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	56(%rax), %eax
	movl	%eax, -136(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_qib_get_rwqe
	testl	%eax, %eax
	js	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_68
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	52(%r13), %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_41
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_21
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	48(%rax), %r8d
	movl	52(%rax), %ecx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_qib_rkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_47
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 224(%r13)
	movl	$1, %eax
	movq	%r13, %rcx
	xorl	%r13d, %r13d
	movl	$1, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_68:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_66
	jmp	LBB0_69
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	xorl	%edi, %edi
	andl	52(%r13), %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_41
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	52(%r14), %ecx
	movl	(%r14), %edx
	movl	48(%r14), %r8d
	movl	(%r15), %r9d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_qib_rkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	jne	LBB0_47
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 240(%rbx)
	movl	$1, 232(%rbx)
	movq	64(%r14), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm2, 32(%rax)
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	movq	64(%r14), %rax
	addq	$48, %rax
	movq	%rax, 224(%r13)
	movl	8(%r14), %eax
	xorl	%r15d, %r15d
	movq	%r13, %rcx
	movb	$1, %r13b
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 168(%rcx)
	movl	(%r14), %eax
	movl	%eax, 172(%rcx)
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	48(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_35
LBB0_60:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_qib_put_ss
LBB0_62:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_QIB_R_WRID_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_test_and_clear_bit
	testl	%eax, %eax
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %r15
	je	LBB0_66
## %bb.63:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$130, 12(%rcx)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rax
	jne	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_IB_WC_RECV_RDMA_WITH_IMM@GOTPCREL(%rip), %rax
	jmp	LBB0_65
LBB0_57:                                ##   in Loop: Header=BB0_35 Depth=2
	movq	$0, 264(%rbx)
	xorl	%edx, %edx
LBB0_58:                                ##   in Loop: Header=BB0_35 Depth=2
	movq	8(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rcx
	movq	%rcx, 288(%rbx)
	movq	(%rax,%rdx), %rax
	movq	%rax, 248(%rbx)
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	48(%rbx), %eax
	subl	%r14d, %eax
	movl	%eax, 48(%rbx)
	je	LBB0_60
LBB0_35:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%eax, %r14
	movq	248(%rbx), %rax
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	movq	256(%rbx), %rax
	cmpq	%rax, %r14
	cmovgeq	%rax, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	movq	288(%rbx), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_qib_copy_sge
	addq	%r14, 288(%rbx)
	movq	248(%rbx), %rax
	movq	%rax, %rcx
	subq	%r14, %rcx
	movq	%rcx, 248(%rbx)
	subq	%r14, 256(%rbx)
	jne	LBB0_53
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	testb	%r13b, %r13b
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	280(%rbx), %rdi
	callq	_qib_put_mr
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=2
	decl	232(%rbx)
	je	LBB0_59
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	240(%rbx), %rax
	leaq	48(%rax), %rcx
	movq	%rcx, 240(%rbx)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 32(%r12)
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	jmp	LBB0_59
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpq	%r14, %rax
	jne	LBB0_59
## %bb.54:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	280(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_59
## %bb.55:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	264(%rbx), %rdx
	movq	272(%rbx), %rcx
	incq	%rdx
	movq	%rdx, 264(%rbx)
	movq	_QIB_SEGSZ@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jl	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_35 Depth=2
	incq	%rcx
	movq	%rcx, 272(%rbx)
	cmpq	(%rax), %rcx
	jl	LBB0_57
	jmp	LBB0_60
LBB0_50:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r15), %edx
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_cmpxchg
	cltq
LBB0_51:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %r15
	movq	288(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	208(%r13), %rdi
	callq	_qib_put_mr
	movl	$0, 168(%r13)
	jmp	LBB0_66
LBB0_12:
	incl	8(%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	_IB_WC_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_15:
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_41:
	movq	_IB_WC_LOC_QP_OP_ERR@GOTPCREL(%rip), %rax
	movq	_IB_WC_REM_INV_REQ_ERR@GOTPCREL(%rip), %rcx
	jmp	LBB0_42
LBB0_47:
	movq	_IB_WC_LOC_PROT_ERR@GOTPCREL(%rip), %rax
	movq	_IB_WC_REM_ACCESS_ERR@GOTPCREL(%rip), %rcx
	jmp	LBB0_42
LBB0_24:
	movq	_IB_WC_REM_OP_ERR@GOTPCREL(%rip), %rcx
	movq	_IB_WC_LOC_QP_OP_ERR@GOTPCREL(%rip), %rax
LBB0_42:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	(%rcx), %r14d
	movq	%rsi, -176(%rbp)
	movq	%r13, %rdi
	callq	_qib_rc_error
LBB0_43:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_qib_send_complete
	movq	96(%rbx), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_75
## %bb.44:
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qib_error_qp
	movl	%eax, %r14d
	movq	_QIB_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_77
## %bb.45:
	movl	120(%rbx), %eax
	movl	%eax, -192(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -200(%rbp)
	movq	_IB_EVENT_QP_LAST_WQE_REACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -208(%rbp)
	movl	104(%rbx), %esi
	leaq	-208(%rbp), %rdi
	callq	*112(%rbx)
	jmp	LBB0_77
LBB0_69:
	incl	(%r14)
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_70
## %bb.71:
	cmpq	$6, 64(%rbx)
	jg	LBB0_73
## %bb.72:
	decq	%rax
	movq	%rax, 56(%rbx)
LBB0_73:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movq	_QIB_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_75
## %bb.74:
	movq	_QIB_S_WAIT_RNR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_qib_rc_rnr_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	128(%rbx), %r14
	movl	%eax, 136(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_ib_qib_rnr_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	72(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_usecs_to_jiffies
	addq	%r15, %rax
	movq	%rax, 128(%rbx)
	movq	%r14, %rdi
	callq	_add_timer
LBB0_75:
	movq	_QIB_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_76:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_77:
	testq	%r13, %r13
	je	LBB0_80
## %bb.78:
	leaq	84(%r13), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_80
## %bb.79:
	addq	$80, %r13
	movq	%r13, %rdi
	callq	_wake_up
LBB0_80:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movq	_IB_WC_LOC_QP_OP_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_70:
	movq	_IB_WC_RNR_RETRY_EXC_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_22
	.long	L0_0_set_26
	.long	L0_0_set_30
	.long	L0_0_set_40
	.long	L0_0_set_40
	.end_data_region
                                        ## -- End function
	.comm	_QIB_S_BUSY,4,2                 ## @QIB_S_BUSY
	.comm	_QIB_S_ANY_WAIT,4,2             ## @QIB_S_ANY_WAIT
	.comm	_ib_qib_state_ops,8,3           ## @ib_qib_state_ops
	.comm	_QIB_PROCESS_OR_FLUSH_SEND,4,2  ## @QIB_PROCESS_OR_FLUSH_SEND
	.comm	_QIB_PROCESS_NEXT_SEND_OK,4,2   ## @QIB_PROCESS_NEXT_SEND_OK
	.comm	_QIB_FLUSH_SEND,4,2             ## @QIB_FLUSH_SEND
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_QIB_PROCESS_RECV_OK,4,2        ## @QIB_PROCESS_RECV_OK
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ## @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_WC_WITH_IMM,8,3             ## @IB_WC_WITH_IMM
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_IB_WC_LOC_QP_OP_ERR,8,3        ## @IB_WC_LOC_QP_OP_ERR
	.comm	_QIB_SEGSZ,8,3                  ## @QIB_SEGSZ
	.comm	_QIB_R_WRID_VALID,4,2           ## @QIB_R_WRID_VALID
	.comm	_IB_WC_RECV_RDMA_WITH_IMM,4,2   ## @IB_WC_RECV_RDMA_WITH_IMM
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_IB_QPT_UC,8,3                  ## @IB_QPT_UC
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ## @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_QIB_S_WAIT_RNR,4,2             ## @QIB_S_WAIT_RNR
	.comm	_qib_rc_rnr_retry,4,2           ## @qib_rc_rnr_retry
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ib_qib_rnr_table,8,3           ## @ib_qib_rnr_table
	.comm	_IB_WC_REM_OP_ERR,4,2           ## @IB_WC_REM_OP_ERR
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ## @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ## @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_LOC_PROT_ERR,8,3         ## @IB_WC_LOC_PROT_ERR
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ## @IB_EVENT_QP_LAST_WQE_REACHED
	.no_dead_strip	_qib_ruc_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_ruc_loopback
_qib_ruc_loopback:                      ; @qib_ruc_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x20, x0
	ldr	w0, [x0, #120]
	ldr	w1, [x20, #296]
	bl	_to_iport
	mov	x23, x0
	ldr	w1, [x20, #152]
	bl	_qib_lookup_qpn
	mov	x19, x0
	add	x21, x20, #88
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _QIB_S_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_S_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _QIB_S_ANY_WAIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QIB_S_ANY_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w10, w9
	tst	w10, w8
	b.ne	LBB0_71
; %bb.1:
Lloh6:
	adrp	x25, _ib_qib_state_ops@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ib_qib_state_ops@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	x11, [x20, #8]
	ldr	w10, [x10, x11, lsl #2]
Lloh8:
	adrp	x11, _QIB_PROCESS_OR_FLUSH_SEND@GOTPAGE
Lloh9:
	ldr	x11, [x11, _QIB_PROCESS_OR_FLUSH_SEND@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_71
; %bb.2:
	orr	w8, w9, w8
	str	w8, [x20]
	ldp	x1, x8, [x20, #16]
	cmp	x1, x8
	b.eq	LBB0_70
; %bb.3:
	add	x27, x20, #96
	add	x9, x19, #96
	add	x24, x20, #248
	add	x8, x19, #176
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	add	x26, x19, #168
	add	x8, x19, #160
	stp	x8, x23, [sp]                   ; 16-byte Folded Spill
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _IB_QPT_UC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_QPT_UC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_65
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x23, #4]
	add	w8, w8, #1
	str	w8, [x23, #4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #64]
	str	x8, [x20, #56]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x28
	bl	_qib_send_complete
	ldp	x1, x8, [x20, #16]
	cmp	x1, x8
	b.eq	LBB0_70
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
	mov	x0, x20
	bl	_get_swqe_ptr
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x9, [x20, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh14:
	adrp	x9, _QIB_PROCESS_NEXT_SEND_OK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QIB_PROCESS_NEXT_SEND_OK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x8, #1
	ldr	x10, [x20, #40]
	cmp	x9, x10
	csinc	x8, xzr, x8, ge
	str	x8, [x20, #32]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x19, LBB0_54
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh17:
	adrp	x9, _QIB_PROCESS_RECV_OK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QIB_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_54
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_54
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh20:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	w28, [x8]
	ldr	x8, [x22, #64]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	stp	q1, q2, [x24, #16]
	str	q0, [x24]
	ldr	x8, [x22, #64]
	add	x8, x8, #48
	str	x8, [x20, #240]
	ldr	w8, [x22, #8]
	str	w8, [x20, #232]
	ldr	w8, [x22]
	str	w8, [x20, #48]
	ldr	w8, [x22, #12]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_76
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x11, lJTI0_0@PAGE
Lloh24:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_15
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #52]
Lloh25:
	adrp	x25, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh26:
	ldr	x25, [x25, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_58
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w4, w3, [x22, #40]
	ldr	w5, [x25]
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #8
	bl	_qib_rkey_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_59
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x19, #216]
	ldr	x25, [x22, #32]
	ldr	w8, [x22, #12]
	cmp	w8, #133
	b.ne	LBB0_52
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_atomic64_add_return
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x8, x25
	b	LBB0_53
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh27:
	adrp	x9, _QIB_FLUSH_SEND@GOTPAGE
Lloh28:
	ldr	x9, [x9, _QIB_FLUSH_SEND@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_70
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh30:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w28, [x8]
	b	LBB0_6
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh33:
	adrp	x8, _IB_WC_WITH_IMM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_WC_WITH_IMM@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [sp, #120]
	ldr	w8, [x22, #56]
	str	w8, [sp, #112]
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_qib_get_rwqe
	tbnz	w0, #31, LBB0_60
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w0, LBB0_31
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #52]
Lloh36:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_58
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh39:
	adrp	x8, _IB_WC_WITH_IMM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IB_WC_WITH_IMM@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	x8, [sp, #120]
	ldr	w8, [x22, #56]
	str	w8, [sp, #112]
	mov	x0, x19
	mov	w1, #1
	bl	_qib_get_rwqe
	tbnz	w0, #31, LBB0_60
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	w0, LBB0_4
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #52]
Lloh42:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_58
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x22]
	cbz	w2, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w4, w3, [x22, #48]
Lloh45:
	adrp	x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh47:
	ldr	w5, [x8]
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_qib_rkey_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_59
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
	str	xzr, [x19, #224]
	mov	w8, #1
	mov	w27, #1
	b	LBB0_35
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #0
	mov	w27, #1
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_43
	b	LBB0_36
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #52]
Lloh48:
	adrp	x23, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh49:
	ldr	x23, [x23, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_58
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x22]
	ldp	w4, w3, [x22, #48]
	ldr	w5, [x23]
	mov	x0, x19
	mov	x1, x24
	bl	_qib_rkey_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	w0, LBB0_59
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	str	xzr, [x20, #240]
	mov	w23, #1
	str	w23, [x20, #232]
	ldr	x8, [x22, #64]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	q1, q2, [x8, #16]
	str	q0, [x8]
	ldr	x8, [x22, #64]
	add	x8, x8, #48
	str	x8, [x19, #224]
	ldr	w8, [x22, #8]
LBB0_35:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w8, [x19, #168]
	ldr	w8, [x22]
	str	w8, [x19, #172]
	ldr	w8, [x20, #48]
	cbnz	w8, LBB0_43
LBB0_36:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w23, #0, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_qib_put_ss
LBB0_38:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh50:
	adrp	x8, _QIB_R_WRID_VALID@GOTPAGE
Lloh51:
	ldr	x8, [x8, _QIB_R_WRID_VALID@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_test_and_clear_bit
	ldp	x23, x27, [sp, #8]              ; 16-byte Folded Reload
Lloh53:
	adrp	x25, _ib_qib_state_ops@GOTPAGE
Lloh54:
	ldr	x25, [x25, _ib_qib_state_ops@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.39:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #12]
	cmp	w8, #130
Lloh55:
	adrp	x8, _IB_WC_RECV_RDMA_WITH_IMM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IB_WC_RECV_RDMA_WITH_IMM@GOTPAGEOFF]
Lloh57:
	adrp	x9, _IB_WC_RECV@GOTPAGE
Lloh58:
	ldr	x9, [x9, _IB_WC_RECV@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #152]
	stp	w9, w8, [sp, #104]
Lloh59:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w11, [x22]
	str	w10, [sp, #88]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x9, [sp, #96]
	ldr	d0, [x19, #144]
	str	d0, [sp, #80]
	mov	w8, #1
	stp	w11, w8, [sp, #64]
	ldr	w0, [x19, #124]
	bl	_to_icq
	ldr	w8, [x22, #16]
Lloh62:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh63:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x1, sp, #64
	bl	_qib_cq_enter
	b	LBB0_5
LBB0_40:                                ;   in Loop: Header=BB0_43 Depth=2
	mov	x10, #0
	str	xzr, [x20, #264]
LBB0_41:                                ;   in Loop: Header=BB0_43 Depth=2
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	add	x8, x8, x10, lsl #4
	ldr	x9, [x8, #8]
	str	x9, [x20, #288]
	ldr	x8, [x8]
	str	x8, [x20, #248]
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=2
	ldr	w8, [x20, #48]
	subs	w8, w8, w25
	str	w8, [x20, #48]
	b.eq	LBB0_36
LBB0_43:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x8, w8
	ldp	x9, x10, [x20, #248]
	cmp	x9, x8
	csel	x8, x9, x8, lt
	cmp	x8, x10
	csel	x25, x8, x10, lt
	cmp	x25, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x1, [x20, #288]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x27
	bl	_qib_copy_sge
	ldr	x8, [x20, #288]
	add	x8, x8, x25
	str	x8, [x20, #288]
	ldp	x8, x9, [x20, #248]
	sub	x10, x8, x25
	subs	x9, x9, x25
	stp	x10, x9, [x20, #248]
	b.ne	LBB0_48
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=2
	cbz	w23, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=2
	ldr	x0, [x20, #280]
	bl	_qib_put_mr
LBB0_46:                                ;   in Loop: Header=BB0_43 Depth=2
	ldr	w8, [x20, #232]
	subs	w8, w8, #1
	str	w8, [x20, #232]
	b.eq	LBB0_42
; %bb.47:                               ;   in Loop: Header=BB0_43 Depth=2
	ldr	x8, [x20, #240]
	add	x9, x8, #48
	str	x9, [x20, #240]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	stp	q1, q2, [x24, #16]
	str	q0, [x24]
	b	LBB0_42
LBB0_48:                                ;   in Loop: Header=BB0_43 Depth=2
	cmp	x8, x25
	b.ne	LBB0_42
; %bb.49:                               ;   in Loop: Header=BB0_43 Depth=2
	ldr	x8, [x20, #280]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_42
; %bb.50:                               ;   in Loop: Header=BB0_43 Depth=2
	ldp	x10, x9, [x20, #264]
	add	x10, x10, #1
	str	x10, [x20, #264]
Lloh65:
	adrp	x11, _QIB_SEGSZ@GOTPAGE
Lloh66:
	ldr	x11, [x11, _QIB_SEGSZ@GOTPAGEOFF]
Lloh67:
	ldr	x11, [x11]
	cmp	x10, x11
	b.lt	LBB0_41
; %bb.51:                               ;   in Loop: Header=BB0_43 Depth=2
	add	x9, x9, #1
	str	x9, [x20, #272]
	ldr	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_40
	b	LBB0_36
LBB0_52:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x22, #24]
	mov	x0, x1
	mov	x1, x25
	bl	_cmpxchg
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
LBB0_53:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh68:
	adrp	x25, _ib_qib_state_ops@GOTPAGE
Lloh69:
	ldr	x25, [x25, _ib_qib_state_ops@GOTPAGEOFF]
	ldr	x9, [x20, #288]
	str	x8, [x9]
	ldr	x0, [x19, #208]
	bl	_qib_put_mr
	str	wzr, [x19, #168]
	b	LBB0_5
LBB0_54:
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	ldr	x8, [x27]
Lloh70:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh71:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_56
; %bb.55:
Lloh73:
	adrp	x8, _IB_WC_RETRY_EXC_ERR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _IB_WC_RETRY_EXC_ERR@GOTPAGEOFF]
	b	LBB0_57
LBB0_56:
Lloh75:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
LBB0_57:
	ldr	w23, [x8]
	b	LBB0_62
LBB0_58:
Lloh77:
	adrp	x9, _IB_WC_REM_INV_REQ_ERR@GOTPAGE
Lloh78:
	ldr	x9, [x9, _IB_WC_REM_INV_REQ_ERR@GOTPAGEOFF]
Lloh79:
	adrp	x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGE
Lloh80:
	ldr	x8, [x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGEOFF]
	b	LBB0_61
LBB0_59:
Lloh81:
	adrp	x8, _IB_WC_LOC_PROT_ERR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _IB_WC_LOC_PROT_ERR@GOTPAGEOFF]
Lloh83:
	adrp	x9, _IB_WC_REM_ACCESS_ERR@GOTPAGE
Lloh84:
	ldr	x9, [x9, _IB_WC_REM_ACCESS_ERR@GOTPAGEOFF]
	b	LBB0_61
LBB0_60:
Lloh85:
	adrp	x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGE
Lloh86:
	ldr	x8, [x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGEOFF]
Lloh87:
	adrp	x9, _IB_WC_REM_OP_ERR@GOTPAGE
Lloh88:
	ldr	x9, [x9, _IB_WC_REM_OP_ERR@GOTPAGEOFF]
LBB0_61:
	ldr	x1, [x8]
	ldr	w23, [x9]
	str	x1, [sp, #72]
	mov	x0, x19
	bl	_qib_rc_error
LBB0_62:
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_qib_send_complete
	ldr	x8, [x20, #96]
Lloh89:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh90:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_70
; %bb.63:
Lloh92:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qib_error_qp
	mov	x22, x0
Lloh95:
	adrp	x8, _QIB_S_BUSY@GOTPAGE
Lloh96:
	ldr	x8, [x8, _QIB_S_BUSY@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_72
; %bb.64:
	ldr	w8, [x20, #120]
	str	w8, [sp, #56]
	str	x27, [sp, #48]
Lloh98:
	adrp	x8, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGE
Lloh99:
	ldr	x8, [x8, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	x8, [x20, #112]
	ldr	w1, [x20, #104]
	add	x0, sp, #40
	blr	x8
	b	LBB0_72
LBB0_65:
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_77
; %bb.66:
	ldr	x9, [x20, #64]
	cmp	x9, #6
	b.gt	LBB0_68
; %bb.67:
	sub	x8, x8, #1
	str	x8, [x20, #56]
LBB0_68:
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x25]
	ldr	x9, [x20, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh101:
	adrp	x9, _QIB_PROCESS_RECV_OK@GOTPAGE
Lloh102:
	ldr	x9, [x9, _QIB_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_70
; %bb.69:
Lloh104:
	adrp	x8, _QIB_S_WAIT_RNR@GOTPAGE
Lloh105:
	ldr	x8, [x8, _QIB_S_WAIT_RNR@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
Lloh107:
	adrp	x9, _qib_rc_rnr_retry@GOTPAGE
Lloh108:
	ldr	x9, [x9, _qib_rc_rnr_retry@GOTPAGEOFF]
	str	w8, [x20]
Lloh109:
	ldr	w8, [x9]
	str	w8, [x20, #136]
Lloh110:
	adrp	x8, _jiffies@GOTPAGE
Lloh111:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh112:
	ldr	x22, [x8]
Lloh113:
	adrp	x8, _ib_qib_rnr_table@GOTPAGE
Lloh114:
	ldr	x8, [x8, _ib_qib_rnr_table@GOTPAGEOFF]
Lloh115:
	ldr	x8, [x8]
	ldr	x9, [x19, #72]
	ldr	w0, [x8, x9, lsl #2]
	bl	_usecs_to_jiffies
	add	x8, x0, x22
	mov	x0, x20
	str	x8, [x0, #128]!
	bl	_add_timer
LBB0_70:
Lloh116:
	adrp	x8, _QIB_S_BUSY@GOTPAGE
Lloh117:
	ldr	x8, [x8, _QIB_S_BUSY@GOTPAGEOFF]
Lloh118:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_71:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_72:
	cbz	x19, LBB0_75
; %bb.73:
	add	x0, x19, #84
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_75
; %bb.74:
	add	x0, x19, #80
	bl	_wake_up
LBB0_75:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_76:
Lloh119:
	adrp	x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGE
Lloh120:
	ldr	x8, [x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGEOFF]
	b	LBB0_57
LBB0_77:
Lloh121:
	adrp	x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGE
Lloh122:
	ldr	x8, [x8, _IB_WC_RNR_RETRY_EXC_ERR@GOTPAGEOFF]
	b	LBB0_57
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh121, Lloh122
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_22-LBB0_15)>>2
	.byte	(LBB0_24-LBB0_15)>>2
	.byte	(LBB0_27-LBB0_15)>>2
	.byte	(LBB0_32-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
                                        ; -- End function
	.comm	_QIB_S_BUSY,4,2                 ; @QIB_S_BUSY
	.comm	_QIB_S_ANY_WAIT,4,2             ; @QIB_S_ANY_WAIT
	.comm	_ib_qib_state_ops,8,3           ; @ib_qib_state_ops
	.comm	_QIB_PROCESS_OR_FLUSH_SEND,4,2  ; @QIB_PROCESS_OR_FLUSH_SEND
	.comm	_QIB_PROCESS_NEXT_SEND_OK,4,2   ; @QIB_PROCESS_NEXT_SEND_OK
	.comm	_QIB_FLUSH_SEND,4,2             ; @QIB_FLUSH_SEND
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_QIB_PROCESS_RECV_OK,4,2        ; @QIB_PROCESS_RECV_OK
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ; @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_WC_WITH_IMM,8,3             ; @IB_WC_WITH_IMM
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_IB_WC_LOC_QP_OP_ERR,8,3        ; @IB_WC_LOC_QP_OP_ERR
	.comm	_QIB_SEGSZ,8,3                  ; @QIB_SEGSZ
	.comm	_QIB_R_WRID_VALID,4,2           ; @QIB_R_WRID_VALID
	.comm	_IB_WC_RECV_RDMA_WITH_IMM,4,2   ; @IB_WC_RECV_RDMA_WITH_IMM
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_IB_QPT_UC,8,3                  ; @IB_QPT_UC
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ; @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_QIB_S_WAIT_RNR,4,2             ; @QIB_S_WAIT_RNR
	.comm	_qib_rc_rnr_retry,4,2           ; @qib_rc_rnr_retry
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ib_qib_rnr_table,8,3           ; @ib_qib_rnr_table
	.comm	_IB_WC_REM_OP_ERR,4,2           ; @IB_WC_REM_OP_ERR
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ; @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ; @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_LOC_PROT_ERR,8,3         ; @IB_WC_LOC_PROT_ERR
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ; @IB_EVENT_QP_LAST_WQE_REACHED
	.no_dead_strip	_qib_ruc_loopback
.subsections_via_symbols
