	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_send_fpdu
_qed_iwarp_send_fpdu:                   ## @qed_iwarp_send_fpdu
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_QED_IWARP_MPA_PKT_UNALIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%r12d, %ecx
	sete	%al
	orl	$2, %eax
	movl	%eax, -88(%rbp)
	movq	_QED_LL2_TX_DEST_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rbx), %eax
	movl	%eax, %edx
	sarl	$2, %edx
	movl	%edx, -84(%rbp)
	cmpl	%r12d, %ecx
	je	LBB0_2
## %bb.1:
	cmpq	%r13, 8(%rbx)
	jl	LBB0_3
LBB0_2:
	movq	40(%rbx), %rcx
	movq	%rcx, -56(%rbp)
LBB0_3:
	movl	48(%rbx), %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, -80(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -76(%rbp)
	movl	$1, -68(%rbp)
	movq	_IWARP_LL2_ALIGNED_TX_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	cmpq	%r13, 16(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	40(%rbx), %rax
	movq	%r15, (%rax)
LBB0_5:
	movq	(%r14), %rax
	movl	(%rax), %r13d
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %ecx
	callq	_qed_ll2_prepare_tx_packet
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_qed_ll2_set_fragment_of_tx_packet
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	addq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_qed_ll2_set_fragment_of_tx_packet
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_8:
	xorl	%r12d, %r12d
LBB0_10:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %ecx
	movl	-80(%rbp), %r8d
	movq	24(%rbx), %r9
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	pushq	%r12
	pushq	16(%rbx)
	callq	_DP_VERBOSE
	addq	$16, %rsp
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_IWARP_MPA_PKT_UNALIGNED,4,2 ## @QED_IWARP_MPA_PKT_UNALIGNED
	.comm	_QED_LL2_TX_DEST_LB,4,2         ## @QED_LL2_TX_DEST_LB
	.comm	_IWARP_LL2_ALIGNED_TX_QUEUE,4,2 ## @IWARP_LL2_ALIGNED_TX_QUEUE
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MPA_ALIGN: Sent FPDU num_bds=%d first_frag_len=%x, mpa_frag_len=0x%x, incomplete_bytes:0x%x rc=%d\n"

	.no_dead_strip	_qed_iwarp_send_fpdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_send_fpdu
_qed_iwarp_send_fpdu:                   ; @qed_iwarp_send_fpdu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x24, x5
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _QED_IWARP_MPA_PKT_UNALIGNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_IWARP_MPA_PKT_UNALIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QED_LL2_TX_DEST_LB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_LL2_TX_DEST_LB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	cmp	w8, w24
	mov	w8, #2
	cinc	w9, w8, eq
	ldr	w8, [x20]
	asr	w10, w8, #2
	stp	w9, w10, [sp]
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x23
	b.lt	LBB0_3
LBB0_2:
	ldr	x9, [x20, #40]
	str	x9, [sp, #32]
LBB0_3:
	ldr	w9, [x20, #48]
	str	w9, [sp, #28]
	str	w8, [sp, #8]
	movi.2s	v0, #1
	stur	d0, [sp, #12]
Lloh6:
	adrp	x8, _IWARP_LL2_ALIGNED_TX_QUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWARP_LL2_ALIGNED_TX_QUEUE@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	ldr	w8, [x8]
	stp	w9, w8, [sp, #20]
	ldr	x8, [x20, #16]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20, #40]
	str	x22, [x8]
LBB0_5:
	ldr	x8, [x19]
	ldr	w23, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x23
	mov	w3, #1
	bl	_qed_ll2_prepare_tx_packet
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldp	x3, x2, [x20, #24]
	mov	x0, x19
	mov	x1, x23
	bl	_qed_ll2_set_fragment_of_tx_packet
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x3, [x20, #16]
	cbz	x3, LBB0_9
; %bb.8:
	ldr	x8, [x22]
	ldr	x9, [x21]
	add	x2, x9, x8
	mov	x0, x19
	mov	x1, x23
	bl	_qed_ll2_set_fragment_of_tx_packet
	mov	x24, x0
	b	LBB0_10
LBB0_9:
	mov	w24, #0
LBB0_10:
Lloh9:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [sp]
	ldr	w4, [sp, #8]
	ldp	x6, x5, [x20, #16]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x7, x24
	bl	_DP_VERBOSE
	mov	x0, x24
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_IWARP_MPA_PKT_UNALIGNED,4,2 ; @QED_IWARP_MPA_PKT_UNALIGNED
	.comm	_QED_LL2_TX_DEST_LB,4,2         ; @QED_LL2_TX_DEST_LB
	.comm	_IWARP_LL2_ALIGNED_TX_QUEUE,4,2 ; @IWARP_LL2_ALIGNED_TX_QUEUE
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MPA_ALIGN: Sent FPDU num_bds=%d first_frag_len=%x, mpa_frag_len=0x%x, incomplete_bytes:0x%x rc=%d\n"

	.no_dead_strip	_qed_iwarp_send_fpdu
.subsections_via_symbols
