	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_apply_vport_rx_mode
_esw_apply_vport_rx_mode:               ## @esw_apply_vport_rx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rsi), %rdi
	callq	_IS_ERR_OR_NULL
	cmpl	%ebx, %eax
	jne	LBB0_10
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_esw_fdb_set_vport_allmulti_rule
	movq	%rax, 16(%r12)
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.3:
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_esw_fdb_set_vport_allmulti_rule
	movq	%rax, 8(%r14)
LBB0_4:
	incq	(%r14)
LBB0_10:
	movq	(%r12), %rdi
	callq	_IS_ERR_OR_NULL
	cmpl	%r15d, %eax
	jne	LBB0_16
## %bb.11:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_esw_fdb_set_vport_promisc_rule
	jmp	LBB0_15
LBB0_5:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	callq	_mlx5_del_flow_rules
	movq	$0, 16(%r12)
	movq	(%r14), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r14)
	cmpq	$1, %rax
	jg	LBB0_10
## %bb.7:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_mlx5_del_flow_rules
LBB0_9:
	movq	$0, 8(%r14)
	jmp	LBB0_10
LBB0_13:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	callq	_mlx5_del_flow_rules
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, (%r12)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_VPORT_UPLINK,4,2          ## @MLX5_VPORT_UPLINK
	.no_dead_strip	_esw_apply_vport_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_apply_vport_rx_mode
_esw_apply_vport_rx_mode:               ; @esw_apply_vport_rx_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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #16]
	bl	_IS_ERR_OR_NULL
	cmp	w0, w22
	b.ne	LBB0_5
; %bb.1:
	cbz	w22, LBB0_8
; %bb.2:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_esw_fdb_set_vport_allmulti_rule
	str	x0, [x19, #16]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_esw_fdb_set_vport_allmulti_rule
	str	x0, [x20, #8]
LBB0_4:
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_5:
	ldr	x0, [x19]
	bl	_IS_ERR_OR_NULL
	cmp	w0, w21
	b.ne	LBB0_16
; %bb.6:
	cbz	w21, LBB0_13
; %bb.7:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_esw_fdb_set_vport_promisc_rule
	b	LBB0_15
LBB0_8:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.9:
	bl	_mlx5_del_flow_rules
	str	xzr, [x19, #16]
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.gt	LBB0_5
; %bb.10:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_mlx5_del_flow_rules
LBB0_12:
	str	xzr, [x20, #8]
	b	LBB0_5
LBB0_13:
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.14:
	bl	_mlx5_del_flow_rules
	mov	x0, #0
LBB0_15:
	str	x0, [x19]
LBB0_16:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_VPORT_UPLINK,4,2          ; @MLX5_VPORT_UPLINK
	.no_dead_strip	_esw_apply_vport_rx_mode
.subsections_via_symbols
