	.file	"448019.c"
	.intel_syntax noprefix
	.text
	.globl	free_err_msg
	.type	free_err_msg, @function
free_err_msg:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	free_err_msg, .-free_err_msg
	.globl	get_terminal_size
	.type	get_terminal_size, @function
get_terminal_size:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 80
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 24
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 0
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	je	.L6
	movzx	eax, WORD PTR -14[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, WORD PTR -16[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L2
.L6:
	nop
.L2:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_terminal_size, .-get_terminal_size
	.section	.rodata
.LC0:
	.string	"Out of memory.\n"
.LC1:
	.string	"tcgetattr() failed: %d"
.LC2:
	.string	"strerror_r() failed.\n"
	.text
	.globl	set_character_mode
	.type	set_character_mode, @function
set_character_mode:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1104
	mov	QWORD PTR -1096[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 60
	call	calloc@PLT
	mov	QWORD PTR -1080[rbp], rax
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	call	abort@PLT
.L8:
	lea	rax, -1072[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	cmp	eax, -1
	jne	.L9
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -1096[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	call	abort@PLT
.L10:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L15
.L9:
	lea	rcx, -1072[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	mov	edx, 60
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -1060[rbp]
	and	eax, -9
	mov	DWORD PTR -1060[rbp], eax
	mov	eax, DWORD PTR -1060[rbp]
	and	eax, -2
	mov	DWORD PTR -1060[rbp], eax
	mov	eax, DWORD PTR -1060[rbp]
	and	eax, -3
	mov	DWORD PTR -1060[rbp], eax
	lea	rax, -1072[rbp]
	mov	rdx, rax
	mov	esi, 1
	mov	edi, 0
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -1008[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	strerror_r@PLT
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	call	abort@PLT
.L13:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -1096[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	cmp	eax, -1
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	call	abort@PLT
.L14:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L15
.L12:
	mov	rax, QWORD PTR -1080[rbp]
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_character_mode, .-set_character_mode
	.globl	restore_character_mode
	.type	restore_character_mode, @function
restore_character_mode:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	esi, 1
	mov	edi, 0
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L18
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	cmp	eax, -1
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	call	abort@PLT
.L19:
	mov	eax, -1
	jmp	.L20
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	restore_character_mode, .-restore_character_mode
	.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	"448019.c"
	.text
	.align	2
	.global	free_err_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_err_msg, %function
free_err_msg:
	@ 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	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_err_msg, .-free_err_msg
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_terminal_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_terminal_size, %function
get_terminal_size:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	mov	r2, #80
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #24
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L7+4
	mov	r0, #0
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	beq	.L6
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldrh	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L2
.L6:
	nop
.L2:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	21523
	.size	get_terminal_size, .-get_terminal_size
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Out of memory.\012\000"
	.align	2
.LC2:
	.ascii	"tcgetattr() failed: %d\000"
	.align	2
.LC3:
	.ascii	"strerror_r() failed.\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_character_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_character_mode, %function
set_character_mode:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	str	r0, [fp, #-1080]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #60
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	bl	abort
.L10:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+12
	ldr	r0, [fp, #-1080]
	bl	asprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	bl	abort
.L12:
	ldr	r0, [fp, #-1072]
	bl	free
	mov	r3, #0
	b	.L17
.L11:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #60
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	memcpy
	ldr	r3, [fp, #-1056]
	bic	r3, r3, #8
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	bic	r3, r3, #1
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	bic	r3, r3, #2
	str	r3, [fp, #-1056]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, r3
	mov	r1, #1
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #1008
	mov	r2, #1000
	mov	r0, r3
	bl	strerror_r
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	bl	abort
.L15:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+12
	ldr	r0, [fp, #-1080]
	bl	asprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	bl	abort
.L16:
	ldr	r0, [fp, #-1072]
	bl	free
	mov	r3, #0
	b	.L17
.L14:
	ldr	r3, [fp, #-1072]
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	set_character_mode, .-set_character_mode
	.align	2
	.global	restore_character_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	restore_character_mode, %function
restore_character_mode:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r1, #1
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25
	ldr	r0, [fp, #-12]
	bl	asprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L25+8
	bl	fwrite
	bl	abort
.L23:
	mvn	r3, #0
	b	.L24
.L22:
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	stderr
	.word	.LC1
	.size	restore_character_mode, .-restore_character_mode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
