	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_post_send
_i40iw_post_send:                       ## @i40iw_post_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	$424, %rsp                      ## imm = 0x1A8
	.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, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r13
	callq	_spin_lock_irqsave
	cmpq	$0, 80(%r15)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_36
LBB0_2:
	negl	%r14d
	movq	%rbx, (%r12)
	jmp	LBB0_37
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_36
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_INV_STAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -176(%rbp)
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	movl	$1, %edx
	callq	*48(%r15)
	testl	%eax, %eax
	je	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jne	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_36
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	-256(%rbp), %rdi
	xorl	%esi, %esi
	movl	$200, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	%rax, -192(%rbp)
	movl	(%rbx), %eax
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 72(%r15)
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, -256(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_IB_SEND_FENCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, -252(%rbp)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rbx), %esi
	leal	-128(%rsi), %ecx
	cmpl	$6, %ecx
	ja	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_SEND_SOL_INV@GOTPCREL(%rip), %rcx
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_SEND_INV@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_i40iw_pr_err
	testl	%r14d, %r14d
	je	LBB0_9
	jmp	LBB0_2
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_SEND_SOL@GOTPCREL(%rip), %rcx
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_SEND@GOTPCREL(%rip), %rcx
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	24(%rbx), %edx
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	*(%r13)
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_9
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_reg_wr
	movq	8(%rax), %rdi
	callq	_to_iwmr
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_reg_wr
	movl	(%rax), %r13d
	movq	64(%r15), %r12
	leaq	-456(%rbp), %rdi
	xorl	%esi, %esi
	movl	$200, %edx
	callq	_memset
	movq	_I40IW_ACCESS_FLAGS_LOCALREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -380(%rbp)
	movl	%r13d, %edi
	callq	_i40iw_get_user_access
	orl	%eax, -380(%rbp)
	movq	%rbx, %rdi
	callq	_reg_wr
	movzbl	4(%rax), %eax
	movl	%eax, -448(%rbp)
	movq	%rbx, %rdi
	callq	_reg_wr
	movl	4(%rax), %eax
	sarl	$8, %eax
	movl	%eax, -444(%rbp)
	movq	%rbx, %rdi
	callq	_reg_wr
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -384(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -392(%rbp)
	movq	_I40IW_ADDR_TYPE_VA_BASED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -400(%rbp)
	movslq	8(%r14), %rax
	movq	%rax, -408(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -416(%rbp)
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -424(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -432(%rbp)
	movl	(%rbx), %eax
	movq	_IB_SEND_FENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, -440(%rbp)
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -456(%rbp)
	movl	(%r14), %eax
	movq	_I40IW_MIN_PAGES_PER_FMR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, -436(%rbp)
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12), %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	-456(%rbp), %rsi
	movl	$1, %edx
	callq	*(%rax)
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_9
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_RDMA_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -104(%rbp)
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	4(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	xorl	%edx, %edx
	callq	*24(%r15)
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_9
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %r14d
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	40(%rbx), %eax
	movq	_I40IW_MAX_SGE_RD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_OP_TYPE_RDMA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	4(%rax), %eax
	movl	%eax, -148(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -160(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -164(%rbp)
	movl	(%rax), %eax
	movl	%eax, -168(%rbp)
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	*40(%r15)
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_9
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	40(%rbx), %eax
	movl	%eax, -88(%rbp)
	movq	32(%rbx), %rax
	movq	%rax, -96(%rbp)
	movl	24(%rbx), %edx
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	*16(%r15)
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_9
LBB0_33:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%rbx), %rax
	movq	%rax, -128(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -136(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	4(%rax), %eax
	movl	%eax, -140(%rbp)
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movq	%r13, %rdi
	leaq	-256(%rbp), %rsi
	xorl	%edx, %edx
	callq	*32(%r15)
	testl	%eax, %eax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_35:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_36:
	movq	%r13, %rdi
	callq	*56(%r15)
	xorl	%r14d, %r14d
LBB0_37:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_24
	.long	L0_0_set_27
	.long	L0_0_set_29
	.long	L0_0_set_30
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_IB_SEND_FENCE,4,2              ## @IB_SEND_FENCE
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_I40IW_OP_TYPE_SEND_SOL,4,2     ## @I40IW_OP_TYPE_SEND_SOL
	.comm	_I40IW_OP_TYPE_SEND,4,2         ## @I40IW_OP_TYPE_SEND
	.comm	_I40IW_OP_TYPE_SEND_SOL_INV,4,2 ## @I40IW_OP_TYPE_SEND_SOL_INV
	.comm	_I40IW_OP_TYPE_SEND_INV,4,2     ## @I40IW_OP_TYPE_SEND_INV
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ## @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40IW_OP_TYPE_RDMA_WRITE,4,2   ## @I40IW_OP_TYPE_RDMA_WRITE
	.comm	_I40IW_MAX_SGE_RD,4,2           ## @I40IW_MAX_SGE_RD
	.comm	_I40IW_OP_TYPE_RDMA_READ,4,2    ## @I40IW_OP_TYPE_RDMA_READ
	.comm	_I40IW_OP_TYPE_INV_STAG,4,2     ## @I40IW_OP_TYPE_INV_STAG
	.comm	_I40IW_ACCESS_FLAGS_LOCALREAD,4,2 ## @I40IW_ACCESS_FLAGS_LOCALREAD
	.comm	_I40IW_ADDR_TYPE_VA_BASED,4,2   ## @I40IW_ADDR_TYPE_VA_BASED
	.comm	_I40IW_MIN_PAGES_PER_FMR,4,2    ## @I40IW_MIN_PAGES_PER_FMR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" upost_send bad opcode = 0x%x\n"

	.no_dead_strip	_i40iw_post_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_post_send
_i40iw_post_send:                       ; @i40iw_post_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #416
	mov	x25, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #8
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	w20, LBB0_36
LBB0_2:
	neg	w22, w20
	str	x21, [x25]
	b	LBB0_37
LBB0_3:
	cbz	x21, LBB0_36
; %bb.4:
Lloh3:
	adrp	x26, _IB_SEND_SIGNALED@GOTPAGE
Lloh4:
	ldr	x26, [x26, _IB_SEND_SIGNALED@GOTPAGEOFF]
Lloh5:
	adrp	x27, _IB_SEND_FENCE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _IB_SEND_FENCE@GOTPAGEOFF]
Lloh7:
	adrp	x23, _EINVAL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
Lloh9:
	adrp	x28, _IB_SEND_SOLICITED@GOTPAGE
Lloh10:
	ldr	x28, [x28, _IB_SEND_SOLICITED@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh11:
	adrp	x8, _I40IW_OP_TYPE_INV_STAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_OP_TYPE_INV_STAG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #400]
	ldr	w8, [x21, #24]
	str	w8, [sp, #288]
	ldr	x8, [x19, #48]
	add	x1, sp, #208
	mov	x0, x22
	mov	w2, #1
	blr	x8
	cbz	w0, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w20, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_36
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #208
	mov	w1, #0
	mov	w2, #200
	bl	_memset
	ldr	x8, [x21, #16]
	str	x8, [sp, #272]
	ldr	w8, [x21]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19, #72]
	cbz	x9, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #1
	str	w9, [sp, #208]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #1
	str	w9, [sp, #212]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x21, #4]
	sub	w9, w1, #128
	cmp	w9, #6
	b.hi	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #0
Lloh17:
	adrp	x12, lJTI0_0@PAGE
Lloh18:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x12, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
Lloh19:
	adrp	x9, _I40IW_OP_TYPE_SEND_SOL_INV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _I40IW_OP_TYPE_SEND_SOL_INV@GOTPAGEOFF]
Lloh21:
	adrp	x10, _I40IW_OP_TYPE_SEND_INV@GOTPAGE
Lloh22:
	ldr	x10, [x10, _I40IW_OP_TYPE_SEND_INV@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w20, [x23]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_err
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
Lloh25:
	adrp	x9, _I40IW_OP_TYPE_SEND_SOL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I40IW_OP_TYPE_SEND_SOL@GOTPAGEOFF]
Lloh27:
	adrp	x10, _I40IW_OP_TYPE_SEND@GOTPAGE
Lloh28:
	ldr	x10, [x10, _I40IW_OP_TYPE_SEND@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	w9, [sp, #400]
Lloh29:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21, #32]
	ldr	x9, [x8, #8]
	str	x9, [sp, #392]
	ldr	w8, [x8]
	str	w8, [sp, #384]
	ldr	x8, [x22]
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x28, x26
	mov	x26, x27
	mov	x23, x25
	mov	x0, x21
	bl	_reg_wr
	ldr	x0, [x0, #8]
	bl	_to_iwmr
	mov	x24, x0
	mov	x0, x21
	bl	_reg_wr
	ldr	w25, [x0]
	ldr	x20, [x19, #64]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #200
	bl	_memset
Lloh32:
	adrp	x8, _I40IW_ACCESS_FLAGS_LOCALREAD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I40IW_ACCESS_FLAGS_LOCALREAD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [sp, #84]
	mov	x0, x25
	bl	_i40iw_get_user_access
	ldr	w8, [sp, #84]
	orr	w8, w8, w0
	str	w8, [sp, #84]
	mov	x0, x21
	bl	_reg_wr
	ldrb	w8, [x0, #4]
	str	w8, [sp, #16]
	mov	x0, x21
	bl	_reg_wr
	ldr	w8, [x0, #4]
	asr	w8, w8, #8
	str	w8, [sp, #20]
	mov	x0, x21
	bl	_reg_wr
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	str	w8, [sp, #80]
	ldr	x8, [x21, #16]
	str	x8, [sp, #72]
Lloh35:
	adrp	x8, _I40IW_ADDR_TYPE_VA_BASED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I40IW_ADDR_TYPE_VA_BASED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	ldrsw	x8, [x24, #8]
	str	x8, [sp, #56]
	ldr	w8, [x24, #4]
	str	w8, [sp, #48]
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w8, [x24, #16]
	str	w8, [sp, #32]
	ldr	w8, [x21]
	ldr	w9, [x27]
	and	w9, w9, w8
	mov	x26, x28
	ldr	w10, [x28]
	and	w8, w10, w8
	str	w9, [sp, #24]
	str	w8, [sp, #8]
	ldr	w8, [x24]
Lloh38:
	adrp	x9, _I40IW_MIN_PAGES_PER_FMR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _I40IW_MIN_PAGES_PER_FMR@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #1
	str	w8, [sp, #28]
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #1
	blr	x8
	mov	x25, x23
Lloh41:
	adrp	x23, _EINVAL@GOTPAGE
Lloh42:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
Lloh43:
	adrp	x28, _IB_SEND_SOLICITED@GOTPAGE
Lloh44:
	ldr	x28, [x28, _IB_SEND_SOLICITED@GOTPAGEOFF]
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh45:
	adrp	x9, _I40IW_OP_TYPE_RDMA_WRITE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _I40IW_OP_TYPE_RDMA_WRITE@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	str	w9, [sp, #400]
Lloh48:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21, #32]
	ldr	x9, [x8, #8]
	str	x9, [sp, #360]
	ldr	w8, [x8]
	str	w8, [sp, #352]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0, #4]
	str	w8, [sp, #348]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0]
	str	w8, [sp, #344]
	ldr	x8, [x19, #24]
	b	LBB0_33
LBB0_26:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #1
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #40]
Lloh51:
	adrp	x9, _I40IW_MAX_SGE_RD@GOTPAGE
Lloh52:
	ldr	x9, [x9, _I40IW_MAX_SGE_RD@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_35
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh54:
	adrp	x8, _I40IW_OP_TYPE_RDMA_READ@GOTPAGE
Lloh55:
	ldr	x8, [x8, _I40IW_OP_TYPE_RDMA_READ@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [sp, #400]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0, #4]
	str	w8, [sp, #316]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0]
	str	w8, [sp, #312]
	ldr	x8, [x21, #32]
	ldr	x9, [x8, #8]
	str	x9, [sp, #304]
	ldr	d0, [x8]
	str	d0, [sp, #296]
	ldr	x8, [x19, #40]
	add	x1, sp, #208
	mov	x0, x22
	mov	x2, x24
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x21, #40]
	str	w8, [sp, #376]
	ldr	x8, [x21, #32]
	str	x8, [sp, #368]
	ldr	x8, [x19, #16]
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x21, #24]
	add	x1, sp, #208
	mov	x0, x22
LBB0_31:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_34
	b	LBB0_8
LBB0_32:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21, #32]
	str	x8, [sp, #336]
	ldr	w8, [x21, #40]
	str	w8, [sp, #328]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0, #4]
	str	w8, [sp, #324]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w8, [x0]
	str	w8, [sp, #320]
	ldr	x8, [x19, #32]
LBB0_33:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #208
	mov	x0, x22
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_8
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh57:
	adrp	x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGE
Lloh58:
	ldr	x8, [x8, _I40IW_ERR_QP_TOOMANY_WRS_POSTED@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
LBB0_35:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w20, [x23]
	b	LBB0_7
LBB0_36:
	ldr	x8, [x19, #56]
	mov	x0, x22
	blr	x8
	mov	w22, #0
LBB0_37:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	add	sp, sp, #416
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_24-LBB0_5)>>2
	.byte	(LBB0_26-LBB0_5)>>2
	.byte	(LBB0_27-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_IB_SEND_FENCE,4,2              ; @IB_SEND_FENCE
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_I40IW_OP_TYPE_SEND_SOL,4,2     ; @I40IW_OP_TYPE_SEND_SOL
	.comm	_I40IW_OP_TYPE_SEND,4,2         ; @I40IW_OP_TYPE_SEND
	.comm	_I40IW_OP_TYPE_SEND_SOL_INV,4,2 ; @I40IW_OP_TYPE_SEND_SOL_INV
	.comm	_I40IW_OP_TYPE_SEND_INV,4,2     ; @I40IW_OP_TYPE_SEND_INV
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
	.comm	_I40IW_ERR_QP_TOOMANY_WRS_POSTED,4,2 ; @I40IW_ERR_QP_TOOMANY_WRS_POSTED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40IW_OP_TYPE_RDMA_WRITE,4,2   ; @I40IW_OP_TYPE_RDMA_WRITE
	.comm	_I40IW_MAX_SGE_RD,4,2           ; @I40IW_MAX_SGE_RD
	.comm	_I40IW_OP_TYPE_RDMA_READ,4,2    ; @I40IW_OP_TYPE_RDMA_READ
	.comm	_I40IW_OP_TYPE_INV_STAG,4,2     ; @I40IW_OP_TYPE_INV_STAG
	.comm	_I40IW_ACCESS_FLAGS_LOCALREAD,4,2 ; @I40IW_ACCESS_FLAGS_LOCALREAD
	.comm	_I40IW_ADDR_TYPE_VA_BASED,4,2   ; @I40IW_ADDR_TYPE_VA_BASED
	.comm	_I40IW_MIN_PAGES_PER_FMR,4,2    ; @I40IW_MIN_PAGES_PER_FMR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" upost_send bad opcode = 0x%x\n"

	.no_dead_strip	_i40iw_post_send
.subsections_via_symbols
