	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367b_set_vlan_mc
_rtl8367b_set_vlan_mc:                  ## @rtl8367b_set_vlan_mc
	.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	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTL8367B_VLAN_MC_NUM_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_RTL8367B_NUM_VLANS@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_RTL8367B_NUM_VIDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_RTL8367B_PRIORITYMAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_6
## %bb.3:
	movq	16(%rbx), %rcx
	movq	_RTL8367B_VLAN_MC0_MEMBER_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_6
## %bb.4:
	movq	24(%rbx), %rsi
	movq	_RTL8367B_UNTAG_MASK@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jg	LBB0_6
## %bb.5:
	movq	32(%rbx), %rsi
	movq	_RTL8367B_FIDMAX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jle	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	andq	%rcx, %rdx
	movq	_RTL8367B_VLAN_MC0_MEMBER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	_RTL8367B_VLAN_MC1_FID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rsi
	movq	_RTL8367B_VLAN_MC1_FID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rsi
	movq	%rdx, (%r15)
	movq	%rsi, 8(%r15)
	movq	$0, 16(%r15)
	movq	_RTL8367B_VLAN_MC3_EVID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_RTL8367B_VLAN_MC3_EVID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_RTL8367B_VLAN_MC_BASE
	leaq	(%rax,%r13), %rsi
	movq	(%r15,%r13,8), %rdx
	movq	%r14, %rdi
	callq	_REG_WR
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jl	LBB0_9
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8367B_VLAN_MC_NUM_WORDS,4,2 ## @RTL8367B_VLAN_MC_NUM_WORDS
	.comm	_RTL8367B_NUM_VLANS,8,3         ## @RTL8367B_NUM_VLANS
	.comm	_RTL8367B_NUM_VIDS,8,3          ## @RTL8367B_NUM_VIDS
	.comm	_RTL8367B_PRIORITYMAX,8,3       ## @RTL8367B_PRIORITYMAX
	.comm	_RTL8367B_VLAN_MC0_MEMBER_MASK,8,3 ## @RTL8367B_VLAN_MC0_MEMBER_MASK
	.comm	_RTL8367B_UNTAG_MASK,8,3        ## @RTL8367B_UNTAG_MASK
	.comm	_RTL8367B_FIDMAX,8,3            ## @RTL8367B_FIDMAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8367B_VLAN_MC0_MEMBER_SHIFT,8,3 ## @RTL8367B_VLAN_MC0_MEMBER_SHIFT
	.comm	_RTL8367B_VLAN_MC1_FID_MASK,8,3 ## @RTL8367B_VLAN_MC1_FID_MASK
	.comm	_RTL8367B_VLAN_MC1_FID_SHIFT,8,3 ## @RTL8367B_VLAN_MC1_FID_SHIFT
	.comm	_RTL8367B_VLAN_MC3_EVID_MASK,8,3 ## @RTL8367B_VLAN_MC3_EVID_MASK
	.comm	_RTL8367B_VLAN_MC3_EVID_SHIFT,8,3 ## @RTL8367B_VLAN_MC3_EVID_SHIFT
	.no_dead_strip	_rtl8367b_set_vlan_mc
.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_mc
_rtl8367b_set_vlan_mc:                  ; @rtl8367b_set_vlan_mc
	.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	x19, x1
	mov	x20, 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_VLAN_MC_NUM_WORDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8367B_VLAN_MC_NUM_WORDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	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, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _RTL8367B_NUM_VLANS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTL8367B_NUM_VLANS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_6
; %bb.1:
	ldr	x8, [x2]
Lloh11:
	adrp	x9, _RTL8367B_NUM_VIDS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTL8367B_NUM_VIDS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.2:
	ldr	x9, [x2, #8]
Lloh14:
	adrp	x10, _RTL8367B_PRIORITYMAX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RTL8367B_PRIORITYMAX@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_6
; %bb.3:
	ldr	x9, [x2, #16]
Lloh17:
	adrp	x10, _RTL8367B_VLAN_MC0_MEMBER_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RTL8367B_VLAN_MC0_MEMBER_MASK@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_6
; %bb.4:
	ldr	x11, [x2, #24]
Lloh20:
	adrp	x12, _RTL8367B_UNTAG_MASK@GOTPAGE
Lloh21:
	ldr	x12, [x12, _RTL8367B_UNTAG_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x12, [x12]
	cmp	x11, x12
	b.gt	LBB0_6
; %bb.5:
	ldr	x11, [x2, #32]
Lloh23:
	adrp	x12, _RTL8367B_FIDMAX@GOTPAGE
Lloh24:
	ldr	x12, [x12, _RTL8367B_FIDMAX@GOTPAGEOFF]
Lloh25:
	ldr	x12, [x12]
	cmp	x11, x12
	b.le	LBB0_9
LBB0_6:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	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_9:
	and	x9, x10, x9
Lloh32:
	adrp	x10, _RTL8367B_VLAN_MC0_MEMBER_SHIFT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _RTL8367B_VLAN_MC0_MEMBER_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	lsl	x9, x9, x10
Lloh35:
	adrp	x10, _RTL8367B_VLAN_MC1_FID_MASK@GOTPAGE
Lloh36:
	ldr	x10, [x10, _RTL8367B_VLAN_MC1_FID_MASK@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	and	x10, x10, x11
Lloh38:
	adrp	x11, _RTL8367B_VLAN_MC1_FID_SHIFT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _RTL8367B_VLAN_MC1_FID_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	x11, [x11]
	lsl	x10, x10, x11
	stp	x9, x10, [x21]
Lloh41:
	adrp	x9, _RTL8367B_VLAN_MC3_EVID_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RTL8367B_VLAN_MC3_EVID_MASK@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	and	x8, x9, x8
Lloh44:
	adrp	x9, _RTL8367B_VLAN_MC3_EVID_SHIFT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RTL8367B_VLAN_MC3_EVID_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	stp	xzr, x8, [x21, #16]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_RTL8367B_VLAN_MC_BASE
	add	x1, x0, x22
	ldr	x2, [x21, x22, lsl #3]
	mov	x0, x20
	bl	_REG_WR
	add	x22, x22, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	cmp	x22, w8, sxtw
	b.lt	LBB0_11
	b	LBB0_7
LBB0_12:
	mov	w0, #0
	b	LBB0_7
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8367B_VLAN_MC_NUM_WORDS,4,2 ; @RTL8367B_VLAN_MC_NUM_WORDS
	.comm	_RTL8367B_NUM_VLANS,8,3         ; @RTL8367B_NUM_VLANS
	.comm	_RTL8367B_NUM_VIDS,8,3          ; @RTL8367B_NUM_VIDS
	.comm	_RTL8367B_PRIORITYMAX,8,3       ; @RTL8367B_PRIORITYMAX
	.comm	_RTL8367B_VLAN_MC0_MEMBER_MASK,8,3 ; @RTL8367B_VLAN_MC0_MEMBER_MASK
	.comm	_RTL8367B_UNTAG_MASK,8,3        ; @RTL8367B_UNTAG_MASK
	.comm	_RTL8367B_FIDMAX,8,3            ; @RTL8367B_FIDMAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8367B_VLAN_MC0_MEMBER_SHIFT,8,3 ; @RTL8367B_VLAN_MC0_MEMBER_SHIFT
	.comm	_RTL8367B_VLAN_MC1_FID_MASK,8,3 ; @RTL8367B_VLAN_MC1_FID_MASK
	.comm	_RTL8367B_VLAN_MC1_FID_SHIFT,8,3 ; @RTL8367B_VLAN_MC1_FID_SHIFT
	.comm	_RTL8367B_VLAN_MC3_EVID_MASK,8,3 ; @RTL8367B_VLAN_MC3_EVID_MASK
	.comm	_RTL8367B_VLAN_MC3_EVID_SHIFT,8,3 ; @RTL8367B_VLAN_MC3_EVID_SHIFT
	.no_dead_strip	_rtl8367b_set_vlan_mc
.subsections_via_symbols
