	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_clone_create
_tun_clone_create:                      ## @tun_clone_create
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	$0, -24(%rbp)
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_tuntap_name2info
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	-24(%rbp), %edi
	callq	_tuntap_driver_from_flags
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	-20(%rbp), %esi
	movl	12(%rax), %edi
	cmpl	$-1, %esi
	je	LBB0_7
## %bb.4:
	callq	_alloc_unr_specific
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movl	-20(%rbp), %r8d
	jmp	LBB0_8
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_7:
	callq	_alloc_unr
	movl	%eax, %r8d
	movl	%eax, -20(%rbp)
LBB0_8:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_snprintf
	movq	$0, -32(%rbp)
	movq	%r14, %rdi
	addq	$8, %rdi
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_clone_create
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	-20(%rbp), %esi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_tun_create_device
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	movq	-32(%rbp), %rdi
	callq	_tuncreate
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.no_dead_strip	_tun_clone_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_clone_create
_tun_clone_create:                      ; @tun_clone_create
	.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	x19, x1
	str	wzr, [sp, #4]
	mov	x1, sp
	add	x2, sp, #4
	mov	x0, x19
	bl	_tuntap_name2info
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	w0, [sp, #4]
	bl	_tuntap_driver_from_flags
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	w1, [sp]
	ldr	w0, [x0, #12]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.4:
	bl	_alloc_unr_specific
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:
	ldr	w4, [sp]
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_7:
	bl	_alloc_unr
	mov	x4, x0
	str	w0, [sp]
LBB0_8:
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x21, x20
	ldr	x3, [x21], #8
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	str	xzr, [sp, #8]
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	w4, #0
	bl	_clone_create
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w1, [sp]
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, #0
	mov	x4, x19
	bl	_tun_create_device
	cbnz	w0, LBB0_1
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_tuncreate
	mov	w0, #0
	b	LBB0_1
LBB0_11:
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.no_dead_strip	_tun_clone_create
.subsections_via_symbols
