	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocelot_vlan_vid_add
_ocelot_vlan_vid_add:                   ## @ocelot_vlan_vid_add
	.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
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	24(%rax), %r15
	movq	_PGID_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_ENTRYTYPE_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_ocelot_mact_learn
	movl	16(%r14), %edi
	callq	_BIT
	movq	8(%r15), %rcx
	orl	(%rcx,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ocelot_vlant_set_mask
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	%rbx, (%r14)
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.4:
	movq	8(%r14), %rdx
	cmpq	%rbx, %rdx
	je	LBB0_8
## %bb.5:
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, 8(%r14)
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ocelot_vlan_port_apply
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PGID_CPU,4,2                   ## @PGID_CPU
	.comm	_ENTRYTYPE_LOCKED,4,2           ## @ENTRYTYPE_LOCKED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port already has a native VLAN: %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ocelot_vlan_vid_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocelot_vlan_vid_add
_ocelot_vlan_vid_add:                   ; @ocelot_vlan_vid_add
	.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	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _PGID_CPU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PGID_CPU@GOTPAGEOFF]
	ldr	x21, [x0, #24]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x24]
Lloh3:
	adrp	x8, _ENTRYTYPE_LOCKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENTRYTYPE_LOCKED@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, x19
	bl	_ocelot_mact_learn
	ldr	w0, [x20, #16]
	bl	_BIT
	ldr	x8, [x21, #8]
	lsl	x9, x19, #2
	ldr	w10, [x8, x9]
	orr	w2, w10, w0
	str	w2, [x8, x9]
	mov	x0, x21
	mov	x1, x19
	bl	_ocelot_vlant_set_mask
	cbnz	w0, LBB0_9
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
	str	x19, [x20]
LBB0_3:
	cbz	w22, LBB0_8
; %bb.4:
	ldr	x2, [x20, #8]
	cmp	x2, x19
	b.eq	LBB0_8
; %bb.5:
	cbz	x2, LBB0_7
; %bb.6:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	str	x19, [x20, #8]
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_ocelot_vlan_port_apply
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PGID_CPU,4,2                   ; @PGID_CPU
	.comm	_ENTRYTYPE_LOCKED,4,2           ; @ENTRYTYPE_LOCKED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port already has a native VLAN: %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ocelot_vlan_vid_add
.subsections_via_symbols
