	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_eswitch_termtbl_create
_mlx5_eswitch_termtbl_create:           ## @mlx5_eswitch_termtbl_create
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MLX5_FLOW_NAMESPACE_FDB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mlx5_get_flow_namespace
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_FDB_SLOW_PATH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MLX5_FLOW_TABLE_TERMINATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mlx5_create_auto_grouped_flow_table
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_esw_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	movl	(%r14), %edi
	leaq	8(%r14), %rcx
	leaq	_mlx5_eswitch_termtbl_create.spec(%rip), %rsi
	movq	%r12, %rdx
	movl	$1, %r8d
	callq	_mlx5_add_flow_rules
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_esw_warn
	movl	(%r14), %edi
	callq	_mlx5_destroy_flow_table
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r15, %rdi
	callq	_esw_warn
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @mlx5_eswitch_termtbl_create.spec
_mlx5_eswitch_termtbl_create.spec:
	.space	4

	.comm	_MLX5_FLOW_NAMESPACE_FDB,4,2    ## @MLX5_FLOW_NAMESPACE_FDB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get FDB flow namespace\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_FDB_SLOW_PATH,4,2              ## @FDB_SLOW_PATH
	.comm	_MLX5_FLOW_TABLE_TERMINATION,4,2 ## @MLX5_FLOW_TABLE_TERMINATION
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create termination table\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create termination table rule\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to destroy termination table\n"

	.no_dead_strip	_mlx5_eswitch_termtbl_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_eswitch_termtbl_create
_mlx5_eswitch_termtbl_create:           ; @mlx5_eswitch_termtbl_create
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX5_FLOW_NAMESPACE_FDB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FLOW_NAMESPACE_FDB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mlx5_get_flow_namespace
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _FDB_SLOW_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDB_SLOW_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MLX5_FLOW_TABLE_TERMINATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_FLOW_TABLE_TERMINATION@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	bl	_mlx5_create_auto_grouped_flow_table
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	add	x3, x20, #8
Lloh13:
	adrp	x1, _mlx5_eswitch_termtbl_create.spec@PAGE
Lloh14:
	add	x1, x1, _mlx5_eswitch_termtbl_create.spec@PAGEOFF
	mov	x2, x21
	mov	w4, #1
	bl	_mlx5_add_flow_rules
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_esw_warn
	ldr	w0, [x20]
	bl	_mlx5_destroy_flow_table
	cbz	w0, LBB0_8
; %bb.6:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_esw_warn
LBB0_8:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mlx5_eswitch_termtbl_create.spec
_mlx5_eswitch_termtbl_create.spec:
	.space	4

	.comm	_MLX5_FLOW_NAMESPACE_FDB,4,2    ; @MLX5_FLOW_NAMESPACE_FDB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get FDB flow namespace\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_FDB_SLOW_PATH,4,2              ; @FDB_SLOW_PATH
	.comm	_MLX5_FLOW_TABLE_TERMINATION,4,2 ; @MLX5_FLOW_TABLE_TERMINATION
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create termination table\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create termination table rule\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to destroy termination table\n"

	.no_dead_strip	_mlx5_eswitch_termtbl_create
.subsections_via_symbols
