	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_post_one_send
_qib_post_one_send:                     ## @qib_post_one_send
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	44(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ib_qib_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	_QIB_POST_SEND_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	andl	(%rax,%rcx,4), %edx
	sete	%dil
	callq	_unlikely
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_45
## %bb.1:
	movl	(%r13), %ecx
	cmpl	8(%r14), %ecx
	jg	LBB0_45
## %bb.2:
	movq	8(%r13), %rax
	movq	_IB_WR_FAST_REG_MR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qib_fast_reg_mr
	testq	%rax, %rax
	jne	LBB0_45
	jmp	LBB0_17
LBB0_4:
	movq	48(%r14), %rdx
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.5:
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jbe	LBB0_45
LBB0_17:
	movq	16(%r14), %rax
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	24(%r14), %rax
	cmovgeq	%rcx, %rax
	cmpq	32(%r14), %rax
	jne	LBB0_19
## %bb.18:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	jmp	LBB0_45
LBB0_6:
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.10:
	movq	_IB_WR_ATOMIC_FETCH_AND_ADD@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	jb	LBB0_45
## %bb.11:
	movq	_IB_WR_ATOMIC_CMP_AND_SWP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_12
LBB0_15:
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rax
	jl	LBB0_17
## %bb.16:
	cmpl	$0, 68(%r14)
	jne	LBB0_17
	jmp	LBB0_45
LBB0_19:
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	56(%r14), %edi
	callq	_to_idev
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	60(%r14), %edi
	callq	_to_ipd
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_get_swqe_ptr
	movq	%rax, %rsi
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm0, 24(%rax)
	movups	%xmm1, 40(%rax)
	movq	32(%r13), %rax
	movq	%rax, 56(%rsi)
	movl	$0, (%rsi)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	movl	$0, %r13d
	testl	%eax, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_30
## %bb.20:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rcx, 8(%rdx)
	jl	LBB0_22
## %bb.21:
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
LBB0_22:
	movl	$0, %r13d
	testl	%eax, %eax
	jle	LBB0_29
## %bb.23:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	addl	(%r14), %r15d
	movl	%r15d, (%r14)
	incl	%r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rcx
	movl	(%rcx,%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	addq	%rbx, %rcx
	movslq	%r13d, %rdx
	shlq	$2, %rdx
	addq	8(%rsi), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, %r14
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_qib_lkey_ok
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movq	%r14, %rsi
	jmp	LBB0_33
LBB0_7:
	movq	_IB_WR_SEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_IB_WR_SEND_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_45
LBB0_9:
	movl	60(%r14), %eax
	movq	24(%r13), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
	jmp	LBB0_45
LBB0_29:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	addq	$24, %rax
	movl	%r13d, (%rax)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rbx
LBB0_30:
	movq	48(%r14), %rax
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.31:
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.35:
	movl	56(%r14), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_dd_from_ibdev
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	40(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	-4(%rax,%rcx,4), %edx
	jg	LBB0_33
## %bb.36:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rdi
	callq	_to_iah
	movq	%rax, %rdi
	callq	_atomic_inc
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_32:
	cmpl	$-2147483648, -56(%rbp)         ## 4-byte Folded Reload
                                        ## imm = 0x80000000
	jbe	LBB0_37
LBB0_33:
	testl	%r13d, %r13d
	je	LBB0_34
## %bb.41:
	movslq	%r13d, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%rsi, %r14
	callq	_qib_put_mr
	movq	%r14, %rsi
	decq	%rbx
	decl	%r13d
	jne	LBB0_42
## %bb.43:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_44
LBB0_37:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movslq	64(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 64(%r14)
	movq	%rax, 16(%rsi)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_34:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_44:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_45:
	movl	(%rbx), %ebx
	testl	%ebx, %ebx
	je	LBB0_38
## %bb.46:
	negl	%ebx
	jmp	LBB0_47
LBB0_38:
	xorl	%ebx, %ebx
	cmpl	$0, 16(%r13)
	jne	LBB0_47
## %bb.39:
	movl	56(%r14), %edi
	callq	_dd_from_ibdev
	movq	(%rax), %rax
	movslq	40(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	callq	_qib_sdma_empty
	testl	%eax, %eax
	jne	LBB0_47
## %bb.40:
	movq	%r14, %rdi
	callq	_qib_schedule_send
	movl	$1, (%r12)
LBB0_47:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%ecx, %ecx
	je	LBB0_45
## %bb.13:
	movq	32(%r13), %rcx
	cmpl	$4, (%rcx)
	jb	LBB0_45
## %bb.14:
	testb	$3, 4(%rcx)
	jne	LBB0_45
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_qib_state_ops,8,3           ## @ib_qib_state_ops
	.comm	_QIB_POST_SEND_OK,4,2           ## @QIB_POST_SEND_OK
	.comm	_IB_WR_FAST_REG_MR,8,3          ## @IB_WR_FAST_REG_MR
	.comm	_IB_QPT_UC,8,3                  ## @IB_QPT_UC
	.comm	_IB_WR_RDMA_READ,4,2            ## @IB_WR_RDMA_READ
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_WR_SEND,8,3                 ## @IB_WR_SEND
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ## @IB_WR_SEND_WITH_IMM
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,4,2 ## @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ## @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qib_post_one_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_post_one_send
_qib_post_one_send:                     ; @qib_post_one_send
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	x19, x0, #44
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ib_qib_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_qib_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _QIB_POST_SEND_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIB_POST_SEND_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_37
; %bb.1:
	ldr	w9, [x22]
	ldr	w8, [x21, #8]
	cmp	w9, w8
	b.gt	LBB0_37
; %bb.2:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x10, _IB_WR_FAST_REG_MR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_WR_FAST_REG_MR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_qib_fast_reg_mr
	cbnz	x0, LBB0_37
	b	LBB0_6
LBB0_4:
	ldr	x10, [x21, #48]
Lloh9:
	adrp	x11, _IB_QPT_UC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IB_QPT_UC@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ls	LBB0_37
LBB0_6:
	ldp	x8, x9, [x21, #16]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x24, xzr, x8, ge
	ldr	x8, [x21, #32]
	cmp	x24, x8
	b.ne	LBB0_13
; %bb.7:
Lloh15:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
	b	LBB0_38
LBB0_8:
Lloh17:
	adrp	x11, _IB_QPT_RC@GOTPAGE
Lloh18:
	ldr	x11, [x11, _IB_QPT_RC@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_20
; %bb.9:
Lloh20:
	adrp	x10, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IB_WR_ATOMIC_FETCH_AND_ADD@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w10, w8
	b.lo	LBB0_37
; %bb.10:
Lloh23:
	adrp	x10, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IB_WR_ATOMIC_CMP_AND_SWP@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ge	LBB0_34
LBB0_11:
Lloh26:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.12:
	ldr	w8, [x21, #68]
	cbnz	w8, LBB0_6
	b	LBB0_37
LBB0_13:
	ldr	w0, [x21, #56]
	bl	_to_idev
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x21, #60]
	bl	_to_ipd
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x1, [x21, #16]
	mov	x0, x21
	bl	_get_swqe_ptr
	mov	x23, x0
	ldp	q0, q1, [x22]
	ldr	x8, [x22, #32]
	str	x8, [x0, #56]
	stur	q1, [x0, #40]
	stur	q0, [x0, #24]
	str	wzr, [x0]
	ldr	w8, [x22]
	cbz	w8, LBB0_23
; %bb.14:
	str	x24, [sp]                       ; 8-byte Folded Spill
	ldr	x9, [x22, #8]
Lloh29:
	adrp	x10, _IB_WR_RDMA_READ@GOTPAGE
Lloh30:
	ldr	x10, [x10, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh33:
	ldr	x11, [x11, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, lt
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.15:
	mov	x24, #0
	mov	w27, #0
	mov	x25, #0
	mov	w28, #0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x23]
	add	w27, w8, w26
	str	w27, [x23]
	add	w28, w28, #1
	ldr	w8, [x22]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x25, x25, #1
	add	x24, x24, #8
	cmp	x25, w8, sxtw
	b.ge	LBB0_25
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #32]
	add	x3, x9, x24
	ldr	w26, [x3]
	cbz	w26, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x23, #8]
	add	x2, x8, w28, sxtw #2
	ldp	x1, x0, [sp, #16]               ; 16-byte Folded Reload
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	bl	_qib_lkey_ok
	cbnz	w0, LBB0_16
	b	LBB0_29
LBB0_20:
Lloh35:
	adrp	x9, _IB_WR_SEND@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IB_WR_SEND@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
Lloh38:
	adrp	x9, _IB_WR_SEND_WITH_IMM@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IB_WR_SEND_WITH_IMM@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_37
LBB0_22:
	ldr	w8, [x21, #60]
	ldr	x9, [x22, #24]
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
	b	LBB0_37
LBB0_23:
	mov	w27, #0
	mov	w28, #0
	b	LBB0_26
LBB0_24:
	mov	w27, #0
	mov	w28, #0
LBB0_25:
	add	x8, x23, #24
	str	w28, [x8]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
LBB0_26:
	ldr	x8, [x21, #48]
Lloh41:
	adrp	x9, _IB_QPT_UC@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IB_QPT_UC@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
Lloh44:
	adrp	x10, _IB_QPT_RC@GOTPAGE
Lloh45:
	ldr	x10, [x10, _IB_QPT_RC@GOTPAGEOFF]
Lloh46:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_28
; %bb.27:
	mov	w8, #-2147483648
	cmp	w27, w8
	b.hi	LBB0_29
	b	LBB0_33
LBB0_28:
	ldr	w0, [x21, #56]
	bl	_dd_from_ibdev
	ldr	x8, [x0]
	ldrsw	x9, [x21, #40]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w27, w8
	b.le	LBB0_32
LBB0_29:
	cbz	w28, LBB0_37
; %bb.30:
	sbfiz	x8, x28, #2, #32
	sub	x25, x8, #4
Lloh47:
	adrp	x24, _EINVAL@GOTPAGE
Lloh48:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x25]
	bl	_qib_put_mr
	sub	x25, x25, #4
	sub	w28, w28, #1
	cbnz	w28, LBB0_31
	b	LBB0_38
LBB0_32:
	ldr	x0, [x22, #24]
	bl	_to_iah
	bl	_atomic_inc
LBB0_33:
	ldrsw	x8, [x21, #64]
	add	w9, w8, #1
	str	w9, [x21, #64]
	str	x8, [x23, #16]
	str	x24, [x21, #16]
	b	LBB0_40
LBB0_34:
	cbz	w9, LBB0_37
; %bb.35:
	ldr	x9, [x22, #32]
	ldr	w10, [x9]
	cmp	w10, #4
	b.lo	LBB0_37
; %bb.36:
	ldrb	w9, [x9, #4]
	tst	w9, #0x3
	b.eq	LBB0_11
LBB0_37:
Lloh49:
	adrp	x24, _EINVAL@GOTPAGE
Lloh50:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x24]
	cbz	w8, LBB0_40
; %bb.39:
	neg	w21, w8
	b	LBB0_43
LBB0_40:
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_42
; %bb.41:
	ldr	w0, [x21, #56]
	bl	_dd_from_ibdev
	ldr	x8, [x0]
	ldrsw	x9, [x21, #40]
	add	x8, x8, x9, lsl #2
	sub	x0, x8, #4
	bl	_qib_sdma_empty
	cbz	w0, LBB0_44
LBB0_42:
	mov	w21, #0
LBB0_43:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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_44:
	mov	x0, x21
	bl	_qib_schedule_send
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_qib_state_ops,8,3           ; @ib_qib_state_ops
	.comm	_QIB_POST_SEND_OK,4,2           ; @QIB_POST_SEND_OK
	.comm	_IB_WR_FAST_REG_MR,8,3          ; @IB_WR_FAST_REG_MR
	.comm	_IB_QPT_UC,8,3                  ; @IB_QPT_UC
	.comm	_IB_WR_RDMA_READ,4,2            ; @IB_WR_RDMA_READ
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_WR_SEND,8,3                 ; @IB_WR_SEND
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ; @IB_WR_SEND_WITH_IMM
	.comm	_IB_WR_ATOMIC_FETCH_AND_ADD,4,2 ; @IB_WR_ATOMIC_FETCH_AND_ADD
	.comm	_IB_WR_ATOMIC_CMP_AND_SWP,8,3   ; @IB_WR_ATOMIC_CMP_AND_SWP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qib_post_one_send
.subsections_via_symbols
