	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_free_failed_tx_pkt
_qede_free_failed_tx_pkt:               ## @qede_free_failed_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	shlq	$4, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rax,%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %edi
	callq	_le16_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_qed_chain_set_prod
	movq	%r12, %rdi
	callq	_qed_chain_produce
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_qed_chain_produce
	movq	%rax, %rdi
	callq	_BD_UNMAP_LEN
	movl	%eax, %r14d
	decl	%r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_BD_UNMAP_LEN
	addl	%eax, %r14d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_dma_unmap_single
	testl	%r13d, %r13d
	jg	LBB0_4
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_qed_chain_set_prod
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
	movq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rax,%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_qed_chain_produce
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %r14d
	movq	%rbx, %rdi
	callq	_BD_UNMAP_ADDR
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_BD_UNMAP_LEN
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_page
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_qede_free_failed_tx_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_free_failed_tx_pkt
_qede_free_failed_tx_pkt:               ; @qede_free_failed_tx_pkt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldp	x27, x8, [x0]
	add	x8, x8, x27, lsl #4
	ldr	x20, [x8, #8]
	add	x21, x0, #20
	ldr	w0, [x0, #16]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_qed_chain_set_prod
	mov	x0, x21
	bl	_qed_chain_produce
	mov	x23, x0
	cbz	w24, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_qed_chain_produce
	bl	_BD_UNMAP_LEN
	mov	x24, x0
	sub	w22, w22, #1
LBB0_2:
	ldr	w25, [x19, #24]
	mov	x0, x23
	bl	_BD_UNMAP_ADDR
	mov	x26, x0
	mov	x0, x23
	bl	_BD_UNMAP_LEN
	add	w2, w0, w24
Lloh0:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x25
	mov	x1, x26
	bl	_dma_unmap_single
	cmp	w22, #1
	b.ge	LBB0_5
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_qed_chain_set_prod
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #8]
	add	x8, x8, x27, lsl #4
	stp	xzr, xzr, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_qed_chain_produce
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	w25, [x19, #24]
	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
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_qede_free_failed_tx_pkt
.subsections_via_symbols
