	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_vlan_router_join
_mlxsw_sp_port_vlan_router_join:        ## @mlxsw_sp_port_vlan_router_join
	.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	%rdx, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	(%r14), %rbx
	movq	%rsi, -56(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mlxsw_sp_rif_subport_params_init
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mlxsw_sp_rif_subport_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_2:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlxsw_sp_fid_port_vid_map
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mlxsw_sp_port_vid_learning_set
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_BR_STATE_FORWARDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mlxsw_sp_port_vid_stp_set
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_mlxsw_sp_port_vid_learning_set
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlxsw_sp_fid_port_vid_unmap
LBB0_8:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_put
	movq	%r12, %rdi
	callq	_mlxsw_sp_rif_subport_put
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, (%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_STATE_FORWARDING,4,2        ## @BR_STATE_FORWARDING
	.no_dead_strip	_mlxsw_sp_port_vlan_router_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_vlan_router_join
_mlxsw_sp_port_vlan_router_join:        ; @mlxsw_sp_port_vlan_router_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	x20, [x19]
	str	x1, [sp, #8]
	ldr	w21, [x0, #8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_mlxsw_sp_rif_subport_params_init
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_mlxsw_sp_rif_subport_get
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	mov	x23, x0
	mov	x1, x19
	mov	x2, x21
	bl	_mlxsw_sp_fid_port_vid_map
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_mlxsw_sp_port_vid_learning_set
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _BR_STATE_FORWARDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BR_STATE_FORWARDING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_mlxsw_sp_port_vid_stp_set
	mov	x24, x0
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_mlxsw_sp_port_vid_learning_set
LBB0_6:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_mlxsw_sp_fid_port_vid_unmap
LBB0_7:
	mov	x0, x23
	bl	_mlxsw_sp_fid_put
	mov	x0, x20
	bl	_mlxsw_sp_rif_subport_put
LBB0_8:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
LBB0_9:
	str	x23, [x22]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_STATE_FORWARDING,4,2        ; @BR_STATE_FORWARDING
	.no_dead_strip	_mlxsw_sp_port_vlan_router_join
.subsections_via_symbols
