	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_free_tx_pkt               ## -- Begin function qede_free_tx_pkt
	.p2align	4, 0x90
_qede_free_tx_pkt:                      ## @qede_free_tx_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r13
	movq	8(%rsi), %rax
	movq	%r13, %r12
	shlq	$4, %r12
	movq	8(%rax,%r12), %r14
	movl	(%rax,%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_QEDE_TSO_SPLIT_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	movl	20(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_DP_ERR
	movl	$-1, %eax
	jmp	LBB0_2
LBB0_3:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_qed_chain_consume
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_qed_chain_consume
	movq	%rax, %rdi
	callq	_BD_UNMAP_LEN
	movl	%eax, %r13d
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_4:
	xorl	%r13d, %r13d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_BD_UNMAP_LEN
	addl	%eax, %r13d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_dma_unmap_single
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.13:
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_qed_chain_consume
	movq	%rbx, %r12
	movq	%rax, %rbx
	movq	(%r15), %r13
	movq	%rax, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_BD_UNMAP_LEN
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_page
	incl	%r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	cmpl	(%rax), %r14d
	jl	LBB0_14
## %bb.8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r14d, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_9:
	cmpl	%r12d, %eax
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_12
## %bb.10:
	subl	%eax, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_qed_chain_consume
	decl	%r12d
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	$0, 8(%rax,%r15)
	movl	$0, (%rax,%r15)
	xorl	%eax, %eax
LBB0_2:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDE_TSO_SPLIT_BD,4,2          ## @QEDE_TSO_SPLIT_BD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb is null for txq idx=%d txq->sw_tx_cons=%d txq->sw_tx_prod=%d\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_free_tx_pkt               ; -- Begin function qede_free_tx_pkt
	.p2align	2
_qede_free_tx_pkt:                      ; @qede_free_tx_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldp	x19, x8, [x1]
	add	x8, x8, x19, lsl #4
	ldr	x21, [x8, #8]
	ldr	w24, [x8]
Lloh0:
	adrp	x8, _QEDE_TSO_SPLIT_BD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDE_TSO_SPLIT_BD@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	cmp	x21, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x3, [x20]
	ldr	w4, [x20, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_DP_ERR
	mov	w0, #-1
	b	LBB0_14
LBB0_2:
	and	w25, w25, w24
	ldr	w8, [x21]
	str	w8, [x23]
	add	x23, x20, #16
	mov	x0, x23
	bl	_qed_chain_consume
	mov	x24, x0
	ldr	w8, [x0]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w25, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_qed_chain_consume
	bl	_BD_UNMAP_LEN
	mov	x25, x0
	mov	w8, #2
	b	LBB0_5
LBB0_4:
	mov	w8, #1
LBB0_5:
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x26, [x22]
	mov	x0, x24
	bl	_BD_UNMAP_ADDR
	mov	x27, x0
	mov	x0, x24
	bl	_BD_UNMAP_LEN
	add	w2, w0, w25
Lloh5:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x26
	mov	x1, x27
	bl	_dma_unmap_single
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w27, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_qed_chain_consume
	mov	x24, x0
	ldr	x25, [x22]
	bl	_BD_UNMAP_ADDR
	mov	x26, x0
	mov	x0, x24
	bl	_BD_UNMAP_LEN
	mov	x2, x0
	ldr	w3, [x28]
	mov	x0, x25
	mov	x1, x26
	bl	_dma_unmap_page
	add	w27, w27, #1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w27, w8
	b.lt	LBB0_7
; %bb.8:
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w9, w9, w27
	b	LBB0_10
LBB0_9:
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
LBB0_10:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.11:
	sub	w22, w8, w9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_qed_chain_consume
	subs	w22, w22, #1
	b.ne	LBB0_12
LBB0_13:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	mov	w0, #0
	ldr	x8, [x20, #8]
	add	x8, x8, x19, lsl #4
	str	xzr, [x8, #8]
	str	wzr, [x8]
LBB0_14:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDE_TSO_SPLIT_BD,4,2          ; @QEDE_TSO_SPLIT_BD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb is null for txq idx=%d txq->sw_tx_cons=%d txq->sw_tx_prod=%d\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
.subsections_via_symbols
