	.file	"28855.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/net/tun"
	.text
	.type	create_tap_link, @function
create_tap_link:
.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	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 15
	jbe	.L2
	mov	eax, 36
	jmp	.L9
.L2:
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L9
.L4:
	mov	WORD PTR -32[rbp], 4098
	mov	rcx, QWORD PTR -72[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 -52[rbp]
	mov	esi, 1074025674
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L9
.L5:
	cmp	QWORD PTR -80[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 1
	mov	esi, 1074025675
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
.L7:
	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	create_tap_link, .-create_tap_link
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: tap_attach INTERFACE COMMAND [ ARGS ... ]"
.LC2:
	.string	"create_tap_link(%s)"
.LC3:
	.string	"the_stack_data/28855.c"
.LC4:
	.string	"fd == 3"
.LC5:
	.string	"*argv[0]"
.LC6:
	.string	"execv(%s)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -84[rbp], 2
	jg	.L12
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L12:
	mov	DWORD PTR -80[rbp], -1
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	create_tap_link
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L13:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, 3
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 60
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L14:
	add	QWORD PTR -96[rbp], 16
	sub	DWORD PTR -84[rbp], 2
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	basename@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 67
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L18:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L19:
	mov	rsp, rbx
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"28855.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/net/tun\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_tap_link, %function
create_tap_link:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	cmp	r3, #15
	bls	.L2
	mov	r3, #36
	b	.L9
.L2:
	mov	r1, #2
	ldr	r0, .L11+4
	bl	open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L9
.L4:
	ldr	r3, .L11+8
	strh	r3, [fp, #-24]	@ movhi
	sub	r3, fp, #40
	mov	r2, #15
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L11+12
	ldr	r0, [fp, #-44]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L9
.L5:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	b	.L7
.L6:
	mov	r2, #1
	ldr	r1, .L11+16
	ldr	r0, [fp, #-44]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L9
.L8:
	ldr	r0, [fp, #-44]
	bl	close
.L7:
	mov	r3, #0
.L9:
	ldr	r2, .L11
	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}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.word	4098
	.word	1074025674
	.word	1074025675
	.size	create_tap_link, .-create_tap_link
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: tap_attach INTERFACE COMMAND [ ARGS ... ]\000"
	.align	2
.LC3:
	.ascii	"create_tap_link(%s)\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/28855.c\000"
	.align	2
.LC5:
	.ascii	"fd == 3\000"
	.align	2
.LC6:
	.ascii	"*argv[0]\000"
	.align	2
.LC7:
	.ascii	"execv(%s)\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L14
	ldr	r1, .L21+4
	mov	r0, #1
	bl	errx
.L14:
	mvn	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	create_tap_link
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+8
	mov	r0, #1
	bl	err
.L15:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L16
	ldr	r3, .L21+12
	mov	r2, #60
	ldr	r1, .L21+16
	ldr	r0, .L21+20
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	ip, r3, #1
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcpy
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	basename
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L21+12
	mov	r2, #67
	ldr	r1, .L21+16
	ldr	r0, .L21+24
	bl	__assert_fail
.L17:
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-20]
	bl	execvp
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L18
	ldr	r2, [fp, #-20]
	ldr	r1, .L21+28
	mov	r0, #1
	bl	err
.L18:
	mov	sp, r4
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.6163
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6163, %object
	.size	__PRETTY_FUNCTION__.6163, 5
__PRETTY_FUNCTION__.6163:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
