	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_ll2_complete_tx_packet
_qedr_ll2_complete_tx_packet:           ## @qedr_ll2_complete_tx_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %r12
	movq	_QEDR_MSG_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rdi), %r8d
	leaq	4(%r12), %r15
	movl	4(%r12), %r9d
	cmpq	$0, 8(%r14)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	callq	_DP_DEBUG
	movq	(%rbx), %rdi
	movl	8(%r13), %esi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	callq	_dma_free_coherent
	movq	%r13, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_qedr_inc_sw_gsi_cons
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDR_MSG_GSI,4,2               ## @QEDR_MSG_GSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LL2 TX CB: gsi_sqcq=%p, gsi_rqcq=%p, gsi_cons=%d, ibcq_comp=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Yes"

L_.str.2:                               ## @.str.2
	.asciz	"No"

	.no_dead_strip	_qedr_ll2_complete_tx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_ll2_complete_tx_packet
_qedr_ll2_complete_tx_packet:           ; @qedr_ll2_complete_tx_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x0
	ldp	x19, x22, [x0, #16]
Lloh0:
	adrp	x8, _QEDR_MSG_GSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDR_MSG_GSI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x0, #8]
	mov	x23, x22
	ldr	w5, [x23, #4]!
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x6, x10, x9, eq
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_DP_DEBUG
	ldr	x0, [x21]
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	bl	_dma_free_coherent
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x23
	bl	_qedr_inc_sw_gsi_cons
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDR_MSG_GSI,4,2               ; @QEDR_MSG_GSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LL2 TX CB: gsi_sqcq=%p, gsi_rqcq=%p, gsi_cons=%d, ibcq_comp=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Yes"

l_.str.2:                               ; @.str.2
	.asciz	"No"

	.no_dead_strip	_qedr_ll2_complete_tx_packet
.subsections_via_symbols
