	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	16(%rbx), %rdi
	movq	_USHRT_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_strtonum
	movl	%eax, %ebx
	cmpq	$0, -40(%rbp)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movzwl	%bx, %ebx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_ifconfig_open
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	leaq	L_.str.4(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_ifconfig_create_interface_vlan
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_ifconfig_err_errtype
	cmpl	$129, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_16
LBB0_7:
	movq	-32(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
	movq	-32(%rbp), %rdi
	callq	_free
	jmp	LBB0_17
LBB0_12:
	movq	%r15, %rdi
	callq	_ifconfig_err_ioctlreq
	movq	_SIOCIFCREATE2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.7(%rip), %rdi
LBB0_11:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	callq	_ifconfig_err_errno
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
LBB0_15:
	movq	%r15, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
	movq	-32(%rbp), %rdi
	callq	_free
LBB0_16:
	movl	$-1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of arguments. Should provide exactly two arguments: PARENT_INTERFACE and VLAN_TAG."

	.comm	_USHRT_MAX,4,2                  ## @USHRT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"VLAN_TAG must be between 0 and %i.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Parent interface: %s\nVLAN tag: %i\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Failed to open libifconfig handle."

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

L_.str.5:                               ## @.str.5
	.asciz	"Successfully created interface '%s'\n"

L_.str.6:                               ## @.str.6
	.asciz	"couldn't create socket. This shouldn't happen.\n"

	.comm	_SIOCIFCREATE2,4,2              ## @SIOCIFCREATE2
L_.str.7:                               ## @.str.7
	.asciz	"Failed to create interface (SIOCIFCREATE2)\n"

L_.str.8:                               ## @.str.8
	.asciz	"This is a thorough example accommodating for temporary 'not implemented yet' errors. That's likely what happened now. If not, your guess is as good as mine. ;) Error code: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_strdup
	mov	x19, x0
	ldr	x0, [x20, #16]
Lloh5:
	adrp	x20, _USHRT_MAX@GOTPAGE
Lloh6:
	ldr	x20, [x20, _USHRT_MAX@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, sp, #16
	mov	w1, #0
	bl	_strtonum
	mov	x21, x0
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	w8, w21
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	bl	_ifconfig_open
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #24
	mov	x3, x19
	mov	x4, x21
	bl	_ifconfig_create_interface_vlan
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_ifconfig_err_errtype
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_13
; %bb.8:
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	b	LBB0_16
LBB0_10:
	ldr	x1, [sp, #24]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
	mov	w0, #0
	b	LBB0_17
LBB0_11:
	mov	x0, x20
	bl	_ifconfig_err_ioctlreq
Lloh22:
	adrp	x8, _SIOCIFCREATE2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIOCIFCREATE2@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.12:
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_ifconfig_err_errno
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.8@PAGE
Lloh28:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_14:
	bl	_warnx
LBB0_15:
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of arguments. Should provide exactly two arguments: PARENT_INTERFACE and VLAN_TAG."

	.comm	_USHRT_MAX,4,2                  ; @USHRT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"VLAN_TAG must be between 0 and %i.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Parent interface: %s\nVLAN tag: %i\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Failed to open libifconfig handle."

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

l_.str.5:                               ; @.str.5
	.asciz	"Successfully created interface '%s'\n"

l_.str.6:                               ; @.str.6
	.asciz	"couldn't create socket. This shouldn't happen.\n"

	.comm	_SIOCIFCREATE2,4,2              ; @SIOCIFCREATE2
l_.str.7:                               ; @.str.7
	.asciz	"Failed to create interface (SIOCIFCREATE2)\n"

l_.str.8:                               ; @.str.8
	.asciz	"This is a thorough example accommodating for temporary 'not implemented yet' errors. That's likely what happened now. If not, your guess is as good as mine. ;) Error code: %d\n"

.subsections_via_symbols
