	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_devlink_param_fw_load_policy_validate
_mlxsw_sp_devlink_param_fw_load_policy_validate: ## @mlxsw_sp_devlink_param_fw_load_policy_validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	%rdx, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH@GOTPCREL(%rip), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,8,3 ## @DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER
	.comm	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,8,3 ## @DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'fw_load_policy' must be 'driver' or 'flash'"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_devlink_param_fw_load_policy_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_devlink_param_fw_load_policy_validate
_mlxsw_sp_devlink_param_fw_load_policy_validate: ; @mlxsw_sp_devlink_param_fw_load_policy_validate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER,8,3 ; @DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER
	.comm	_DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH,8,3 ; @DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'fw_load_policy' must be 'driver' or 'flash'"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_devlink_param_fw_load_policy_validate
.subsections_via_symbols
