	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_port_si_configure
_enetc_port_si_configure:               ## @enetc_port_si_configure
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_enetc_si_priv
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r13
	movq	_ENETC_PCAPR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_enetc_port_rd
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ENETC_PCAPR0_RXBDR
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ENETC_PCAPR0_TXBDR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r15d
	movq	_ENETC_PF_NUM_RINGS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ENETC_PSICFGR0_SET_TXBDR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_ENETC_PSICFGR0_SET_RXBDR
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	(%r12), %r15d
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_ENETC_PSICFGR0_SET_TXBDR
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_ENETC_PSICFGR0_SET_RXBDR
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_ENETC_PF_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
LBB0_3:
	movq	_ENETC_VLAN_TYPE_C@GOTPCREL(%rip), %rax
	movq	_ENETC_VLAN_TYPE_S@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	orl	(%rax), %edi
	callq	_ENETC_PSICFGR0_SIVC
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_ENETC_PSICFGR0
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_enetc_port_wr
	movq	_ENETC_PF_NUM_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	movq	_ENETC_VLAN_TYPE_C@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_ENETC_PSICFGR0_SIVC
	movl	%eax, %r12d
	movq	_ENETC_PSICFGR0_VTE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_ENETC_PSICFGR0_SIVIE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	subl	%ebx, %r15d
	je	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	cltd
	idivl	(%r14)
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ENETC_PSICFGR0_SET_TXBDR
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r15d, %edi
	callq	_ENETC_PSICFGR0_SET_RXBDR
	movl	%eax, %r12d
	orl	%ebx, %r12d
LBB0_6:
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, %edi
	callq	_ENETC_PSICFGR0
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_enetc_port_wr
	cmpl	(%r14), %ebx
	jl	LBB0_8
LBB0_9:
	movq	_ENETC_VLAN_TYPE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENETC_VLAN_TYPE_C@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_ENETC_PVCLCTR_OVTPIDL
	movq	_ENETC_PVCLCTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_enetc_port_wr
	movq	_ENETC_PSIVLANFMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENETC_PSIVLANFMR_VS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_port_wr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_PCAPR0,4,2               ## @ENETC_PCAPR0
	.comm	_ENETC_PF_NUM_RINGS,4,2         ## @ENETC_PF_NUM_RINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found %d rings, expected %d!\n"

	.comm	_ENETC_VLAN_TYPE_C,4,2          ## @ENETC_VLAN_TYPE_C
	.comm	_ENETC_VLAN_TYPE_S,4,2          ## @ENETC_VLAN_TYPE_S
	.comm	_ENETC_PSICFGR0_VTE,4,2         ## @ENETC_PSICFGR0_VTE
	.comm	_ENETC_PSICFGR0_SIVIE,4,2       ## @ENETC_PSICFGR0_SIVIE
	.comm	_ENETC_PVCLCTR,4,2              ## @ENETC_PVCLCTR
	.comm	_ENETC_PSIVLANFMR,4,2           ## @ENETC_PSIVLANFMR
	.comm	_ENETC_PSIVLANFMR_VS,4,2        ## @ENETC_PSIVLANFMR_VS
	.no_dead_strip	_enetc_port_si_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_port_si_configure
_enetc_port_si_configure:               ; @enetc_port_si_configure
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	bl	_enetc_si_priv
	mov	x20, x0
	add	x19, x22, #8
Lloh0:
	adrp	x8, _ENETC_PCAPR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_PCAPR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enetc_port_rd
	mov	x21, x0
	bl	_ENETC_PCAPR0_RXBDR
	mov	x23, x0
	mov	x0, x21
	bl	_ENETC_PCAPR0_TXBDR
	mov	x1, x0
	mov	x0, x23
	bl	_min
	mov	x21, x0
Lloh3:
	adrp	x25, _ENETC_PF_NUM_RINGS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ENETC_PF_NUM_RINGS@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ENETC_PSICFGR0_SET_TXBDR
	mov	x23, x0
	ldr	w0, [x25]
	bl	_ENETC_PSICFGR0_SET_RXBDR
	mov	x24, x0
	ldr	w8, [x25]
	cmp	w21, w8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ENETC_PSICFGR0_SET_TXBDR
	mov	x23, x0
	mov	x0, x21
	bl	_ENETC_PSICFGR0_SET_RXBDR
	orr	w26, w0, w23
	ldr	x0, [x22]
	ldr	w3, [x25]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	orr	w26, w24, w23
LBB0_3:
Lloh7:
	adrp	x23, _ENETC_VLAN_TYPE_C@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ENETC_VLAN_TYPE_C@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh9:
	adrp	x24, _ENETC_VLAN_TYPE_S@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ENETC_VLAN_TYPE_S@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w0, w9, w8
	bl	_ENETC_PSICFGR0_SIVC
	orr	w22, w0, w26
	mov	w0, #0
	bl	_ENETC_PSICFGR0
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_enetc_port_wr
	ldr	w25, [x25]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w0, w9, w8
	bl	_ENETC_PSICFGR0_SIVC
Lloh11:
	adrp	x8, _ENETC_PSICFGR0_VTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENETC_PSICFGR0_VTE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _ENETC_PSICFGR0_SIVIE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENETC_PSICFGR0_SIVIE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w22, w8, w9
	cmp	w21, #0
	ccmp	w21, w25, #4, ne
	b.eq	LBB0_5
; %bb.4:
	sub	w8, w21, w25
	ldr	w9, [x20]
	sdiv	w21, w8, w9
	mov	x0, x21
	bl	_ENETC_PSICFGR0_SET_TXBDR
	orr	w22, w0, w22
	mov	x0, x21
	bl	_ENETC_PSICFGR0_SET_RXBDR
	orr	w22, w22, w0
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x21
	bl	_ENETC_PSICFGR0
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_enetc_port_wr
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_8:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w0, w9, w8
	bl	_ENETC_PVCLCTR_OVTPIDL
	mov	x2, x0
Lloh17:
	adrp	x8, _ENETC_PVCLCTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENETC_PVCLCTR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enetc_port_wr
Lloh20:
	adrp	x8, _ENETC_PSIVLANFMR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENETC_PSIVLANFMR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _ENETC_PSIVLANFMR_VS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENETC_PSIVLANFMR_VS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_enetc_port_wr
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_PCAPR0,4,2               ; @ENETC_PCAPR0
	.comm	_ENETC_PF_NUM_RINGS,4,2         ; @ENETC_PF_NUM_RINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found %d rings, expected %d!\n"

	.comm	_ENETC_VLAN_TYPE_C,4,2          ; @ENETC_VLAN_TYPE_C
	.comm	_ENETC_VLAN_TYPE_S,4,2          ; @ENETC_VLAN_TYPE_S
	.comm	_ENETC_PSICFGR0_VTE,4,2         ; @ENETC_PSICFGR0_VTE
	.comm	_ENETC_PSICFGR0_SIVIE,4,2       ; @ENETC_PSICFGR0_SIVIE
	.comm	_ENETC_PVCLCTR,4,2              ; @ENETC_PVCLCTR
	.comm	_ENETC_PSIVLANFMR,4,2           ; @ENETC_PSIVLANFMR
	.comm	_ENETC_PSIVLANFMR_VS,4,2        ; @ENETC_PSIVLANFMR_VS
	.no_dead_strip	_enetc_port_si_configure
.subsections_via_symbols
