	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_reset_lists
_tlan_reset_lists:                      ## @tlan_reset_lists
	.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, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rax)
	movq	_TLAN_NUM_TX_LISTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	40(%r14), %r12
	addq	$-32, %r12
	xorl	%ecx, %ecx
	movq	_TLAN_CSTAT_UNUSED@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, 56(%r12)
	movq	48(%r12), %rsi
	movq	$0, 8(%rsi)
	movl	$0, 32(%rsi)
	movq	$0, 40(%rsi)
	movq	$0, 136(%rsi)
	movq	$0, 152(%rsi)
	incq	%rcx
	movslq	(%rax), %rsi
	addq	$32, %r12
	cmpq	%rsi, %rcx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
                                        ## implicit-def: $r12
LBB0_4:
	movq	$0, 32(%r14)
	movq	_TLAN_NUM_RX_LISTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	decl	%eax
	movl	%eax, (%r14)
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	24(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %r12
	movq	_TLAN_CSTAT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14,%r13)
	movq	_TLAN_MAX_FRAME_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r14,%r13)
	movq	_TLAN_LAST_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movq	16(%r14,%r13), %rcx
	movl	%eax, (%rcx)
	movl	(%rdx), %esi
	addl	$5, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	(%rbx), %esi
	movq	_TLAN_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	16(%r14,%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_tlan_store_skb
	movq	16(%r14,%r13), %rax
	movl	$0, 16(%rax)
	movq	$0, 24(%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	addq	$32, %rax
	movq	%rax, 8(%r14,%r13)
	incq	%r15
	movq	_TLAN_NUM_RX_LISTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r13
	cmpq	%rax, %r15
	jl	LBB0_7
## %bb.10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_TLAN_NUM_RX_LISTS@GOTPCREL(%rip), %r13
	cmpl	%eax, %r15d
	jl	LBB0_12
	jmp	LBB0_14
LBB0_5:
	xorl	%r15d, %r15d
	cmpl	%eax, %r15d
	jl	LBB0_12
	jmp	LBB0_14
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_TLAN_NUM_RX_LISTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	%eax, %r15d
	jge	LBB0_14
LBB0_12:
	movl	%r15d, %ebx
	shlq	$5, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tlan_store_skb
	addq	$32, %rbx
	incl	%r15d
	cmpl	%r15d, (%r13)
	jg	LBB0_13
LBB0_14:
	movq	$0, 8(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_NUM_TX_LISTS,4,2          ## @TLAN_NUM_TX_LISTS
	.comm	_TLAN_CSTAT_UNUSED,4,2          ## @TLAN_CSTAT_UNUSED
	.comm	_TLAN_NUM_RX_LISTS,4,2          ## @TLAN_NUM_RX_LISTS
	.comm	_TLAN_CSTAT_READY,4,2           ## @TLAN_CSTAT_READY
	.comm	_TLAN_MAX_FRAME_SIZE,4,2        ## @TLAN_MAX_FRAME_SIZE
	.comm	_TLAN_LAST_BUFFER,4,2           ## @TLAN_LAST_BUFFER
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_tlan_reset_lists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_reset_lists
_tlan_reset_lists:                      ; @tlan_reset_lists
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	stp	xzr, xzr, [x0, #48]
Lloh0:
	adrp	x8, _TLAN_NUM_TX_LISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_NUM_TX_LISTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #40]
	sub	x21, x10, #32
Lloh2:
	adrp	x10, _TLAN_CSTAT_UNUSED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TLAN_CSTAT_UNUSED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x21, #56]
	ldr	x11, [x21, #48]
	str	xzr, [x11, #8]
	str	wzr, [x11, #32]
	str	xzr, [x11, #40]
	str	xzr, [x11, #136]
	str	xzr, [x11, #152]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	add	x21, x21, #32
	cmp	x9, x11
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
                                        ; implicit-def: $x21
LBB0_4:
Lloh4:
	adrp	x23, _TLAN_NUM_RX_LISTS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TLAN_NUM_RX_LISTS@GOTPAGEOFF]
	str	xzr, [x19, #32]
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x9, #0
	mov	x24, #0
Lloh6:
	adrp	x28, _TLAN_MAX_FRAME_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TLAN_MAX_FRAME_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x9
	ldr	x26, [x19, #8]
	add	x21, x26, x9
	ldr	x27, [x19, #24]
Lloh8:
	adrp	x8, _TLAN_CSTAT_READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLAN_CSTAT_READY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	ldr	w8, [x28]
	str	w8, [x21]
	ldr	w8, [x28]
Lloh11:
	adrp	x9, _TLAN_LAST_BUFFER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TLAN_LAST_BUFFER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	w8, [x28]
	add	w1, w8, #5
	mov	x0, x20
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	ldr	w2, [x28]
Lloh14:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_pci_map_single
	ldr	x8, [x21, #16]
	str	x0, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_tlan_store_skb
	ldr	x8, [x21, #16]
	str	wzr, [x8, #16]
	str	xzr, [x8, #24]
	add	x8, x25, x27
	add	x8, x8, #32
	str	x8, [x21, #8]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x9, x25, #32
	cmp	x24, x8
	b.lt	LBB0_6
	b	LBB0_10
LBB0_8:
	mov	w24, #0
	cmp	w24, w8
	b.lt	LBB0_11
	b	LBB0_13
LBB0_9:
	ldr	w8, [x23]
LBB0_10:
	add	x21, x26, x25
	cmp	w24, w8
	b.ge	LBB0_13
LBB0_11:
	mov	w8, w24
	lsl	x20, x8, #5
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	mov	x1, #0
	bl	_tlan_store_skb
	ldr	w8, [x23]
	add	x20, x20, #32
	add	w24, w24, #1
	cmp	w8, w24
	b.gt	LBB0_12
LBB0_13:
	str	xzr, [x21, #8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_NUM_TX_LISTS,4,2          ; @TLAN_NUM_TX_LISTS
	.comm	_TLAN_CSTAT_UNUSED,4,2          ; @TLAN_CSTAT_UNUSED
	.comm	_TLAN_NUM_RX_LISTS,4,2          ; @TLAN_NUM_RX_LISTS
	.comm	_TLAN_CSTAT_READY,4,2           ; @TLAN_CSTAT_READY
	.comm	_TLAN_MAX_FRAME_SIZE,4,2        ; @TLAN_MAX_FRAME_SIZE
	.comm	_TLAN_LAST_BUFFER,4,2           ; @TLAN_LAST_BUFFER
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_tlan_reset_lists
.subsections_via_symbols
