	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_add                       ## -- Begin function vlan_add
	.p2align	4, 0x90
_vlan_add:                              ## @vlan_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_os_strlen
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_os_strlen
	cmpq	(%rbx), %rax
	jge	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_nl_socket_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	_NETLINK_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nl_connect
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_rtnl_link_get_kernel
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rdi
	callq	_rtnl_link_get_ifindex
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_rtnl_link_put
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_rtnl_link_get_kernel
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi
	callq	_rtnl_link_put
	movq	$0, -48(%rbp)
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %r13d
	jmp	LBB0_24
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
LBB0_2:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r13d
LBB0_28:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_23
LBB0_9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_nl_geterror
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_23
LBB0_12:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_23:
	movl	$-1, %r13d
LBB0_24:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_rtnl_link_put
LBB0_26:
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_nl_socket_free
	jmp	LBB0_28
LBB0_15:
	xorl	%eax, %eax
	callq	_rtnl_link_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_rtnl_link_set_type
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
	callq	_rtnl_link_set_link
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_rtnl_link_set_name
	movq	-48(%rbp), %rdi
	movl	%r12d, %esi
	callq	_rtnl_link_vlan_set_id
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rsi
	movq	_NLM_F_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtnl_link_add
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_24
## %bb.22:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %edi
	callq	_nl_geterror
	movl	%eax, (%rsp)
	leaq	L_.str.10(%rip), %rsi
	movl	%r13d, %edi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movq	%r14, %r8
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_23
LBB0_16:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_7
LBB0_18:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_nl_geterror
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_20:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_nl_geterror
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN: vlan_add(if_name=%s, vid=%d, vlan_if_name=%s)"

	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"VLAN: Interface name too long: '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"VLAN: failed to open netlink socket"

	.comm	_NETLINK_ROUTE,4,2              ## @NETLINK_ROUTE
L_.str.3:                               ## @.str.3
	.asciz	"VLAN: failed to connect to netlink: %s"

L_.str.4:                               ## @.str.4
	.asciz	"VLAN: interface %s does not exist"

L_.str.5:                               ## @.str.5
	.asciz	"VLAN: interface %s already exists"

L_.str.6:                               ## @.str.6
	.asciz	"VLAN: failed to allocate new link"

L_.str.7:                               ## @.str.7
	.asciz	"vlan"

L_.str.8:                               ## @.str.8
	.asciz	"VLAN: failed to set link type: %s"

L_.str.9:                               ## @.str.9
	.asciz	"VLAN: failed to set link vlan id: %s"

	.comm	_NLM_F_CREATE,4,2               ## @NLM_F_CREATE
L_.str.10:                              ## @.str.10
	.asciz	"VLAN: failed to create link %s for vlan %d on %s (%d): %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlan_add                       ; -- Begin function vlan_add
	.p2align	2
_vlan_add:                              ; @vlan_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	stp	x22, x2, [sp, #8]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_os_strlen
Lloh5:
	adrp	x19, _IFNAMSIZ@GOTPAGE
Lloh6:
	ldr	x19, [x19, _IFNAMSIZ@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_os_strlen
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.2:
	bl	_nl_socket_alloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.3:
Lloh7:
	adrp	x8, _NETLINK_ROUTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETLINK_ROUTE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nl_connect
	tbnz	w0, #31, LBB0_12
; %bb.4:
	add	x3, sp, #40
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_rtnl_link_get_kernel
	tbnz	w0, #31, LBB0_13
; %bb.5:
	ldr	x0, [sp, #40]
	bl	_rtnl_link_get_ifindex
	mov	x23, x0
	ldr	x0, [sp, #40]
	bl	_rtnl_link_put
	str	xzr, [sp, #40]
	add	x3, sp, #40
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_rtnl_link_get_kernel
	tbnz	w0, #31, LBB0_18
; %bb.6:
	ldr	x0, [sp, #40]
	bl	_rtnl_link_put
	str	xzr, [sp, #40]
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w20, #1
	ldr	x0, [sp, #40]
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_7:
Lloh15:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x21, [sp]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x20, [sp]
LBB0_9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w20, #-1
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh28:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	bl	_nl_geterror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	b	LBB0_14
LBB0_13:
Lloh33:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	bl	_wpa_printf
	mov	w20, #-1
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_16
LBB0_15:
	bl	_rtnl_link_put
LBB0_16:
	cbz	x19, LBB0_10
; %bb.17:
	mov	x0, x19
	bl	_nl_socket_free
	b	LBB0_10
LBB0_18:
	bl	_rtnl_link_alloc
	str	x0, [sp, #40]
	cbz	x0, LBB0_23
; %bb.19:
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_rtnl_link_set_type
	tbnz	w0, #31, LBB0_24
; %bb.20:
	ldr	x0, [sp, #40]
	mov	x1, x23
	bl	_rtnl_link_set_link
	ldr	x0, [sp, #40]
	mov	x1, x20
	bl	_rtnl_link_set_name
	ldr	x0, [sp, #40]
	mov	x1, x22
	bl	_rtnl_link_vlan_set_id
	tbnz	w0, #31, LBB0_25
; %bb.21:
	ldr	x1, [sp, #40]
Lloh40:
	adrp	x8, _NLM_F_CREATE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NLM_F_CREATE@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtnl_link_add
	tbnz	w0, #31, LBB0_26
; %bb.22:
	mov	w20, #0
	ldr	x0, [sp, #40]
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_23:
Lloh43:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_24:
Lloh48:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh50:
	ldr	w20, [x8]
	bl	_nl_geterror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	b	LBB0_14
LBB0_25:
Lloh53:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh55:
	ldr	w20, [x8]
	bl	_nl_geterror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh56:
	adrp	x1, l_.str.9@PAGE
Lloh57:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	b	LBB0_14
LBB0_26:
Lloh58:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh60:
	ldr	w24, [x8]
	bl	_nl_geterror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #24]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x21, [sp, #8]
	str	x20, [sp]
Lloh61:
	adrp	x1, l_.str.10@PAGE
Lloh62:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x24
	b	LBB0_14
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN: vlan_add(if_name=%s, vid=%d, vlan_if_name=%s)"

	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"VLAN: Interface name too long: '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"VLAN: failed to open netlink socket"

	.comm	_NETLINK_ROUTE,4,2              ; @NETLINK_ROUTE
l_.str.3:                               ; @.str.3
	.asciz	"VLAN: failed to connect to netlink: %s"

l_.str.4:                               ; @.str.4
	.asciz	"VLAN: interface %s does not exist"

l_.str.5:                               ; @.str.5
	.asciz	"VLAN: interface %s already exists"

l_.str.6:                               ; @.str.6
	.asciz	"VLAN: failed to allocate new link"

l_.str.7:                               ; @.str.7
	.asciz	"vlan"

l_.str.8:                               ; @.str.8
	.asciz	"VLAN: failed to set link type: %s"

l_.str.9:                               ; @.str.9
	.asciz	"VLAN: failed to set link vlan id: %s"

	.comm	_NLM_F_CREATE,4,2               ; @NLM_F_CREATE
l_.str.10:                              ; @.str.10
	.asciz	"VLAN: failed to create link %s for vlan %d on %s (%d): %s"

.subsections_via_symbols
