	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpsw_add_vlan_ale_entry
_cpsw_add_vlan_ale_entry:               ## @cpsw_add_vlan_ale_entry
	.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, %r12
	movq	16(%rdi), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movb	(%r12), %al
	incb	%al
	movq	_ALE_PORT_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%r14d, %edx
	btsl	%eax, %edx
	movq	8(%r12), %rax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	andl	(%rax), %r9d
	cmovnel	%r14d, %r9d
	jmp	LBB0_6
LBB0_2:
	movq	_ALE_ALL_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%r12), %rax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r14d, %r9d
	jmp	LBB0_5
LBB0_4:
	movq	_ALE_PORT_1@GOTPCREL(%rip), %rax
	movq	_ALE_PORT_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
LBB0_5:
	movl	%r14d, %edx
LBB0_6:
	movl	(%r13), %edi
	movzwl	%si, %r15d
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	callq	_cpsw_ale_add_vlan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	(%r13), %edi
	movl	4(%r12), %esi
	movq	_HOST_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %r8d
	callq	_cpsw_ale_add_ucast
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	(%r13), %edi
	movq	8(%r12), %rax
	movl	4(%rax), %esi
	movq	_ALE_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_cpsw_ale_add_mcast
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r14d
	movl	(%r13), %edi
	movl	4(%r12), %esi
	movq	_HOST_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ALE_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %r8d
	callq	_cpsw_ale_del_ucast
	movl	%r14d, %ebx
LBB0_10:
	movl	(%r13), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_cpsw_ale_del_vlan
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALE_PORT_HOST,4,2              ## @ALE_PORT_HOST
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_ALE_ALL_PORTS,8,3              ## @ALE_ALL_PORTS
	.comm	_ALE_PORT_1,4,2                 ## @ALE_PORT_1
	.comm	_ALE_PORT_2,4,2                 ## @ALE_PORT_2
	.comm	_HOST_PORT_NUM,4,2              ## @HOST_PORT_NUM
	.comm	_ALE_VLAN,4,2                   ## @ALE_VLAN
	.no_dead_strip	_cpsw_add_vlan_ale_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpsw_add_vlan_ale_entry
_cpsw_add_vlan_ale_entry:               ; @cpsw_add_vlan_ale_entry
	.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	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #16]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	add	w8, w8, #1
	mov	w9, #1
	lsl	w8, w9, w8
Lloh0:
	adrp	x9, _ALE_PORT_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALE_PORT_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
	orr	w2, w8, w21
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w5, wzr, w21, eq
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _ALE_ALL_PORTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALE_ALL_PORTS@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x5, x21
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ALE_PORT_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ALE_PORT_1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ALE_PORT_2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ALE_PORT_2@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w5, w9, w8
LBB0_5:
	mov	x2, x21
LBB0_6:
	ldr	w0, [x23]
	mov	x1, x19
	mov	w3, #0
	mov	x4, x2
	bl	_cpsw_ale_add_vlan
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x23]
	ldr	w1, [x20, #4]
Lloh18:
	adrp	x24, _HOST_PORT_NUM@GOTPAGE
Lloh19:
	ldr	x24, [x24, _HOST_PORT_NUM@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh20:
	adrp	x25, _ALE_VLAN@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ALE_VLAN@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x4, x19
	bl	_cpsw_ale_add_ucast
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x23]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	ldr	w3, [x25]
	mov	x2, x21
	mov	x4, x19
	mov	w5, #0
	bl	_cpsw_ale_add_mcast
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x23]
	ldr	w1, [x20, #4]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x4, x19
	bl	_cpsw_ale_del_ucast
LBB0_10:
	ldr	w0, [x23]
	mov	x1, x19
	mov	w2, #0
	bl	_cpsw_ale_del_vlan
LBB0_11:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ALE_PORT_HOST,4,2              ; @ALE_PORT_HOST
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_ALE_ALL_PORTS,8,3              ; @ALE_ALL_PORTS
	.comm	_ALE_PORT_1,4,2                 ; @ALE_PORT_1
	.comm	_ALE_PORT_2,4,2                 ; @ALE_PORT_2
	.comm	_HOST_PORT_NUM,4,2              ; @HOST_PORT_NUM
	.comm	_ALE_VLAN,4,2                   ; @ALE_VLAN
	.no_dead_strip	_cpsw_add_vlan_ale_entry
.subsections_via_symbols
