	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_apply_vport_conf
_esw_apply_vport_conf:                  ## @esw_apply_vport_conf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	cmpq	%rbx, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	movq	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %r8d
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_mlx5_modify_vport_admin_state
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movl	16(%r15), %edi
	movl	20(%r14), %edx
	movq	%rbx, %rsi
	callq	_mlx5_modify_nic_vport_mac_address
	movl	16(%r15), %edi
	movl	16(%r14), %edx
	movq	%rbx, %rsi
	callq	_mlx5_modify_nic_vport_node_guid
LBB0_3:
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movq	_SET_VLAN_STRIP@GOTPCREL(%rip), %rax
	movq	_SET_VLAN_INSERT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	xorl	%eax, %eax
	movl	%edx, %esi
	orl	%ecx, %esi
	cmovel	%eax, %ecx
	cmovel	%eax, %r8d
	movl	16(%r15), %edi
	movq	%rbx, %rsi
	callq	_modify_esw_vport_cvlan
	movq	8(%r15), %rax
	movq	_MLX5_ESWITCH_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_esw_vport_ingress_config
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_esw_vport_egress_config        ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT,4,2 ## @MLX5_VPORT_STATE_OP_MOD_ESW_VPORT
	.comm	_SET_VLAN_STRIP,4,2             ## @SET_VLAN_STRIP
	.comm	_SET_VLAN_INSERT,4,2            ## @SET_VLAN_INSERT
	.comm	_MLX5_ESWITCH_LEGACY,8,3        ## @MLX5_ESWITCH_LEGACY
	.no_dead_strip	_esw_apply_vport_conf
.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_conf
_esw_apply_vport_conf:                  ; @esw_apply_vport_conf
	.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
	ldr	x21, [x1]
	ldr	x8, [x0]
	cmp	x8, x21
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_VPORT_STATE_OP_MOD_ESW_VPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x19, #24]
	mov	x2, x21
	mov	w3, #1
	bl	_mlx5_modify_vport_admin_state
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w0, [x20, #16]
	ldr	w2, [x19, #20]
	mov	x1, x21
	bl	_mlx5_modify_nic_vport_mac_address
	ldr	w0, [x20, #16]
	ldr	w2, [x19, #16]
	mov	x1, x21
	bl	_mlx5_modify_nic_vport_node_guid
LBB0_3:
	ldp	w8, w2, [x19, #8]
	orr	w9, w2, w8
Lloh3:
	adrp	x10, _SET_VLAN_STRIP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SET_VLAN_STRIP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SET_VLAN_INSERT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SET_VLAN_INSERT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	w9, #0
	csel	w3, wzr, w8, eq
	csel	w4, wzr, w10, eq
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_modify_esw_vport_cvlan
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _MLX5_ESWITCH_LEGACY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX5_ESWITCH_LEGACY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_ingress_config
	mov	x0, x20
	mov	x1, x19
	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
	b	_esw_vport_egress_config
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_VPORT_STATE_OP_MOD_ESW_VPORT,4,2 ; @MLX5_VPORT_STATE_OP_MOD_ESW_VPORT
	.comm	_SET_VLAN_STRIP,4,2             ; @SET_VLAN_STRIP
	.comm	_SET_VLAN_INSERT,4,2            ; @SET_VLAN_INSERT
	.comm	_MLX5_ESWITCH_LEGACY,8,3        ; @MLX5_ESWITCH_LEGACY
	.no_dead_strip	_esw_apply_vport_conf
.subsections_via_symbols
