	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366rb_get_mc_index
_rtl8366rb_get_mc_index:                ## @rtl8366rb_get_mc_index
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	4(%rdi), %r15d
	movl	%esi, %edi
	callq	_RTL8366RB_PORT_VLAN_CTRL_REG
	leaq	-28(%rbp), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-28(%rbp), %r15d
	movl	%ebx, %edi
	callq	_RTL8366RB_PORT_VLAN_CTRL_SHIFT
	movl	%eax, %ecx
	sarl	%cl, %r15d
	movq	_RTL8366RB_PORT_VLAN_CTRL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL8366RB_PORT_VLAN_CTRL_MASK,4,2 ## @RTL8366RB_PORT_VLAN_CTRL_MASK
	.no_dead_strip	_rtl8366rb_get_mc_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366rb_get_mc_index
_rtl8366rb_get_mc_index:                ; @rtl8366rb_get_mc_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	w21, [x0, #4]
	mov	x0, x1
	bl	_RTL8366RB_PORT_VLAN_CTRL_REG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w21, [sp, #12]
	mov	x0, x20
	bl	_RTL8366RB_PORT_VLAN_CTRL_SHIFT
	mov	x8, x0
	mov	w0, #0
	asr	w8, w21, w8
Lloh0:
	adrp	x9, _RTL8366RB_PORT_VLAN_CTRL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL8366RB_PORT_VLAN_CTRL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w8, w9
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL8366RB_PORT_VLAN_CTRL_MASK,4,2 ; @RTL8366RB_PORT_VLAN_CTRL_MASK
	.no_dead_strip	_rtl8366rb_get_mc_index
.subsections_via_symbols
