	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_ll2_post_tx
_qedr_ll2_post_tx:                      ## @qedr_ll2_post_tx
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	(%r15), %rcx
	movq	_ROCE_V1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_QED_LL2_ROCE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_QED_LL2_RROCE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_ROCE_V2_IPV4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movl	$1, -80(%rbp)
LBB0_5:
	movl	8(%r15), %ecx
	incl	%ecx
	movl	%ecx, -76(%rbp)
	movq	$0, -40(%rbp)
	movl	36(%r15), %ecx
	movl	%ecx, -48(%rbp)
	movl	%eax, -72(%rbp)
	movl	24(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	32(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	8(%r14), %rax
	movl	(%r14), %esi
	movl	4(%r14), %edi
	leaq	-80(%rbp), %rdx
	movl	$1, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %r12d
	movq	16(%r14), %rdi
	movl	32(%r15), %esi
	movl	24(%r15), %ecx
	movl	28(%r15), %edx
	callq	_dma_free_coherent
	movq	%r15, %rdi
	callq	_kfree
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_DP_ERR
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, 8(%r15)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	16(%r15), %rdx
	movl	(%rdx,%rbx,8), %ecx
	movl	4(%rdx,%rbx,8), %edx
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_14:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCE_V1,8,3                    ## @ROCE_V1
	.comm	_QED_LL2_ROCE,4,2               ## @QED_LL2_ROCE
	.comm	_QED_LL2_RROCE,4,2              ## @QED_LL2_RROCE
	.comm	_ROCE_V2_IPV4,8,3               ## @ROCE_V2_IPV4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"roce ll2 tx: header failed (rc=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"ll2 tx: payload failed (rc=%d)\n"

	.no_dead_strip	_qedr_ll2_post_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_ll2_post_tx
_qedr_ll2_post_tx:                      ; @qedr_ll2_post_tx
	.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	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _ROCE_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROCE_V1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _QED_LL2_ROCE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QED_LL2_ROCE@GOTPAGEOFF]
Lloh5:
	adrp	x11, _QED_LL2_RROCE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _QED_LL2_RROCE@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x10, _ROCE_V2_IPV4@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ROCE_V2_IPV4@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [sp]
LBB0_2:
	ldp	w10, w11, [x20, #32]
	ldr	w9, [x20, #8]
	add	w9, w9, #1
	str	xzr, [sp, #40]
	stp	w9, w8, [sp, #4]
	ldr	w8, [x20, #24]
	stp	w8, w11, [sp, #28]
	str	w10, [sp, #24]
	str	x20, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldp	w1, w0, [x19]
	mov	x2, sp
	mov	w3, #1
	blr	x8
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x20, #28]
	ldr	w3, [x20, #24]
	bl	_dma_free_coherent
	mov	x0, x20
	bl	_kfree
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	x2, x21
	bl	_DP_ERR
	b	LBB0_10
LBB0_5:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x22, #0
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldp	w1, w0, [x19]
	ldr	x9, [x20, #16]
	add	x9, x9, x22
	ldp	w3, w2, [x9]
	blr	x8
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #8]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_7
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
LBB0_11:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCE_V1,8,3                    ; @ROCE_V1
	.comm	_QED_LL2_ROCE,4,2               ; @QED_LL2_ROCE
	.comm	_QED_LL2_RROCE,4,2              ; @QED_LL2_RROCE
	.comm	_ROCE_V2_IPV4,8,3               ; @ROCE_V2_IPV4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"roce ll2 tx: header failed (rc=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"ll2 tx: payload failed (rc=%d)\n"

	.no_dead_strip	_qedr_ll2_post_tx
.subsections_via_symbols
