	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netcp_process_tx_compl_packets
_netcp_process_tx_compl_packets:        ## @netcp_process_tx_compl_packets
	.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
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	leaq	-48(%rbp), %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r15d
	subl	%ebx, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	16(%r14), %edi
	callq	_dev_err
	incl	36(%r14)
	incl	%r15d
	cmpl	$1, %r15d
	je	LBB0_16
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	20(%r14), %edi
	movq	%r12, %rsi
	callq	_knav_queue_pop
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	12(%r14), %edi
	movl	-48(%rbp), %edx
	movl	%eax, %esi
	callq	_knav_pool_desc_unmap
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	leaq	L_.str(%rip), %rsi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	callq	_GET_SW_DATA0
	movq	%rax, %r13
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_netcp_free_tx_desc_chain
	leaq	L_.str.1(%rip), %rsi
	testq	%r13, %r13
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edi
	movq	%r13, %rsi
	callq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	movq	%r13, %rsi
	callq	_netif_subqueue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r14), %edi
	callq	_knav_pool_count
	cmpq	(%r14), %rax
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_skb_get_queue_mapping
	movl	8(%r14), %edi
	movl	%eax, %esi
	callq	_netif_wake_subqueue
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
	negl	%ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_u64_stats_update_begin
	incl	32(%r14)
	movl	(%r13), %eax
	addl	%eax, 28(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_u64_stats_update_end
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	testl	%r15d, %r15d
	jne	LBB0_2
	jmp	LBB0_17
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
LBB0_17:
	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	"failed to unmap Tx desc\n"

L_.str.1:                               ## @.str.1
	.asciz	"No skb in Tx desc\n"

	.no_dead_strip	_netcp_process_tx_compl_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netcp_process_tx_compl_packets
_netcp_process_tx_compl_packets:        ; @netcp_process_tx_compl_packets
	.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
	cbz	w1, LBB0_14
; %bb.1:
	mov	x23, x1
	mov	x20, x0
	mov	w19, #0
	add	x21, x0, #24
	mov	w24, #1
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
Lloh2:
	adrp	x26, l_.str.1@PAGE
Lloh3:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	sub	w27, w24, w23
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x20, #16]
	bl	_dev_err
	ldr	w8, [x20, #36]
	add	w8, w8, #1
	str	w8, [x20, #36]
	add	w27, w27, #1
	cmp	w27, #1
	b.eq	LBB0_15
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20, #20]
	add	x1, sp, #12
	bl	_knav_queue_pop
	cbz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x1, x0
	ldr	w0, [x20, #12]
	ldr	w2, [sp, #12]
	bl	_knav_pool_desc_unmap
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	mov	x1, x25
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	bl	_GET_SW_DATA0
	mov	x22, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x23
	bl	_netcp_free_tx_desc_chain
	mov	x1, x26
	cbz	x22, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x22, #8]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x9]
	mov	x1, x22
	blr	x8
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	neg	w23, w27
	ldr	w0, [x20, #8]
	mov	x1, x22
	bl	_netif_subqueue_stopped
	cbz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #12]
	bl	_knav_pool_count
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_skb_get_queue_mapping
	mov	x1, x0
	ldr	w0, [x20, #8]
	bl	_netif_wake_subqueue
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_u64_stats_update_begin
	ldur	d0, [x20, #28]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x22]
	add.2s	v0, v0, v1
	stur	d0, [x20, #28]
	mov	x0, x21
	bl	_u64_stats_update_end
	mov	x0, x22
	bl	_dev_kfree_skb
	add	w19, w19, #1
	cbnz	w27, LBB0_2
	b	LBB0_15
LBB0_14:
	mov	w19, #0
LBB0_15:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to unmap Tx desc\n"

l_.str.1:                               ; @.str.1
	.asciz	"No skb in Tx desc\n"

	.no_dead_strip	_netcp_process_tx_compl_packets
.subsections_via_symbols
