	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8139_init_ring
_rtl8139_init_ring:                     ## @rtl8139_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	$0, 32(%rax)
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_8
## %bb.1:
	movq	_TX_BUF_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r8
	leaq	-1(%r10), %rcx
	movl	%r10d, %edx
	andl	$3, %edx
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %r10d
	leaq	(,%r8,8), %r9
	movq	%r8, %r15
	shlq	$4, %r15
	leaq	(,%r8,4), %r14
	leaq	(%r14,%r14,2), %r11
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	movq	8(%rax), %rcx
	movq	%rdi, (%rcx,%rsi,8)
	movq	(%rax), %rcx
	addq	%r14, %rcx
	addq	%rbx, %rcx
	movq	8(%rax), %rdi
	movq	%rcx, 8(%rdi,%rsi,8)
	movq	(%rax), %rcx
	addq	%r9, %rcx
	addq	%rbx, %rcx
	movq	8(%rax), %rdi
	movq	%rcx, 16(%rdi,%rsi,8)
	movq	(%rax), %rcx
	addq	%r11, %rcx
	addq	%rbx, %rcx
	movq	8(%rax), %rdi
	movq	%rcx, 24(%rdi,%rsi,8)
	addq	$4, %rsi
	addq	%r15, %rbx
	cmpq	%rsi, %r10
	jne	LBB0_4
LBB0_5:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:
	movq	%rsi, %rcx
	imulq	%r8, %rcx
	shlq	$2, %rcx
	shlq	$2, %r8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	addq	%rcx, %rdi
	movq	8(%rax), %rbx
	movq	%rdi, (%rbx,%rsi,8)
	incq	%rsi
	addq	%r8, %rcx
	decq	%rdx
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.comm	_TX_BUF_SIZE,4,2                ## @TX_BUF_SIZE
	.no_dead_strip	_rtl8139_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8139_init_ring
_rtl8139_init_ring:                     ; @rtl8139_init_ring
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_netdev_priv
	stp	xzr, xzr, [x0, #24]
	str	xzr, [x0, #16]
Lloh0:
	adrp	x8, _NUM_TX_DESC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_TX_DESC@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	mov	x9, #0
Lloh3:
	adrp	x10, _TX_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TX_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	lsl	x10, x10, #2
	lsl	x11, x11, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x12, x13, [x0]
	add	x12, x12, x9
	str	x12, [x13, x8]
	add	x9, x9, x10
	add	x8, x8, #8
	cmp	x11, x8
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.comm	_TX_BUF_SIZE,4,2                ; @TX_BUF_SIZE
	.no_dead_strip	_rtl8139_init_ring
.subsections_via_symbols
