	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_init_rings
_ftgmac100_init_rings:                  ## @ftgmac100_init_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, %r15
	movl	4(%rdi), %eax
	movl	12(%rdi), %ecx
	movl	%eax, (%rdi)
	movl	%ecx, 8(%rdi)
	movq	_MIN_RX_QUEUE_ENTRIES@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_2
## %bb.3:
	movq	$-8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r12
	movl	$0, 8(%r12,%rbx)
	movl	36(%r15), %edi
	callq	_cpu_to_le32
	movl	%eax, 12(%r12,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
## %bb.5:
	addq	%rbx, %r12
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
LBB0_6:
	movl	32(%r15), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r12)
	movl	8(%r15), %eax
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	8(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.9:
	movq	24(%r15), %r14
	movq	%rbx, %rsi
	shlq	$2, %rsi
	movq	%r14, %rdi
	callq	___bzero
	leal	-1(%rbx), %eax
	leaq	(%r14,%rax,4), %rbx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	orl	%eax, (%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_RX_QUEUE_ENTRIES,4,2       ## @MIN_RX_QUEUE_ENTRIES
	.no_dead_strip	_ftgmac100_init_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_init_rings
_ftgmac100_init_rings:                  ; @ftgmac100_init_rings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x0, #4]
	str	w8, [x0]
	ldr	w9, [x0, #12]
	str	w9, [x0, #8]
Lloh0:
	adrp	x20, _MIN_RX_QUEUE_ENTRIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MIN_RX_QUEUE_ENTRIES@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #40]
	add	x24, x23, x21
	str	wzr, [x24]
	ldr	w0, [x19, #36]
	bl	_cpu_to_le32
	str	w0, [x24, #4]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #8
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.4:
	add	x8, x23, x21
	sub	x21, x8, #8
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
	ldr	w0, [x19, #32]
	bl	_cpu_to_le32
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	w21, [x19, #8]
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x20, [x19, #24]
	lsl	x1, x21, #2
	mov	x0, x20
	bl	_bzero
	sub	w8, w21, #1
	add	x20, x20, w8, uxtw #2
	b	LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_RX_QUEUE_ENTRIES,4,2       ; @MIN_RX_QUEUE_ENTRIES
	.no_dead_strip	_ftgmac100_init_rings
.subsections_via_symbols
