	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_dellink                   ## -- Begin function vlan_dellink
	.p2align	4, 0x90
_vlan_dellink:                          ## @vlan_dellink
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	8(%rax), %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r13, %r13
	je	LBB0_34
## %bb.1:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.18:
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:
	cmpq	$0, 40(%rbx)
	jne	LBB0_4
	jmp	LBB0_27
LBB0_2:
	movq	%r13, %r15
	movq	%r13, %rbx
	cmpq	$0, 40(%rbx)
	je	LBB0_27
LBB0_4:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	28(%rbx), %r12d
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.5:
	movq	32(%rbx), %rdi
	xorl	%r14d, %r14d
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rsi
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %r13
	movq	%r8, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_vlan_bridge_name
	movq	_DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %ecx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %r8
	callq	_vlan_dellink_tagged
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	callq	_vlan_put_bridge
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %r8
	movq	_MAX_NUM_TAGGED_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r14,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, %ecx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%rsi), %ecx
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%r14), %edx
	cmpl	(%rdi,%rdx,4), %ecx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.21:
	testl	%r12d, %r12d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_26
## %bb.22:
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_26
## %bb.23:
	movq	%r8, %rdi
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_vlan_bridge_name
	movq	_DVLAN_CLEAN_WLAN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_25
## %bb.24:
	movq	(%rbx), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_br_delif
LBB0_25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_vlan_put_bridge
	jmp	LBB0_26
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdi
	cmpb	$0, (%rdi)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_26
## %bb.16:
	movq	_DVLAN_CLEAN_WLAN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_26
## %bb.17:
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_br_delif
LBB0_26:
	movq	%r14, %rsp
LBB0_27:
	movq	(%rbx), %rdi
	callq	_if_nametoindex
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_vlan_if_remove
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_30:
	cmpq	%r13, %rbx
	je	LBB0_31
## %bb.32:
	movq	16(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	%rbx, %r13
	jmp	LBB0_33
LBB0_31:
	movq	16(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
LBB0_33:
	movq	%r13, %rdi
	callq	_os_free
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN: vlan_dellink(%s)"

	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ## @MAX_NUM_TAGGED_VLAN
	.comm	_MAX_VLAN_ID,4,2                ## @MAX_VLAN_ID
	.comm	_DYNAMIC_VLAN_NAMING_WITH_DEVICE,4,2 ## @DYNAMIC_VLAN_NAMING_WITH_DEVICE
	.comm	_DVLAN_CLEAN_WLAN_PORT,4,2      ## @DVLAN_CLEAN_WLAN_PORT
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"VLAN: Could not remove VLAN iface: %s: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_dellink                   ; -- Begin function vlan_dellink
	.p2align	2
_vlan_dellink:                          ; @vlan_dellink
	.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	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x1]
	ldr	x19, [x8, #8]
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_wpa_printf
	cbz	x19, LBB0_32
; %bb.1:
	ldr	x1, [x19]
	mov	x0, x22
	bl	_os_strcmp
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x21
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_32
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21]
	mov	x0, x22
	bl	_os_strcmp
	cbnz	x0, LBB0_3
; %bb.5:
	ldr	x8, [x21, #40]
	cbnz	x8, LBB0_7
	b	LBB0_25
LBB0_6:
	mov	x25, x19
	mov	x21, x19
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_25
LBB0_7:
	mov	x8, sp
	stp	x19, x8, [x29, #-112]           ; 16-byte Folded Spill
	ldp	w8, w23, [x21, #24]
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	ldr	x28, [x21, #32]
Lloh8:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh13:
	adrp	x8, _MAX_NUM_TAGGED_VLAN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_NUM_TAGGED_VLAN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x10, _MAX_VLAN_ID@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MAX_VLAN_ID@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x27, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	x19, x10
	bl	_vlan_bridge_name
Lloh18:
	adrp	x8, _DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DYNAMIC_VLAN_NAMING_WITH_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	lsl	x26, x27, #2
	ldr	w3, [x28, x26]
	mov	x1, x22
	mov	x2, x24
	mov	x4, x20
	bl	_vlan_dellink_tagged
	ldr	w2, [x28, x26]
	mov	x0, x24
	mov	x1, x20
	bl	_vlan_put_bridge
	mov	x10, x19
Lloh21:
	adrp	x8, _MAX_NUM_TAGGED_VLAN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_NUM_TAGGED_VLAN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x28, x27, lsl #2]
	cbz	w3, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x10]
	cmp	w3, w23
	ccmp	w3, #1, #8, ne
	ccmp	w3, w9, #0, ge
	b.gt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x27, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w9, w27, #1
	ldr	w9, [x28, w9, uxtw #2]
	cmp	w3, w9
	b.ne	LBB0_9
	b	LBB0_10
LBB0_15:
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_21
; %bb.16:
	cmp	w23, #1
	ldp	x19, x26, [x29, #-112]          ; 16-byte Folded Reload
	b.lt	LBB0_24
; %bb.17:
	ldr	w8, [x10]
	cmp	w23, w8
	b.gt	LBB0_24
; %bb.18:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_vlan_bridge_name
	ldr	w8, [x21, #8]
Lloh24:
	adrp	x9, _DVLAN_CLEAN_WLAN_PORT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DVLAN_CLEAN_WLAN_PORT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	x1, [x21]
	mov	x0, x24
	bl	_br_delif
LBB0_20:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x23
	bl	_vlan_put_bridge
	b	LBB0_24
LBB0_21:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldrb	w8, [x0]
	ldp	x19, x26, [x29, #-112]          ; 16-byte Folded Reload
	cbz	w8, LBB0_24
; %bb.22:
	ldr	w8, [x21, #8]
Lloh27:
	adrp	x9, _DVLAN_CLEAN_WLAN_PORT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DVLAN_CLEAN_WLAN_PORT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	x1, x22
	bl	_br_delif
LBB0_24:
	mov	sp, x26
LBB0_25:
	ldr	x0, [x21]
	bl	_if_nametoindex
	cbz	x0, LBB0_28
; %bb.26:
	mov	x0, x20
	mov	x1, x21
	bl	_vlan_if_remove
	cbz	x0, LBB0_28
; %bb.27:
Lloh30:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	ldr	x23, [x21]
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_28:
	cmp	x21, x19
	b.eq	LBB0_30
; %bb.29:
	ldr	x8, [x21, #16]
	str	x8, [x25, #16]
	mov	x19, x21
	b	LBB0_31
LBB0_30:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	str	x8, [x9, #8]
LBB0_31:
	mov	x0, x19
	bl	_os_free
LBB0_32:
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	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_34:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN: vlan_dellink(%s)"

	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_MAX_NUM_TAGGED_VLAN,4,2        ; @MAX_NUM_TAGGED_VLAN
	.comm	_MAX_VLAN_ID,4,2                ; @MAX_VLAN_ID
	.comm	_DYNAMIC_VLAN_NAMING_WITH_DEVICE,4,2 ; @DYNAMIC_VLAN_NAMING_WITH_DEVICE
	.comm	_DVLAN_CLEAN_WLAN_PORT,4,2      ; @DVLAN_CLEAN_WLAN_PORT
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"VLAN: Could not remove VLAN iface: %s: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
