	.file	"81410.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/81410.c"
.LC1:
	.string	"0"
	.text
	.globl	tuntap_setup
	.type	tuntap_setup, @function
tuntap_setup:
.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, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -72[rbp], edx
	mov	DWORD PTR -84[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -72[rbp], 1
	je	.L2
	cmp	DWORD PTR -72[rbp], 2
	je	.L3
	jmp	.L11
.L2:
	mov	WORD PTR -32[rbp], 1
	jmp	.L5
.L3:
	mov	WORD PTR -32[rbp], 2
	jmp	.L5
.L11:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 40
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L5:
	cmp	DWORD PTR -84[rbp], 0
	jne	.L6
	movzx	eax, WORD PTR -32[rbp]
	or	ah, 16
	mov	WORD PTR -32[rbp], ax
.L6:
	mov	rcx, QWORD PTR -80[rbp]
	lea	rax, -48[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1074025674
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L7
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L9
.L7:
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 32
	mov	BYTE PTR [rax], 0
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tuntap_setup, .-tuntap_setup
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 13
__PRETTY_FUNCTION__.0:
	.string	"tuntap_setup"
	.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	"81410.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/81410.c\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tuntap_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	tuntap_setup, %function
tuntap_setup:
	@ 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, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L3
	b	.L11
.L2:
	mov	r3, #1
	strh	r3, [fp, #-24]	@ movhi
	b	.L5
.L3:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	b	.L5
.L11:
	ldr	r3, .L12+4
	mov	r2, #40
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	__assert_fail
.L5:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L6
	ldrsh	r3, [fp, #-24]
	orr	r3, r3, #4096
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
.L6:
	sub	r3, fp, #40
	mov	r2, #15
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L12+16
	ldr	r0, [fp, #-48]
	bl	ioctl
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L7
	ldr	r3, [fp, #-44]
	b	.L9
.L7:
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	strncpy
	ldr	r3, [fp, #-52]
	add	r3, r3, #32
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
.L9:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.4947
	.word	.LC0
	.word	.LC1
	.word	1074025674
	.size	tuntap_setup, .-tuntap_setup
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4947, %object
	.size	__PRETTY_FUNCTION__.4947, 13
__PRETTY_FUNCTION__.4947:
	.ascii	"tuntap_setup\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
