	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_update_vlan
_ieee802_1x_update_vlan:                ## @ieee802_1x_update_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	leaq	-40(%rbp), %rsi
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_radius_msg_get_vlanid
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, -56(%rbp)
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movl	8(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_hostapd_vlan_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$0, -56(%rbp)
	setne	%r12b
LBB0_3:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_DYNAMIC_VLAN_REQUIRED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	testb	%r12b, %r12b
	jne	LBB0_6
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %esi
	movq	_HOSTAPD_MODULE_IEEE8021X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hostapd_logger
	jmp	LBB0_8
LBB0_6:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ap_sta_set_vlan
	jmp	LBB0_9
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %esi
	movq	_HOSTAPD_MODULE_RADIUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-40(%rbp), %r9d
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	%rdi, (%rsp)
	leaq	L_.str(%rip), %r8
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hostapd_logger
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ap_sta_set_vlan
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ## @MAX_NUM_TAGGED_VLAN
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_HOSTAPD_MODULE_RADIUS,4,2      ## @HOSTAPD_MODULE_RADIUS
	.comm	_HOSTAPD_LEVEL_INFO,4,2         ## @HOSTAPD_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VLAN %d%s received from RADIUS server"

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

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

	.comm	_DYNAMIC_VLAN_REQUIRED,8,3      ## @DYNAMIC_VLAN_REQUIRED
	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ## @HOSTAPD_MODULE_IEEE8021X
L_.str.3:                               ## @.str.3
	.asciz	"authentication server did not include required VLAN ID in Access-Accept"

	.no_dead_strip	_ieee802_1x_update_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_update_vlan
_ieee802_1x_update_vlan:                ; @ieee802_1x_update_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x22, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	add	x1, x22, #16
Lloh0:
	adrp	x8, _MAX_NUM_TAGGED_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NUM_TAGGED_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	x3, [sp, #32]
	mov	x0, x21
	bl	_radius_msg_get_vlanid
	cmp	w0, #0
	cset	w8, ne
	str	w8, [sp, #24]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	add	x1, sp, #24
	bl	_hostapd_vlan_valid
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #24]
	cmp	w8, #0
	cset	w8, ne
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	ldr	x9, [x19]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DYNAMIC_VLAN_REQUIRED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DYNAMIC_VLAN_REQUIRED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	tbnz	w8, #0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _HOSTAPD_LEVEL_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HOSTAPD_LEVEL_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x4, l_.str.3@PAGE
Lloh16:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hostapd_logger
	b	LBB0_9
LBB0_7:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_ap_sta_set_vlan
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _HOSTAPD_MODULE_RADIUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOSTAPD_MODULE_RADIUS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _HOSTAPD_LEVEL_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HOSTAPD_LEVEL_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	ldr	x8, [sp, #32]
Lloh26:
	adrp	x9, l_.str.1@PAGE
Lloh27:
	add	x9, x9, l_.str.1@PAGEOFF
	ldr	x8, [x8]
Lloh28:
	adrp	x10, l_.str.2@PAGE
Lloh29:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w9, [sp, #40]
Lloh30:
	adrp	x4, l_.str@PAGE
Lloh31:
	add	x4, x4, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	mov	x0, x19
	bl	_hostapd_logger
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_ap_sta_set_vlan
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ; @MAX_NUM_TAGGED_VLAN
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_HOSTAPD_MODULE_RADIUS,4,2      ; @HOSTAPD_MODULE_RADIUS
	.comm	_HOSTAPD_LEVEL_INFO,4,2         ; @HOSTAPD_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VLAN %d%s received from RADIUS server"

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

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

	.comm	_DYNAMIC_VLAN_REQUIRED,8,3      ; @DYNAMIC_VLAN_REQUIRED
	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ; @HOSTAPD_MODULE_IEEE8021X
l_.str.3:                               ; @.str.3
	.asciz	"authentication server did not include required VLAN ID in Access-Accept"

	.no_dead_strip	_ieee802_1x_update_vlan
.subsections_via_symbols
