	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_wqe_sg_send
_fill_wqe_sg_send:                      ## @fill_wqe_sg_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	callq	_set_wqe_32bit_value
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	addl	(%rax,%rbx), %r13d
	incq	%r14
	movslq	(%rcx), %rcx
	addq	$4, %r15
	addq	$12, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	_NES_IWARP_SQ_WQE_FRAG0_LOW_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%r15, %rsi
	movl	8(%rax,%rbx), %edx
	callq	_set_wqe_64bit_value
	movl	(%r12), %edi
	movq	_NES_IWARP_SQ_WQE_LENGTH0_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%rbx), %edx
	callq	_set_wqe_32bit_value
	movq	_NES_IWARP_SQ_WQE_STAG0_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movl	$0, %edx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax,%rbx), %edx
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	movq	_NES_DBG_IW_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_nes_debug
	movl	(%r12), %edi
	movq	_NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_wqe_32bit_value            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_IWARP_SQ_WQE_FRAG0_LOW_IDX,8,3 ## @NES_IWARP_SQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_IWARP_SQ_WQE_LENGTH0_IDX,8,3 ## @NES_IWARP_SQ_WQE_LENGTH0_IDX
	.comm	_NES_IWARP_SQ_WQE_STAG0_IDX,8,3 ## @NES_IWARP_SQ_WQE_STAG0_IDX
	.comm	_NES_DBG_IW_TX,4,2              ## @NES_DBG_IW_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UC UC UC, sending total_payload_length=%u \n"

	.comm	_NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX,8,3 ## @NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX
	.no_dead_strip	_fill_wqe_sg_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_wqe_sg_send
_fill_wqe_sg_send:                      ; @fill_wqe_sg_send
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x23, #0
	mov	x24, #0
	mov	x25, #0
	mov	w20, #0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x26, _NES_IWARP_SQ_WQE_FRAG0_LOW_IDX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NES_IWARP_SQ_WQE_FRAG0_LOW_IDX@GOTPAGEOFF]
Lloh2:
	adrp	x27, _NES_IWARP_SQ_WQE_LENGTH0_IDX@GOTPAGE
Lloh3:
	ldr	x27, [x27, _NES_IWARP_SQ_WQE_LENGTH0_IDX@GOTPAGEOFF]
Lloh4:
	adrp	x28, _NES_IWARP_SQ_WQE_STAG0_IDX@GOTPAGE
Lloh5:
	ldr	x28, [x28, _NES_IWARP_SQ_WQE_STAG0_IDX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	ldr	w2, [x8, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	x8, [x28]
	add	x1, x24, x8
	bl	_set_wqe_32bit_value
	ldr	x8, [x22, #8]
	ldr	w9, [x8, x23]
	add	w20, w9, w20
	add	x25, x25, #1
	ldrsw	x9, [x22]
	add	x24, x24, #4
	add	x23, x23, #12
	cmp	x25, x9
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x9, [x26]
	add	x1, x24, x9
	add	x8, x8, x23
	ldr	w2, [x8, #8]
	bl	_set_wqe_64bit_value
	ldr	w0, [x19]
	ldr	x8, [x27]
	add	x1, x24, x8
	ldr	x8, [x22, #8]
	ldr	w2, [x8, x23]
	bl	_set_wqe_32bit_value
	cbnz	x21, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w2, #0
	b	LBB0_3
LBB0_6:
	mov	w20, #0
LBB0_7:
Lloh6:
	adrp	x8, _NES_DBG_IW_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_DBG_IW_TX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_nes_debug
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x2, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_set_wqe_32bit_value
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_IWARP_SQ_WQE_FRAG0_LOW_IDX,8,3 ; @NES_IWARP_SQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_IWARP_SQ_WQE_LENGTH0_IDX,8,3 ; @NES_IWARP_SQ_WQE_LENGTH0_IDX
	.comm	_NES_IWARP_SQ_WQE_STAG0_IDX,8,3 ; @NES_IWARP_SQ_WQE_STAG0_IDX
	.comm	_NES_DBG_IW_TX,4,2              ; @NES_DBG_IW_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UC UC UC, sending total_payload_length=%u \n"

	.comm	_NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX,8,3 ; @NES_IWARP_SQ_WQE_TOTAL_PAYLOAD_IDX
	.no_dead_strip	_fill_wqe_sg_send
.subsections_via_symbols
