	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsi108_complete_tx
_tsi108_complete_tx:                    ## @tsi108_complete_tx
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_TSI108_TX_OWN@GOTPCREL(%rip), %r13
	movq	_TSI108_TX_OK@GOTPCREL(%rip), %rdi
	movq	_TSI108_TXRING_LEN@GOTPCREL(%rip), %r8
	movq	_TSI108_TX_EOF@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
	cltd
	idivl	(%r8)
	movl	%edx, 4(%rbx)
	incl	%esi
	movl	%esi, 24(%rbx)
	testl	%ecx, (%r15)
	jne	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %eax
	cmpl	%eax, (%rbx)
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %eax
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rcx
	movslq	%eax, %r14
	movl	(%rcx,%r14,4), %ecx
	testl	%ecx, (%r13)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rdx
	movq	(%rdx,%r14,8), %r12
	testl	%ecx, (%rdi)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %edx
	callq	_printk
	movq	_TSI108_TXRING_LEN@GOTPCREL(%rip), %r8
	movq	_TSI108_TX_OK@GOTPCREL(%rip), %rdi
	movl	4(%rbx), %eax
	movl	24(%rbx), %esi
	movq	16(%rbx), %rcx
	movl	(%rcx,%r14,4), %ecx
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	_TSI108_TXRING_LEN@GOTPCREL(%rip), %r8
	movq	_TSI108_TX_OK@GOTPCREL(%rip), %rdi
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_1
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSI108_TX_OWN,4,2              ## @TSI108_TX_OWN
	.comm	_TSI108_TX_OK,4,2               ## @TSI108_TX_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bad tx packet, misc %x\n"

	.comm	_TSI108_TXRING_LEN,4,2          ## @TSI108_TXRING_LEN
	.comm	_TSI108_TX_EOF,4,2              ## @TSI108_TX_EOF
	.no_dead_strip	_tsi108_complete_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsi108_complete_tx
_tsi108_complete_tx:                    ; @tsi108_complete_tx
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _TSI108_TX_OWN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TSI108_TX_OWN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _TSI108_TX_OK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TSI108_TX_OK@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TSI108_TXRING_LEN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TSI108_TXRING_LEN@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _TSI108_TX_EOF@GOTPAGE
Lloh9:
	ldr	x27, [x27, _TSI108_TX_EOF@GOTPAGEOFF]
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_3
	b	LBB0_5
LBB0_1:
	add	w9, w9, #1
	ldr	w10, [x26]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	w8, [x27]
	tst	w8, w2
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_5
LBB0_3:
	ldp	w10, w9, [x20]
	cmp	w10, w9
	b.ne	LBB0_6
	b	LBB0_9
LBB0_4:
	mov	x0, x22
	bl	_dev_kfree_skb_any
	add	w23, w23, #1
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_3
LBB0_5:
	ldr	w9, [x20, #4]
LBB0_6:
	ldr	x10, [x20, #16]
	ldr	w2, [x10, w9, sxtw #2]
	ldr	w10, [x24]
	tst	w10, w2
	b.ne	LBB0_9
; %bb.7:
	sxtw	x28, w9
	ldr	x10, [x20, #32]
	ldr	x22, [x10, x28, lsl #3]
	ldr	w10, [x25]
	tst	w10, w2
	b.ne	LBB0_1
; %bb.8:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_printk
	ldr	w9, [x20, #4]
	ldr	w8, [x20, #24]
	ldr	x10, [x20, #16]
	ldr	w2, [x10, x28, lsl #2]
	b	LBB0_1
LBB0_9:
	cbz	w23, LBB0_13
; %bb.10:
	ldr	w0, [x19]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	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	_netif_wake_queue
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TSI108_TX_OWN,4,2              ; @TSI108_TX_OWN
	.comm	_TSI108_TX_OK,4,2               ; @TSI108_TX_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad tx packet, misc %x\n"

	.comm	_TSI108_TXRING_LEN,4,2          ; @TSI108_TXRING_LEN
	.comm	_TSI108_TX_EOF,4,2              ; @TSI108_TX_EOF
	.no_dead_strip	_tsi108_complete_tx
.subsections_via_symbols
