	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_rxtx_rings
_init_rxtx_rings:                       ## @init_rxtx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	80(%rax), %rax
	movq	%rax, 112(%r13)
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	addq	%rax, %rdx
	movq	%rdx, 56(%r13)
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movl	96(%r13), %edx
	movl	%edx, 12(%rax)
	movq	$0, (%rax)
	movq	104(%r13), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rcx
	xorl	%r12d, %r12d
	cmpq	$2, %rcx
	jb	LBB0_3
## %bb.4:
	movl	$1, %eax
	movl	$16, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%r13), %rcx
	movl	%edx, 12(%rcx,%rsi)
	movq	$0, (%rcx,%rsi)
	movq	104(%r13), %rcx
	movq	$0, (%rcx,%rax,8)
	incq	%rax
	movq	(%rbx), %rcx
	addq	$16, %rsi
	cmpq	%rax, %rcx
	ja	LBB0_5
## %bb.6:
	decq	%rax
	jmp	LBB0_7
LBB0_1:
	movq	_DescEndRing@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -4(%rax)
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	movq	80(%r13), %rdx
	movq	_DescEndRing@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cltq
	shlq	$4, %rax
	orl	%esi, 12(%rdx,%rax)
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	movq	_DescOwned@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	96(%r13), %esi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb
	movq	104(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	96(%r13), %edx
	movl	100(%r13), %edi
	movl	(%rax), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	88(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	80(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	(%r15), %rax
	movq	%rax, -8(%rcx,%rbx)
	incq	%r12
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%r12, %rax
	ja	LBB0_10
	jmp	LBB0_13
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rbx
LBB0_14:
	movq	$0, 72(%r13)
	subl	%eax, %r12d
	movl	%r12d, (%r13)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.15:
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.16:
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_17:
	movl	%eax, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	56(%r13), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	64(%r13), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	56(%r13), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_18
LBB0_19:
	testb	$1, %al
	je	LBB0_21
## %bb.20:
	movq	64(%r13), %rax
	movq	$0, (%rax,%rcx,8)
	movq	56(%r13), %rax
	movq	$0, (%rax,%rcx,8)
LBB0_21:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r13)
	movups	%xmm0, 24(%r13)
	movq	16(%r13), %rdi
	movq	_RxRingPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	callq	_iowrite32
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	movq	_TxRingPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,8,3               ## @RX_RING_SIZE
	.comm	_DescEndRing,4,2                ## @DescEndRing
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_DescOwned,8,3                  ## @DescOwned
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_RxRingPtr,8,3                  ## @RxRingPtr
	.comm	_TxRingPtr,8,3                  ## @TxRingPtr
	.no_dead_strip	_init_rxtx_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_rxtx_rings
_init_rxtx_rings:                       ; @init_rxtx_rings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x9, [x0, #80]
	str	x9, [x0, #112]
Lloh0:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x10, x9, x8, lsl #4
	str	x10, [x0, #56]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x19, #96]
	str	w8, [x9, #12]
	str	xzr, [x9]
	ldr	x9, [x19, #104]
	str	xzr, [x9]
	ldr	x9, [x21]
	cmp	x9, #2
	b.lo	LBB0_6
; %bb.2:
	mov	x10, #0
	mov	w11, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #80]
	add	x9, x9, x10
	str	w8, [x9, #28]
	str	xzr, [x9, #16]
	ldr	x9, [x19, #104]
	str	xzr, [x9, x11, lsl #3]
	add	x11, x11, #1
	ldr	x9, [x21]
	add	x10, x10, #16
	cmp	x9, x11
	b.hi	LBB0_3
; %bb.4:
	sub	x8, x11, #1
	b	LBB0_7
LBB0_5:
	mov	w22, #0
Lloh2:
	adrp	x10, _DescEndRing@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DescEndRing@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	ldur	w11, [x9, #-4]
	orr	w10, w11, w10
	stur	w10, [x9, #-4]
	b	LBB0_13
LBB0_6:
	mov	x8, #0
LBB0_7:
	ldr	x10, [x19, #80]
Lloh5:
	adrp	x11, _DescEndRing@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DescEndRing@GOTPAGEOFF]
	lsl	x8, x8, #32
Lloh7:
	ldr	w11, [x11]
	add	x8, x10, x8, asr #28
	ldr	w10, [x8, #12]
	orr	w10, w10, w11
	str	w10, [x8, #12]
	cbz	x9, LBB0_11
; %bb.8:
	mov	x23, #0
	mov	x22, #0
Lloh8:
	adrp	x24, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _DescOwned@GOTPAGE
Lloh11:
	ldr	x25, [x25, _DescOwned@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #96]
	mov	x0, x20
	bl	_netdev_alloc_skb
	ldr	x8, [x19, #104]
	str	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x0]
	ldp	w2, w0, [x19, #96]
	ldr	w3, [x24]
	bl	_pci_map_single
	ldp	x9, x8, [x19, #80]
	str	w0, [x8, x22, lsl #2]
	add	x8, x9, x23
	str	w0, [x8, #8]
	ldr	x9, [x25]
	str	x9, [x8]
	add	x22, x22, #1
	ldr	x8, [x21]
	add	x23, x23, #16
	cmp	x8, x22
	b.hi	LBB0_9
	b	LBB0_13
LBB0_11:
	mov	x8, #0
	mov	w22, #0
	b	LBB0_13
LBB0_12:
	ldr	x8, [x21]
LBB0_13:
	str	xzr, [x19, #72]
	sub	w8, w22, w8
	str	w8, [x19]
Lloh12:
	adrp	x8, _TX_RING_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_RING_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #64]
	str	xzr, [x10, x8]
	ldr	x10, [x19, #56]
	str	xzr, [x10, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ne	LBB0_15
LBB0_16:
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #24]
	ldp	x8, x0, [x19, #8]
Lloh15:
	adrp	x9, _RxRingPtr@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RxRingPtr@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x21]
	ldp	x10, x9, [x19, #8]
	add	x0, x9, x8, lsl #2
Lloh18:
	adrp	x8, _TxRingPtr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TxRingPtr@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x1, x8, x10
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,8,3               ; @RX_RING_SIZE
	.comm	_DescEndRing,4,2                ; @DescEndRing
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_DescOwned,8,3                  ; @DescOwned
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_RxRingPtr,8,3                  ; @RxRingPtr
	.comm	_TxRingPtr,8,3                  ; @TxRingPtr
	.no_dead_strip	_init_rxtx_rings
.subsections_via_symbols
