	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_vlanid          ## -- Begin function radius_msg_get_vlanid
	.p2align	4, 0x90
_radius_msg_get_vlanid:                 ## @radius_msg_get_vlanid
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RADIUS_TUNNEL_TAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$5, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	shll	$5, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_os_memset
	testl	%r13d, %r13d
	jle	LBB0_2
## %bb.1:
	movl	%r13d, %esi
	shlq	$2, %rsi
	movq	%r14, %rdi
	callq	___bzero
LBB0_2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jae	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_radius_get_attr_hdr
	movslq	(%rax), %r14
	cmpq	$8, %r14
	jb	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r14d
	jl	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rax), %ecx
	movq	_RADIUS_TUNNEL_TAGS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	movl	$0, %r13d
	cmovll	%ecx, %r13d
	cmpl	$129, 4(%rax)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	cmpl	%edx, %ecx
	setl	%sil
	subq	%rsi, %r14
	addq	$-8, %r14
	cmpq	$9, %r14
	ja	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rax
	xorl	%esi, %esi
	cmpl	%edx, %ecx
	setl	%sil
	leaq	(%rax,%rsi,4), %rsi
	leaq	-58(%rbp), %rdi
	movq	%r14, %rdx
	callq	_os_memcpy
	movb	$0, -58(%rbp,%r14)
	leaq	-58(%rbp), %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r13d, %rcx
	shlq	$5, %rcx
	incq	24(%r12,%rcx)
	movl	%eax, 16(%r12,%rcx)
	jmp	LBB0_18
LBB0_6:
	movq	_RADIUS_TUNNEL_TAGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	movq	_RADIUS_TUNNEL_TYPE_VLAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_RADIUS_TUNNEL_MEDIUM_TYPE_802@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$24, %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$32, %r12
	decq	%rax
	je	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rcx, -24(%r12)
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rdx, -16(%r12)
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-8(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_19
## %bb.12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
LBB0_20:
	xorl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	setg	%al
	jmp	LBB0_21
LBB0_5:
	movl	$-1, %eax
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_TUNNEL_TAGS,4,2         ## @RADIUS_TUNNEL_TAGS
	.comm	_RADIUS_TUNNEL_TYPE_VLAN,8,3    ## @RADIUS_TUNNEL_TYPE_VLAN
	.comm	_RADIUS_TUNNEL_MEDIUM_TYPE_802,8,3 ## @RADIUS_TUNNEL_MEDIUM_TYPE_802
	.comm	_cmp_int,4,2                    ## @cmp_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_get_vlanid          ; -- Begin function radius_msg_get_vlanid
	.p2align	2
_radius_msg_get_vlanid:                 ; @radius_msg_get_vlanid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _RADIUS_TUNNEL_TAGS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _RADIUS_TUNNEL_TAGS@GOTPAGEOFF]
	ldr	w12, [x24]
	lsl	x8, x12, #5
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w2, w12, #5
	mov	x0, x21
	mov	w1, #0
	bl	_os_memset
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w8, w23
	lsl	x1, x8, #2
	mov	x0, x22
	bl	_bzero
LBB0_2:
	str	wzr, [x19]
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.3:
	mov	x22, #0
	mov	x25, #-9
	sub	x26, x29, #98
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_radius_get_attr_hdr
	ldrsw	x8, [x0]
	cmp	w8, #8
	b.lo	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
	ldp	w11, w10, [x0, #4]
	cmp	w10, w9
	csel	w27, w10, wzr, lt
	cmp	w11, #129
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w10, w9
	cinc	x11, x25, ge
	add	x23, x11, x8
	cmp	x23, #9
	b.hi	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x0, #8
	cmp	w10, w9
	cset	w9, lt
	add	x1, x8, w9, uxtw #2
	sub	x0, x29, #98
	mov	x2, x23
	bl	_os_memcpy
	strb	wzr, [x26, x23]
	sub	x0, x29, #98
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w27
	add	x8, x21, x8, lsl #5
	ldr	x9, [x8, #24]
	add	x9, x9, #1
	str	x9, [x8, #24]
	str	w0, [x8, #16]
	b	LBB0_4
LBB0_11:
	ldrsw	x8, [x24]
	cbz	w8, LBB0_19
; %bb.12:
Lloh7:
	adrp	x9, _RADIUS_TUNNEL_TYPE_VLAN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RADIUS_TUNNEL_TYPE_VLAN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _RADIUS_TUNNEL_MEDIUM_TYPE_802@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RADIUS_TUNNEL_MEDIUM_TYPE_802@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	add	x11, x21, #16
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x11, #32
	subs	x8, x8, #1
	b.eq	LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x12, [x11, #-16]
	cmp	x12, x9
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x12, [x11, #-8]
	cmp	x12, x10
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w12, [x11]
	cmp	w12, #1
	b.lt	LBB0_13
; %bb.18:
	str	w12, [x19]
LBB0_19:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, gt
	b	LBB0_21
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_TUNNEL_TAGS,4,2         ; @RADIUS_TUNNEL_TAGS
	.comm	_RADIUS_TUNNEL_TYPE_VLAN,8,3    ; @RADIUS_TUNNEL_TYPE_VLAN
	.comm	_RADIUS_TUNNEL_MEDIUM_TYPE_802,8,3 ; @RADIUS_TUNNEL_MEDIUM_TYPE_802
	.comm	_cmp_int,4,2                    ; @cmp_int
.subsections_via_symbols
