	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rwqe_data_seg
_set_rwqe_data_seg:                     ## @set_rwqe_data_seg
	.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, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_to_hr_qp
	movq	_IB_SEND_INLINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%r15), %ecx
	testl	%edx, (%r15)
	je	LBB0_17
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.2:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	movq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_4
## %bb.3:
	movq	%r15, (%r14)
	movl	(%rbx), %edi
	movl	12(%r13), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_17:
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_18
## %bb.12:
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movslq	4(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_set_data_seg_v2
	addq	$4, %r12
	jmp	LBB0_16
LBB0_11:
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	$0, (%rdx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jns	LBB0_24
LBB0_18:
	movl	4(%r13), %edi
	movq	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ecx
	decl	%ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %ecx
	callq	_roce_set_field
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.19:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	16(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_set_data_seg_v2
	addq	$4, %r12
	jmp	LBB0_22
LBB0_23:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_set_extend_sge
	movl	4(%r15), %ecx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_24:
	movl	(%r13), %edi
	movq	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_roce_set_field
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_4:
	movq	8(%r15), %rax
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.9:
	movq	%r15, (%r14)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.6:
	movq	16(%r15), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%rbx), %rsi
	movl	(%rax,%rbx), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	16(%r15), %rax
	movslq	(%rax,%rbx), %rcx
	addq	%rcx, %r12
	incq	%r14
	movslq	4(%r15), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_7
LBB0_8:
	movl	8(%r13), %edi
	movq	_V2_RC_SEND_WQE_BYTE_4_INLINE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SEND_INLINE,4,2             ## @IB_SEND_INLINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inline len(1-%d)=%d, illegal"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_WR_RDMA_READ,8,3            ## @IB_WR_RDMA_READ
L_.str.1:                               ## @.str.1
	.asciz	"Not support inline data!\n"

	.comm	_V2_RC_SEND_WQE_BYTE_4_INLINE_S,4,2 ## @V2_RC_SEND_WQE_BYTE_4_INLINE_S
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,4,2 ## @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M,4,2 ## @V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M
	.comm	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S,4,2 ## @V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S
	.comm	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M,4,2 ## @V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M
	.comm	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S,4,2 ## @V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S
	.no_dead_strip	_set_rwqe_data_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_rwqe_data_seg
_set_rwqe_data_seg:                     ; @set_rwqe_data_seg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x24, x5
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_to_hr_dev
	mov	x25, x0
	mov	x0, x23
	bl	_to_hr_qp
	mov	x23, x0
Lloh0:
	adrp	x8, _IB_SEND_INLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SEND_INLINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w3, [x20]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.1:
	cbz	w3, LBB0_10
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	ldr	x8, [x25, #8]
	cmp	x0, x8
	b.le	LBB0_20
; %bb.3:
	str	x20, [x24]
	ldr	w0, [x25]
	ldr	w9, [x19, #12]
	stp	x9, x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_4:
Lloh5:
	adrp	x8, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w3, w8
	b.gt	LBB0_12
; %bb.5:
	cmp	w3, #1
	b.lt	LBB0_18
; %bb.6:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x3, [x20, #4]
	add	x22, x22, #16
	cmp	x23, x3
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22]
	bl	_likely
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x22
	mov	x0, x21
	bl	_set_data_seg_v2
	add	x21, x21, #4
	b	LBB0_7
LBB0_10:
Lloh8:
	adrp	x8, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_12
; %bb.11:
	mov	w3, #0
	b	LBB0_18
LBB0_12:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x8, _V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M@GOTPAGEOFF]
Lloh13:
	adrp	x9, _V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w2, [x9]
	ldr	w8, [x22]
	ldr	w9, [x23]
	sub	w9, w9, #1
	and	w3, w9, w8
	bl	_roce_set_field
Lloh17:
	adrp	x24, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x25]
	bl	_likely
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #16]
	add	x1, x8, x25
	mov	x0, x21
	bl	_set_data_seg_v2
	add	x21, x21, #4
	b	LBB0_14
LBB0_17:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_set_extend_sge
	ldr	w3, [x20, #4]
LBB0_18:
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_roce_set_field
LBB0_19:
	mov	w0, #0
	b	LBB0_23
LBB0_20:
	ldr	x8, [x20, #8]
Lloh25:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	str	x20, [x24]
	ldr	w0, [x25]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_22:
	bl	_dev_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x22, #0
	mov	x23, #0
	ldr	x8, [x20, #16]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x22
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x21
	bl	_memcpy
	ldr	x8, [x20, #16]
	ldrsw	x9, [x8, x22]
	add	x21, x21, x9
	add	x23, x23, #1
	ldrsw	x9, [x20, #4]
	add	x22, x22, #16
	cmp	x23, x9
	b.lt	LBB0_26
LBB0_27:
	ldr	w0, [x19, #8]
Lloh33:
	adrp	x8, _V2_RC_SEND_WQE_BYTE_4_INLINE_S@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V2_RC_SEND_WQE_BYTE_4_INLINE_S@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SEND_INLINE,4,2             ; @IB_SEND_INLINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inline len(1-%d)=%d, illegal"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_WR_RDMA_READ,8,3            ; @IB_WR_RDMA_READ
l_.str.1:                               ; @.str.1
	.asciz	"Not support inline data!\n"

	.comm	_V2_RC_SEND_WQE_BYTE_4_INLINE_S,4,2 ; @V2_RC_SEND_WQE_BYTE_4_INLINE_S
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,4,2 ; @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M,4,2 ; @V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_M
	.comm	_V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S,4,2 ; @V2_RC_SEND_WQE_BYTE_20_MSG_START_SGE_IDX_S
	.comm	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M,4,2 ; @V2_RC_SEND_WQE_BYTE_16_SGE_NUM_M
	.comm	_V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S,4,2 ; @V2_RC_SEND_WQE_BYTE_16_SGE_NUM_S
	.no_dead_strip	_set_rwqe_data_seg
.subsections_via_symbols
