	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_vlan_mode
_sky2_vlan_mode:                        ## @sky2_vlan_mode
	.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	%esi, %r13d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	8(%rax), %r15
	movl	(%rax), %r12d
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	movq	_RX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_RX_VLAN_STRIP_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_RX_VLAN_STRIP_ON@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_TX_GMF_CTRL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_SK_REG
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_TX_VLAN_TAG_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_SKY2_VLAN_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_6
LBB0_5:
	movq	_TX_VLAN_TAG_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_SKY2_VLAN_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RX_GMF_CTRL_T,4,2              ## @RX_GMF_CTRL_T
	.comm	_RX_VLAN_STRIP_ON,4,2           ## @RX_VLAN_STRIP_ON
	.comm	_RX_VLAN_STRIP_OFF,4,2          ## @RX_VLAN_STRIP_OFF
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_TX_GMF_CTRL_T,4,2              ## @TX_GMF_CTRL_T
	.comm	_TX_VLAN_TAG_ON,4,2             ## @TX_VLAN_TAG_ON
	.comm	_SKY2_VLAN_OFFLOADS,4,2         ## @SKY2_VLAN_OFFLOADS
	.comm	_TX_VLAN_TAG_OFF,4,2            ## @TX_VLAN_TAG_OFF
	.no_dead_strip	_sky2_vlan_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_vlan_mode
_sky2_vlan_mode:                        ; @sky2_vlan_mode
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x20, [x0, #8]
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _RX_GMF_CTRL_T@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_GMF_CTRL_T@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SK_REG
	mov	x1, x0
Lloh6:
	adrp	x8, _RX_VLAN_STRIP_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_VLAN_STRIP_OFF@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RX_VLAN_STRIP_ON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RX_VLAN_STRIP_ON@GOTPAGEOFF]
	tst	w23, w21
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write32
Lloh10:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w21, w8, w21
Lloh13:
	adrp	x8, _TX_GMF_CTRL_T@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_GMF_CTRL_T@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_SK_REG
	mov	x1, x0
	cbz	w21, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _TX_VLAN_TAG_ON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_VLAN_TAG_ON@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write32
Lloh19:
	adrp	x8, _SKY2_VLAN_OFFLOADS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SKY2_VLAN_OFFLOADS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
Lloh22:
	adrp	x8, _TX_VLAN_TAG_OFF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TX_VLAN_TAG_OFF@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sky2_write32
Lloh25:
	adrp	x8, _SKY2_VLAN_OFFLOADS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SKY2_VLAN_OFFLOADS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x19]
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_RX_GMF_CTRL_T,4,2              ; @RX_GMF_CTRL_T
	.comm	_RX_VLAN_STRIP_ON,4,2           ; @RX_VLAN_STRIP_ON
	.comm	_RX_VLAN_STRIP_OFF,4,2          ; @RX_VLAN_STRIP_OFF
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_TX_GMF_CTRL_T,4,2              ; @TX_GMF_CTRL_T
	.comm	_TX_VLAN_TAG_ON,4,2             ; @TX_VLAN_TAG_ON
	.comm	_SKY2_VLAN_OFFLOADS,4,2         ; @SKY2_VLAN_OFFLOADS
	.comm	_TX_VLAN_TAG_OFF,4,2            ; @TX_VLAN_TAG_OFF
	.no_dead_strip	_sky2_vlan_mode
.subsections_via_symbols
