	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_vport_change_handle_locked
_esw_vport_change_handle_locked:        ## @esw_vport_change_handle_locked
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r14
	movq	(%r14), %r15
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_mlx5_query_nic_vport_mac_address
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_esw_debug
	movl	(%rbx), %eax
	movq	_MLX5_VPORT_UC_ADDR_CHANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MLX5_NVPRT_LIST_TYPE_UC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_update_vport_addr_list
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_apply_vport_addr_list
	movl	(%rbx), %eax
LBB0_2:
	movq	_MLX5_VPORT_MC_ADDR_CHANGE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_MLX5_NVPRT_LIST_TYPE_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_update_vport_addr_list
	movl	(%rbx), %eax
LBB0_4:
	movq	_MLX5_VPORT_PROMISC_CHANGE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_update_vport_rx_mode
	movl	16(%rbx), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_update_vport_mc_promisc
LBB0_7:
	movl	(%r12), %eax
	orl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	_MLX5_NVPRT_LIST_TYPE_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_esw_apply_vport_addr_list
LBB0_9:
	movslq	(%r15), %rdi
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_esw_debug
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_arm_vport_context_events_cmd
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vport[%d] Context Changed: perm mac: %pM\n"

	.comm	_MLX5_VPORT_UC_ADDR_CHANGE,4,2  ## @MLX5_VPORT_UC_ADDR_CHANGE
	.comm	_MLX5_NVPRT_LIST_TYPE_UC,4,2    ## @MLX5_NVPRT_LIST_TYPE_UC
	.comm	_MLX5_VPORT_MC_ADDR_CHANGE,4,2  ## @MLX5_VPORT_MC_ADDR_CHANGE
	.comm	_MLX5_NVPRT_LIST_TYPE_MC,4,2    ## @MLX5_NVPRT_LIST_TYPE_MC
	.comm	_MLX5_VPORT_PROMISC_CHANGE,4,2  ## @MLX5_VPORT_PROMISC_CHANGE
L_.str.1:                               ## @.str.1
	.asciz	"vport[%d] Context Changed: Done\n"

	.no_dead_strip	_esw_vport_change_handle_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_vport_change_handle_locked
_esw_vport_change_handle_locked:        ; @esw_vport_change_handle_locked
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0, #24]
	ldr	x21, [x20]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w1, [x0, #4]
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	bl	_mlx5_query_nic_vport_mac_address
	ldr	w2, [x19, #4]
	str	x22, [sp, #-16]!
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_esw_debug
	add	sp, sp, #16
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _MLX5_VPORT_UC_ADDR_CHANGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLX5_VPORT_UC_ADDR_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x22, _MLX5_NVPRT_LIST_TYPE_UC@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MLX5_NVPRT_LIST_TYPE_UC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_esw_update_vport_addr_list
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_esw_apply_vport_addr_list
	ldr	w8, [x19]
LBB0_2:
Lloh15:
	adrp	x23, _MLX5_VPORT_MC_ADDR_CHANGE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MLX5_VPORT_MC_ADDR_CHANGE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh17:
	adrp	x22, _MLX5_NVPRT_LIST_TYPE_MC@GOTPAGE
Lloh18:
	ldr	x22, [x22, _MLX5_NVPRT_LIST_TYPE_MC@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_esw_update_vport_addr_list
	ldr	w8, [x19]
LBB0_4:
Lloh19:
	adrp	x24, _MLX5_VPORT_PROMISC_CHANGE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _MLX5_VPORT_PROMISC_CHANGE@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_esw_update_vport_rx_mode
	ldr	w0, [x19, #16]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_esw_update_vport_mc_promisc
LBB0_7:
	ldr	w8, [x19]
	ldr	w9, [x24]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_esw_apply_vport_addr_list
LBB0_9:
	ldrsw	x0, [x21]
	ldr	w2, [x19, #4]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_esw_debug
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldp	w2, w1, [x19]
	mov	x0, x20
	bl	_arm_vport_context_events_cmd
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vport[%d] Context Changed: perm mac: %pM\n"

	.comm	_MLX5_VPORT_UC_ADDR_CHANGE,4,2  ; @MLX5_VPORT_UC_ADDR_CHANGE
	.comm	_MLX5_NVPRT_LIST_TYPE_UC,4,2    ; @MLX5_NVPRT_LIST_TYPE_UC
	.comm	_MLX5_VPORT_MC_ADDR_CHANGE,4,2  ; @MLX5_VPORT_MC_ADDR_CHANGE
	.comm	_MLX5_NVPRT_LIST_TYPE_MC,4,2    ; @MLX5_NVPRT_LIST_TYPE_MC
	.comm	_MLX5_VPORT_PROMISC_CHANGE,4,2  ; @MLX5_VPORT_PROMISC_CHANGE
l_.str.1:                               ; @.str.1
	.asciz	"vport[%d] Context Changed: Done\n"

	.no_dead_strip	_esw_vport_change_handle_locked
.subsections_via_symbols
