	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366s_is_vlan_valid
_rtl8366s_is_vlan_valid:                ## @rtl8366s_is_vlan_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_RTL8366S_NUM_VLANS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	movq	_RTL8366S_NUM_VIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
LBB0_3:
	testl	%esi, %esi
	setne	%cl
	cmpl	%esi, %eax
	seta	%al
	andb	%cl, %al
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8366S_NUM_VLANS,4,2         ## @RTL8366S_NUM_VLANS
	.comm	_RTL8366S_NUM_VIDS,4,2          ## @RTL8366S_NUM_VIDS
	.no_dead_strip	_rtl8366s_is_vlan_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366s_is_vlan_valid
_rtl8366s_is_vlan_valid:                ; @rtl8366s_is_vlan_valid
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RTL8366S_NUM_VLANS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8366S_NUM_VLANS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _RTL8366S_NUM_VIDS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTL8366S_NUM_VIDS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w10, w10, #1
	cmp	x9, #0
	csel	w8, w8, w10, eq
	cmp	w1, #0
	ccmp	w8, w1, #0, ne
	cset	w0, hi
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8366S_NUM_VLANS,4,2         ; @RTL8366S_NUM_VLANS
	.comm	_RTL8366S_NUM_VIDS,4,2          ; @RTL8366S_NUM_VIDS
	.no_dead_strip	_rtl8366s_is_vlan_valid
.subsections_via_symbols
