	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_rdma_read
_build_rdma_read:                       ## @build_rdma_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_T3_READ_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	8(%rsi), %rax
	movq	_IB_WR_RDMA_READ_WITH_INV@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%rdi)
	movq	48(%rdi), %rax
	movq	$0, (%rax)
	movq	48(%rdi), %rax
	movq	$0, 8(%rax)
	movq	%rsi, %rdi
	callq	_rdma_wr
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
	movq	%r15, %rdi
	callq	_rdma_wr
	movl	(%rax), %edi
	callq	_cpu_to_be64
	movq	%rax, 32(%rbx)
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movq	16(%r15), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%rbx)
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_T3_READ_REQ,4,2                ## @T3_READ_REQ
	.comm	_IB_WR_RDMA_READ_WITH_INV,8,3   ## @IB_WR_RDMA_READ_WITH_INV
	.no_dead_strip	_build_rdma_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_rdma_read
_build_rdma_read:                       ; @build_rdma_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, [x1]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _T3_READ_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T3_READ_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	ldr	x8, [x1, #8]
Lloh6:
	adrp	x9, _IB_WR_RDMA_READ_WITH_INV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_WR_RDMA_READ_WITH_INV@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x0]
	ldr	x8, [x0, #48]
	str	xzr, [x8]
	ldr	x8, [x0, #48]
	str	xzr, [x8, #8]
	mov	x0, x1
	bl	_rdma_wr
	ldr	w0, [x0, #4]
	bl	_cpu_to_be32
	str	x0, [x20, #40]
	mov	x0, x21
	bl	_rdma_wr
	ldr	w0, [x0]
	bl	_cpu_to_be64
	str	x0, [x20, #32]
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #8]
	bl	_cpu_to_be32
	str	x0, [x20, #24]
	ldr	x8, [x21, #16]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	str	x0, [x20, #16]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_cpu_to_be64
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #8]
	str	wzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_T3_READ_REQ,4,2                ; @T3_READ_REQ
	.comm	_IB_WR_RDMA_READ_WITH_INV,8,3   ; @IB_WR_RDMA_READ_WITH_INV
	.no_dead_strip	_build_rdma_read
.subsections_via_symbols
