	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_rdma_to_iovec              ## -- Begin function sdp_rdma_to_iovec
	.p2align	4, 0x90
_sdp_rdma_to_iovec:                     ## @sdp_rdma_to_iovec
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_sdp_sk
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RX_SRCAVAIL_STATE
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movslq	32(%r14), %rdi
	movq	%r15, %r14
	movq	%rax, %r15
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sdp_dbg_data
	movq	_SOCK_REF_RDMA_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_hold
	movl	(%r15), %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sdp_warn
	movl	$1, %edi
	callq	_WARN_ON
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
LBB0_2:
	movl	(%r14), %esi
	leaq	32(%r15), %rax
	addq	$24, %r15
	movq	%r12, %rdi
	movl	%ebx, %edx
	movq	%rax, %rbx
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	_sdp_alloc_fmr
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_sdp_warn
	movq	_SOCK_REF_RDMA_RD@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_sdp_post_rdma_read
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_sdp_warn
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	32(%r14), %edi
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_sdp_set_error
	movq	%r14, %rdi
	addq	$28, %rdi
	callq	_wake_up
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_sdp_prf
	movq	%r12, %rdi
	callq	_sdp_arm_tx_cq
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sdp_wait_rdma_wr_finished
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_sdp_prf
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_sdp_update_iov_used
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, 16(%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	addq	$24, %rsi
	movl	%ebx, %edi
	callq	_atomic_add
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, 16(%r14)
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sdp_dbg_data
	movq	_EPIPE@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_sdp_free_fmr
	testl	%r13d, %r13d
	movq	_SOCK_REF_RDMA_RD@GOTPCREL(%rip), %rbx
	je	LBB0_12
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.5:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sdp_warn
	movq	_RX_SA_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 20(%rcx)
	jmp	LBB0_13
LBB0_12:
	xorl	%r13d, %r13d
LBB0_13:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sock_put
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preparing RDMA read. len: 0x%x. buffer len: 0x%lx\n"

	.comm	_SOCK_REF_RDMA_RD,4,2           ## @SOCK_REF_RDMA_RD
L_.str.1:                               ## @.str.1
	.asciz	"len:0x%x > rx_sa->len: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error allocating fmr: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ib_post_send failed with status %d.\n"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
L_.str.4:                               ## @.str.4
	.asciz	"Finished posting(rc=%d), now to wait"

L_.str.5:                               ## @.str.5
	.asciz	"Finished waiting(rc=%d)"

L_.str.6:                               ## @.str.6
	.asciz	"QP destroyed during RDMA read\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.7:                               ## @.str.7
	.asciz	"Couldn't do RDMA - post sendsm\n"

	.comm	_RX_SA_ABORTED,4,2              ## @RX_SA_ABORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_rdma_to_iovec              ; -- Begin function sdp_rdma_to_iovec
	.p2align	2
_sdp_rdma_to_iovec:                     ; @sdp_rdma_to_iovec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x3
	mov	x27, x2
	mov	x24, x1
	mov	x19, x0
	bl	_sdp_sk
	mov	x21, x0
	mov	x0, x27
	bl	_RX_SRCAVAIL_STATE
	mov	x20, x0
	ldr	x22, [x23]
	ldrsw	x0, [x21, #32]
	ldr	w8, [x24, #4]
	stp	x22, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sdp_dbg_data
Lloh2:
	adrp	x28, _SOCK_REF_RDMA_RD@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SOCK_REF_RDMA_RD@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_sock_hold
	ldr	w8, [x20]
	cmp	w8, w22
	b.ge	LBB0_2
; %bb.1:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
	mov	w0, #1
	bl	_WARN_ON
	ldr	w22, [x20]
LBB0_2:
	ldr	w1, [x24]
	add	x25, x20, #32
	add	x26, x20, #24
	mov	x0, x19
	mov	x2, x22
	mov	x3, x25
	mov	x4, x26
	bl	_sdp_alloc_fmr
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_sdp_post_rdma_read
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x8, x22
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
	ldr	w0, [x21, #32]
Lloh10:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_sdp_set_error
	add	x0, x21, #28
	bl	_wake_up
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x27
	mov	x3, x22
	bl	_sdp_prf
	mov	x0, x19
	bl	_sdp_arm_tx_cq
	mov	x0, x21
	bl	_sdp_wait_rdma_wr_finished
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x27
	mov	x3, x22
	bl	_sdp_prf
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20, #24]
	ldrsw	x27, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_sdp_update_iov_used
	ldr	w8, [x20, #16]
	add	w8, w8, w27
	str	w8, [x20, #16]
	add	x1, x21, #24
	mov	x0, x27
	bl	_atomic_add
	str	x27, [x23]
	str	xzr, [x21, #16]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_sdp_dbg_data
Lloh19:
	adrp	x8, _EPIPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	bl	_sdp_free_fmr
	cbz	w22, LBB0_12
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_sdp_warn
Lloh24:
	adrp	x8, _RX_SA_ABORTED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RX_SA_ABORTED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
LBB0_12:
	ldr	w1, [x28]
	mov	x0, x19
	bl	_sock_put
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preparing RDMA read. len: 0x%x. buffer len: 0x%lx\n"

	.comm	_SOCK_REF_RDMA_RD,4,2           ; @SOCK_REF_RDMA_RD
l_.str.1:                               ; @.str.1
	.asciz	"len:0x%x > rx_sa->len: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error allocating fmr: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ib_post_send failed with status %d.\n"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
l_.str.4:                               ; @.str.4
	.asciz	"Finished posting(rc=%d), now to wait"

l_.str.5:                               ; @.str.5
	.asciz	"Finished waiting(rc=%d)"

l_.str.6:                               ; @.str.6
	.asciz	"QP destroyed during RDMA read\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.7:                               ; @.str.7
	.asciz	"Couldn't do RDMA - post sendsm\n"

	.comm	_RX_SA_ABORTED,4,2              ; @RX_SA_ABORTED
.subsections_via_symbols
