	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367b_set_vlan_4k
_rtl8367b_set_vlan_4k:                  ## @rtl8367b_set_vlan_4k
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTL8367B_TA_VLAN_NUM_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r15), %eax
	movq	_RTL8367B_NUM_VIDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.1:
	movl	4(%r15), %eax
	movq	_RTL8367B_TA_VLAN0_MEMBER_MASK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.2:
	movl	8(%r15), %eax
	movq	_RTL8367B_UNTAG_MASK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.3:
	movl	12(%r15), %eax
	movq	_RTL8367B_FIDMAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	shll	$2, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_RTL8367B_TA_VLAN0_MEMBER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movq	_RTL8367B_TA_VLAN0_MEMBER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RTL8367B_TA_VLAN0_UNTAG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	8(%r15), %edx
	movq	_RTL8367B_TA_VLAN0_UNTAG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%r13)
	movq	_RTL8367B_TA_VLAN1_FID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%r15), %eax
	movq	_RTL8367B_TA_VLAN1_FID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_RTL8367B_TA_WRDATA_REG
	movl	(%r13,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_WR
	incq	%rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	_RTL8367B_TA_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTL8367B_TA_VLAN_VID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	movq	%r14, %rdi
	callq	_REG_WR
	movq	_RTL8367B_TA_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTL8367B_TA_CTRL_CVLAN_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_WR
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8367B_TA_VLAN_NUM_WORDS,4,2 ## @RTL8367B_TA_VLAN_NUM_WORDS
	.comm	_RTL8367B_NUM_VIDS,4,2          ## @RTL8367B_NUM_VIDS
	.comm	_RTL8367B_TA_VLAN0_MEMBER_MASK,4,2 ## @RTL8367B_TA_VLAN0_MEMBER_MASK
	.comm	_RTL8367B_UNTAG_MASK,4,2        ## @RTL8367B_UNTAG_MASK
	.comm	_RTL8367B_FIDMAX,4,2            ## @RTL8367B_FIDMAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8367B_TA_VLAN0_MEMBER_SHIFT,4,2 ## @RTL8367B_TA_VLAN0_MEMBER_SHIFT
	.comm	_RTL8367B_TA_VLAN0_UNTAG_MASK,4,2 ## @RTL8367B_TA_VLAN0_UNTAG_MASK
	.comm	_RTL8367B_TA_VLAN0_UNTAG_SHIFT,4,2 ## @RTL8367B_TA_VLAN0_UNTAG_SHIFT
	.comm	_RTL8367B_TA_VLAN1_FID_MASK,4,2 ## @RTL8367B_TA_VLAN1_FID_MASK
	.comm	_RTL8367B_TA_VLAN1_FID_SHIFT,4,2 ## @RTL8367B_TA_VLAN1_FID_SHIFT
	.comm	_RTL8367B_TA_ADDR_REG,4,2       ## @RTL8367B_TA_ADDR_REG
	.comm	_RTL8367B_TA_VLAN_VID_MASK,4,2  ## @RTL8367B_TA_VLAN_VID_MASK
	.comm	_RTL8367B_TA_CTRL_REG,4,2       ## @RTL8367B_TA_CTRL_REG
	.comm	_RTL8367B_TA_CTRL_CVLAN_WRITE,4,2 ## @RTL8367B_TA_CTRL_CVLAN_WRITE
	.no_dead_strip	_rtl8367b_set_vlan_4k
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8367b_set_vlan_4k
_rtl8367b_set_vlan_4k:                  ; @rtl8367b_set_vlan_4k
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _RTL8367B_TA_VLAN_NUM_WORDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8367B_TA_VLAN_NUM_WORDS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x1]
Lloh8:
	adrp	x9, _RTL8367B_NUM_VIDS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTL8367B_NUM_VIDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.1:
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x22, _RTL8367B_TA_VLAN0_MEMBER_MASK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _RTL8367B_TA_VLAN0_MEMBER_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
Lloh13:
	adrp	x9, _RTL8367B_UNTAG_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RTL8367B_UNTAG_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.3:
	ldr	w8, [x20, #12]
Lloh16:
	adrp	x9, _RTL8367B_FIDMAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RTL8367B_FIDMAX@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
LBB0_4:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	lsl	w2, w12, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w8, [x22]
	ldp	w9, w10, [x20, #4]
	and	w8, w8, w9
Lloh25:
	adrp	x9, _RTL8367B_TA_VLAN0_MEMBER_SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RTL8367B_TA_VLAN0_MEMBER_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh28:
	adrp	x9, _RTL8367B_TA_VLAN0_UNTAG_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RTL8367B_TA_VLAN0_UNTAG_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh31:
	adrp	x10, _RTL8367B_TA_VLAN0_UNTAG_SHIFT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _RTL8367B_TA_VLAN0_UNTAG_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x20, #12]
Lloh34:
	adrp	x10, _RTL8367B_TA_VLAN1_FID_MASK@GOTPAGE
Lloh35:
	ldr	x10, [x10, _RTL8367B_TA_VLAN1_FID_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh37:
	adrp	x10, _RTL8367B_TA_VLAN1_FID_SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _RTL8367B_TA_VLAN1_FID_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	stp	w8, w9, [x21]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_RTL8367B_TA_WRDATA_REG
	mov	x1, x0
	ldr	w2, [x21, x22, lsl #2]
	mov	x0, x19
	bl	_REG_WR
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_9
LBB0_10:
Lloh40:
	adrp	x8, _RTL8367B_TA_ADDR_REG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RTL8367B_TA_ADDR_REG@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh43:
	adrp	x9, _RTL8367B_TA_VLAN_VID_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _RTL8367B_TA_VLAN_VID_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_REG_WR
Lloh46:
	adrp	x8, _RTL8367B_TA_CTRL_REG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RTL8367B_TA_CTRL_REG@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _RTL8367B_TA_CTRL_CVLAN_WRITE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RTL8367B_TA_CTRL_CVLAN_WRITE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WR
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8367B_TA_VLAN_NUM_WORDS,4,2 ; @RTL8367B_TA_VLAN_NUM_WORDS
	.comm	_RTL8367B_NUM_VIDS,4,2          ; @RTL8367B_NUM_VIDS
	.comm	_RTL8367B_TA_VLAN0_MEMBER_MASK,4,2 ; @RTL8367B_TA_VLAN0_MEMBER_MASK
	.comm	_RTL8367B_UNTAG_MASK,4,2        ; @RTL8367B_UNTAG_MASK
	.comm	_RTL8367B_FIDMAX,4,2            ; @RTL8367B_FIDMAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8367B_TA_VLAN0_MEMBER_SHIFT,4,2 ; @RTL8367B_TA_VLAN0_MEMBER_SHIFT
	.comm	_RTL8367B_TA_VLAN0_UNTAG_MASK,4,2 ; @RTL8367B_TA_VLAN0_UNTAG_MASK
	.comm	_RTL8367B_TA_VLAN0_UNTAG_SHIFT,4,2 ; @RTL8367B_TA_VLAN0_UNTAG_SHIFT
	.comm	_RTL8367B_TA_VLAN1_FID_MASK,4,2 ; @RTL8367B_TA_VLAN1_FID_MASK
	.comm	_RTL8367B_TA_VLAN1_FID_SHIFT,4,2 ; @RTL8367B_TA_VLAN1_FID_SHIFT
	.comm	_RTL8367B_TA_ADDR_REG,4,2       ; @RTL8367B_TA_ADDR_REG
	.comm	_RTL8367B_TA_VLAN_VID_MASK,4,2  ; @RTL8367B_TA_VLAN_VID_MASK
	.comm	_RTL8367B_TA_CTRL_REG,4,2       ; @RTL8367B_TA_CTRL_REG
	.comm	_RTL8367B_TA_CTRL_CVLAN_WRITE,4,2 ; @RTL8367B_TA_CTRL_CVLAN_WRITE
	.no_dead_strip	_rtl8367b_set_vlan_4k
.subsections_via_symbols
