	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_rdma_send
_build_rdma_send:                       ## @build_rdma_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	(%rdx), %eax
	movq	_T4_MAX_SEND_SGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdx), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_1
## %bb.4:
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_FW_RI_SEND@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_8:
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	jne	LBB0_9
## %bb.10:
	movq	_FW_RI_SEND_WITH_INV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_FW_RI_SEND_WITH_SE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_V_FW_RI_SEND_WR_SENDOP
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_FW_RI_SEND_WITH_SE_INV@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	callq	_V_FW_RI_SEND_WR_SENDOP
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r15)
	movl	16(%rbx), %edi
	callq	_cpu_to_be32
LBB0_12:
	movq	%rax, 24(%r15)
	movl	$0, -36(%rbp)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	je	LBB0_18
## %bb.13:
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_16
## %bb.14:
	movq	8(%r15), %rsi
	movq	_T4_MAX_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_build_immd
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movl	-36(%rbp), %edi
	addl	$44, %edi
	jmp	LBB0_19
LBB0_18:
	movq	_FW_RI_DATA_IMMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movl	%eax, 24(%rcx)
	movq	8(%r15), %rax
	movq	$0, 16(%rax)
	movq	8(%r15), %rax
	movq	$0, 8(%rax)
	movq	8(%r15), %rax
	movq	$0, (%rax)
	movl	$0, -36(%rbp)
	movl	$44, %edi
LBB0_19:
	movl	$16, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, (%r14)
	movl	-36(%rbp), %edi
	callq	_cpu_to_be32
	movq	%rax, (%r15)
	xorl	%eax, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	(%r12), %rax
	movq	8(%r12), %rdi
	leaq	(%rdi,%rax,4), %rsi
	movl	16(%r15), %edx
	movl	12(%rbx), %ecx
	leaq	-36(%rbp), %r9
	callq	_build_isgl
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movl	(%rbx), %eax
	leal	44(,%rax,4), %edi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_T4_MAX_SEND_SGE,4,2            ## @T4_MAX_SEND_SGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_FW_RI_SEND_WITH_SE,4,2         ## @FW_RI_SEND_WITH_SE
	.comm	_FW_RI_SEND,4,2                 ## @FW_RI_SEND
	.comm	_FW_RI_SEND_WITH_SE_INV,4,2     ## @FW_RI_SEND_WITH_SE_INV
	.comm	_FW_RI_SEND_WITH_INV,4,2        ## @FW_RI_SEND_WITH_INV
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
	.comm	_T4_MAX_SEND_INLINE,4,2         ## @T4_MAX_SEND_INLINE
	.comm	_FW_RI_DATA_IMMD,4,2            ## @FW_RI_DATA_IMMD
	.no_dead_strip	_build_rdma_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_rdma_send
_build_rdma_send:                       ; @build_rdma_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _T4_MAX_SEND_SGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _T4_MAX_SEND_SGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w8, [x2, #4]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh5:
	adrp	x10, _FW_RI_SEND@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FW_RI_SEND@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _FW_RI_SEND_WITH_SE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FW_RI_SEND_WITH_SE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	bl	_V_FW_RI_SEND_WR_SENDOP
	bl	_cpu_to_be32
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19, #32]
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	ldr	w8, [x21, #8]
Lloh13:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh15:
	adrp	x10, _FW_RI_SEND_WITH_INV@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FW_RI_SEND_WITH_INV@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x11, _FW_RI_SEND_WITH_SE_INV@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FW_RI_SEND_WITH_SE_INV@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	bl	_V_FW_RI_SEND_WR_SENDOP
	bl	_cpu_to_be32
	str	x0, [x19, #32]
	ldr	w0, [x21, #16]
	bl	_cpu_to_be32
LBB0_6:
	str	x0, [x19, #24]
	str	wzr, [sp, #12]
	ldr	w4, [x21]
	cbz	w4, LBB0_10
; %bb.7:
	ldr	w8, [x21, #8]
Lloh20:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	ldr	x1, [x19, #8]
Lloh23:
	adrp	x8, _T4_MAX_SEND_INLINE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _T4_MAX_SEND_INLINE@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x22
	mov	x2, x21
	bl	_build_immd
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w8, [sp, #12]
	add	w0, w8, #44
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _FW_RI_DATA_IMMD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FW_RI_DATA_IMMD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9, #24]
	ldr	x8, [x19, #8]
	str	xzr, [x8, #16]
	ldr	x8, [x19, #8]
	str	xzr, [x8, #8]
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	str	wzr, [sp, #12]
	mov	w0, #44
LBB0_11:
	mov	w1, #16
	bl	_DIV_ROUND_UP
	str	w0, [x20]
	ldr	w0, [sp, #12]
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	ldp	x8, x0, [x22]
	add	x1, x0, x8, lsl #2
	ldr	w2, [x19, #16]
	ldr	w3, [x21, #12]
	add	x5, sp, #12
	bl	_build_isgl
	cbnz	w0, LBB0_12
; %bb.14:
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w0, w8, #44
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_T4_MAX_SEND_SGE,4,2            ; @T4_MAX_SEND_SGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_FW_RI_SEND_WITH_SE,4,2         ; @FW_RI_SEND_WITH_SE
	.comm	_FW_RI_SEND,4,2                 ; @FW_RI_SEND
	.comm	_FW_RI_SEND_WITH_SE_INV,4,2     ; @FW_RI_SEND_WITH_SE_INV
	.comm	_FW_RI_SEND_WITH_INV,4,2        ; @FW_RI_SEND_WITH_INV
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
	.comm	_T4_MAX_SEND_INLINE,4,2         ; @T4_MAX_SEND_INLINE
	.comm	_FW_RI_DATA_IMMD,4,2            ; @FW_RI_DATA_IMMD
	.no_dead_strip	_build_rdma_send
.subsections_via_symbols
