	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$4, %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, %r15
	movq	16(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	24(%rbx), %rdi
	movq	_USHRT_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_strtonum
	movl	%eax, %ebx
	cmpq	$0, -40(%rbp)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %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	%r15, %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, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_ifconfig_set_vlantag
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_ifconfig_err_errtype
	cmpl	$129, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.10:
	leaq	L_.str.5(%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_18
LBB0_7:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r12, %rdi
	callq	_ifconfig_close
	movq	%r15, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_12:
	movq	%r12, %rdi
	callq	_ifconfig_err_ioctlreq
	movq	_SIOCGETVLAN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_14:
	movq	%r12, %rdi
	callq	_ifconfig_err_ioctlreq
	movq	_SIOCSETVLAN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
LBB0_11:
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_17
LBB0_16:
	movq	%r12, %rdi
	callq	_ifconfig_err_errno
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
LBB0_17:
	movq	%r12, %rdi
	callq	_ifconfig_close
	movq	%r15, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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 three arguments: INTERFACE, 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	"Interface: %s\nNew VLAN tag: %i\n"

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

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

	.comm	_SIOCGETVLAN,4,2                ## @SIOCGETVLAN
L_.str.6:                               ## @.str.6
	.asciz	"Target interface isn't a VLAN interface.\n"

	.comm	_SIOCSETVLAN,4,2                ## @SIOCSETVLAN
L_.str.7:                               ## @.str.7
	.asciz	"Couldn't change VLAN properties of interface.\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"

L_str:                                  ## @str
	.asciz	"Successfully changed vlan tag."

.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	x21, x1
	cmp	w0, #4
	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, [x21, #8]
	bl	_strdup
	mov	x20, x0
	ldr	x0, [x21, #16]
	bl	_strdup
	mov	x19, x0
	ldr	x0, [x21, #24]
Lloh5:
	adrp	x21, _USHRT_MAX@GOTPAGE
Lloh6:
	ldr	x21, [x21, _USHRT_MAX@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #24
	mov	w1, #0
	bl	_strtonum
	mov	x22, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	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, w22
	stp	x20, x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	bl	_ifconfig_open
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_ifconfig_set_vlantag
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_ifconfig_err_errtype
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_15
; %bb.8:
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	b	LBB0_18
LBB0_10:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_ifconfig_close
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_19
LBB0_11:
	mov	x0, x21
	bl	_ifconfig_err_ioctlreq
Lloh20:
	adrp	x8, _SIOCGETVLAN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIOCGETVLAN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.12:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
LBB0_13:
	mov	x0, x21
	bl	_ifconfig_err_ioctlreq
Lloh25:
	adrp	x8, _SIOCSETVLAN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIOCSETVLAN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.14:
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	bl	_ifconfig_err_errno
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_16:
	bl	_warnx
LBB0_17:
	mov	x0, x21
	bl	_ifconfig_close
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_18:
	mov	w0, #-1
LBB0_19:
	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	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.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 three arguments: INTERFACE, 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	"Interface: %s\nNew VLAN tag: %i\n"

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

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

	.comm	_SIOCGETVLAN,4,2                ; @SIOCGETVLAN
l_.str.6:                               ; @.str.6
	.asciz	"Target interface isn't a VLAN interface.\n"

	.comm	_SIOCSETVLAN,4,2                ; @SIOCSETVLAN
l_.str.7:                               ; @.str.7
	.asciz	"Couldn't change VLAN properties of interface.\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"

l_str:                                  ; @str
	.asciz	"Successfully changed vlan tag."

.subsections_via_symbols
