	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_process_mpa_pkt
_qed_iwarp_process_mpa_pkt:             ## @qed_iwarp_process_mpa_pkt
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	16(%rsi), %r13
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movzwl	16(%rsi), %esi
	callq	_qed_iwarp_get_curr_fpdu
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	testl	%edx, %edx
	je	LBB0_26
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	jne	LBB0_26
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	20(%r14), %rbx
	shlq	$2, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_qed_iwarp_mpa_classify
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edx
	movl	%r12d, %r13d
	testl	%edx, %edx
	jne	LBB0_12
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_qed_iwarp_update_fpdu_length
	movl	(%r14), %r8d
	cmpl	(%r15), %r8d
	jl	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$128, %r9d
	callq	_qed_iwarp_send_fpdu
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	(%r14), %edx
	subl	%eax, %edx
	movl	%edx, (%r14)
	addl	%eax, 20(%r14)
	movl	$0, (%r15)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_qed_iwarp_init_fpdu
	movl	(%r14), %r8d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	$130, %r9d
	callq	_qed_iwarp_send_fpdu
	testl	%eax, %eax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
	movl	(%r14), %edx
	subl	%eax, %edx
	movl	%edx, (%r14)
	addl	%eax, 20(%r14)
	jmp	LBB0_11
LBB0_13:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_ERR
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_qed_iwarp_ll2_post_rx
LBB0_25:
	movl	%r12d, %r13d
	jmp	LBB0_26
LBB0_14:
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_qed_iwarp_init_fpdu
	movq	%rbx, %rdi
	callq	_QED_IWARP_IS_RIGHT_EDGE
	testl	%eax, %eax
	je	LBB0_24
## %bb.15:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_qed_iwarp_win_right_edge
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movq	%r13, %rdi
	movl	%eax, %r13d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_23
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_QED_IWARP_IS_RIGHT_EDGE
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_qed_iwarp_win_right_edge
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_26
LBB0_19:
	movl	(%r14), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_qed_iwarp_cp_pkt
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_26
LBB0_20:
	movl	$0, (%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_21:
	movl	%eax, %r13d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_DP_VERBOSE
	jmp	LBB0_26
LBB0_22:
	movl	%eax, %r13d
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	movl	%r13d, %ecx
	callq	_DP_VERBOSE
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_26:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	$0, (%r14)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid cid, drop and post back to rx cid=%x\n"

	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"Can't send FPDU:reset rc=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can't send FPDU:delay rc=%d\n"

	.no_dead_strip	_qed_iwarp_process_mpa_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_process_mpa_pkt
_qed_iwarp_process_mpa_pkt:             ; @qed_iwarp_process_mpa_pkt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	mov	x23, x1
	ldrh	w1, [x23, #16]!
	ldur	x22, [x23, #-8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
	bl	_qed_iwarp_get_curr_fpdu
	cbz	x0, LBB0_13
; %bb.1:
	mov	x21, x0
	ldr	w2, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldrsw	x9, [x20, #20]
	add	x24, x8, x9, lsl #2
	mov	x0, x19
	mov	x1, x21
	mov	x3, x24
	bl	_qed_iwarp_mpa_classify
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #130
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #129
	b.eq	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x20]
	mov	x24, x25
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_qed_iwarp_update_fpdu_length
	ldr	w4, [x20]
	ldr	w8, [x21]
	cmp	w4, w8
	b.lt	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	w5, #128
	bl	_qed_iwarp_send_fpdu
	mov	x24, x0
	cbnz	w0, LBB0_22
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x20]
	sub	w2, w9, w8
	str	w2, [x20]
	ldr	w9, [x20, #20]
	add	w8, w9, w8
	str	w8, [x20, #20]
	str	wzr, [x21]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w3, w4, [x20]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_qed_iwarp_init_fpdu
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	w5, #130
	bl	_qed_iwarp_send_fpdu
	mov	x24, x0
	cbnz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x20]
	sub	w2, w9, w8
	str	w2, [x20]
	ldr	w9, [x20, #20]
	add	w8, w9, w8
	str	w8, [x20, #20]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w2, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
	cbz	w24, LBB0_2
	b	LBB0_23
LBB0_13:
	ldr	w2, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_qed_iwarp_ll2_post_rx
LBB0_14:
	mov	x24, x25
	b	LBB0_23
LBB0_15:
	ldp	w3, w4, [x20]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_qed_iwarp_init_fpdu
	mov	x0, x23
	bl	_QED_IWARP_IS_RIGHT_EDGE
	cbz	w0, LBB0_24
; %bb.16:
	mov	x0, x19
	mov	x1, x21
	bl	_qed_iwarp_win_right_edge
	mov	x24, x0
	cbz	w0, LBB0_21
LBB0_17:
Lloh5:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_DP_VERBOSE
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	b	LBB0_23
LBB0_18:
	mov	x0, x23
	bl	_QED_IWARP_IS_RIGHT_EDGE
	cbz	w0, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x21
	bl	_qed_iwarp_win_right_edge
	mov	x24, x0
	cbnz	w0, LBB0_23
LBB0_20:
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_qed_iwarp_cp_pkt
	mov	x24, x0
	cbnz	w0, LBB0_23
LBB0_21:
	str	wzr, [x20]
	b	LBB0_23
LBB0_22:
Lloh10:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_DP_VERBOSE
LBB0_23:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	str	wzr, [x20]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid cid, drop and post back to rx cid=%x\n"

	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"Can't send FPDU:reset rc=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can't send FPDU:delay rc=%d\n"

	.no_dead_strip	_qed_iwarp_process_mpa_pkt
.subsections_via_symbols
