	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_ud_loopback
_qib_ud_loopback:                       ## @qib_ud_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	%rsi, %r12
	movq	%rdi, %rbx
	movl	64(%rdi), %edi
	movl	72(%rbx), %esi
	callq	_to_iport
	movq	%rax, %r14
	movl	40(%r12), %esi
	movq	%rax, %rdi
	callq	_qib_lookup_qpn
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	48(%rax), %rax
	cmpq	48(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	_QIB_PROCESS_RECV_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_4
## %bb.5:
	movl	36(%r12), %edi
	callq	_to_iah
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	56(%r13), %eax
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.6:
	movl	88(%rbx), %esi
	movq	%r14, %rdi
	callq	_qib_get_pkey
	movq	%rax, %r15
	movl	88(%r13), %esi
	movq	%r14, %rdi
	callq	_qib_get_pkey
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_qib_pkey_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	4(%rdx), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	andl	(%r12), %eax
	orl	(%rdx), %eax
	movslq	%eax, %rdi
	movq	_IB_NOTICE_TRAP_BAD_PKEY@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	movl	(%rax), %ebx
	movl	20(%r12), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	56(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	56(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_cpu_to_be16
	movq	%r12, %rcx
	movq	%r13, %r12
	movl	%eax, %r13d
	movq	8(%rcx), %rdi
	callq	_cpu_to_be16
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	movq	%r12, %r13
	jmp	LBB0_14
LBB0_4:
	incl	4(%r14)
	jmp	LBB0_48
LBB0_1:
	incl	4(%r14)
	jmp	LBB0_50
LBB0_7:
	movl	56(%r13), %eax
LBB0_8:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movq	24(%r12), %r15
	testl	$-2147483648, %r15d             ## imm = 0x80000000
	je	LBB0_11
## %bb.10:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r15
LBB0_11:
	xorl	%edi, %edi
	cmpq	8(%r13), %r15
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movb	4(%rdx), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	andl	(%rbx), %eax
	orl	(%rdx), %eax
	movslq	%eax, %rdi
	movq	_IB_NOTICE_TRAP_BAD_QKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	20(%rbx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	56(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	56(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_cpu_to_be16
	movq	%rbx, %rcx
	movq	%r13, %rbx
	movl	%eax, %r13d
	movq	8(%rcx), %rdi
	callq	_cpu_to_be16
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	movq	%rbx, %r13
LBB0_14:
	callq	_qib_bad_pqkey
	addq	$16, %rsp
	jmp	LBB0_48
LBB0_15:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r14
	leaq	-192(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	4(%r14), %rax
	movq	%rax, -192(%rbp)
	movq	8(%r12), %rax
	movq	_IB_WR_SEND_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_IB_WC_WITH_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -140(%rbp)
	movl	56(%r12), %eax
	movl	%eax, -136(%rbp)
LBB0_17:
	leaq	40(%r13), %rdi
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	16(%r13), %eax
	movq	_QIB_R_REUSE_SGE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	je	LBB0_21
## %bb.18:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 16(%r13)
LBB0_19:
	movq	-192(%rbp), %rax
	xorl	%edi, %edi
	cmpq	24(%r13), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movl	(%r15), %eax
	orl	%eax, 16(%r13)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	jmp	LBB0_47
LBB0_21:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_qib_get_rwqe
	testl	%eax, %eax
	js	LBB0_22
## %bb.23:
	jne	LBB0_19
## %bb.24:
	cmpl	$0, 56(%r13)
	jne	LBB0_47
## %bb.25:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	jmp	LBB0_47
LBB0_26:
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	84(%r13), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, 16(%rsi)
	movq	%r13, -200(%rbp)                ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_28
## %bb.27:
	addq	$24, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_qib_copy_sge
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -140(%rbp)
	jmp	LBB0_29
LBB0_22:
	movq	_IB_WC_LOC_QP_OP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_qib_rc_error
	jmp	LBB0_47
LBB0_28:
	movl	$4, %esi
	movl	$1, %edx
	callq	_qib_skip_sge
LBB0_29:
	testq	%r14, %r14
	je	LBB0_43
## %bb.30:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	48(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	64(%rax), %rax
	movq	40(%rax), %rbx
	movq	32(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	(%rax), %r12
	movq	8(%rax), %r13
	addq	$48, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_31
LBB0_41:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r12
	movq	8(%rax,%rcx), %rbx
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_31 Depth=1
	subq	%r15, %r14
	je	LBB0_43
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r12
	movq	%r14, %r15
	cmovlq	%r12, %r15
	cmpq	%r13, %r15
	cmovgeq	%r13, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_BUG_ON
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_qib_copy_sge
	leaq	(%rbx,%r15,4), %rbx
	subq	%r15, %r12
	subq	%r15, %r13
	je	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_31 Depth=1
	testq	%r12, %r12
	jne	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	_QIB_SEGSZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jge	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_41
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decq	%rax
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r12
	movq	8(%rax), %r13
	movq	16(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rbx
	addq	$48, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_42
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_42
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_42
LBB0_43:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_qib_put_ss
	movq	_QIB_R_WRID_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-200(%rbp), %r13                ## 8-byte Reload
	leaq	80(%r13), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_47
## %bb.44:
	leaq	48(%r13), %rax
	movl	76(%r13), %ecx
	movl	%ecx, -144(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -148(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -152(%rbp)
	movq	%rax, -160(%rbp)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	56(%rax), %eax
	movl	%eax, -184(%rbp)
	movq	48(%r13), %rcx
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_46
## %bb.45:
	movl	32(%r14), %eax
LBB0_46:
	movl	%eax, -164(%rbp)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	4(%rsi), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	andl	%eax, %ecx
	orl	(%rsi), %ecx
	movl	%ecx, -180(%rbp)
	movl	20(%rdx), %ecx
	movl	%ecx, -168(%rbp)
	andl	8(%rdx), %eax
	movl	%eax, -176(%rbp)
	movl	72(%r13), %eax
	movl	%eax, -172(%rbp)
	movl	60(%r13), %edi
	callq	_to_icq
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	16(%r14), %edx
	leaq	-192(%rbp), %rsi
	movl	%eax, %edi
	callq	_qib_cq_enter
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_47:
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_48:
	leaq	36(%r13), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_50
## %bb.49:
	addq	$32, %r13
	movq	%r13, %rdi
	callq	_wake_up
LBB0_50:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_qib_state_ops,8,3           ## @ib_qib_state_ops
	.comm	_QIB_PROCESS_RECV_OK,4,2        ## @QIB_PROCESS_RECV_OK
	.comm	_IB_NOTICE_TRAP_BAD_PKEY,4,2    ## @IB_NOTICE_TRAP_BAD_PKEY
	.comm	_IB_NOTICE_TRAP_BAD_QKEY,4,2    ## @IB_NOTICE_TRAP_BAD_QKEY
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ## @IB_WR_SEND_WITH_IMM
	.comm	_IB_WC_WITH_IMM,4,2             ## @IB_WC_WITH_IMM
	.comm	_QIB_R_REUSE_SGE,4,2            ## @QIB_R_REUSE_SGE
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ## @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_QIB_SEGSZ,8,3                  ## @QIB_SEGSZ
	.comm	_QIB_R_WRID_VALID,4,2           ## @QIB_R_WRID_VALID
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.no_dead_strip	_qib_ud_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_ud_loopback
_qib_ud_loopback:                       ; @qib_ud_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x21, x1
	mov	x23, x0
	ldr	w0, [x0, #64]
	ldr	w1, [x23, #72]
	bl	_to_iport
	mov	x20, x0
	ldr	w1, [x21, #40]
	bl	_qib_lookup_qpn
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x26, x0
	ldr	x8, [x26, #48]!
	ldr	x9, [x23, #48]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _ib_qib_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_qib_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _QIB_PROCESS_RECV_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIB_PROCESS_RECV_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x21, #36]
	bl	_to_iah
	mov	x28, x0
	mov	x0, x20
	bl	_ppd_from_ibp
	mov	x24, x0
	ldr	w8, [x19, #56]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.4:
	ldr	w1, [x23, #88]
	mov	x0, x20
	bl	_qib_get_pkey
	mov	x25, x0
	ldr	w1, [x19, #88]
	mov	x0, x20
	bl	_qib_get_pkey
	mov	x1, x0
	mov	x0, x25
	bl	_qib_pkey_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w8, [x28]
	ldp	w9, w10, [x24]
	mov	w11, #-1
	lsl	w10, w11, w10
	bic	w8, w8, w10
	orr	w8, w8, w9
	sxtw	x0, w8
Lloh6:
	adrp	x8, _IB_NOTICE_TRAP_BAD_PKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_NOTICE_TRAP_BAD_PKEY@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	b	LBB0_49
LBB0_7:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	b	LBB0_51
LBB0_8:
	ldr	w8, [x19, #56]
LBB0_9:
	cbz	w8, LBB0_15
; %bb.10:
	ldr	x25, [x21, #24]
	tbz	w25, #31, LBB0_12
; %bb.11:
	ldr	x25, [x23, #8]
LBB0_12:
	ldr	x8, [x19, #8]
	cmp	x25, x8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w8, [x28]
	ldp	w9, w10, [x24]
	mov	w11, #-1
	lsl	w10, w11, w10
	bic	w8, w8, w10
	orr	w8, w8, w9
	sxtw	x0, w8
Lloh8:
	adrp	x8, _IB_NOTICE_TRAP_BAD_QKEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_NOTICE_TRAP_BAD_QKEY@GOTPAGEOFF]
LBB0_14:
	ldr	w21, [x8]
	ldr	w24, [x28, #20]
	ldr	w23, [x23, #56]
	ldr	w26, [x19, #56]
	bl	_cpu_to_be16
	mov	x27, x0
	ldr	x0, [x28, #8]
	bl	_cpu_to_be16
	mov	x7, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x26
	mov	x6, x27
	bl	_qib_bad_pqkey
	b	LBB0_49
LBB0_15:
	ldr	x25, [x21]
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x8, x25, #4
	str	x8, [sp, #80]
	ldr	x8, [x21, #8]
Lloh10:
	adrp	x9, _IB_WR_SEND_WITH_IMM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IB_WR_SEND_WITH_IMM@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh13:
	adrp	x8, _IB_WC_WITH_IMM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_WC_WITH_IMM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21, #56]
	stp	w8, w9, [sp, #132]
LBB0_17:
	add	x27, x19, #40
	mov	x0, x27
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
Lloh16:
	adrp	x22, _QIB_R_REUSE_SGE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _QIB_R_REUSE_SGE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.18:
	bic	w8, w8, w9
	str	w8, [x19, #16]
LBB0_19:
	ldr	x8, [sp, #80]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_25
; %bb.20:
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	b	LBB0_48
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	bl	_qib_get_rwqe
	tbnz	w0, #31, LBB0_27
; %bb.22:
	cbnz	w0, LBB0_19
; %bb.23:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_48
; %bb.24:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_48
LBB0_25:
	ldr	w8, [x28, #16]
Lloh18:
	adrp	x9, _IB_AH_GRH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_AH_GRH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	x0, x19, #84
	tst	w9, w8
	stp	x26, x28, [sp, #16]             ; 16-byte Folded Spill
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	b.eq	LBB0_28
; %bb.26:
	add	x1, x28, #24
	mov	w2, #4
	mov	w3, #1
	bl	_qib_copy_sge
Lloh21:
	adrp	x8, _IB_WC_GRH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_WC_GRH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #132]
	orr	w8, w9, w8
	str	w8, [sp, #132]
	b	LBB0_29
LBB0_27:
Lloh24:
	adrp	x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_WC_LOC_QP_OP_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_rc_error
	b	LBB0_48
LBB0_28:
	mov	w1, #4
	mov	w2, #1
	bl	_qib_skip_sge
LBB0_29:
	cbz	x25, LBB0_43
; %bb.30:
	ldr	x10, [x21, #48]
	ldr	x8, [x21, #64]
	ldp	x9, x27, [x8, #32]
	stp	x9, x10, [sp, #56]              ; 16-byte Folded Spill
	ldr	x10, [x8, #24]
	ldp	x22, x9, [x8, #8]
	stp	x10, x9, [sp, #40]              ; 16-byte Folded Spill
	ldr	x24, [x8]
	add	x26, x8, #48
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	str	x10, [sp, #48]                  ; 8-byte Folded Spill
	add	x8, x8, x10, lsl #4
	ldp	x24, x27, [x8]
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	subs	x25, x25, x28
	b.eq	LBB0_43
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x25
	csel	x8, x24, x25, lt
	cmp	x8, x22
	csel	x28, x8, x22, lt
	cmp	x28, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x28
	mov	w3, #1
	bl	_qib_copy_sge
	add	x27, x27, x28, lsl #2
	sub	x24, x24, x28
	subs	x22, x22, x28
	b.eq	LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	cbnz	x24, LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	add	x10, x10, #1
Lloh27:
	adrp	x8, _QIB_SEGSZ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QIB_SEGSZ@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x10, x8
	b.lt	LBB0_31
; %bb.37:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x9, x9, #1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	cmp	x9, x8
	b.ge	LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x10, #0
	b	LBB0_31
LBB0_39:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	subs	x8, x8, #1
	b.eq	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_33 Depth=1
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldp	x24, x22, [x26]
	ldr	x9, [x26, #16]
	ldr	x8, [x26, #24]
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	ldp	x8, x27, [x26, #32]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x26, x26, #48
	b	LBB0_32
LBB0_41:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x22, #0
	str	xzr, [sp, #64]                  ; 8-byte Folded Spill
	b	LBB0_32
LBB0_42:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x24, #0
	b	LBB0_32
LBB0_43:
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_qib_put_ss
Lloh30:
	adrp	x8, _QIB_R_WRID_VALID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _QIB_R_WRID_VALID@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x1, x19, #80
	bl	_test_and_clear_bit
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	cbz	w0, LBB0_48
; %bb.44:
	ldr	w8, [x19, #76]
	str	w8, [sp, #128]
Lloh33:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh35:
	adrp	x9, _IB_WC_RECV@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IB_WC_RECV@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #120]
	ldp	x8, x12, [sp, #16]              ; 16-byte Folded Reload
	str	x8, [sp, #112]
	ldr	w8, [x23, #56]
	str	w8, [sp, #88]
	ldr	x8, [x19, #48]
Lloh39:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.45:
	ldr	w8, [x21, #32]
	b	LBB0_47
LBB0_46:
	mov	w8, #0
LBB0_47:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	str	w8, [sp, #108]
	ldr	w8, [x12]
	ldp	w9, w10, [x10]
	mov	w11, #-1
	lsl	w10, w11, w10
	bic	w8, w8, w10
	orr	w8, w8, w9
	ldr	w9, [x12, #20]
	str	w8, [sp, #92]
	str	w9, [sp, #104]
	ldr	w8, [x12, #8]
	bic	w8, w8, w10
	ldr	w9, [x19, #72]
	stp	w8, w9, [sp, #96]
	ldr	w0, [x19, #60]
	bl	_to_icq
	ldr	w8, [x21, #16]
Lloh42:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	and	w2, w9, w8
	add	x1, sp, #80
	bl	_qib_cq_enter
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_48:
	mov	x0, x27
	bl	_spin_unlock_irqrestore
LBB0_49:
	add	x0, x19, #36
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_51
; %bb.50:
	add	x0, x19, #32
	bl	_wake_up
LBB0_51:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_qib_state_ops,8,3           ; @ib_qib_state_ops
	.comm	_QIB_PROCESS_RECV_OK,4,2        ; @QIB_PROCESS_RECV_OK
	.comm	_IB_NOTICE_TRAP_BAD_PKEY,4,2    ; @IB_NOTICE_TRAP_BAD_PKEY
	.comm	_IB_NOTICE_TRAP_BAD_QKEY,4,2    ; @IB_NOTICE_TRAP_BAD_QKEY
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ; @IB_WR_SEND_WITH_IMM
	.comm	_IB_WC_WITH_IMM,4,2             ; @IB_WC_WITH_IMM
	.comm	_QIB_R_REUSE_SGE,4,2            ; @QIB_R_REUSE_SGE
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ; @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_QIB_SEGSZ,8,3                  ; @QIB_SEGSZ
	.comm	_QIB_R_WRID_VALID,4,2           ; @QIB_R_WRID_VALID
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.no_dead_strip	_qib_ud_loopback
.subsections_via_symbols
