	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_newlink                   ## -- Begin function vlan_newlink
	.p2align	4, 0x90
_vlan_newlink:                          ## @vlan_newlink
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_printf
	movq	(%r14), %rax
	movq	8(%rax), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %esi
	movq	%r12, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$1, (%rbx)
	movl	12(%rbx), %r13d
	movq	16(%rbx), %r12
	cmpl	$0, 8(%rbx)
	je	LBB0_6
## %bb.7:
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.8:
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_vlan_bridge_name
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_vlan_get_bridge
	movq	%r15, %rdi
	jmp	LBB0_10
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_12
LBB0_10:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_addif
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_DVLAN_CLEAN_WLAN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_12:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.13:
	xorl	%r15d, %r15d
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rsi
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_vlan_bridge_name
	movl	(%r12,%r15,4), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vlan_get_bridge
	movq	_DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12,%r15,4), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %r8
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	callq	_vlan_newlink_tagged
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rsi
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r13d, %ecx
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	(%rsi), %ecx
	jg	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	-1(%r15), %edx
	cmpl	(%r12,%rdx,4), %ecx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ifconfig_up
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN: vlan_newlink(%s)"

	.comm	_DVLAN_CLEAN_WLAN_PORT,4,2      ## @DVLAN_CLEAN_WLAN_PORT
	.comm	_MAX_VLAN_ID,4,2                ## @MAX_VLAN_ID
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ## @MAX_NUM_TAGGED_VLAN
	.comm	_DYNAMIC_VLAN_NAMING_WITH_DEVICE,4,2 ## @DYNAMIC_VLAN_NAMING_WITH_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_newlink                   ; -- Begin function vlan_newlink
	.p2align	2
_vlan_newlink:                          ; @vlan_newlink
	.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, #16
	mov	x20, x1
	mov	x19, 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	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	x22, [x8, #8]
	cbnz	x22, LBB0_2
	b	LBB0_20
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cbnz	w8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22, #24]
	mov	x0, x19
	bl	_os_strcmp
	cbnz	x0, LBB0_1
; %bb.4:
	mov	w8, #1
	str	w8, [x22]
	ldp	w8, w23, [x22, #8]
	ldr	x24, [x22, #16]
Lloh13:
	adrp	x25, _MAX_VLAN_ID@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MAX_VLAN_ID@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.5:
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.6:
	ldr	w8, [x25]
	cmp	w23, w8
	b.gt	LBB0_11
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_vlan_bridge_name
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_vlan_get_bridge
	mov	x0, x21
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
LBB0_9:
	mov	x1, x19
	bl	_br_addif
	cbnz	w0, LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _DVLAN_CLEAN_WLAN_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DVLAN_CLEAN_WLAN_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
LBB0_11:
Lloh18:
	adrp	x26, _MAX_NUM_TAGGED_VLAN@GOTPAGE
Lloh19:
	ldr	x26, [x26, _MAX_NUM_TAGGED_VLAN@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x27, #0
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_vlan_bridge_name
	lsl	x28, x27, #2
	ldr	w2, [x24, x28]
	mov	x0, x21
	mov	x1, x20
	bl	_vlan_get_bridge
Lloh20:
	adrp	x8, _DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w3, [x24, x28]
	mov	x1, x19
	mov	x2, x21
	mov	x4, x20
	bl	_vlan_newlink_tagged
	ldr	w8, [x26]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24, x27, lsl #2]
	cbz	w3, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x25]
	cmp	w3, w23
	ccmp	w3, #1, #8, ne
	ccmp	w3, w9, #0, ge
	b.gt	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	cbz	x27, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w9, w27, #1
	ldr	w9, [x24, w9, uxtw #2]
	cmp	w3, w9
	b.ne	LBB0_13
	b	LBB0_14
LBB0_19:
	mov	x0, x19
	bl	_ifconfig_up
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN: vlan_newlink(%s)"

	.comm	_DVLAN_CLEAN_WLAN_PORT,4,2      ; @DVLAN_CLEAN_WLAN_PORT
	.comm	_MAX_VLAN_ID,4,2                ; @MAX_VLAN_ID
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ; @MAX_NUM_TAGGED_VLAN
	.comm	_DYNAMIC_VLAN_NAMING_WITH_DEVICE,4,2 ; @DYNAMIC_VLAN_NAMING_WITH_DEVICE
.subsections_via_symbols
