	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_devlink_fs_mode_validate
_mlx5_devlink_fs_mode_validate:         ## @mlx5_devlink_fs_mode_validate
	.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	%rcx, %r14
	movq	%rdx, %rbx
	callq	_devlink_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %edi
	callq	_mlx5_eswitch_mode
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mlx5_fs_dr_is_supported
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_MLX5_ESWITCH_OFFLOADS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmfs"

L_.str.1:                               ## @.str.1
	.asciz	"smfs"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"Software managed steering is not supported by current device"

	.comm	_MLX5_ESWITCH_OFFLOADS,8,3      ## @MLX5_ESWITCH_OFFLOADS
L_.str.3:                               ## @.str.3
	.asciz	"Software managed steering is not supported when eswitch offloads enabled."

L_.str.4:                               ## @.str.4
	.asciz	"Bad parameter: supported values are [\"dmfs\", \"smfs\"]"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_devlink_fs_mode_validate
_mlx5_devlink_fs_mode_validate:         ; @mlx5_devlink_fs_mode_validate
	.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, x3
	mov	x21, x2
	bl	_devlink_priv
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_4:
	ldr	w0, [x20]
	bl	_mlx5_eswitch_mode
	mov	x21, x0
	mov	x0, x20
	bl	_mlx5_fs_dr_is_supported
	cbz	w0, LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _MLX5_ESWITCH_OFFLOADS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_ESWITCH_OFFLOADS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	mov	w20, #0
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmfs"

l_.str.1:                               ; @.str.1
	.asciz	"smfs"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"Software managed steering is not supported by current device"

	.comm	_MLX5_ESWITCH_OFFLOADS,8,3      ; @MLX5_ESWITCH_OFFLOADS
l_.str.3:                               ; @.str.3
	.asciz	"Software managed steering is not supported when eswitch offloads enabled."

l_.str.4:                               ; @.str.4
	.asciz	"Bad parameter: supported values are [\"dmfs\", \"smfs\"]"

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