	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_resource_size_params_prepare
_mlxsw_sp_resource_size_params_prepare: ## @mlxsw_sp_resource_size_params_prepare
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_KVD_SINGLE_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %r13
	movq	_KVD_DOUBLE_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %r12
	movq	_KVD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %r14
	movq	_MLXSW_SP_KVD_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DEVLINK_RESOURCE_UNIT_ENTRY@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_devlink_resource_size_params_init
	movq	%r14, %rbx
	subq	%r13, %rbx
	movq	%rbx, %rdx
	subq	%r12, %rdx
	movq	_MLXSW_SP_KVD_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_devlink_resource_size_params_init
	movq	_MLXSW_SP_KVD_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_devlink_resource_size_params_init
	subq	%r12, %r14
	movq	_MLXSW_SP_KVD_GRANULARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devlink_resource_size_params_init ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KVD_SINGLE_MIN_SIZE,4,2        ## @KVD_SINGLE_MIN_SIZE
	.comm	_KVD_DOUBLE_MIN_SIZE,4,2        ## @KVD_DOUBLE_MIN_SIZE
	.comm	_KVD_SIZE,4,2                   ## @KVD_SIZE
	.comm	_MLXSW_SP_KVD_GRANULARITY,4,2   ## @MLXSW_SP_KVD_GRANULARITY
	.comm	_DEVLINK_RESOURCE_UNIT_ENTRY,4,2 ## @DEVLINK_RESOURCE_UNIT_ENTRY
	.no_dead_strip	_mlxsw_sp_resource_size_params_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_resource_size_params_prepare
_mlxsw_sp_resource_size_params_prepare: ; @mlxsw_sp_resource_size_params_prepare
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _KVD_SINGLE_MIN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVD_SINGLE_MIN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	mov	x24, x0
Lloh3:
	adrp	x8, _KVD_DOUBLE_MIN_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KVD_DOUBLE_MIN_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_MLXSW_CORE_RES_GET
	mov	x25, x0
Lloh6:
	adrp	x8, _KVD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KVD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_MLXSW_CORE_RES_GET
	mov	x23, x0
Lloh9:
	adrp	x26, _MLXSW_SP_KVD_GRANULARITY@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MLXSW_SP_KVD_GRANULARITY@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh11:
	adrp	x27, _DEVLINK_RESOURCE_UNIT_ENTRY@GOTPAGE
Lloh12:
	ldr	x27, [x27, _DEVLINK_RESOURCE_UNIT_ENTRY@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x23
	bl	_devlink_resource_size_params_init
	sub	x22, x23, x24
	sub	x2, x22, x25
	ldr	w3, [x26]
	ldr	w4, [x27]
	mov	x0, x21
	mov	x1, #0
	bl	_devlink_resource_size_params_init
	ldr	w3, [x26]
	ldr	w4, [x27]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x22
	bl	_devlink_resource_size_params_init
	sub	x2, x23, x25
	ldr	w3, [x26]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x1, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_devlink_resource_size_params_init
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KVD_SINGLE_MIN_SIZE,4,2        ; @KVD_SINGLE_MIN_SIZE
	.comm	_KVD_DOUBLE_MIN_SIZE,4,2        ; @KVD_DOUBLE_MIN_SIZE
	.comm	_KVD_SIZE,4,2                   ; @KVD_SIZE
	.comm	_MLXSW_SP_KVD_GRANULARITY,4,2   ; @MLXSW_SP_KVD_GRANULARITY
	.comm	_DEVLINK_RESOURCE_UNIT_ENTRY,4,2 ; @DEVLINK_RESOURCE_UNIT_ENTRY
	.no_dead_strip	_mlxsw_sp_resource_size_params_prepare
.subsections_via_symbols
