	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_reg_cwtp_pack
_mlxsw_reg_cwtp_pack:                   ## @mlxsw_reg_cwtp_pack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_cwtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_MLXSW_REG_ZERO
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_reg_cwtp_local_port_set
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mlxsw_reg_cwtp_traffic_class_set
	movq	_MLXSW_REG_CWTP_MAX_PROFILE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_3
## %bb.1:
	movl	$-1, %ebx
	movq	_MLXSW_REG_CWTP_MIN_VALUE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_reg_cwtp_profile_min_set
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_reg_cwtp_profile_max_set
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cwtp,4,2                       ## @cwtp
	.comm	_MLXSW_REG_CWTP_MAX_PROFILE,4,2 ## @MLXSW_REG_CWTP_MAX_PROFILE
	.comm	_MLXSW_REG_CWTP_MIN_VALUE,4,2   ## @MLXSW_REG_CWTP_MIN_VALUE
	.no_dead_strip	_mlxsw_reg_cwtp_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_reg_cwtp_pack
_mlxsw_reg_cwtp_pack:                   ; @mlxsw_reg_cwtp_pack
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cwtp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cwtp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_MLXSW_REG_ZERO
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_reg_cwtp_local_port_set
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_reg_cwtp_traffic_class_set
Lloh3:
	adrp	x21, _MLXSW_REG_CWTP_MAX_PROFILE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MLXSW_REG_CWTP_MAX_PROFILE@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	w20, #-1
Lloh5:
	adrp	x22, _MLXSW_REG_CWTP_MIN_VALUE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MLXSW_REG_CWTP_MIN_VALUE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_reg_cwtp_profile_min_set
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_reg_cwtp_profile_max_set
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cwtp,4,2                       ; @cwtp
	.comm	_MLXSW_REG_CWTP_MAX_PROFILE,4,2 ; @MLXSW_REG_CWTP_MAX_PROFILE
	.comm	_MLXSW_REG_CWTP_MIN_VALUE,4,2   ; @MLXSW_REG_CWTP_MIN_VALUE
	.no_dead_strip	_mlxsw_reg_cwtp_pack
.subsections_via_symbols
