	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_flow_namespace_set_mode   ## -- Begin function mlx5_flow_namespace_set_mode
	.p2align	4, 0x90
_mlx5_flow_namespace_set_mode:          ## @mlx5_flow_namespace_set_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_find_root
	movq	%rax, %r15
	addq	$28, %rax
	cmpq	%rbx, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movq	_FS_FT_FDB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	cmpl	%r14d, 8(%r15)
	je	LBB0_13
## %bb.6:
	movq	_MLX5_FLOW_STEERING_MODE_SMFS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_mlx5_fs_cmd_get_dr_cmds
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_mlx5_fs_cmd_get_fw_cmds
LBB0_9:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%r15, %rdi
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r13d
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_err
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	%r12, 16(%r15)
	movl	%r14d, 8(%r15)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FS_FT_FDB,8,3                  ## @FS_FT_FDB
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLX5_FLOW_STEERING_MODE_SMFS,4,2 ## @MLX5_FLOW_STEERING_MODE_SMFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create flow namespace (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_flow_namespace_set_mode   ; -- Begin function mlx5_flow_namespace_set_mode
	.p2align	2
_mlx5_flow_namespace_set_mode:          ; @mlx5_flow_namespace_set_mode
	.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	x21, x0
	bl	_find_root
	add	x8, x0, #28
	cmp	x8, x21
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _FS_FT_FDB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FS_FT_FDB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x20, #8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #0
	b	LBB0_12
LBB0_5:
Lloh5:
	adrp	x8, _MLX5_FLOW_STEERING_MODE_SMFS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5_FLOW_STEERING_MODE_SMFS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.6:
	bl	_mlx5_fs_cmd_get_dr_cmds
	mov	x22, x0
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x8, [x22]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.8:
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_mlx5_core_err
	b	LBB0_12
LBB0_9:
	bl	_mlx5_fs_cmd_get_fw_cmds
	mov	x22, x0
	cbnz	x0, LBB0_7
LBB0_10:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	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_13:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	str	x22, [x20, #16]
	str	w19, [x20, #8]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FS_FT_FDB,8,3                  ; @FS_FT_FDB
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLX5_FLOW_STEERING_MODE_SMFS,4,2 ; @MLX5_FLOW_STEERING_MODE_SMFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create flow namespace (%d)\n"

.subsections_via_symbols
