	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367_get_vlan_mc
_rtl8367_get_vlan_mc:                   ## @rtl8367_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTL8367_VLAN_MC_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_RTL8367_NUM_VLANS@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jle	LBB0_7
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_RTL8367_VLAN_MC_BASE
	leaq	(%rax,%r14), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_REG_RD
	incq	%r14
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	movq	(%r13), %rax
	movq	_RTL8367_VLAN_MC_MEMBER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_RTL8367_VLAN_MC_MEMBER_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 16(%rdx)
	movq	8(%r13), %rax
	movq	_RTL8367_VLAN_MC_FID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_RTL8367_VLAN_MC_FID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	%rax, 8(%rdx)
	movq	24(%r13), %rax
	movq	_RTL8367_VLAN_MC_EVID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	movq	_RTL8367_VLAN_MC_EVID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	%rax, (%rdx)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8367_VLAN_MC_DATA_SIZE,4,2  ## @RTL8367_VLAN_MC_DATA_SIZE
	.comm	_RTL8367_NUM_VLANS,8,3          ## @RTL8367_NUM_VLANS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8367_VLAN_MC_MEMBER_SHIFT,8,3 ## @RTL8367_VLAN_MC_MEMBER_SHIFT
	.comm	_RTL8367_VLAN_MC_MEMBER_MASK,8,3 ## @RTL8367_VLAN_MC_MEMBER_MASK
	.comm	_RTL8367_VLAN_MC_FID_SHIFT,8,3  ## @RTL8367_VLAN_MC_FID_SHIFT
	.comm	_RTL8367_VLAN_MC_FID_MASK,8,3   ## @RTL8367_VLAN_MC_FID_MASK
	.comm	_RTL8367_VLAN_MC_EVID_SHIFT,8,3 ## @RTL8367_VLAN_MC_EVID_SHIFT
	.comm	_RTL8367_VLAN_MC_EVID_MASK,8,3  ## @RTL8367_VLAN_MC_EVID_MASK
	.no_dead_strip	_rtl8367_get_vlan_mc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8367_get_vlan_mc
_rtl8367_get_vlan_mc:                   ; @rtl8367_get_vlan_mc
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _RTL8367_VLAN_MC_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8367_VLAN_MC_DATA_SIZE@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	x20, x9, x8
	mov	sp, x20
	mov	x0, x2
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh8:
	adrp	x8, _RTL8367_NUM_VLANS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTL8367_NUM_VLANS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x21
	b.le	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x23, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_RTL8367_VLAN_MC_BASE
	add	x1, x0, x24
	mov	x0, x22
	mov	x2, x23
	bl	_REG_RD
	add	x24, x24, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x23, x23, #8
	cmp	x24, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
Lloh11:
	adrp	x8, _RTL8367_VLAN_MC_MEMBER_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTL8367_VLAN_MC_MEMBER_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldp	x9, x10, [x20]
	asr	x8, x9, x8
Lloh14:
	adrp	x9, _RTL8367_VLAN_MC_MEMBER_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RTL8367_VLAN_MC_MEMBER_MASK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	and	x8, x8, x9
Lloh17:
	adrp	x9, _RTL8367_VLAN_MC_FID_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RTL8367_VLAN_MC_FID_SHIFT@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh19:
	ldr	x8, [x9]
	asr	x8, x10, x8
Lloh20:
	adrp	x9, _RTL8367_VLAN_MC_FID_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RTL8367_VLAN_MC_FID_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	and	x8, x8, x9
	ldr	x9, [x20, #24]
Lloh23:
	adrp	x10, _RTL8367_VLAN_MC_EVID_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _RTL8367_VLAN_MC_EVID_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	asr	x9, x9, x10
Lloh26:
	adrp	x10, _RTL8367_VLAN_MC_EVID_MASK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _RTL8367_VLAN_MC_EVID_MASK@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	and	x9, x9, x10
	stp	x9, x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #48
	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
LBB0_8:
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8367_VLAN_MC_DATA_SIZE,4,2  ; @RTL8367_VLAN_MC_DATA_SIZE
	.comm	_RTL8367_NUM_VLANS,8,3          ; @RTL8367_NUM_VLANS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8367_VLAN_MC_MEMBER_SHIFT,8,3 ; @RTL8367_VLAN_MC_MEMBER_SHIFT
	.comm	_RTL8367_VLAN_MC_MEMBER_MASK,8,3 ; @RTL8367_VLAN_MC_MEMBER_MASK
	.comm	_RTL8367_VLAN_MC_FID_SHIFT,8,3  ; @RTL8367_VLAN_MC_FID_SHIFT
	.comm	_RTL8367_VLAN_MC_FID_MASK,8,3   ; @RTL8367_VLAN_MC_FID_MASK
	.comm	_RTL8367_VLAN_MC_EVID_SHIFT,8,3 ; @RTL8367_VLAN_MC_EVID_SHIFT
	.comm	_RTL8367_VLAN_MC_EVID_MASK,8,3  ; @RTL8367_VLAN_MC_EVID_MASK
	.no_dead_strip	_rtl8367_get_vlan_mc
.subsections_via_symbols
