	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gem_init_rings
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gem_init_rings:                        ## @gem_init_rings
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %rbx
	movq	64(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	movups	%xmm0, 40(%rdi)
	callq	_gem_clean_rings
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	(%rbx), %rdi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_VLAN_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movq	%rax, 8(%r14)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	16(%r14), %rax
	movq	%rbx, (%rax,%r15)
	movq	_RX_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_skb_put
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_virt_to_page
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_offset_in_page
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_RX_BUF_ALLOC_SIZE
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_pci_map_page
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, 8(%r13,%r15,2)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	%r14, %rdi
	callq	_RXDCTRL_FRESH
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	%rax, (%r13,%r15,2)
	movq	_RX_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r15
	cmpq	%rax, %r12
	jge	LBB0_4
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r13
	movq	%r14, %rdi
	callq	_RX_BUF_ALLOC_SIZE
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_gem_alloc_skb
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13,%r15,2)
	jmp	LBB0_9
LBB0_4:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_7
## %bb.5:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	$0, (%r12,%rbx)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	$0, -8(%r12,%rbx)
	incq	%r15
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_VLAN_ETH_FRAME_LEN,8,3         ## @VLAN_ETH_FRAME_LEN
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RX_OFFSET,8,3                  ## @RX_OFFSET
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.no_dead_strip	_gem_init_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_init_rings
_gem_init_rings:                        ; @gem_init_rings
	.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, x0
	ldp	x20, x25, [x0, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #24]
	stur	q0, [x0, #40]
	bl	_gem_clean_rings
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x0, x8, x10
Lloh6:
	adrp	x8, _VLAN_ETH_FRAME_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_ETH_FRAME_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_max
	str	x0, [x19, #8]
Lloh9:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x27, #0
	mov	x28, #0
Lloh12:
	adrp	x20, _RX_OFFSET@GOTPAGE
Lloh13:
	ldr	x20, [x20, _RX_OFFSET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldp	x9, x8, [x19, #8]
	str	x0, [x8, x28, lsl #3]
	ldr	x8, [x20]
	add	x1, x8, x9
	bl	_skb_put
	ldr	w22, [x19]
	ldr	w0, [x21]
	bl	_virt_to_page
	mov	x23, x0
	ldr	w0, [x21]
	bl	_offset_in_page
	mov	x24, x0
	mov	x0, x19
	bl	_RX_BUF_ALLOC_SIZE
	mov	x3, x0
Lloh14:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_pci_map_page
	bl	_cpu_to_le64
	add	x22, x26, x27
	str	x0, [x22, #8]
	bl	_dma_wmb
	mov	x0, x19
	bl	_RXDCTRL_FRESH
	bl	_cpu_to_le64
	str	x0, [x22]
	ldr	x1, [x20]
	mov	x0, x21
	bl	_skb_reserve
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
Lloh17:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x27, x27, #16
	cmp	x28, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25, #8]
	mov	x0, x19
	bl	_RX_BUF_ALLOC_SIZE
	mov	x1, x0
Lloh20:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_gem_alloc_skb
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x26, x27
	stp	xzr, xzr, [x8]
	b	LBB0_3
LBB0_6:
Lloh23:
	adrp	x19, _TX_RING_SIZE@GOTPAGE
Lloh24:
	ldr	x19, [x19, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x22, x8, x20
	str	xzr, [x22, #8]
	bl	_dma_wmb
	str	xzr, [x22]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	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
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_VLAN_ETH_FRAME_LEN,8,3         ; @VLAN_ETH_FRAME_LEN
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RX_OFFSET,8,3                  ; @RX_OFFSET
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.no_dead_strip	_gem_init_rings
.subsections_via_symbols
