	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_ets_init
_mlxsw_sp_port_ets_init:                ## @mlxsw_sp_port_ets_init
	.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
	movq	_MLXSW_REG_QEEC_HIERARCY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlxsw_sp_port_ets_set
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	movq	_MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlxsw_sp_port_ets_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_MLXSW_REG_QEEC_HIERARCY_TC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mlxsw_sp_port_ets_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %esi
	leal	8(%rbx), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	movl	$1, %r8d
	movl	$100, %r9d
	callq	_mlxsw_sp_port_ets_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_8
LBB0_11:
	movq	_MLXSW_REG_QEEC_HIERARCY_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLXSW_REG_QEEC_MAS_DIS@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_port_ets_maxrate_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.12:
	cmpl	$0, (%r15)
	movl	$0, %eax
	jle	LBB0_1
## %bb.13:
	xorl	%ebx, %ebx
	movq	_MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_port_ets_maxrate_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_14
## %bb.16:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.17:
	xorl	%ebx, %ebx
	movq	_MLXSW_REG_QEEC_HIERARCY_TC@GOTPCREL(%rip), %r13
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_mlxsw_sp_port_ets_maxrate_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %esi
	movl	(%r12), %r8d
	leal	8(%rbx), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mlxsw_sp_port_ets_maxrate_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r15), %eax
	incl	%ebx
	cmpl	%eax, %ebx
	jl	LBB0_18
## %bb.21:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.22:
	xorl	%ebx, %ebx
	movq	_MLXSW_REG_QEEC_MIS_MIN@GOTPCREL(%rip), %r12
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	leal	8(%rbx), %edx
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mlxsw_sp_port_min_bw_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_23
## %bb.25:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.26:
	xorl	%ebx, %ebx
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_mlxsw_sp_port_prio_tc_set
	testl	%eax, %eax
	jne	LBB0_1
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	cmpl	(%r15), %ebx
	jl	LBB0_27
	jmp	LBB0_1
LBB0_29:
	xorl	%eax, %eax
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_QEEC_HIERARCY_GROUP,4,2 ## @MLXSW_REG_QEEC_HIERARCY_GROUP
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ## @IEEE_8021QAZ_MAX_TCS
	.comm	_MLXSW_REG_QEEC_HIERARCY_SUBGROUP,4,2 ## @MLXSW_REG_QEEC_HIERARCY_SUBGROUP
	.comm	_MLXSW_REG_QEEC_HIERARCY_TC,4,2 ## @MLXSW_REG_QEEC_HIERARCY_TC
	.comm	_MLXSW_REG_QEEC_HIERARCY_PORT,4,2 ## @MLXSW_REG_QEEC_HIERARCY_PORT
	.comm	_MLXSW_REG_QEEC_MAS_DIS,4,2     ## @MLXSW_REG_QEEC_MAS_DIS
	.comm	_MLXSW_REG_QEEC_MIS_MIN,4,2     ## @MLXSW_REG_QEEC_MIS_MIN
	.no_dead_strip	_mlxsw_sp_port_ets_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_ets_init
_mlxsw_sp_port_ets_init:                ; @mlxsw_sp_port_ets_init
	.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
Lloh0:
	adrp	x8, _MLXSW_REG_QEEC_HIERARCY_GROUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_REG_QEEC_HIERARCY_GROUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_mlxsw_sp_port_ets_set
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh3:
	adrp	x21, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w20, #0
Lloh5:
	adrp	x22, _MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_mlxsw_sp_port_ets_set
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_4
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	w20, #0
Lloh7:
	adrp	x22, _MLXSW_REG_QEEC_HIERARCY_TC@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MLXSW_REG_QEEC_HIERARCY_TC@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_mlxsw_sp_port_ets_set
	cbnz	w0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x22]
	add	w2, w20, #8
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	mov	w5, #100
	bl	_mlxsw_sp_port_ets_set
	cbnz	w0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	add	w20, w20, #1
	cmp	w20, w8
	b.lt	LBB0_8
LBB0_11:
Lloh9:
	adrp	x8, _MLXSW_REG_QEEC_HIERARCY_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXSW_REG_QEEC_HIERARCY_PORT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x22, _MLXSW_REG_QEEC_MAS_DIS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MLXSW_REG_QEEC_MAS_DIS@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_mlxsw_sp_port_ets_maxrate_set
	cbnz	w0, LBB0_1
; %bb.12:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.13:
	mov	w20, #0
Lloh14:
	adrp	x23, _MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MLXSW_REG_QEEC_HIERARCY_SUBGROUP@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_mlxsw_sp_port_ets_maxrate_set
	cbnz	w0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_14
; %bb.16:
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.17:
	mov	w20, #0
Lloh16:
	adrp	x23, _MLXSW_REG_QEEC_HIERARCY_TC@GOTPAGE
Lloh17:
	ldr	x23, [x23, _MLXSW_REG_QEEC_HIERARCY_TC@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	bl	_mlxsw_sp_port_ets_maxrate_set
	cbnz	w0, LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w1, [x23]
	ldr	w4, [x22]
	add	w2, w20, #8
	mov	x0, x19
	mov	x3, x20
	bl	_mlxsw_sp_port_ets_maxrate_set
	cbnz	w0, LBB0_1
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x21]
	add	w20, w20, #1
	cmp	w20, w8
	b.lt	LBB0_18
; %bb.21:
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.22:
	mov	w20, #0
Lloh18:
	adrp	x22, _MLXSW_REG_QEEC_MIS_MIN@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MLXSW_REG_QEEC_MIS_MIN@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	w2, w20, #8
	ldr	w4, [x22]
	mov	x0, x19
	mov	x3, x20
	bl	_mlxsw_sp_port_min_bw_set
	cbnz	w0, LBB0_1
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_23
; %bb.25:
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.26:
	mov	w20, #0
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_mlxsw_sp_port_prio_tc_set
	cbnz	w0, LBB0_1
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_27
	b	LBB0_1
LBB0_29:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_QEEC_HIERARCY_GROUP,4,2 ; @MLXSW_REG_QEEC_HIERARCY_GROUP
	.comm	_IEEE_8021QAZ_MAX_TCS,4,2       ; @IEEE_8021QAZ_MAX_TCS
	.comm	_MLXSW_REG_QEEC_HIERARCY_SUBGROUP,4,2 ; @MLXSW_REG_QEEC_HIERARCY_SUBGROUP
	.comm	_MLXSW_REG_QEEC_HIERARCY_TC,4,2 ; @MLXSW_REG_QEEC_HIERARCY_TC
	.comm	_MLXSW_REG_QEEC_HIERARCY_PORT,4,2 ; @MLXSW_REG_QEEC_HIERARCY_PORT
	.comm	_MLXSW_REG_QEEC_MAS_DIS,4,2     ; @MLXSW_REG_QEEC_MAS_DIS
	.comm	_MLXSW_REG_QEEC_MIS_MIN,4,2     ; @MLXSW_REG_QEEC_MIS_MIN
	.no_dead_strip	_mlxsw_sp_port_ets_init
.subsections_via_symbols
