	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_port_vlan_filtering
_ksz9477_port_vlan_filtering:           ## @ksz9477_port_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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_REG_PORT_LUE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_VLAN_LOOKUP_VID_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_REG_SW_LUE_CTRL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_VLAN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_ksz_cfg
	jmp	LBB0_3
LBB0_2:
	movq	_REG_SW_LUE_CTRL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_VLAN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ksz_cfg
	movq	_REG_PORT_LUE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_VLAN_LOOKUP_VID_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PORT_LUE_CTRL,4,2          ## @REG_PORT_LUE_CTRL
	.comm	_PORT_VLAN_LOOKUP_VID_0,4,2     ## @PORT_VLAN_LOOKUP_VID_0
	.comm	_REG_SW_LUE_CTRL_0,4,2          ## @REG_SW_LUE_CTRL_0
	.comm	_SW_VLAN_ENABLE,4,2             ## @SW_VLAN_ENABLE
	.no_dead_strip	_ksz9477_port_vlan_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_port_vlan_filtering
_ksz9477_port_vlan_filtering:           ; @ksz9477_port_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	x20, x1
	ldr	x19, [x0]
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_PORT_LUE_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_PORT_LUE_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _PORT_VLAN_LOOKUP_VID_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_VLAN_LOOKUP_VID_0@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_ksz_port_cfg
Lloh6:
	adrp	x8, _REG_SW_LUE_CTRL_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_SW_LUE_CTRL_0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SW_VLAN_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SW_VLAN_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ksz_cfg
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _REG_SW_LUE_CTRL_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_SW_LUE_CTRL_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SW_VLAN_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SW_VLAN_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ksz_cfg
Lloh18:
	adrp	x8, _REG_PORT_LUE_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_PORT_LUE_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _PORT_VLAN_LOOKUP_VID_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_VLAN_LOOKUP_VID_0@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_ksz_port_cfg
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PORT_LUE_CTRL,4,2          ; @REG_PORT_LUE_CTRL
	.comm	_PORT_VLAN_LOOKUP_VID_0,4,2     ; @PORT_VLAN_LOOKUP_VID_0
	.comm	_REG_SW_LUE_CTRL_0,4,2          ; @REG_SW_LUE_CTRL_0
	.comm	_SW_VLAN_ENABLE,4,2             ; @SW_VLAN_ENABLE
	.no_dead_strip	_ksz9477_port_vlan_filtering
.subsections_via_symbols
