	.file	"103111.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/net/tun"
.LC1:
	.string	"error enabling TUNSETPERSIST"
	.text
	.globl	tun_alloc
	.type	tun_alloc, @function
tun_alloc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jns	.L2
	mov	eax, DWORD PTR -64[rbp]
	jmp	.L7
.L2:
	lea	rax, -48[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 4098
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L4
	mov	rcx, QWORD PTR -72[rbp]
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L4:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, 1074025674
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L5
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -60[rbp]
	jmp	.L7
.L5:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	DWORD PTR -76[rbp], 1
	jne	.L6
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 1
	mov	esi, 1074025675
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -64[rbp]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tun_alloc, .-tun_alloc
	.section	.rodata
.LC2:
	.string	"disabling TUNSETPERSIST"
	.text
	.globl	tun_delete
	.type	tun_delete, @function
tun_delete:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 1074025675
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tun_delete, .-tun_delete
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"103111.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/net/tun\000"
	.align	2
.LC1:
	.ascii	"error enabling TUNSETPERSIST\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tun_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	tun_alloc, %function
tun_alloc:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	str	r3, [fp, #-52]
	mov	r1, #2
	ldr	r0, [fp, #-52]
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-48]
	b	.L7
.L2:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L9+8
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #40
	mov	r2, #16
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strncpy
.L4:
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L9+12
	ldr	r0, [fp, #-48]
	bl	ioctl
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L5
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r3, [fp, #-44]
	b	.L7
.L5:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcpy
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bne	.L6
	mov	r2, #1
	ldr	r1, .L9+16
	ldr	r0, [fp, #-48]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L9+20
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-48]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	4098
	.word	1074025674
	.word	1074025675
	.word	.LC1
	.size	tun_alloc, .-tun_alloc
	.section	.rodata
	.align	2
.LC3:
	.ascii	"disabling TUNSETPERSIST\000"
	.text
	.align	2
	.global	tun_delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	tun_delete, %function
tun_delete:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #0
	ldr	r1, .L14
	ldr	r0, [fp, #-8]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L14+4
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	1074025675
	.word	.LC3
	.size	tun_delete, .-tun_delete
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
