	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tap_alloc
_tap_alloc:                             ## @tap_alloc
	.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	_TAP_CLONEDEV@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_D
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAP_CLONEDEV,8,3               ## @TAP_CLONEDEV
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s open successful"

	.comm	_IFF_NO_PI,4,2                  ## @IFF_NO_PI
	.comm	_IFF_TAP,4,2                    ## @IFF_TAP
	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.comm	_TUNSETIFF,4,2                  ## @TUNSETIFF
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_tap_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tap_alloc
_tap_alloc:                             ; @tap_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _TAP_CLONEDEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAP_CLONEDEV@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_D
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TAP_CLONEDEV,8,3               ; @TAP_CLONEDEV
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s open successful"

	.comm	_IFF_NO_PI,4,2                  ; @IFF_NO_PI
	.comm	_IFF_TAP,4,2                    ; @IFF_TAP
	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.comm	_TUNSETIFF,4,2                  ; @TUNSETIFF
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_tap_alloc
.subsections_via_symbols
