	.file	"extr_if_tuntap.c_tuncreate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"si_drv1 should have been initialized at creation"
	.align 8
.LC1:
	.string	"%s%d: failed to if_alloc() interface.\n"
	.align 8
.LC2:
	.string	"interface %s is created, minor = %#x\n"
	.text
	.p2align 4
	.type	tuncreate, @function
tuncreate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rdi]
	xor	edi, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	r12, r12
	setne	dil
	call	KASSERT@PLT
	mov	r14, QWORD PTR 16[r12]
	mov	ebx, DWORD PTR IFF_MULTICAST[rip]
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR TUN_L2[rip], eax
	je	.L2
	mov	edi, DWORD PTR IFT_ETHER[rip]
	or	ebx, DWORD PTR IFF_BROADCAST[rip]
	or	ebx, DWORD PTR IFF_SIMPLEX[rip]
.L3:
	call	if_alloc@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rbp, rax
	test	rax, rax
	je	.L10
.L4:
	mov	QWORD PTR 48[rbp], r12
	mov	rdi, r13
	call	dev2unit@PLT
	mov	esi, DWORD PTR [r14]
	mov	rdi, rbp
	lea	r14, 8[rbp]
	mov	edx, eax
	call	if_initname@PLT
	mov	eax, DWORD PTR tunifioctl[rip]
	mov	DWORD PTR 0[rbp], ebx
	mov	rdi, r14
	mov	esi, DWORD PTR ifqmaxlen[rip]
	mov	DWORD PTR 40[rbp], eax
	call	IFQ_SET_MAXLEN@PLT
	mov	eax, DWORD PTR IFCAP_LINKSTATE[rip]
	or	DWORD PTR 36[rbp], eax
	or	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR TUN_L2[rip], eax
	je	.L5
	mov	eax, DWORD PTR ETHERMTU[rip]
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR tunifinit[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR tunstart_l2[rip]
	mov	DWORD PTR 20[rbp], eax
	call	ether_gen_addr@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	ether_ifattach@PLT
.L6:
	mov	rdi, r12
	call	TUN_LOCK@PLT
	mov	eax, DWORD PTR TUN_INITED[rip]
	or	DWORD PTR [r12], eax
	mov	rdi, r12
	call	TUN_UNLOCK@PLT
	mov	rdi, r13
	call	dev2unit@PLT
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	ecx, eax
	call	TUNDEBUG@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR IFT_PPP[rip]
	or	ebx, DWORD PTR IFF_POINTOPOINT[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR TUNMTU[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r14
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR tunstart[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR tunoutput[rip]
	mov	DWORD PTR 16[rbp], eax
	call	IFQ_SET_READY@PLT
	mov	rdi, rbp
	call	if_attach@PLT
	mov	esi, DWORD PTR DLT_NULL[rip]
	mov	edx, 4
	mov	rdi, rbp
	call	bpfattach@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	dev2unit@PLT
	mov	esi, DWORD PTR [r14]
	lea	rdi, .LC1[rip]
	mov	edx, eax
	call	panic@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tuncreate, .-tuncreate
	.comm	tunstart_l2,4,4
	.comm	tunstart,4,4
	.comm	tunoutput,4,4
	.comm	tunifioctl,4,4
	.comm	tunifinit,4,4
	.comm	ifqmaxlen,4,4
	.comm	TUN_L2,4,4
	.comm	TUN_INITED,4,4
	.comm	TUNMTU,4,4
	.comm	IFT_PPP,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_POINTOPOINT,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFCAP_LINKSTATE,4,4
	.comm	ETHERMTU,4,4
	.comm	DLT_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_tuntap.c_tuncreate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"si_drv1 should have been initialized at creation\000"
	.align	2
.LC1:
	.ascii	"%s%d: failed to if_alloc() interface.\012\000"
	.align	2
.LC2:
	.ascii	"interface %s is created, minor = %#x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tuncreate, %function
tuncreate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	ldr	r3, .L12
	mov	r6, r0
	ldr	r9, .L12+4
	subs	r0, r5, #0
	movne	r0, #1
	ldr	r1, .L12+8
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	KASSERT
	ldr	r1, [r5]
	ldr	r2, [r9]
	ldr	r3, .L12+12
	tst	r1, r2
	ldr	r10, [r5, #8]
	ldr	r7, [r3]
	beq	.L2
	ldr	r3, .L12+16
	ldr	r2, .L12+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r7, r7, r3
	ldr	r3, .L12+24
	orr	r7, r7, r2
	ldr	r0, [r3]
.L3:
	bl	if_alloc
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r5, #4]
	beq	.L10
.L4:
	mov	r0, r6
	str	r5, [r4, #40]
	ldr	r10, [r10]
	bl	dev2unit
	mov	r8, r4
	mov	r2, r0
	mov	r1, r10
	mov	r0, r4
	bl	if_initname
	ldr	r3, .L12+28
	ldr	r2, .L12+32
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r4, #36]
	str	r7, [r8], #8
	mov	r0, r8
	bl	IFQ_SET_MAXLEN
	ldr	r3, .L12+36
	ldr	ip, [r5]
	ldr	r1, [r3]
	ldr	r2, [r4, #32]
	ldr	r3, [r4, #28]
	ldr	r0, [r9]
	orr	r2, r2, r1
	orr	r3, r3, r1
	ands	r0, ip, r0
	str	r2, [r4, #32]
	str	r3, [r4, #28]
	beq	.L5
	ldr	r1, .L12+40
	ldr	r2, .L12+44
	ldr	r3, .L12+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r4, #20]
	mov	r0, r4
	mov	r1, sp
	str	r2, [r4, #24]
	str	r3, [r4, #16]
	bl	ether_gen_addr
	mov	r0, r4
	ldr	r1, [sp]
	bl	ether_ifattach
.L6:
	mov	r0, r5
	bl	TUN_LOCK
	ldr	r2, .L12+52
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r5]
	bl	TUN_UNLOCK
	mov	r0, r6
	ldr	r5, [r4, #4]
	bl	dev2unit
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L12+56
	mov	r0, r4
	bl	TUNDEBUG
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L12+60
	ldr	r2, .L12+64
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r7, r7, r3
	b	.L3
.L5:
	ldr	r1, .L12+68
	ldr	r2, .L12+72
	ldr	r3, .L12+76
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [r4, #20]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	str	r0, [r4, #8]
	mov	r0, r8
	bl	IFQ_SET_READY
	mov	r0, r4
	bl	if_attach
	ldr	r3, .L12+80
	mov	r2, #4
	mov	r0, r4
	ldr	r1, [r3]
	bl	bpfattach
	b	.L6
.L10:
	mov	r0, r6
	ldr	r8, [r10]
	bl	dev2unit
	mov	r1, r8
	mov	r2, r0
	ldr	r0, .L12+84
	bl	panic
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	TUN_L2
	.word	.LC0
	.word	IFF_MULTICAST
	.word	IFF_BROADCAST
	.word	IFF_SIMPLEX
	.word	IFT_ETHER
	.word	tunifioctl
	.word	ifqmaxlen
	.word	IFCAP_LINKSTATE
	.word	ETHERMTU
	.word	tunifinit
	.word	tunstart_l2
	.word	TUN_INITED
	.word	.LC2
	.word	IFF_POINTOPOINT
	.word	IFT_PPP
	.word	TUNMTU
	.word	tunstart
	.word	tunoutput
	.word	DLT_NULL
	.word	.LC1
	.size	tuncreate, .-tuncreate
	.comm	tunstart_l2,4,4
	.comm	tunstart,4,4
	.comm	tunoutput,4,4
	.comm	tunifioctl,4,4
	.comm	tunifinit,4,4
	.comm	ifqmaxlen,4,4
	.comm	TUN_L2,4,4
	.comm	TUN_INITED,4,4
	.comm	TUNMTU,4,4
	.comm	IFT_PPP,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_POINTOPOINT,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFCAP_LINKSTATE,4,4
	.comm	ETHERMTU,4,4
	.comm	DLT_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
