	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tap_cleanup
_tap_cleanup:                           ## @tap_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ARGV_APPEND
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ARGV_APPEND
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ARGV_APPEND
	movq	_ctx_@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ARGV_APPEND
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ARGV_APPEND
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_exec_command
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip"

L_.str.1:                               ## @.str.1
	.asciz	"link"

L_.str.2:                               ## @.str.2
	.asciz	"del"

	.comm	_ctx_,8,3                       ## @ctx_
L_str:                                  ## @str
	.asciz	"Failed to destroy tap interface"

	.no_dead_strip	_tap_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tap_cleanup
_tap_cleanup:                           ; @tap_cleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	bl	_ARGV_APPEND
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	bl	_ARGV_APPEND
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	bl	_ARGV_APPEND
Lloh9:
	adrp	x8, _ctx_@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ctx_@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_ARGV_APPEND
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, #0
	bl	_ARGV_APPEND
	add	x1, sp, #8
	mov	w0, #0
	bl	_exec_command
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	ldur	x8, [x29, #-8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip"

l_.str.1:                               ; @.str.1
	.asciz	"link"

l_.str.2:                               ; @.str.2
	.asciz	"del"

	.comm	_ctx_,8,3                       ; @ctx_
l_str:                                  ; @str
	.asciz	"Failed to destroy tap interface"

	.no_dead_strip	_tap_cleanup
.subsections_via_symbols
