	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_netdevice_port_upper_event
_mlxsw_sp_netdevice_port_upper_event:   ## @mlxsw_sp_netdevice_port_upper_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%rax), %r15
	leaq	20(%r13), %rdi
	callq	_netdev_notifier_info_to_extack
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$129, %rbx
	je	LBB0_18
## %bb.1:
	cmpq	$128, %rbx
	jne	LBB0_55
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_is_vlan_dev
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_is_ovs_master
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_61
LBB0_7:
	cmpl	$0, (%r13)
	je	LBB0_54
## %bb.8:
	movq	%r14, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_bridge_device_is_offloaded
	testl	%eax, %eax
	je	LBB0_38
LBB0_10:
	movq	%r14, %rdi
	callq	_netdev_has_any_upper_dev
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_26
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_bridge_device_is_offloaded
	testl	%eax, %eax
	je	LBB0_26
LBB0_13:
	movq	%r14, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	16(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	callq	_mlxsw_sp_master_lag_check
	testl	%eax, %eax
	je	LBB0_28
LBB0_15:
	movq	%r14, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_30
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vlan_uses_dev
	testl	%eax, %eax
	je	LBB0_30
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_27
LBB0_18:
	movq	%rcx, %rbx
	movq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_netif_is_bridge_master
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	cmpl	$0, (%r13)
	je	LBB0_24
## %bb.20:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_port_bridge_join      ## TAILCALL
LBB0_21:
	movq	%r14, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_40
## %bb.22:
	cmpl	$0, (%r13)
	je	LBB0_43
## %bb.23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_port_lag_join         ## TAILCALL
LBB0_24:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
LBB0_25:
	callq	_mlxsw_sp_port_bridge_leave
	jmp	LBB0_54
LBB0_26:
	leaq	L_.str.1(%rip), %rsi
LBB0_27:
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_29:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_55
LBB0_30:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_is_lag_port
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movq	%r14, %rdi
	callq	_is_vlan_dev
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movq	%r14, %rdi
	callq	_vlan_dev_real_dev
	movq	%rax, %rdi
	callq	_netif_is_lag_master
	testl	%eax, %eax
	je	LBB0_56
LBB0_33:
	movq	%r14, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_sp_rif_find_by_dev
	testl	%eax, %eax
	je	LBB0_51
LBB0_35:
	movq	%r14, %rdi
	callq	_netif_is_ovs_master
	testl	%eax, %eax
	je	LBB0_45
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vlan_uses_dev
	testl	%eax, %eax
	je	LBB0_45
## %bb.37:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_27
LBB0_38:
	movq	%r14, %rdi
	callq	_mlxsw_sp_bridge_has_vxlan
	testl	%eax, %eax
	je	LBB0_10
## %bb.39:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_bridge_vxlan_is_valid
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_52
LBB0_40:
	movq	%r14, %rdi
	callq	_netif_is_ovs_master
	testl	%eax, %eax
	je	LBB0_48
## %bb.41:
	cmpl	$0, (%r13)
	je	LBB0_53
## %bb.42:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_port_ovs_join         ## TAILCALL
LBB0_43:
	movq	%r12, %rdi
	callq	_mlxsw_sp_port_lag_col_dist_disable
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_port_lag_leave
	jmp	LBB0_54
LBB0_45:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_is_ovs_port
	testl	%eax, %eax
	je	LBB0_54
## %bb.46:
	movq	%r14, %rdi
	callq	_is_vlan_dev
	testl	%eax, %eax
	movl	$0, %eax
	je	LBB0_55
## %bb.47:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_27
LBB0_48:
	movq	%r14, %rdi
	callq	_netif_is_macvlan
	testl	%eax, %eax
	je	LBB0_57
## %bb.49:
	cmpl	$0, (%r13)
	jne	LBB0_54
## %bb.50:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_rif_macvlan_del
	jmp	LBB0_54
LBB0_51:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
LBB0_52:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_29
LBB0_53:
	movq	%r12, %rdi
	callq	_mlxsw_sp_port_ovs_leave
LBB0_54:
	xorl	%eax, %eax
LBB0_55:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_27
LBB0_57:
	movq	%r14, %rdi
	callq	_is_vlan_dev
	testl	%eax, %eax
	je	LBB0_54
## %bb.58:
	movq	%r14, %rdi
	callq	_netif_is_bridge_port
	testl	%eax, %eax
	je	LBB0_54
## %bb.59:
	cmpl	$0, (%r13)
	jne	LBB0_54
## %bb.60:
	movq	%r14, %rdi
	callq	_netdev_master_upper_dev_get
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	jmp	LBB0_25
LBB0_61:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_27
	.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	"Master device is a LAG master and this device has a VLAN"

L_.str.3:                               ## @.str.3
	.asciz	"Can not put a VLAN on a LAG port"

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

L_.str.5:                               ## @.str.5
	.asciz	"Master device is an OVS master and this device has a VLAN"

L_.str.6:                               ## @.str.6
	.asciz	"Can not put a VLAN on an OVS port"

	.no_dead_strip	_mlxsw_sp_netdevice_port_upper_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_upper_event
_mlxsw_sp_netdevice_port_upper_event:   ; @mlxsw_sp_netdevice_port_upper_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x23, x0
	ldr	x20, [x0]
	add	x0, x24, #20
	bl	_netdev_notifier_info_to_extack
	mov	x19, x0
	cmp	x25, #129
	b.eq	LBB0_18
; %bb.1:
	cmp	x25, #128
	b.ne	LBB0_53
; %bb.2:
	ldr	x23, [x24, #8]
	mov	x0, x23
	bl	_is_vlan_dev
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x23
	bl	_netif_is_lag_master
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_netif_is_bridge_master
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x23
	bl	_netif_is_ovs_master
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_netif_is_macvlan
	cbz	w0, LBB0_60
LBB0_7:
	ldr	w8, [x24]
	cbz	w8, LBB0_53
; %bb.8:
	mov	x0, x23
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x23
	bl	_mlxsw_sp_bridge_device_is_offloaded
	cbz	w0, LBB0_38
LBB0_10:
	mov	x0, x23
	bl	_netdev_has_any_upper_dev
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x23
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_26
; %bb.12:
	mov	x0, x20
	mov	x1, x23
	bl	_mlxsw_sp_bridge_device_is_offloaded
	cbz	w0, LBB0_26
LBB0_13:
	mov	x0, x23
	bl	_netif_is_lag_master
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w2, [x24, #16]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x19
	bl	_mlxsw_sp_master_lag_check
	cbz	w0, LBB0_28
LBB0_15:
	mov	x0, x23
	bl	_netif_is_lag_master
	cbz	w0, LBB0_30
; %bb.16:
	mov	x0, x21
	bl	_vlan_uses_dev
	cbz	w0, LBB0_30
; %bb.17:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_18:
	ldr	x21, [x24, #8]
	mov	x0, x21
	bl	_netif_is_bridge_master
	cbz	w0, LBB0_21
; %bb.19:
	ldr	w8, [x24]
	cbz	w8, LBB0_24
; %bb.20:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlxsw_sp_port_bridge_join
LBB0_21:
	mov	x0, x21
	bl	_netif_is_lag_master
	cbz	w0, LBB0_40
; %bb.22:
	ldr	w8, [x24]
	cbz	w8, LBB0_43
; %bb.23:
	mov	x0, x23
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlxsw_sp_port_lag_join
LBB0_24:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
LBB0_25:
	bl	_mlxsw_sp_port_bridge_leave
	b	LBB0_53
LBB0_26:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
LBB0_28:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_54
LBB0_30:
	mov	x0, x21
	bl	_netif_is_lag_port
	cbz	w0, LBB0_33
; %bb.31:
	mov	x0, x23
	bl	_is_vlan_dev
	cbz	w0, LBB0_33
; %bb.32:
	mov	x0, x23
	bl	_vlan_dev_real_dev
	bl	_netif_is_lag_master
	cbz	w0, LBB0_55
LBB0_33:
	mov	x0, x23
	bl	_netif_is_macvlan
	cbz	w0, LBB0_35
; %bb.34:
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_rif_find_by_dev
	cbz	w0, LBB0_50
LBB0_35:
	mov	x0, x23
	bl	_netif_is_ovs_master
	cbz	w0, LBB0_44
; %bb.36:
	mov	x0, x21
	bl	_vlan_uses_dev
	cbz	w0, LBB0_44
; %bb.37:
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_38:
	mov	x0, x23
	bl	_mlxsw_sp_bridge_has_vxlan
	cbz	w0, LBB0_10
; %bb.39:
	mov	x0, x23
	mov	x1, x19
	bl	_mlxsw_sp_bridge_vxlan_is_valid
	cbnz	w0, LBB0_10
	b	LBB0_51
LBB0_40:
	mov	x0, x21
	bl	_netif_is_ovs_master
	cbz	w0, LBB0_47
; %bb.41:
	ldr	w8, [x24]
	cbz	w8, LBB0_52
; %bb.42:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlxsw_sp_port_ovs_join
LBB0_43:
	mov	x0, x23
	bl	_mlxsw_sp_port_lag_col_dist_disable
	mov	x0, x23
	mov	x1, x21
	bl	_mlxsw_sp_port_lag_leave
	b	LBB0_53
LBB0_44:
	mov	x0, x21
	bl	_netif_is_ovs_port
	cbz	w0, LBB0_54
; %bb.45:
	mov	x0, x23
	bl	_is_vlan_dev
	cbz	w0, LBB0_54
; %bb.46:
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_27
LBB0_47:
	mov	x0, x21
	bl	_netif_is_macvlan
	cbz	w0, LBB0_56
; %bb.48:
	ldr	w8, [x24]
	cbnz	w8, LBB0_53
; %bb.49:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_rif_macvlan_del
	b	LBB0_53
LBB0_50:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
LBB0_51:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_29
LBB0_52:
	mov	x0, x23
	bl	_mlxsw_sp_port_ovs_leave
LBB0_53:
	mov	w0, #0
LBB0_54:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_55:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_56:
	mov	x0, x21
	bl	_is_vlan_dev
	cbz	w0, LBB0_54
; %bb.57:
	mov	x0, x21
	bl	_netif_is_bridge_port
	cbz	w0, LBB0_54
; %bb.58:
	ldr	w8, [x24]
	cbnz	w8, LBB0_53
; %bb.59:
	mov	x0, x21
	bl	_netdev_master_upper_dev_get
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	b	LBB0_25
LBB0_60:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.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	"Master device is a LAG master and this device has a VLAN"

l_.str.3:                               ; @.str.3
	.asciz	"Can not put a VLAN on a LAG port"

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

l_.str.5:                               ; @.str.5
	.asciz	"Master device is an OVS master and this device has a VLAN"

l_.str.6:                               ; @.str.6
	.asciz	"Can not put a VLAN on an OVS port"

	.no_dead_strip	_mlxsw_sp_netdevice_port_upper_event
.subsections_via_symbols
