	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_prepare_sq_rdma_data
_qedr_prepare_sq_rdma_data:             ## @qedr_prepare_sq_rdma_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%r8, %rdi
	callq	_rdma_wr
	movl	4(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_rdma_wr
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_DMA_REGPAIR_LE
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_IB_WR_RDMA_WRITE_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_IB_WR_RDMA_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qedr_prepare_sq_sges           ## TAILCALL
LBB0_3:
	movq	_RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_SET_FIELD2
	leaq	4(%r15), %r9
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_qedr_prepare_sq_inline_data
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
	.comm	_IB_WR_RDMA_WRITE_WITH_IMM,8,3  ## @IB_WR_RDMA_WRITE_WITH_IMM
	.comm	_IB_WR_RDMA_WRITE,8,3           ## @IB_WR_RDMA_WRITE
	.comm	_RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG,4,2 ## @RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG
	.no_dead_strip	_qedr_prepare_sq_rdma_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_prepare_sq_rdma_data
_qedr_prepare_sq_rdma_data:             ; @qedr_prepare_sq_rdma_data
	.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, x5
	mov	x19, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x4
	bl	_rdma_wr
	ldr	w0, [x0, #4]
	bl	_cpu_to_le32
	str	w0, [x24, #4]
	ldr	w24, [x24]
	mov	x0, x19
	bl	_rdma_wr
	ldr	w1, [x0]
	mov	x0, x24
	bl	_DMA_REGPAIR_LE
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IB_SEND_INLINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IB_WR_RDMA_WRITE_WITH_IMM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_WR_RDMA_WRITE_WITH_IMM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IB_WR_RDMA_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_WR_RDMA_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #1
	bl	_SET_FIELD2
	add	x5, x21, #4
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	mov	w6, #0
	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
	b	_qedr_prepare_sq_inline_data
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	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
	b	_qedr_prepare_sq_sges
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
	.comm	_IB_WR_RDMA_WRITE_WITH_IMM,8,3  ; @IB_WR_RDMA_WRITE_WITH_IMM
	.comm	_IB_WR_RDMA_WRITE,8,3           ; @IB_WR_RDMA_WRITE
	.comm	_RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG,4,2 ; @RDMA_SQ_RDMA_WQE_1ST_INLINE_FLG
	.no_dead_strip	_qedr_prepare_sq_rdma_data
.subsections_via_symbols
