	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_kvdl_init
_mlxsw_sp1_kvdl_init:                   ## @mlxsw_sp1_kvdl_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_priv_to_devlink
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp1_kvdl_parts_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MLXSW_SP_RESOURCE_KVD_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mlxsw_sp1_kvdl_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_devlink_resource_occ_get_register
	movq	_MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mlxsw_sp1_kvdl_single_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_devlink_resource_occ_get_register
	movq	_MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mlxsw_sp1_kvdl_chunks_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_devlink_resource_occ_get_register
	movq	_MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mlxsw_sp1_kvdl_large_chunks_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_devlink_resource_occ_get_register
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR,4,2 ## @MLXSW_SP_RESOURCE_KVD_LINEAR
	.comm	_mlxsw_sp1_kvdl_occ_get,4,2     ## @mlxsw_sp1_kvdl_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE,4,2 ## @MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE
	.comm	_mlxsw_sp1_kvdl_single_occ_get,4,2 ## @mlxsw_sp1_kvdl_single_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS,4,2 ## @MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS
	.comm	_mlxsw_sp1_kvdl_chunks_occ_get,4,2 ## @mlxsw_sp1_kvdl_chunks_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS,4,2 ## @MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS
	.comm	_mlxsw_sp1_kvdl_large_chunks_occ_get,4,2 ## @mlxsw_sp1_kvdl_large_chunks_occ_get
	.no_dead_strip	_mlxsw_sp1_kvdl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_kvdl_init
_mlxsw_sp1_kvdl_init:                   ; @mlxsw_sp1_kvdl_init
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_priv_to_devlink
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp1_kvdl_parts_init
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MLXSW_SP_RESOURCE_KVD_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_RESOURCE_KVD_LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _mlxsw_sp1_kvdl_occ_get@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp1_kvdl_occ_get@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_devlink_resource_occ_get_register
Lloh6:
	adrp	x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _mlxsw_sp1_kvdl_single_occ_get@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mlxsw_sp1_kvdl_single_occ_get@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_devlink_resource_occ_get_register
Lloh12:
	adrp	x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _mlxsw_sp1_kvdl_chunks_occ_get@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mlxsw_sp1_kvdl_chunks_occ_get@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_devlink_resource_occ_get_register
Lloh18:
	adrp	x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _mlxsw_sp1_kvdl_large_chunks_occ_get@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mlxsw_sp1_kvdl_large_chunks_occ_get@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_devlink_resource_occ_get_register
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR,4,2 ; @MLXSW_SP_RESOURCE_KVD_LINEAR
	.comm	_mlxsw_sp1_kvdl_occ_get,4,2     ; @mlxsw_sp1_kvdl_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE,4,2 ; @MLXSW_SP_RESOURCE_KVD_LINEAR_SINGLE
	.comm	_mlxsw_sp1_kvdl_single_occ_get,4,2 ; @mlxsw_sp1_kvdl_single_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS,4,2 ; @MLXSW_SP_RESOURCE_KVD_LINEAR_CHUNKS
	.comm	_mlxsw_sp1_kvdl_chunks_occ_get,4,2 ; @mlxsw_sp1_kvdl_chunks_occ_get
	.comm	_MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS,4,2 ; @MLXSW_SP_RESOURCE_KVD_LINEAR_LARGE_CHUNKS
	.comm	_mlxsw_sp1_kvdl_large_chunks_occ_get,4,2 ; @mlxsw_sp1_kvdl_large_chunks_occ_get
	.no_dead_strip	_mlxsw_sp1_kvdl_init
.subsections_via_symbols
