	.file	"257808.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\033[31mH\033[32me\033[33ml\033[34ml\033[35mo\033[36m!\033[0m"
.LC1:
	.string	""
	.align 8
.LC2:
	.string	"This is a sample program of xterm-pty."
	.align 8
.LC3:
	.string	"You can exit this program by Ctrl+D."
.LC4:
	.string	"[Echo ON] Input your name: "
	.align 8
.LC5:
	.string	"[Echo OFF] Input your password: "
	.align 8
.LC6:
	.string	"Hello, %s! The length of your password is %ld.\n"
.LC7:
	.string	"Good bye!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 592
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L8
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -528[rbp+rax], 0
	lea	rax, -592[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -580[rbp]
	and	eax, -9
	mov	DWORD PTR -580[rbp], eax
	lea	rax, -592[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L9
	lea	rax, -592[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -580[rbp]
	or	eax, 8
	mov	DWORD PTR -580[rbp], eax
	lea	rax, -592[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L5
.L8:
	nop
	jmp	.L3
.L9:
	nop
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-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	"257808.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[31mH\033[32me\033[33ml\033[34ml\033[35mo\033[3"
	.ascii	"6m!\033[0m\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"This is a sample program of xterm-pty.\000"
	.align	2
.LC3:
	.ascii	"You can exit this program by Ctrl+D.\000"
	.align	2
.LC4:
	.ascii	"[Echo ON] Input your name: \000"
	.align	2
.LC5:
	.ascii	"[Echo OFF] Input your password: \000"
	.align	2
.LC6:
	.ascii	"Hello, %s! The length of your password is %ld.\012\000"
	.align	2
.LC7:
	.ascii	"Good bye!\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 = 576
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #576
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+12
	bl	puts
	ldr	r0, .L10+16
	bl	puts
	ldr	r0, .L10+8
	bl	puts
.L5:
	ldr	r0, .L10+20
	bl	printf
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L10+28
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-516]
	sub	r3, fp, #580
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, [fp, #-568]
	bic	r3, r3, #8
	str	r3, [fp, #-568]
	sub	r3, fp, #580
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L10+28
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #580
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, [fp, #-568]
	orr	r3, r3, #8
	str	r3, [fp, #-568]
	sub	r3, fp, #580
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r0, .L10+8
	bl	puts
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r0, .L10+8
	bl	puts
	b	.L5
.L8:
	nop
	b	.L3
.L9:
	nop
.L3:
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+40
	bl	puts
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdout
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
