	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_init                      ## -- Begin function vlan_init
	.p2align	4, 0x90
_vlan_init:                             ## @vlan_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rax), %rcx
	movq	_DYNAMIC_VLAN_DISABLED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 24(%rax)
	je	LBB0_2
LBB0_3:
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_9
## %bb.4:
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	_VLAN_ID_WILDCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	movq	(%r14), %rax
	movl	8(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_os_snprintf
	cmpl	$4, %eax
	jl	LBB0_10
## %bb.7:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_2:
	movq	(%rax), %r15
	jmp	LBB0_9
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
LBB0_8:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r15)
	movq	%r15, (%rax)
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vlan_dynamic_add
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DYNAMIC_VLAN_DISABLED,8,3      ## @DYNAMIC_VLAN_DISABLED
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory while assigning VLAN interfaces"

	.comm	_VLAN_ID_WILDCARD,4,2           ## @VLAN_ID_WILDCARD
L_.str.1:                               ## @.str.1
	.asciz	"%s.#"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"VLAN: Interface name was truncated to %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_init                      ; -- Begin function vlan_init
	.p2align	2
_vlan_init:                             ; @vlan_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8, #16]
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_2
; %bb.1:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_6
LBB0_2:
	ldr	x20, [x8]
	cbnz	x20, LBB0_10
; %bb.3:
	mov	w0, #16
	bl	_os_zalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
Lloh3:
	adrp	x8, _VLAN_ID_WILDCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLAN_ID_WILDCARD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
	ldr	w3, [x8, #8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_os_snprintf
	cmp	w0, #4
	b.lt	LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
LBB0_6:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w21, #-1
	b	LBB0_11
LBB0_8:
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x8]
	str	x9, [x20]
	str	x20, [x8]
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_vlan_dynamic_add
	cmp	x0, #0
	csetm	w21, ne
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x20
	bl	_os_free
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DYNAMIC_VLAN_DISABLED,8,3      ; @DYNAMIC_VLAN_DISABLED
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory while assigning VLAN interfaces"

	.comm	_VLAN_ID_WILDCARD,4,2           ; @VLAN_ID_WILDCARD
l_.str.1:                               ; @.str.1
	.asciz	"%s.#"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"VLAN: Interface name was truncated to %s"

.subsections_via_symbols
