	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_vlan_valid             ## -- Begin function hostapd_vlan_valid
	.p2align	4, 0x90
_hostapd_vlan_valid:                    ## @hostapd_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rsi)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %r8
	testq	%r8, %r8
	js	LBB0_15
## %bb.2:
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %r8
	jg	LBB0_15
## %bb.3:
	movq	%rdi, %rbx
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.4:
	movq	8(%r14), %rdi
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rsi
	testq	%rsi, %rsi
	js	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %rsi
	jg	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_6
LBB0_8:
	testq	%r8, %r8
	jne	LBB0_10
## %bb.9:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:
	movq	_VLAN_ID_WILDCARD@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_vlan_compare
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r15), %rcx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VLAN_ID,8,3                ## @MAX_VLAN_ID
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ## @MAX_NUM_TAGGED_VLAN
	.comm	_VLAN_ID_WILDCARD,8,3           ## @VLAN_ID_WILDCARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_vlan_valid             ; -- Begin function hostapd_vlan_valid
	.p2align	2
_hostapd_vlan_valid:                    ; @hostapd_vlan_valid
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
	ldr	x8, [x1]
	tbnz	x8, #63, LBB0_16
; %bb.2:
Lloh0:
	adrp	x9, _MAX_VLAN_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_VLAN_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_16
; %bb.3:
Lloh3:
	adrp	x10, _MAX_NUM_TAGGED_VLAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_NUM_TAGGED_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x11, [x19, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	ldr	x12, [x11]
	tbnz	x12, #63, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x12, x9
	b.gt	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_5
LBB0_8:
	cbz	x8, LBB0_10
; %bb.9:
	cbnz	x20, LBB0_11
	b	LBB0_15
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_15
LBB0_11:
Lloh6:
	adrp	x21, _VLAN_ID_WILDCARD@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VLAN_ID_WILDCARD@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #16
	mov	x1, x19
	bl	_vlan_compare
	cbz	w0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_12
LBB0_15:
	mov	w0, #0
LBB0_16:
	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_17:
	mov	w0, #1
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VLAN_ID,8,3                ; @MAX_VLAN_ID
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ; @MAX_NUM_TAGGED_VLAN
	.comm	_VLAN_ID_WILDCARD,8,3           ; @VLAN_ID_WILDCARD
.subsections_via_symbols
