	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_port_assign_rfs_entries
_enetc_port_assign_rfs_entries:         ## @enetc_port_assign_rfs_entries
	.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, %r14
	callq	_enetc_si_priv
	movq	%rax, %r12
	movq	_ENETC_PRFSCAPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_enetc_port_rd
	movl	%eax, %edi
	callq	_ENETC_PRFSCAPR_GET_NUM_RFS
	movl	%eax, %r15d
	movl	(%r12), %ecx
	leal	1(%rcx), %esi
	cltd
	idivl	%esi
	movl	%eax, %r13d
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, %edi
	callq	_ENETC_PSIRFSCFGR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_enetc_port_wr
	cmpl	(%r12), %ebx
	jl	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	callq	_ENETC_PSIRFSCFGR
	imull	(%r12), %r13d
	subl	%r13d, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_enetc_port_wr
	movq	_ENETC_PRFSMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENETC_PRFSMR_RFSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_port_wr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_PRFSCAPR,4,2             ## @ENETC_PRFSCAPR
	.comm	_ENETC_PRFSMR,4,2               ## @ENETC_PRFSMR
	.comm	_ENETC_PRFSMR_RFSE,4,2          ## @ENETC_PRFSMR_RFSE
	.no_dead_strip	_enetc_port_assign_rfs_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_port_assign_rfs_entries
_enetc_port_assign_rfs_entries:         ; @enetc_port_assign_rfs_entries
	.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
	bl	_enetc_si_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ENETC_PRFSCAPR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_PRFSCAPR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enetc_port_rd
	bl	_ENETC_PRFSCAPR_GET_NUM_RFS
	mov	x21, x0
	ldr	w8, [x20]
	add	w9, w8, #1
	sdiv	w22, w0, w9
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	mov	x0, x23
	bl	_ENETC_PSIRFSCFGR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_enetc_port_wr
	ldr	w8, [x20]
	cmp	w23, w8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	bl	_ENETC_PSIRFSCFGR
	mov	x1, x0
	ldr	w8, [x20]
	msub	w2, w8, w22, w21
	mov	x0, x19
	bl	_enetc_port_wr
Lloh3:
	adrp	x8, _ENETC_PRFSMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_PRFSMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ENETC_PRFSMR_RFSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENETC_PRFSMR_RFSE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_enetc_port_wr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_PRFSCAPR,4,2             ; @ENETC_PRFSCAPR
	.comm	_ENETC_PRFSMR,4,2               ; @ENETC_PRFSMR
	.comm	_ENETC_PRFSMR_RFSE,4,2          ; @ENETC_PRFSMR_RFSE
	.no_dead_strip	_enetc_port_assign_rfs_entries
.subsections_via_symbols
