	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis190_init_ring
_sis190_init_ring:                      ## @sis190_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sis190_init_ring_indexes
	movl	12(%rbx), %edi
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	8(%rbx), %edi
	movq	_NUM_RX_DESC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sis190_rx_fill
	cmpl	(%r12), %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rcx
	cltq
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	callq	_sis190_mark_as_last_descriptor
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_sis190_rx_clear
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.comm	_NUM_RX_DESC,4,2                ## @NUM_RX_DESC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sis190_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis190_init_ring
_sis190_init_ring:                      ; @sis190_init_ring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_sis190_init_ring_indexes
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _NUM_TX_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_TX_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x21, _NUM_RX_DESC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NUM_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_sis190_rx_fill
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
	sub	x0, x8, #1
	bl	_sis190_mark_as_last_descriptor
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_sis190_rx_clear
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.comm	_NUM_RX_DESC,4,2                ; @NUM_RX_DESC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sis190_init_ring
.subsections_via_symbols
