	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_tx_int
_qede_tx_int:                           ## @qede_tx_int
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	movl	24(%rsi), %esi
	callq	_netdev_get_tx_queue
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_barrier
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	movl	$0, %r15d
	cmpq	%rax, %r14
	je	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_qede_free_tx_pkt
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	-44(%rbp), %ebx
	incl	%r15d
	movl	(%r13), %eax
	incl	%eax
	cltd
	idivl	4(%r13)
	movl	%edx, (%r13)
	incl	12(%r13)
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	cmpq	%rax, %r14
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	%r12, %rdi
	callq	_qed_chain_get_cons_idx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_DP_NOTICE
LBB0_5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_netdev_tx_completed_queue
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	movq	%rax, %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_QEDE_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	callq	_qed_chain_get_elem_left
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
	movq	_NETIF_MSG_TX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_DP_VERBOSE
LBB0_10:
	movq	%r14, %rdi
	callq	___netif_tx_unlock
LBB0_11:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw_bd_cons = %d, chain_cons=%d\n"

	.comm	_QEDE_STATE_OPEN,8,3            ## @QEDE_STATE_OPEN
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.comm	_NETIF_MSG_TX_DONE,4,2          ## @NETIF_MSG_TX_DONE
L_.str.1:                               ## @.str.1
	.asciz	"Wake queue was called\n"

	.no_dead_strip	_qede_tx_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_tx_int
_qede_tx_int:                           ; @qede_tx_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x1, #24]
	bl	_netdev_get_tx_queue
	mov	x20, x0
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x23, x0
	bl	_barrier
	add	x21, x22, #8
	mov	x0, x21
	bl	_qed_chain_get_cons_idx
	cmp	x23, x0
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	mov	w25, #0
	b	LBB0_6
LBB0_2:
	mov	w25, #0
	mov	w24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_qede_free_tx_pkt
	cbnz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	add	w24, w8, w24
	add	w25, w25, #1
	ldp	w8, w9, [x22]
	add	w8, w8, #1
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x22]
	ldr	w8, [x22, #12]
	add	w8, w8, #1
	str	w8, [x22, #12]
	mov	x0, x21
	bl	_qed_chain_get_cons_idx
	cmp	x23, x0
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_qed_chain_get_cons_idx
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_DP_NOTICE
LBB0_6:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_netdev_tx_completed_queue
	bl	_smp_mb
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.7:
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x20
	bl	___netif_tx_lock
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _QEDE_STATE_OPEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QEDE_STATE_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_qed_chain_get_elem_left
Lloh5:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_netif_tx_wake_queue
Lloh8:
	adrp	x8, _NETIF_MSG_TX_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_MSG_TX_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_11:
	mov	x0, x20
	bl	___netif_tx_unlock
LBB0_12:
	mov	w0, #0
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw_bd_cons = %d, chain_cons=%d\n"

	.comm	_QEDE_STATE_OPEN,8,3            ; @QEDE_STATE_OPEN
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.comm	_NETIF_MSG_TX_DONE,4,2          ; @NETIF_MSG_TX_DONE
l_.str.1:                               ; @.str.1
	.asciz	"Wake queue was called\n"

	.no_dead_strip	_qede_tx_int
.subsections_via_symbols
