	.file	"9528.c"
	.intel_syntax noprefix
	.text
	.local	save_termios
	.comm	save_termios,60,32
	.data
	.align 4
	.type	ttysavefd, @object
	.size	ttysavefd, 4
ttysavefd:
	.long	-1
	.local	ttystate
	.comm	ttystate,4,4
	.text
	.globl	tty_cbreak
	.type	tty_cbreak, @function
tty_cbreak:
.LFB0:
	.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 -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -84[rbp]
	lea	rsi, save_termios[rip]
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L2
	mov	eax, -1
	jmp	.L5
.L2:
	mov	rax, QWORD PTR save_termios[rip]
	mov	rdx, QWORD PTR save_termios[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+16]
	mov	rdx, QWORD PTR save_termios[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+32]
	mov	rdx, QWORD PTR save_termios[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR save_termios[rip+56]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -11
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -57[rbp], 1
	mov	BYTE PTR -58[rbp], 0
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L4
	mov	eax, -1
	jmp	.L5
.L4:
	mov	DWORD PTR ttystate[rip], 2
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR ttysavefd[rip], eax
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tty_cbreak, .-tty_cbreak
	.globl	tty_raw
	.type	tty_raw, @function
tty_raw:
.LFB1:
	.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 -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -84[rbp]
	lea	rsi, save_termios[rip]
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L8
	mov	eax, -1
	jmp	.L11
.L8:
	mov	rax, QWORD PTR save_termios[rip]
	mov	rdx, QWORD PTR save_termios[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+16]
	mov	rdx, QWORD PTR save_termios[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+32]
	mov	rdx, QWORD PTR save_termios[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR save_termios[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR save_termios[rip+56]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -32780
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -1331
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -305
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -2
	mov	DWORD PTR -76[rbp], eax
	mov	BYTE PTR -57[rbp], 1
	mov	BYTE PTR -58[rbp], 0
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L10
	mov	eax, -1
	jmp	.L11
.L10:
	mov	DWORD PTR ttystate[rip], 1
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR ttysavefd[rip], eax
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	tty_raw, .-tty_raw
	.globl	tty_reset
	.type	tty_reset, @function
tty_reset:
.LFB2:
	.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 ttystate[rip]
	cmp	eax, 2
	je	.L14
	mov	eax, DWORD PTR ttystate[rip]
	cmp	eax, 1
	je	.L14
	mov	eax, 0
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, save_termios[rip]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L16
	mov	eax, -1
	jmp	.L15
.L16:
	mov	DWORD PTR ttystate[rip], 0
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	tty_reset, .-tty_reset
	.globl	tty_atexit
	.type	tty_atexit, @function
tty_atexit:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ttysavefd[rip]
	test	eax, eax
	js	.L19
	mov	eax, DWORD PTR ttysavefd[rip]
	mov	edi, eax
	call	tty_reset
.L19:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	tty_atexit, .-tty_atexit
	.globl	tty_termios
	.type	tty_termios, @function
tty_termios:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rax, save_termios[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	tty_termios, .-tty_termios
	.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	"9528.c"
	.text
	.local	save_termios
	.comm	save_termios,60,4
	.data
	.align	2
	.type	ttysavefd, %object
	.size	ttysavefd, 4
ttysavefd:
	.word	-1
	.local	ttystate
	.comm	ttystate,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tty_cbreak
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_cbreak, %function
tty_cbreak:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L7+4
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	mvn	r3, #0
	b	.L5
.L2:
	ldr	r3, .L7+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #10
	str	r3, [fp, #-56]
	mov	r3, #1
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r3, .L7+8
	mov	r2, #2
	str	r2, [r3]
	ldr	r2, .L7+12
	ldr	r3, [fp, #-72]
	str	r3, [r2]
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	save_termios
	.word	ttystate
	.word	ttysavefd
	.size	tty_cbreak, .-tty_cbreak
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tty_raw
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_raw, %function
tty_raw:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L15+4
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	mvn	r3, #0
	b	.L13
.L10:
	ldr	r3, .L15+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #32768
	bic	r3, r3, #11
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #1328
	bic	r3, r3, #2
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #304
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	orr	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #1
	str	r3, [fp, #-64]
	mov	r3, #1
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r3, .L15+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, .L15+12
	ldr	r3, [fp, #-72]
	str	r3, [r2]
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	save_termios
	.word	ttystate
	.word	ttysavefd
	.size	tty_raw, .-tty_raw
	.align	2
	.global	tty_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_reset, %function
tty_reset:
	@ 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]
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L18
	ldr	r3, .L21
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L18
	mov	r3, #0
	b	.L19
.L18:
	ldr	r2, .L21+4
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	mvn	r3, #0
	b	.L19
.L20:
	ldr	r3, .L21
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	ttystate
	.word	save_termios
	.size	tty_reset, .-tty_reset
	.align	2
	.global	tty_atexit
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_atexit, %function
tty_atexit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L25
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	tty_reset
.L25:
	nop
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	ttysavefd
	.size	tty_atexit, .-tty_atexit
	.align	2
	.global	tty_termios
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_termios, %function
tty_termios:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L30
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	save_termios
	.size	tty_termios, .-tty_termios
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
