	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_tx_complete
_sky2_tx_complete:                      ## @sky2_tx_complete
	.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, %r15
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	%rsi, (%rbx)
	setle	%dil
	callq	_BUG_ON
	movq	8(%rbx), %r14
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r14
	jne	LBB0_1
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_netdev_completed_queue
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	addl	%r13d, 16(%rbx)
	addl	%r15d, 20(%rbx)
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_u64_stats_update_end           ## TAILCALL
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_RING_NEXT
	movq	%rax, %r14
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rax
	movq	48(%rbx), %rcx
	leaq	(%rcx,%r14,8), %r15
	movq	(%rcx,%r14,8), %r12
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_sky2_tx_unmap
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	L_.str(%rip), %r8
	movq	%r14, %r9
	callq	_netif_printk
	incl	%r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	$0, (%r15)
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_RING_NEXT
	movq	%rax, 32(%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_tx_done,4,2                    ## @tx_done
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx done %u\n"

	.no_dead_strip	_sky2_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_tx_complete
_sky2_tx_complete:                      ; @sky2_tx_complete
	.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	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #56]
	ldr	x8, [x0]
	cmp	x8, x1
	cset	w0, le
	bl	_BUG_ON
	ldr	x24, [x19, #8]
	cmp	x24, x23
	b.ne	LBB0_3
; %bb.1:
	mov	w21, #0
	mov	w22, #0
LBB0_2:
	str	x23, [x19, #8]
	bl	_smp_mb
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_netdev_completed_queue
	add	x20, x19, #24
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldp	w8, w9, [x19, #16]
	add	w8, w8, w21
	add	w9, w9, w22
	stp	w8, w9, [x19, #16]
	mov	x0, x20
	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
	b	_u64_stats_update_end
LBB0_3:
	mov	w22, #0
	mov	w21, #0
Lloh0:
	adrp	x28, _KERN_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _KERN_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19]
	mov	x0, x24
	bl	_RING_NEXT
	mov	x24, x0
	cmp	x0, x23
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #40]
	add	x27, x8, x24, lsl #3
	ldr	x26, [x27]
	ldr	w0, [x9]
	mov	x1, x27
	bl	_sky2_tx_unmap
	cbz	x26, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh4:
	adrp	x8, _tx_done@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x28]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x25
	mov	x5, x24
	bl	_netif_printk
	add	w21, w21, #1
	ldr	w8, [x26]
	add	w22, w22, w8
	str	xzr, [x27]
	mov	x0, x26
	bl	_dev_kfree_skb_any
	ldr	x1, [x19]
	mov	x0, x24
	bl	_RING_NEXT
	str	x0, [x19, #32]
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_tx_done,4,2                    ; @tx_done
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx done %u\n"

	.no_dead_strip	_sky2_tx_complete
.subsections_via_symbols
