	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_vport_ingress_config
_esw_vport_ingress_config:              ## @esw_vport_ingress_config
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	24(%rsi), %r12
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	callq	_esw_vport_cleanup_ingress_rules
	cmpq	$0, 64(%r13)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 56(%r13)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 48(%r13)
	je	LBB0_17
LBB0_3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_esw_vport_enable_ingress_acl
	movl	(%r14), %edi
	movl	32(%r13), %ecx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	jmp	LBB0_24
LBB0_5:
	movq	56(%r13), %r8
	movq	64(%r13), %rax
	leaq	L_.str.1(%rip), %rsi
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_esw_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kvzalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	cmpq	$0, 64(%r13)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 56(%r13)
	je	LBB0_9
LBB0_8:
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	movq	_outer_headers@GOTPCREL(%rip), %rax
	movl	8(%rax), %edx
	callq	_MLX5_SET_TO_ONES
LBB0_9:
	cmpq	$0, 48(%r13)
	je	LBB0_11
## %bb.10:
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	movq	%r12, %rbx
	movq	_outer_headers@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_MLX5_SET_TO_ONES
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	movl	4(%r12), %edx
	callq	_MLX5_SET_TO_ONES
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %r12
	callq	_MLX5_ADDR_OF
	movl	40(%r13), %esi
	movq	%rax, %rdi
	callq	_ether_addr_copy
LBB0_11:
	movq	_MLX5_MATCH_OUTER_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	8(%r13), %edi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mlx5_add_flow_rules
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	16(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	32(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	callq	_esw_warn
	movq	$0, 16(%r13)
	testl	%ebx, %ebx
	jne	LBB0_14
	jmp	LBB0_22
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_14
	jmp	LBB0_22
LBB0_15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_MLX5_FLOW_CONTEXT_ACTION_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_18
## %bb.16:
	movq	_MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -48(%rbp)
	movq	_MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	%r12, %rdi
	callq	_mlx5_fc_id
	movl	%eax, -64(%rbp)
	movl	$1, %ebx
	leaq	-64(%rbp), %rcx
	jmp	LBB0_19
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_esw_vport_disable_ingress_acl
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_18:
	xorl	%ecx, %ecx
LBB0_19:
	movl	8(%r13), %edi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	movl	%ebx, %r8d
	callq	_mlx5_add_flow_rules
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	32(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %ecx
	callq	_esw_warn
	movq	$0, (%r13)
	testl	%ebx, %ebx
	je	LBB0_22
LBB0_14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_esw_vport_cleanup_ingress_rules
	jmp	LBB0_23
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%r15, %rdi
	callq	_kvfree
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable ingress acl (%d) on vport[%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"vport[%d] configure ingress rules, vlan(%d) qos(%d)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fte_match_param,4,2            ## @fte_match_param
	.comm	_outer_headers,12,2             ## @outer_headers
	.comm	_MLX5_MATCH_OUTER_HEADERS,4,2   ## @MLX5_MATCH_OUTER_HEADERS
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_ALLOW
L_.str.2:                               ## @.str.2
	.asciz	"vport[%d] configure ingress allow rule, err(%d)\n"

	.comm	_MLX5_FLOW_CONTEXT_ACTION_DROP,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_DROP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_MLX5_FLOW_DESTINATION_TYPE_COUNTER,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_COUNTER
L_.str.3:                               ## @.str.3
	.asciz	"vport[%d] configure ingress drop rule, err(%d)\n"

	.no_dead_strip	_esw_vport_ingress_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_vport_ingress_config
_esw_vport_ingress_config:              ; @esw_vport_ingress_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #24]
	str	wzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	bl	_esw_vport_cleanup_ingress_rules
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_16
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_enable_ingress_acl
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w3, [x19, #32]
	cbz	w23, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_mlx5_core_warn
	b	LBB0_22
LBB0_5:
	ldp	x4, x8, [x19, #56]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x3
	mov	x3, x8
	bl	_esw_debug
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kvzalloc
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.6:
	ldr	x8, [x19, #64]
Lloh7:
	adrp	x24, _fte_match_param@GOTPAGE
Lloh8:
	ldr	x24, [x24, _fte_match_param@GOTPAGEOFF]
Lloh9:
	adrp	x23, _outer_headers@GOTPAGE
Lloh10:
	ldr	x23, [x23, _outer_headers@GOTPAGEOFF]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_9
LBB0_8:
	ldr	w0, [x24]
	ldr	w1, [x21, #8]
	ldr	w2, [x23, #8]
	bl	_MLX5_SET_TO_ONES
LBB0_9:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x24]
	ldr	w1, [x21, #8]
	ldr	w2, [x23]
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x24]
	ldr	w1, [x21, #8]
	ldr	w2, [x23, #4]
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x24]
	ldr	w1, [x21, #4]
	ldr	w2, [x23]
	bl	_MLX5_ADDR_OF
	ldr	w1, [x19, #40]
	bl	_ether_addr_copy
LBB0_11:
Lloh11:
	adrp	x8, _MLX5_MATCH_OUTER_HEADERS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX5_MATCH_OUTER_HEADERS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh14:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x19, #8]
	add	x2, sp, #8
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_mlx5_add_flow_rules
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w2, [x19, #32]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x23
	bl	_esw_warn
	str	xzr, [x19, #16]
	cbnz	w23, LBB0_20
	b	LBB0_21
LBB0_13:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
	cbnz	w23, LBB0_20
	b	LBB0_21
LBB0_14:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh22:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_DROP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_DROP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x22, LBB0_17
; %bb.15:
Lloh25:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
Lloh28:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_COUNTER@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	mov	x0, x22
	bl	_mlx5_fc_id
	str	w0, [sp, #16]
	mov	w4, #1
	add	x3, sp, #16
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_disable_ingress_acl
	mov	w23, #0
	b	LBB0_22
LBB0_17:
	mov	x3, #0
	mov	w4, #0
LBB0_18:
	ldr	w0, [x19, #8]
	add	x2, sp, #8
	mov	x1, x21
	bl	_mlx5_add_flow_rules
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.19:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w2, [x19, #32]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x23
	bl	_esw_warn
	str	xzr, [x19]
	cbz	w23, LBB0_21
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_cleanup_ingress_rules
LBB0_21:
	mov	x0, x21
	bl	_kvfree
LBB0_22:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_23:
	mov	w23, #0
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable ingress acl (%d) on vport[%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"vport[%d] configure ingress rules, vlan(%d) qos(%d)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fte_match_param,4,2            ; @fte_match_param
	.comm	_outer_headers,12,2             ; @outer_headers
	.comm	_MLX5_MATCH_OUTER_HEADERS,4,2   ; @MLX5_MATCH_OUTER_HEADERS
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_ALLOW
l_.str.2:                               ; @.str.2
	.asciz	"vport[%d] configure ingress allow rule, err(%d)\n"

	.comm	_MLX5_FLOW_CONTEXT_ACTION_DROP,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_DROP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_MLX5_FLOW_DESTINATION_TYPE_COUNTER,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_COUNTER
l_.str.3:                               ; @.str.3
	.asciz	"vport[%d] configure ingress drop rule, err(%d)\n"

	.no_dead_strip	_esw_vport_ingress_config
.subsections_via_symbols
