	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_update_vport_rx_mode
_esw_update_vport_rx_mode:              ## @esw_update_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -24(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	movl	(%rdi), %edi
	movl	8(%rsi), %esi
	leaq	-28(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	leaq	-24(%rbp), %r8
	callq	_mlx5_query_nic_vport_promisc
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_esw_debug
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	-24(%rbp), %edx
	cmpl	$0, -20(%rbp)
	setne	%al
	jmp	LBB0_5
LBB0_4:
	movl	$0, -28(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	xorl	%eax, %eax
	xorl	%edx, %edx
LBB0_5:
	testl	%edx, %edx
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_esw_apply_vport_rx_mode
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vport[%d] context update rx mode promisc_all=%d, all_multi=%d\n"

	.no_dead_strip	_esw_update_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_update_vport_rx_mode
_esw_update_vport_rx_mode:              ; @esw_update_vport_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	w0, [x0]
	ldr	w1, [x1, #8]
	add	x2, sp, #8
	add	x3, sp, #4
	add	x4, sp, #12
	bl	_mlx5_query_nic_vport_promisc
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x20]
	ldr	w2, [x19, #8]
	ldr	w3, [sp, #12]
	ldr	w4, [sp, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_esw_debug
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w2, [sp, #12]
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_5
LBB0_4:
	mov	w8, #0
	mov	w2, #0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
LBB0_5:
	cmp	w2, #0
	cset	w9, ne
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_esw_apply_vport_rx_mode
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vport[%d] context update rx mode promisc_all=%d, all_multi=%d\n"

	.no_dead_strip	_esw_update_vport_rx_mode
.subsections_via_symbols
