	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_netdevice_port_vlan_event
_mlxsw_sp_netdevice_port_vlan_event:    ## @mlxsw_sp_netdevice_port_vlan_event
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %r13
	leaq	16(%r14), %rdi
	callq	_netdev_notifier_info_to_extack
	xorl	%ecx, %ecx
	cmpq	$129, %rbx
	je	LBB0_13
## %bb.1:
	cmpq	$128, %rbx
	jne	LBB0_32
## %bb.2:
	movq	%rax, %r15
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_22
LBB0_4:
	cmpl	$0, (%r14)
	je	LBB0_31
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_bridge_device_is_offloaded
	testl	%eax, %eax
	je	LBB0_25
LBB0_7:
	movq	%rbx, %rdi
	callq	_netdev_has_any_upper_dev
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_21
## %bb.9:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_bridge_device_is_offloaded
	testl	%eax, %eax
	je	LBB0_21
LBB0_10:
	movq	%rbx, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_31
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_rif_find_by_dev
	testl	%eax, %eax
	movl	$0, %ecx
	jne	LBB0_32
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_27
LBB0_13:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$0, (%r14)
	je	LBB0_20
## %bb.15:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_port_bridge_join      ## TAILCALL
LBB0_16:
	movq	%rbx, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_24
## %bb.17:
	cmpl	$0, (%r14)
	jne	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_rif_macvlan_del
	jmp	LBB0_31
LBB0_20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mlxsw_sp_port_bridge_leave
LBB0_31:
	xorl	%ecx, %ecx
	jmp	LBB0_32
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str(%rip), %rsi
LBB0_23:
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$1, %edi
	callq	_WARN_ON
	movl	%ebx, %ecx
	jmp	LBB0_32
LBB0_25:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_bridge_has_vxlan
	testl	%eax, %eax
	je	LBB0_7
## %bb.26:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_bridge_vxlan_is_valid
	testl	%eax, %eax
	jne	LBB0_7
LBB0_27:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_28:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_32:
	movl	%ecx, %eax
	addq	$8, %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	"Unknown upper device type"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Enslaving a port to a device that already has an upper device is not supported"

L_.str.2:                               ## @.str.2
	.asciz	"macvlan is only supported on top of router interfaces"

	.no_dead_strip	_mlxsw_sp_netdevice_port_vlan_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_netdevice_port_vlan_event
_mlxsw_sp_netdevice_port_vlan_event:    ; @mlxsw_sp_netdevice_port_vlan_event
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x24, x0
	ldr	x21, [x0]
	add	x0, x23, #16
	bl	_netdev_notifier_info_to_extack
	mov	x19, x0
	cmp	x22, #129
	b.eq	LBB0_13
; %bb.1:
	cmp	x22, #128
	b.ne	LBB0_20
; %bb.2:
	ldr	x22, [x23, #8]
	mov	x0, x22
	bl	_netif_is_bridge_master
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_netif_is_macvlan
	cbz	w0, LBB0_23
LBB0_4:
	ldr	w8, [x23]
	cbz	w8, LBB0_20
; %bb.5:
	mov	x0, x22
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_bridge_device_is_offloaded
	cbz	w0, LBB0_26
LBB0_7:
	mov	x0, x22
	bl	_netdev_has_any_upper_dev
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x22
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_22
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_bridge_device_is_offloaded
	cbz	w0, LBB0_22
LBB0_10:
	mov	x0, x22
	bl	_netif_is_macvlan
	cbz	w0, LBB0_20
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	bl	_mlxsw_sp_rif_find_by_dev
	cbnz	w0, LBB0_20
; %bb.12:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_28
LBB0_13:
	ldr	x22, [x23, #8]
	mov	x0, x22
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_16
; %bb.14:
	ldr	w8, [x23]
	cbz	w8, LBB0_19
; %bb.15:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	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
	b	_mlxsw_sp_port_bridge_join
LBB0_16:
	mov	x0, x22
	bl	_netif_is_macvlan
	cbz	w0, LBB0_25
; %bb.17:
	ldr	w8, [x23]
	cbnz	w8, LBB0_20
; %bb.18:
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_rif_macvlan_del
	b	LBB0_20
LBB0_19:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	bl	_mlxsw_sp_port_bridge_leave
LBB0_20:
	mov	w19, #0
LBB0_21:
	mov	x0, x19
	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_22:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_29
LBB0_25:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_21
LBB0_26:
	mov	x0, x22
	bl	_mlxsw_sp_bridge_has_vxlan
	cbz	w0, LBB0_7
; %bb.27:
	mov	x0, x22
	mov	x1, x19
	bl	_mlxsw_sp_bridge_vxlan_is_valid
	cbnz	w0, LBB0_7
LBB0_28:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown upper device type"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Enslaving a port to a device that already has an upper device is not supported"

l_.str.2:                               ; @.str.2
	.asciz	"macvlan is only supported on top of router interfaces"

	.no_dead_strip	_mlxsw_sp_netdevice_port_vlan_event
.subsections_via_symbols
