	.file	"505622.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/tty"
.LC1:
	.string	"%s"
.LC2:
	.string	"\n"
	.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 524546
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L2
	mov	eax, 0
	jmp	.L10
.L2:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -10
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, 2
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	al, 63
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	or	ah, 1
	mov	DWORD PTR -80[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	mov	eax, DWORD PTR -156[rbp]
	mov	edi, eax
	call	tcdrain@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -156[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	mov	eax, 0
	call	dprintf@PLT
	mov	eax, DWORD PTR -156[rbp]
	mov	edx, 128
	lea	rsi, password.0[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	js	.L4
	cmp	QWORD PTR -152[rbp], 0
	jle	.L5
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, -1[rax]
	lea	rax, password.0[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 10
	je	.L6
.L5:
	cmp	QWORD PTR -152[rbp], 128
	jne	.L7
.L6:
	sub	QWORD PTR -152[rbp], 1
.L7:
	lea	rdx, password.0[rip]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L4:
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	mov	eax, DWORD PTR -156[rbp]
	lea	rsi, .LC2[rip]
	mov	edi, eax
	mov	eax, 0
	call	dprintf@PLT
	mov	eax, DWORD PTR -156[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	QWORD PTR -152[rbp], 0
	js	.L8
	lea	rax, password.0[rip]
	jmp	.L10
.L8:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getpass, .-getpass
	.local	password.0
	.comm	password.0,128,32
	.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	"505622.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/tty\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getpass
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpass, %function
getpass:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	open
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bge	.L2
	mov	r3, #0
	b	.L10
.L2:
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	tcgetattr
	sub	ip, fp, #128
	sub	lr, fp, #68
	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, #9
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	orr	r3, r3, #2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #192
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	orr	r3, r3, #256
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-132]
	bl	tcsetattr
	ldr	r0, [fp, #-132]
	bl	tcdrain
	ldr	r2, [fp, #-144]
	ldr	r1, .L12+12
	ldr	r0, [fp, #-132]
	bl	dprintf
	mov	r2, #128
	ldr	r1, .L12+16
	ldr	r0, [fp, #-132]
	bl	read
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-136]
	sub	r3, r3, #1
	ldr	r2, .L12+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L6
.L5:
	ldr	r3, [fp, #-136]
	cmp	r3, #128
	bne	.L7
.L6:
	ldr	r3, [fp, #-136]
	sub	r3, r3, #1
	str	r3, [fp, #-136]
.L7:
	ldr	r2, .L12+16
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L4:
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-132]
	bl	tcsetattr
	ldr	r1, .L12+20
	ldr	r0, [fp, #-132]
	bl	dprintf
	ldr	r0, [fp, #-132]
	bl	close
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	blt	.L8
	ldr	r3, .L12+16
	b	.L10
.L8:
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	524546
	.word	.LC0
	.word	.LC1
	.word	password.5794
	.word	.LC2
	.size	getpass, .-getpass
	.local	password.5794
	.comm	password.5794,128,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
