	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_init_ring_dvma
_lance_init_ring_dvma:                  ## @lance_init_ring_dvma
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	40(%rax), %r12
	movq	%r15, %rdi
	callq	_netif_stop_queue
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movups	%xmm0, 16(%rbx)
	movq	(%r15), %rax
	movl	4(%rax), %ecx
	movq	32(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	20(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 20(%rdx)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	$16, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_tx_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_libbuff_offset
	leaq	(%rax,%r14), %rdi
	callq	_LANCE_ADDR
	xorps	%xmm0, %xmm0
	movq	24(%r12), %rcx
	movl	%eax, -16(%rcx,%rbx)
	sarl	$16, %eax
	movl	%eax, -12(%rcx,%rbx)
	movl	$61440, -8(%rcx,%rbx)           ## imm = 0xF000
	movups	%xmm0, (%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_rx_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_libbuff_offset
	leaq	(%rax,%r14), %rdi
	callq	_LANCE_ADDR
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	sarl	$16, %eax
	movl	%eax, 4(%rcx,%rbx)
	movq	_LE_R1_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx,%rbx)
	xorl	%eax, %eax
	movq	_RX_BUFF_SIZE@GOTPCREL(%rip), %rdx
	subl	(%rdx), %eax
	orl	$61440, %eax                    ## imm = 0xF000
	movl	%eax, 8(%rcx,%rbx)
	movq	$0, 16(%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jl	LBB0_5
LBB0_6:
	movq	_brx_ring@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_libdesc_offset
	leaq	(%rax,%r14), %rdi
	callq	_LANCE_ADDR
	movq	_LANCE_LOG_RX_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$13, %ecx
	movl	%eax, %edx
	sarl	$16, %edx
	orl	%ecx, %edx
	movl	%edx, (%r12)
	movl	%eax, 4(%r12)
	movq	_btx_ring@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_libdesc_offset
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_LANCE_ADDR
	movq	_LANCE_LOG_TX_BUFFERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$13, %ecx
	movl	%eax, %edx
	sarl	$16, %edx
	orl	%ecx, %edx
	movl	%edx, 8(%r12)
	movl	%eax, 12(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_tx_buf,4,2                     ## @tx_buf
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_rx_buf,4,2                     ## @rx_buf
	.comm	_LE_R1_OWN,4,2                  ## @LE_R1_OWN
	.comm	_RX_BUFF_SIZE,4,2               ## @RX_BUFF_SIZE
	.comm	_brx_ring,4,2                   ## @brx_ring
	.comm	_LANCE_LOG_RX_BUFFERS,4,2       ## @LANCE_LOG_RX_BUFFERS
	.comm	_btx_ring,4,2                   ## @btx_ring
	.comm	_LANCE_LOG_TX_BUFFERS,4,2       ## @LANCE_LOG_TX_BUFFERS
	.no_dead_strip	_lance_init_ring_dvma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_init_ring_dvma
_lance_init_ring_dvma:                  ; @lance_init_ring_dvma
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x22, x21, [x0, #32]
	mov	x0, x19
	bl	_netif_stop_queue
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20]
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	ldr	x10, [x21, #32]
	str	w9, [x10]
	ldr	w9, [x8]
	str	w9, [x10, #4]
	ldr	w9, [x8, #12]
	str	w9, [x10, #8]
	ldr	w9, [x8, #8]
	str	w9, [x10, #12]
	ldr	w9, [x8, #20]
	str	w9, [x10, #16]
	ldr	w8, [x8, #16]
	str	w8, [x10, #20]
Lloh0:
	adrp	x20, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x19, #0
Lloh2:
	adrp	x24, _tx_buf@GOTPAGE
Lloh3:
	ldr	x24, [x24, _tx_buf@GOTPAGEOFF]
	mov	w25, #61440
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_libbuff_offset
	add	x0, x0, x22
	bl	_LANCE_ADDR
	ldr	x8, [x21, #24]
	add	x8, x8, x23
	asr	w9, w0, #16
	stp	w0, w9, [x8]
	str	w25, [x8, #8]
	stp	xzr, xzr, [x8, #16]
	add	x19, x19, #1
	ldrsw	x8, [x20]
	add	x23, x23, #32
	cmp	x19, x8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x20, _RX_RING_SIZE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	mov	x19, #0
Lloh6:
	adrp	x24, _rx_buf@GOTPAGE
Lloh7:
	ldr	x24, [x24, _rx_buf@GOTPAGEOFF]
Lloh8:
	adrp	x25, _LE_R1_OWN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _LE_R1_OWN@GOTPAGEOFF]
Lloh10:
	adrp	x26, _RX_BUFF_SIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _RX_BUFF_SIZE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_libbuff_offset
	add	x0, x0, x22
	bl	_LANCE_ADDR
	ldr	x8, [x21, #16]
	add	x8, x8, x23
	asr	w9, w0, #16
	stp	w0, w9, [x8]
	ldr	w9, [x25]
	str	w9, [x8, #24]
	ldr	w9, [x26]
	neg	w9, w9
	orr	w9, w9, #0xf000
	str	w9, [x8, #8]
	str	xzr, [x8, #16]
	add	x19, x19, #1
	ldrsw	x8, [x20]
	add	x23, x23, #32
	cmp	x19, x8
	b.lt	LBB0_5
LBB0_6:
Lloh12:
	adrp	x8, _brx_ring@GOTPAGE
Lloh13:
	ldr	x8, [x8, _brx_ring@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_libdesc_offset
	add	x0, x0, x22
	bl	_LANCE_ADDR
Lloh15:
	adrp	x8, _LANCE_LOG_RX_BUFFERS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LANCE_LOG_RX_BUFFERS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w8, w8, #13
	orr	w8, w8, w0, asr #16
	stp	w8, w0, [x21]
Lloh18:
	adrp	x8, _btx_ring@GOTPAGE
Lloh19:
	ldr	x8, [x8, _btx_ring@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_libdesc_offset
	add	x0, x0, x22
	bl	_LANCE_ADDR
Lloh21:
	adrp	x8, _LANCE_LOG_TX_BUFFERS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LANCE_LOG_TX_BUFFERS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	w8, w8, #13
	orr	w8, w8, w0, asr #16
	stp	w8, w0, [x21, #8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_tx_buf,4,2                     ; @tx_buf
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_rx_buf,4,2                     ; @rx_buf
	.comm	_LE_R1_OWN,4,2                  ; @LE_R1_OWN
	.comm	_RX_BUFF_SIZE,4,2               ; @RX_BUFF_SIZE
	.comm	_brx_ring,4,2                   ; @brx_ring
	.comm	_LANCE_LOG_RX_BUFFERS,4,2       ; @LANCE_LOG_RX_BUFFERS
	.comm	_btx_ring,4,2                   ; @btx_ring
	.comm	_LANCE_LOG_TX_BUFFERS,4,2       ; @LANCE_LOG_TX_BUFFERS
	.no_dead_strip	_lance_init_ring_dvma
.subsections_via_symbols
