	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsi108_complete_rx
_tsi108_complete_rx:                    ## @tsi108_complete_rx
	.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
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	32(%rax), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.2:
	movq	%rax, %rbx
	addq	$16, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movslq	(%rbx), %r13
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %esi
	movq	_TSI108_RX_OWN@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%rbx), %rax
	movq	(%rax,%r13,8), %r15
	leal	1(%r13), %eax
	cltd
	movq	_TSI108_RXRING_LEN@GOTPCREL(%rip), %rdi
	idivl	(%rdi)
	movl	%edx, (%rbx)
	decq	%rcx
	movq	%rcx, 32(%rbx)
	movq	_TSI108_RX_BAD@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irq
	movq	8(%rbx), %rax
	movl	(%rax,%r13,8), %eax
	movq	_TSI108_RX_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	24(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TSI108_RX_OVER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	4(%rax,%r13,8), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	8(%rbx), %rax
	cmpl	$0, 4(%rax,%r13,8)
	leaq	L_.str.1(%rip), %r12
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printk
	incq	%r14
	movq	8(%rbx), %rax
	movslq	4(%rax,%r13,8), %rax
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	movl	4(%rax,%r13,8), %esi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_netif_receive_skb
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r12d
	jne	LBB0_3
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSI108_RX_OWN,4,2              ## @TSI108_RX_OWN
	.comm	_TSI108_RXRING_LEN,4,2          ## @TSI108_RXRING_LEN
	.comm	_TSI108_RX_BAD,4,2              ## @TSI108_RX_BAD
	.comm	_TSI108_RX_CRC,4,2              ## @TSI108_RX_CRC
	.comm	_TSI108_RX_OVER,4,2             ## @TSI108_RX_OVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Rx Frame contents (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	" %2.2x"

L_.str.2:                               ## @.str.2
	.asciz	".\n"

	.no_dead_strip	_tsi108_complete_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsi108_complete_rx
_tsi108_complete_rx:                    ; @tsi108_complete_rx
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #32]
	cmp	x8, #0
	ccmp	w19, #0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	mov	x22, x0
	mov	w21, #0
	add	x23, x0, #16
Lloh0:
	adrp	x28, _TSI108_RX_OWN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TSI108_RX_OWN@GOTPAGEOFF]
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrsw	x24, [x22]
	ldr	x9, [x22, #8]
	lsl	x26, x24, #3
	ldr	w9, [x9, x26]
	ldr	w10, [x28]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x22, #40]
	ldr	x27, [x10, x24, lsl #3]
	add	w10, w24, #1
Lloh4:
	adrp	x11, _TSI108_RXRING_LEN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _TSI108_RXRING_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
	str	w10, [x22]
	sub	x8, x8, #1
	str	x8, [x22, #32]
Lloh7:
	adrp	x8, _TSI108_RX_BAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TSI108_RX_BAD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_spin_lock_irq
	ldr	x8, [x22, #8]
	ldr	w8, [x8, x26]
Lloh10:
	adrp	x9, _TSI108_RX_CRC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TSI108_RX_CRC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22, #24]
	add	w9, w9, #1
	str	w9, [x22, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x9, _TSI108_RX_OVER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TSI108_RX_OVER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #20]
	add	w8, w8, #1
	str	w8, [x22, #20]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_spin_unlock_irq
	mov	x0, x27
	bl	_dev_kfree_skb_any
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_netif_msg_pktdata
	cbz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x26
	ldr	w8, [x8, #4]
	ldr	w9, [x20]
	stp	x9, x8, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	x8, [x22, #8]
	add	x8, x8, x26
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, #8]
	ldr	w8, [x8, x26, lsl #2]
	str	x8, [sp]
	mov	x0, x25
	bl	_printk
	add	x26, x26, #1
	ldr	x8, [x22, #8]
	add	x8, x8, x24, lsl #3
	ldrsw	x8, [x8, #4]
	cmp	x26, x8
	b.lt	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x24, lsl #3
	ldr	w1, [x8, #4]
	mov	x0, x27
	bl	_skb_put
	mov	x0, x27
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x27]
	mov	x0, x27
	bl	_netif_receive_skb
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, w19
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TSI108_RX_OWN,4,2              ; @TSI108_RX_OWN
	.comm	_TSI108_RXRING_LEN,4,2          ; @TSI108_RXRING_LEN
	.comm	_TSI108_RX_BAD,4,2              ; @TSI108_RX_BAD
	.comm	_TSI108_RX_CRC,4,2              ; @TSI108_RX_CRC
	.comm	_TSI108_RX_OVER,4,2             ; @TSI108_RX_OVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Rx Frame contents (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	" %2.2x"

l_.str.2:                               ; @.str.2
	.asciz	".\n"

	.no_dead_strip	_tsi108_complete_rx
.subsections_via_symbols
