	.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	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r15
	movq	16(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	$0, -40(%rbp)
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_ifconfig_open
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ifconfig_get_description
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ifconfig_set_description
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_ifconfig_err_errtype
	movq	%rbx, %rdi
	cmpl	$129, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.10:
	callq	_ifconfig_err_errno
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_7:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_14
LBB0_11:
	callq	_ifconfig_err_errno
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ifconfig_err_ioctlreq
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_14
LBB0_12:
	callq	_ifconfig_err_errno
	leaq	L_.str.8(%rip), %rsi
LBB0_13:
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_14:
	movq	%r15, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_free
	movq	$0, -40(%rbp)
	movq	%rbx, %rdi
	callq	_ifconfig_close
	xorl	%eax, %eax
LBB0_15:
	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. First argument should be interface name, second argument should be the description to set."

L_.str.1:                               ## @.str.1
	.asciz	"Interface name: %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Old description: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"New description: %s\n\n"

L_.str.6:                               ## @.str.6
	.asciz	"Socket error"

L_.str.7:                               ## @.str.7
	.asciz	"IOCTL(%lu) error"

L_.str.8:                               ## @.str.8
	.asciz	"Other error"

L_str:                                  ## @str
	.asciz	"New description successfully set."

.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, #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	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]
	bl	_strdup
	mov	x20, x0
	stp	x19, xzr, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bl	_ifconfig_open
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	add	x2, sp, #8
	mov	x1, x19
	bl	_ifconfig_get_description
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_5:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_ifconfig_set_description
	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_12
; %bb.8:
	mov	x0, x21
	bl	_ifconfig_err_errno
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	mov	w0, #-1
	b	LBB0_15
LBB0_10:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_14
LBB0_11:
	mov	x0, x21
	bl	_ifconfig_err_errno
	mov	x22, x0
	mov	x0, x21
	bl	_ifconfig_err_ioctlreq
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_ifconfig_err_errno
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_13:
	bl	_err
LBB0_14:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	ldr	x0, [sp, #8]
	bl	_free
	str	xzr, [sp, #8]
	mov	x0, x21
	bl	_ifconfig_close
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	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 AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of arguments. First argument should be interface name, second argument should be the description to set."

l_.str.1:                               ; @.str.1
	.asciz	"Interface name: %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Old description: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"New description: %s\n\n"

l_.str.6:                               ; @.str.6
	.asciz	"Socket error"

l_.str.7:                               ; @.str.7
	.asciz	"IOCTL(%lu) error"

l_.str.8:                               ; @.str.8
	.asciz	"Other error"

l_str:                                  ; @str
	.asciz	"New description successfully set."

.subsections_via_symbols
