	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$2, %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, %r14
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%eax, %eax
	callq	_ifconfig_open
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ifconfig_destroy_interface
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_ifconfig_err_errtype
	cmpl	$128, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_ifconfig_err_ioctlreq
	movq	_SIOCIFDESTROY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	movq	%rbx, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.6(%rip), %rdi
LBB0_12:
	callq	_warnx
LBB0_13:
	movq	%rbx, %rdi
	callq	_ifconfig_close
	movq	%r14, %rdi
	callq	_free
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	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. Only one argument is accepted, and it should be the name of the interface to be destroyed."

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	"Successfully destroyed interface '%s'."

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

	.comm	_SIOCIFDESTROY,4,2              ## @SIOCIFDESTROY
L_.str.5:                               ## @.str.5
	.asciz	"Failed to destroy interface (SIOCIFDESTROY)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Should basically never end up here in this example.\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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	w0, #2
	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, [x19, #8]
	bl	_strdup
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	bl	_ifconfig_open
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x1, x19
	bl	_ifconfig_destroy_interface
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_ifconfig_err_errtype
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.5:
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_ifconfig_err_ioctlreq
Lloh7:
	adrp	x8, _SIOCIFDESTROY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIOCIFDESTROY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.7:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_15
LBB0_10:
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_12:
	bl	_warnx
LBB0_13:
	mov	x0, x20
	bl	_ifconfig_close
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of arguments. Only one argument is accepted, and it should be the name of the interface to be destroyed."

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	"Successfully destroyed interface '%s'."

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

	.comm	_SIOCIFDESTROY,4,2              ; @SIOCIFDESTROY
l_.str.5:                               ; @.str.5
	.asciz	"Failed to destroy interface (SIOCIFDESTROY)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Should basically never end up here in this example.\n"

.subsections_via_symbols
