	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_vlan_filtering
_sja1105_vlan_filtering:                ## @sja1105_vlan_filtering
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	xorl	%ebx, %ebx
	testl	%edx, %edx
	sete	%r8b
	je	LBB0_1
## %bb.2:
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rsi
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rsi), %r9
	jmp	LBB0_3
LBB0_1:
	movq	_ETH_P_SJA1105@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %r9
LBB0_3:
	movq	(%rdi), %rax
	movq	_BLK_IDX_GENERAL_PARAMS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %rsi
	movq	%r9, 24(%rsi)
	movq	%rcx, 16(%rsi)
	movl	%edx, (%rsi)
	movl	%edx, 4(%rsi)
	movq	_BLK_IDX_L2_LOOKUP_PARAMS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movb	%r8b, %bl
	movl	%ebx, 8(%rax)
	callq	_sja1105_static_config_reload
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sja1105_setup_8021q_tagging    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021AD,8,3               ## @ETH_P_8021AD
	.comm	_ETH_P_8021Q,8,3                ## @ETH_P_8021Q
	.comm	_ETH_P_SJA1105,8,3              ## @ETH_P_SJA1105
	.comm	_BLK_IDX_GENERAL_PARAMS,8,3     ## @BLK_IDX_GENERAL_PARAMS
	.comm	_BLK_IDX_L2_LOOKUP_PARAMS,8,3   ## @BLK_IDX_L2_LOOKUP_PARAMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to change VLAN Ethertype\n"

	.no_dead_strip	_sja1105_vlan_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_vlan_filtering
_sja1105_vlan_filtering:                ; @sja1105_vlan_filtering
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
	cmp	w2, #0
	cset	w20, eq
Lloh0:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ETH_P_8021Q@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_P_8021Q@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ETH_P_SJA1105@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ETH_P_SJA1105@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	csel	x9, x10, x9, eq
	csel	x8, x10, x8, eq
	ldr	x10, [x0]
Lloh9:
	adrp	x11, _BLK_IDX_GENERAL_PARAMS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _BLK_IDX_GENERAL_PARAMS@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	x11, [x10, x11, lsl #3]
	stp	x9, x8, [x11, #16]
	stp	w2, w2, [x11]
Lloh12:
	adrp	x8, _BLK_IDX_L2_LOOKUP_PARAMS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BLK_IDX_L2_LOOKUP_PARAMS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x10, x8, lsl #3]
	str	w20, [x8, #8]
	bl	_sja1105_static_config_reload
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sja1105_setup_8021q_tagging
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021AD,8,3               ; @ETH_P_8021AD
	.comm	_ETH_P_8021Q,8,3                ; @ETH_P_8021Q
	.comm	_ETH_P_SJA1105,8,3              ; @ETH_P_SJA1105
	.comm	_BLK_IDX_GENERAL_PARAMS,8,3     ; @BLK_IDX_GENERAL_PARAMS
	.comm	_BLK_IDX_L2_LOOKUP_PARAMS,8,3   ; @BLK_IDX_L2_LOOKUP_PARAMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to change VLAN Ethertype\n"

	.no_dead_strip	_sja1105_vlan_filtering
.subsections_via_symbols
