	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_init_ring
_ethoc_init_ring:                       ## @ethoc_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	%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
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movq	$0, 32(%rdi)
	movl	8(%rdi), %edi
	callq	_virt_to_phys
	movq	_TX_BD_IRQ@GOTPCREL(%rip), %rcx
	movq	_TX_BD_CRC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, -44(%rbp)
	movl	%edx, -48(%rbp)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_TX_BD_WRAP@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	movq	_ETHOC_BUFSIZ@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_ethoc_write_bd
	movl	(%r13), %eax
	addl	%eax, -44(%rbp)
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	orl	%eax, -48(%rbp)
	jmp	LBB0_4
LBB0_5:
	movq	_RX_BD_EMPTY@GOTPCREL(%rip), %rax
	movq	_RX_BD_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	movq	_RX_BD_WRAP@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	movq	_ETHOC_BUFSIZ@GOTPCREL(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %esi
	addl	%ebx, %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ethoc_write_bd
	movl	(%r13), %eax
	addl	%eax, -44(%rbp)
	incl	%ebx
	movl	4(%r15), %eax
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %eax
	orl	%eax, -48(%rbp)
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BD_IRQ,4,2                  ## @TX_BD_IRQ
	.comm	_TX_BD_CRC,4,2                  ## @TX_BD_CRC
	.comm	_TX_BD_WRAP,4,2                 ## @TX_BD_WRAP
	.comm	_ETHOC_BUFSIZ,8,3               ## @ETHOC_BUFSIZ
	.comm	_RX_BD_EMPTY,4,2                ## @RX_BD_EMPTY
	.comm	_RX_BD_IRQ,4,2                  ## @RX_BD_IRQ
	.comm	_RX_BD_WRAP,4,2                 ## @RX_BD_WRAP
	.no_dead_strip	_ethoc_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_init_ring
_ethoc_init_ring:                       ; @ethoc_init_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	stp	xzr, xzr, [x0, #16]
	str	xzr, [x0, #32]
	ldr	w0, [x0, #8]
	bl	_virt_to_phys
Lloh0:
	adrp	x8, _TX_BD_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_BD_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TX_BD_CRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_BD_CRC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w0, [sp, #8]
	ldr	w8, [x19]
Lloh6:
	adrp	x21, _ETHOC_BUFSIZ@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ETHOC_BUFSIZ@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w20, #0
Lloh8:
	adrp	x22, _TX_BD_WRAP@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TX_BD_WRAP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_ethoc_write_bd
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	add	w8, w9, w8
	str	w8, [sp, #12]
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_2
LBB0_5:
Lloh10:
	adrp	x8, _RX_BD_EMPTY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RX_BD_EMPTY@GOTPAGEOFF]
Lloh12:
	adrp	x9, _RX_BD_IRQ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RX_BD_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w20, #0
Lloh16:
	adrp	x22, _RX_BD_WRAP@GOTPAGE
Lloh17:
	ldr	x22, [x22, _RX_BD_WRAP@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	add	w1, w20, w8
	add	x2, sp, #8
	mov	x0, x19
	bl	_ethoc_write_bd
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	add	w8, w9, w8
	str	w8, [sp, #12]
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BD_IRQ,4,2                  ; @TX_BD_IRQ
	.comm	_TX_BD_CRC,4,2                  ; @TX_BD_CRC
	.comm	_TX_BD_WRAP,4,2                 ; @TX_BD_WRAP
	.comm	_ETHOC_BUFSIZ,8,3               ; @ETHOC_BUFSIZ
	.comm	_RX_BD_EMPTY,4,2                ; @RX_BD_EMPTY
	.comm	_RX_BD_IRQ,4,2                  ; @RX_BD_IRQ
	.comm	_RX_BD_WRAP,4,2                 ; @RX_BD_WRAP
	.no_dead_strip	_ethoc_init_ring
.subsections_via_symbols
