	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.2:
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r13), %eax
	jne	LBB0_3
## %bb.4:
	movq	_T3_SEND@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_IB_SEND_SOLICITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r13), %eax
	jne	LBB0_10
## %bb.11:
	movq	_T3_SEND_WITH_INV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_T3_SEND_WITH_SE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_10:
	movq	_T3_SEND_WITH_SE_INV@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	24(%r13), %rdi
	callq	_cpu_to_be32
LBB0_6:
	movq	%rax, 32(%r15)
	movl	8(%r13), %eax
	movq	_T3_MAX_SGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_7:
	movq	24(%r15), %rcx
	movq	$0, (%rcx)
	movq	24(%r15), %rcx
	movq	$0, 8(%rcx)
	movq	24(%r15), %rcx
	movq	$0, 16(%rcx)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.15:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r14), %rcx
	testq	%rcx, %rcx
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%rcx, %rbx
	movq	8(%rax,%r14), %rdi
	callq	_cpu_to_be32
	movq	16(%r15), %rcx
	movq	%rax, 16(%rcx,%r14)
	movq	16(%r13), %rax
	movq	(%rax,%r14), %rdi
	callq	_cpu_to_be32
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx,%r14)
	movq	16(%r13), %rax
	movl	16(%rax,%r14), %edi
	callq	_cpu_to_be64
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r14)
	incq	%r12
	movslq	8(%r13), %rax
	addq	$24, %r14
	cmpq	%rax, %r12
	jl	LBB0_16
## %bb.19:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_8:
	xorl	%ebx, %ebx
LBB0_20:
	movslq	%eax, %rdi
	callq	_cpu_to_be32
	movq	%rax, 8(%r15)
	movl	8(%r13), %eax
	addl	%eax, %eax
	addl	$4, %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_cpu_to_be32
	movq	%rax, (%r15)
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SEND_SOLICITED,4,2          ## @IB_SEND_SOLICITED
	.comm	_T3_SEND_WITH_SE,4,2            ## @T3_SEND_WITH_SE
	.comm	_T3_SEND,4,2                    ## @T3_SEND
	.comm	_T3_SEND_WITH_SE_INV,4,2        ## @T3_SEND_WITH_SE_INV
	.comm	_T3_SEND_WITH_INV,4,2           ## @T3_SEND_WITH_INV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_T3_MAX_SGE,4,2                 ## @T3_MAX_SGE
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
	mov	x0, #0
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _T3_SEND@GOTPAGE
Lloh4:
	ldr	x10, [x10, _T3_SEND@GOTPAGEOFF]
Lloh5:
	adrp	x11, _T3_SEND_WITH_SE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _T3_SEND_WITH_SE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x21, #4]
Lloh7:
	adrp	x9, _IB_SEND_SOLICITED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_SEND_SOLICITED@GOTPAGEOFF]
Lloh9:
	adrp	x10, _T3_SEND_WITH_INV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _T3_SEND_WITH_INV@GOTPAGEOFF]
Lloh11:
	adrp	x11, _T3_SEND_WITH_SE_INV@GOTPAGE
Lloh12:
	ldr	x11, [x11, _T3_SEND_WITH_SE_INV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x0, [x21, #24]
	bl	_cpu_to_be32
LBB0_4:
	str	x0, [x19, #32]
	ldr	w8, [x21, #8]
Lloh14:
	adrp	x9, _T3_MAX_SGE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _T3_MAX_SGE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
	ldr	x9, [x19, #24]
	str	xzr, [x9]
	ldr	x9, [x19, #24]
	str	xzr, [x9, #8]
	ldr	x9, [x19, #24]
	str	xzr, [x9, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x23, #0
	mov	x24, #0
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x8, x23]
	tbnz	x9, #63, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x9, x22
	add	x8, x8, x23
	ldr	x0, [x8, #8]
	bl	_cpu_to_be32
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	x0, [x8, #16]
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x23]
	bl	_cpu_to_be32
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	str	x0, [x8, #8]
	ldr	x8, [x21, #16]
	add	x8, x8, x23
	ldr	w0, [x8, #16]
	bl	_cpu_to_be64
	ldr	x8, [x19, #16]
	str	w0, [x8, x23]
	add	x24, x24, #1
	ldrsw	x8, [x21, #8]
	add	x23, x23, #24
	cmp	x24, x8
	b.lt	LBB0_9
; %bb.11:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_13
LBB0_12:
	mov	x22, #0
LBB0_13:
	sxtw	x0, w8
	bl	_cpu_to_be32
	str	x0, [x19, #8]
	ldr	w8, [x21, #8]
	lsl	w8, w8, #1
	add	w8, w8, #4
	str	w8, [x20]
	mov	x0, x22
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh19:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SEND_SOLICITED,4,2          ; @IB_SEND_SOLICITED
	.comm	_T3_SEND_WITH_SE,4,2            ; @T3_SEND_WITH_SE
	.comm	_T3_SEND,4,2                    ; @T3_SEND
	.comm	_T3_SEND_WITH_SE_INV,4,2        ; @T3_SEND_WITH_SE_INV
	.comm	_T3_SEND_WITH_INV,4,2           ; @T3_SEND_WITH_INV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_T3_MAX_SGE,4,2                 ; @T3_MAX_SGE
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_build_rdma_send
.subsections_via_symbols
