	.file	"156392743.c"
	.intel_syntax noprefix
	.text
	.globl	open_tty
	.type	open_tty, @function
open_tty:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], 1579266
	mov	edx, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L2
	mov	eax, DWORD PTR -84[rbp]
	jmp	.L4
.L2:
	lea	rax, -80[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	DWORD PTR 56[rax], 0
	mov	DWORD PTR -72[rbp], 6322
	mov	DWORD PTR -80[rbp], 132
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -68[rbp], 2
	mov	BYTE PTR -63[rbp], 0
	mov	BYTE PTR -62[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	BYTE PTR -60[rbp], 0
	mov	BYTE PTR -59[rbp], 4
	mov	BYTE PTR -58[rbp], 0
	mov	BYTE PTR -57[rbp], 1
	mov	BYTE PTR -56[rbp], 0
	mov	BYTE PTR -55[rbp], 0
	mov	BYTE PTR -54[rbp], 0
	mov	BYTE PTR -53[rbp], 0
	mov	BYTE PTR -52[rbp], 0
	mov	BYTE PTR -51[rbp], 0
	mov	BYTE PTR -50[rbp], 0
	mov	BYTE PTR -49[rbp], 0
	mov	BYTE PTR -48[rbp], 0
	mov	BYTE PTR -47[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcflush@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	mov	eax, DWORD PTR -84[rbp]
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	open_tty, .-open_tty
	.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	"156392743.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_tty
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_tty, %function
open_tty:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	str	r3, [fp, #-76]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	open
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-72]
	b	.L4
.L2:
	sub	r3, fp, #68
	mov	r0, r3
	mov	r3, #60
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L6+8
	str	r3, [fp, #-60]
	mov	r3, #132
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #2
	str	r3, [fp, #-56]
	mov	r3, #0
	strb	r3, [fp, #-51]
	mov	r3, #0
	strb	r3, [fp, #-50]
	mov	r3, #0
	strb	r3, [fp, #-49]
	mov	r3, #0
	strb	r3, [fp, #-48]
	mov	r3, #4
	strb	r3, [fp, #-47]
	mov	r3, #0
	strb	r3, [fp, #-46]
	mov	r3, #1
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-44]
	mov	r3, #0
	strb	r3, [fp, #-43]
	mov	r3, #0
	strb	r3, [fp, #-42]
	mov	r3, #0
	strb	r3, [fp, #-41]
	mov	r3, #0
	strb	r3, [fp, #-40]
	mov	r3, #0
	strb	r3, [fp, #-39]
	mov	r3, #0
	strb	r3, [fp, #-38]
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #0
	strb	r3, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-35]
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcflush
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	ldr	r3, [fp, #-72]
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	1579266
	.word	6322
	.size	open_tty, .-open_tty
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
