	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_sta_set_vlan                ## -- Begin function ap_sta_set_vlan
	.p2align	4, 0x90
_ap_sta_set_vlan:                       ## @ap_sta_set_vlan
	.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, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	8(%rax), %rcx
	movq	_DYNAMIC_VLAN_DISABLED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	cmpl	$0, (%r15)
	jne	LBB0_12
LBB0_4:
	movq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_vlan_compare
	testl	%eax, %eax
	je	LBB0_21
## %bb.5:
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_12
LBB0_6:
	movq	%r14, %rdi
	callq	_ap_sta_get_free_vlan_id
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	_VLAN_ID_WILDCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rbx)
	je	LBB0_26
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_10:
	movl	16(%r15), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_hostapd_logger
LBB0_11:
	movl	$-1, %r14d
LBB0_37:
	xorl	%r13d, %r13d
	jmp	LBB0_38
LBB0_12:
	testq	%r12, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.13:
	cmpq	$0, 16(%r12)
	je	LBB0_22
## %bb.14:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_23
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_vlan_compare
	movl	(%r14), %r13d
	testl	%eax, %eax
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_VLAN_ID_WILDCARD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	cmoveq	%r14, %rbx
	movq	48(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_16
## %bb.18:
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.19:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_42
## %bb.20:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ap_sta_get_free_vlan_id
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_21:
	xorl	%r14d, %r14d
	jmp	LBB0_41
LBB0_22:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_38
LBB0_23:
	movl	16(%r15), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r9d
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	%rdi, (%rsp)
	leaq	L_.str.1(%rip), %r8
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_hostapd_logger
	jmp	LBB0_11
LBB0_24:
	movq	%r14, %rbx
LBB0_25:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	movl	(%rbx), %eax
	movq	_VLAN_ID_WILDCARD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_vlan_add_dynamic
	movq	%rax, %rbx
	movl	16(%r15), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rbx, %rbx
	je	LBB0_32
## %bb.28:
	movq	%r14, %rdi
	movl	40(%rbx), %r9d
	leaq	L_.str.5(%rip), %r8
	xorl	%r14d, %r14d
	jmp	LBB0_31
LBB0_29:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_34
## %bb.30:
	incq	%rax
	movq	%rax, 8(%rbx)
	movl	16(%r15), %esi
	movq	_HOSTAPD_MODULE_IEEE80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	40(%rbx), %r9d
	leaq	L_.str.6(%rip), %r8
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_31:
	xorl	%eax, %eax
	callq	_hostapd_logger
	jmp	LBB0_38
LBB0_32:
	movl	$-1, %r14d
	testq	%r12, %r12
	je	LBB0_35
## %bb.33:
	movl	(%r12), %r9d
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rdi, %rax
	jmp	LBB0_36
LBB0_34:
	xorl	%r14d, %r14d
LBB0_38:
	movl	(%r15), %esi
	movl	%r13d, (%r15)
	leaq	16(%rbx), %rax
	testq	%rbx, %rbx
	cmoveq	%rbx, %rax
	movq	%rax, 8(%r15)
	cmpl	%esi, %r13d
	je	LBB0_41
## %bb.39:
	testl	%esi, %esi
	je	LBB0_41
## %bb.40:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vlan_remove_dynamic
LBB0_41:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	leaq	L_.str.3(%rip), %rax
	movl	$-1, %r9d
LBB0_36:
	movq	%rax, (%rsp)
	leaq	L_.str.4(%rip), %r8
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_hostapd_logger
	jmp	LBB0_37
LBB0_42:
	movl	(%r12), %r13d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_DYNAMIC_VLAN_DISABLED,8,3      ## @DYNAMIC_VLAN_DISABLED
	.comm	_VLAN_ID_WILDCARD,4,2           ## @VLAN_ID_WILDCARD
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ## @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ## @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"per_sta_vif missing wildcard"

L_.str.1:                               ## @.str.1
	.asciz	"missing vlan and wildcard for vlan=%d%s"

L_.str.2:                               ## @.str.2
	.asciz	"+"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"could not add dynamic VLAN interface for vlan=%d%s"

L_.str.5:                               ## @.str.5
	.asciz	"added new dynamic VLAN interface '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"updated existing dynamic VLAN interface '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_sta_set_vlan                ; -- Begin function ap_sta_set_vlan
	.p2align	2
_ap_sta_set_vlan:                       ; @ap_sta_set_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
	b	LBB0_6
LBB0_2:
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _DYNAMIC_VLAN_DISABLED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DYNAMIC_VLAN_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x20]
	cbnz	w9, LBB0_11
LBB0_4:
	ldr	x1, [x20, #8]
	mov	x0, x22
	bl	_vlan_compare
	cbz	w0, LBB0_20
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_ap_sta_get_free_vlan_id
	ldr	x8, [x19]
	ldr	x21, [x8]
	cbz	x21, LBB0_10
; %bb.7:
	mov	x23, x0
Lloh3:
	adrp	x8, _VLAN_ID_WILDCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLAN_ID_WILDCARD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	cmp	w9, w8
	b.eq	LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #48]
	cbnz	x21, LBB0_8
LBB0_10:
	ldr	w1, [x20, #16]
Lloh6:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_38
LBB0_11:
	cbz	x22, LBB0_21
; %bb.12:
	ldr	x9, [x22, #16]
	cbz	x9, LBB0_22
; %bb.13:
	ldr	x21, [x8]
	cbz	x21, LBB0_23
; %bb.14:
	mov	x24, #0
Lloh14:
	adrp	x25, _VLAN_ID_WILDCARD@GOTPAGE
Lloh15:
	ldr	x25, [x25, _VLAN_ID_WILDCARD@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x21, #16
	mov	x1, x22
	bl	_vlan_compare
	ldr	w23, [x21]
	cbz	w0, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x25]
	cmp	w23, w8
	csel	x24, x21, x24, eq
	ldr	x21, [x21, #48]
	cbnz	x21, LBB0_15
; %bb.17:
	cbz	x24, LBB0_23
; %bb.18:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.19:
	mov	x0, x19
	bl	_ap_sta_get_free_vlan_id
	mov	x23, x0
	b	LBB0_25
LBB0_20:
	mov	w22, #0
	b	LBB0_41
LBB0_21:
	mov	x21, #0
	mov	w23, #0
	b	LBB0_39
LBB0_22:
	mov	x21, #0
	mov	w23, #0
	b	LBB0_32
LBB0_23:
	ldr	w1, [x20, #16]
Lloh16:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	ldr	x8, [x22, #8]
Lloh22:
	adrp	x9, l_.str.2@PAGE
Lloh23:
	add	x9, x9, l_.str.2@PAGEOFF
	ldr	x8, [x8]
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w9, [x22]
Lloh26:
	adrp	x4, l_.str.1@PAGE
Lloh27:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_37
LBB0_24:
	ldr	w23, [x22]
LBB0_25:
	mov	x21, x24
LBB0_26:
	ldr	w8, [x21]
Lloh28:
	adrp	x9, _VLAN_ID_WILDCARD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VLAN_ID_WILDCARD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_vlan_add_dynamic
	ldr	w1, [x20, #16]
Lloh31:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	cbz	x0, LBB0_33
; %bb.28:
	mov	x21, x0
	ldr	w8, [x0, #40]
Lloh37:
	adrp	x4, l_.str.5@PAGE
Lloh38:
	add	x4, x4, l_.str.5@PAGEOFF
	b	LBB0_31
LBB0_29:
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_32
; %bb.30:
	add	x8, x8, #1
	str	x8, [x21, #8]
Lloh39:
	adrp	x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE80211@GOTPAGEOFF]
	ldr	w1, [x20, #16]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HOSTAPD_LEVEL_DEBUG@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
	ldr	w8, [x21, #40]
Lloh45:
	adrp	x4, l_.str.6@PAGE
Lloh46:
	add	x4, x4, l_.str.6@PAGEOFF
LBB0_31:
	str	x8, [sp]
	mov	x0, x19
	bl	_hostapd_logger
LBB0_32:
	mov	w22, #0
	b	LBB0_39
LBB0_33:
Lloh47:
	adrp	x8, l_.str.3@PAGE
Lloh48:
	add	x8, x8, l_.str.3@PAGEOFF
	cbz	x22, LBB0_35
; %bb.34:
	ldr	w9, [x22]
	ldr	x10, [x22, #8]
	ldr	x10, [x10]
Lloh49:
	adrp	x11, l_.str.2@PAGE
Lloh50:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x10, #0
	csel	x8, x8, x11, eq
	b	LBB0_36
LBB0_35:
	mov	w9, #-1
LBB0_36:
Lloh51:
	adrp	x4, l_.str.4@PAGE
Lloh52:
	add	x4, x4, l_.str.4@PAGEOFF
LBB0_37:
	stp	x9, x8, [sp]
LBB0_38:
	mov	x0, x19
	bl	_hostapd_logger
	mov	x21, #0
	mov	w23, #0
	mov	w22, #-1
LBB0_39:
	ldr	w1, [x20]
	str	w23, [x20]
	add	x8, x21, #16
	cmp	x21, #0
	csel	x8, xzr, x8, eq
	str	x8, [x20, #8]
	cmp	w23, w1
	ccmp	w1, #0, #4, ne
	b.eq	LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_vlan_remove_dynamic
LBB0_41:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_DYNAMIC_VLAN_DISABLED,8,3      ; @DYNAMIC_VLAN_DISABLED
	.comm	_VLAN_ID_WILDCARD,4,2           ; @VLAN_ID_WILDCARD
	.comm	_HOSTAPD_MODULE_IEEE80211,4,2   ; @HOSTAPD_MODULE_IEEE80211
	.comm	_HOSTAPD_LEVEL_DEBUG,4,2        ; @HOSTAPD_LEVEL_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"per_sta_vif missing wildcard"

l_.str.1:                               ; @.str.1
	.asciz	"missing vlan and wildcard for vlan=%d%s"

l_.str.2:                               ; @.str.2
	.asciz	"+"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"could not add dynamic VLAN interface for vlan=%d%s"

l_.str.5:                               ; @.str.5
	.asciz	"added new dynamic VLAN interface '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"updated existing dynamic VLAN interface '%s'"

.subsections_via_symbols
