	.file	"352926.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r+"
	.text
	.globl	getpass
	.type	getpass, @function
getpass:
.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, 448
	mov	QWORD PTR -440[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	ctermid@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -408[rbp], rax
	cmp	QWORD PTR -408[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -408[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -272[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	lea	rax, -400[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -400[rbp]
	mov	rdx, QWORD PTR -392[rbp]
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], rdx
	mov	rax, QWORD PTR -384[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -312[rbp], rdx
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], rdx
	mov	rax, QWORD PTR -352[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	eax, DWORD PTR -344[rbp]
	mov	DWORD PTR -280[rbp], eax
	mov	eax, DWORD PTR -388[rbp]
	and	eax, -121
	mov	DWORD PTR -388[rbp], eax
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ecx, eax
	lea	rax, -400[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, ecx
	call	tcsetattr@PLT
	mov	rdx, QWORD PTR -408[rbp]
	mov	rax, QWORD PTR -440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, buf.0[rip]
	mov	QWORD PTR -416[rbp], rax
	jmp	.L4
.L6:
	lea	rax, buf.0[rip+8]
	cmp	QWORD PTR -416[rbp], rax
	jnb	.L4
	mov	rax, QWORD PTR -416[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -416[rbp], rdx
	mov	edx, DWORD PTR -420[rbp]
	mov	BYTE PTR [rax], dl
.L4:
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -420[rbp], eax
	cmp	DWORD PTR -420[rbp], -1
	je	.L5
	cmp	DWORD PTR -420[rbp], 10
	jne	.L6
.L5:
	mov	rax, QWORD PTR -416[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -408[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ecx, eax
	lea	rax, -336[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, ecx
	call	tcsetattr@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, buf.0[rip]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getpass, .-getpass
	.local	buf.0
	.comm	buf.0,9,8
	.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	"352926.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r+\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getpass
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpass, %function
getpass:
	@ args = 0, pretend = 0, frame = 400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #400
	str	r0, [fp, #-400]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	ctermid
	mov	r3, r0
	ldr	r1, .L9+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-392]
	ldr	r3, [fp, #-392]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L7
.L2:
	mov	r1, #0
	ldr	r0, [fp, #-392]
	bl	setbuf
	sub	r3, fp, #264
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #264
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #264
	mov	r1, #20
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #136
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	ldr	r0, [fp, #-392]
	bl	fileno
	mov	r2, r0
	sub	r3, fp, #384
	mov	r1, r3
	mov	r0, r2
	bl	tcgetattr
	sub	ip, fp, #324
	sub	lr, fp, #384
	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, #-372]
	bic	r3, r3, #120
	str	r3, [fp, #-372]
	ldr	r0, [fp, #-392]
	bl	fileno
	sub	r3, fp, #384
	mov	r2, r3
	mov	r1, #2
	bl	tcsetattr
	ldr	r1, [fp, #-392]
	ldr	r0, [fp, #-400]
	bl	fputs
	ldr	r3, .L9+8
	str	r3, [fp, #-396]
	b	.L4
.L6:
	ldr	r3, [fp, #-396]
	ldr	r2, .L9+12
	cmp	r3, r2
	bcs	.L4
	ldr	r3, [fp, #-396]
	add	r2, r3, #1
	str	r2, [fp, #-396]
	ldr	r2, [fp, #-388]
	and	r2, r2, #255
	strb	r2, [r3]
.L4:
	ldr	r0, [fp, #-392]
	bl	getc
	str	r0, [fp, #-388]
	ldr	r3, [fp, #-388]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-388]
	cmp	r3, #10
	bne	.L6
.L5:
	ldr	r3, [fp, #-396]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-392]
	mov	r0, #10
	bl	putc
	ldr	r0, [fp, #-392]
	bl	fileno
	sub	r3, fp, #324
	mov	r2, r3
	mov	r1, #2
	bl	tcsetattr
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	ldr	r0, [fp, #-392]
	bl	fclose
	ldr	r3, .L9+8
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.word	buf.5092
	.word	buf.5092+8
	.size	getpass, .-getpass
	.local	buf.5092
	.comm	buf.5092,9,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
