	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tulip_free_ring
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tulip_free_ring:                       ## @tulip_free_ring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %rsi
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	addq	$24, %rbx
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %rax
	movq	(%rax,%r12), %r15
	movq	8(%rax,%r12), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%r12)
	movq	16(%rsi), %rax
	movups	%xmm0, 8(%rax,%rbx)
	movl	$-1159790384, %edi              ## imm = 0xBADF00D0
	callq	_cpu_to_le32
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rcx
	movl	%eax, (%rcx,%rbx)
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rsi), %edi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_5:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movq	(%rsi), %rcx
	xorl	%ebx, %ebx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	%eax, %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx,%rbx)
	addq	$16, %rbx
	cmpq	%rdx, %r14
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rbx), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rsi), %edi
	movq	(%rcx,%rbx), %rsi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	callq	_pci_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_tulip_free_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tulip_free_ring
_tulip_free_ring:                       ; @tulip_free_ring
	.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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	mov	x25, #0
Lloh2:
	adrp	x26, _PKT_BUF_SZ@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #16
	add	x23, x23, #24
	cmp	x25, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x24
	ldp	x21, x20, [x8]
	stp	xzr, xzr, [x8]
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	stp	xzr, xzr, [x8, #8]
	mov	w0, #208
	movk	w0, #47839, lsl #16
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	w0, [x8, x23]
	cbz	x20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x1, x21
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	b	LBB0_2
LBB0_5:
Lloh6:
	adrp	x21, _TX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x22, #0
	mov	x23, #0
	ldr	x9, [x19]
Lloh8:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x10, x9, x22
	stp	xzr, xzr, [x10]
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x9, x22
	ldr	x20, [x10, #8]
	cbz	x20, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #8]
	ldr	x1, [x9, x22]
	ldr	w2, [x20]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	x9, [x19]
	ldr	w8, [x21]
	b	LBB0_7
LBB0_10:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_tulip_free_ring
.subsections_via_symbols
