	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_empty_tx_queue
_qede_empty_tx_queue:                   ## @qede_empty_tx_queue
	.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
	movq	%rsi, %r14
	movl	$0, -52(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movl	12(%rsi), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_qed_chain_get_prod_idx
	xorl	%r13d, %r13d
	movl	$0, %ebx
	cmpq	%rax, %r15
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	movq	%r14, %r13
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_qed_chain_get_prod_idx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	leaq	L_.str(%rip), %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	movq	%r13, %r14
	movq	%rax, %r9
	callq	_DP_VERBOSE
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	-52(%rbp), %rdx
	callq	_qede_free_tx_pkt
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	addl	-52(%rbp), %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	incl	(%r14)
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_qed_chain_get_prod_idx
	cmpq	%rax, %r15
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	8(%r14), %r14d
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_qed_chain_get_prod_idx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movq	%r15, %rcx
	movq	%rax, %r8
	callq	_DP_NOTICE
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_5:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_netdev_tx_completed_queue
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freeing a packet on tx queue[%d]: chain_cons 0x%x, chain_prod 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to free a packet on tx queue[%d]: chain_cons 0x%x, chain_prod 0x%x\n"

	.no_dead_strip	_qede_empty_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_empty_tx_queue
_qede_empty_tx_queue:                   ; @qede_empty_tx_queue
	.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, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w0, [x0]
	ldr	w1, [x1, #12]
	bl	_netdev_get_tx_queue
	str	x0, [sp]                        ; 8-byte Folded Spill
	add	x24, x23, #4
	mov	x0, x24
	bl	_qed_chain_get_cons_idx
	mov	x25, x0
	mov	x0, x24
	bl	_qed_chain_get_prod_idx
	mov	w21, #0
	mov	w22, #0
	cmp	x25, x0
	b.eq	LBB0_5
; %bb.1:
	mov	w22, #0
	mov	w21, #0
Lloh0:
	adrp	x19, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh1:
	ldr	x19, [x19, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x19]
	ldr	w27, [x23, #8]
	mov	x0, x24
	bl	_qed_chain_get_cons_idx
	mov	x28, x0
	mov	x0, x24
	bl	_qed_chain_get_prod_idx
	mov	x5, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	mov	x3, x27
	mov	x4, x28
	bl	_DP_VERBOSE
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_qede_free_tx_pkt
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	add	w21, w8, w21
	add	w22, w22, #1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	mov	x0, x24
	bl	_qed_chain_get_cons_idx
	mov	x26, x0
	mov	x0, x24
	bl	_qed_chain_get_prod_idx
	cmp	x26, x0
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	w23, [x23, #8]
	mov	x0, x24
	bl	_qed_chain_get_cons_idx
	mov	x25, x0
	mov	x0, x24
	bl	_qed_chain_get_prod_idx
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	mov	x3, x25
	bl	_DP_NOTICE
LBB0_5:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_tx_completed_queue
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freeing a packet on tx queue[%d]: chain_cons 0x%x, chain_prod 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to free a packet on tx queue[%d]: chain_cons 0x%x, chain_prod 0x%x\n"

	.no_dead_strip	_qede_empty_tx_queue
.subsections_via_symbols
