	.file	"757554.c"
	.intel_syntax noprefix
	.text
	.globl	g_RunningPid
	.data
	.align 4
	.type	g_RunningPid, @object
	.size	g_RunningPid, 4
g_RunningPid:
	.long	-1
	.section	.rodata
.LC0:
	.string	"SIGINT ignored"
	.text
	.globl	sigint
	.type	sigint, @function
sigint:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR g_RunningPid[rip]
	cmp	eax, -1
	jne	.L3
	lea	rsi, .LC0[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigint, .-sigint
	.section	.rodata
.LC1:
	.string	"r"
.LC2:
	.string	"root\302\273/config/greeting"
.LC3:
	.string	"%s"
.LC4:
	.string	"Welcome to Pedigree"
.LC5:
	.string	"/dev/tty"
.LC6:
	.string	"Username: "
.LC7:
	.string	"\nUnknown user: `%s'\n"
.LC8:
	.string	"Password: "
.LC9:
	.string	"\b \b"
.LC10:
	.string	"\342\200\242"
.LC11:
	.string	"Password incorrect."
.LC12:
	.string	"HOME=%s"
	.align 8
.LC13:
	.string	"Unable to launch default shell: `%s'\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1440
	mov	DWORD PTR -1428[rbp], edi
	mov	QWORD PTR -1440[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sigint[rip]
	mov	edi, 2
	call	signal@PLT
	call	setsid@PLT
	lea	rax, -1360[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -1356[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -1356[rbp]
	or	eax, 1
	mov	DWORD PTR -1356[rbp], eax
.L5:
	lea	rax, -1360[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 1
	call	tcsetattr@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -1400[rbp], rax
	cmp	QWORD PTR -1400[rbp], 0
	je	.L6
	mov	rdx, QWORD PTR -1400[rbp]
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1412[rbp], eax
	mov	eax, DWORD PTR -1412[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1400[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L18
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L18:
	mov	DWORD PTR g_RunningPid[rip], -1
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	esi, 0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1408[rbp], eax
	mov	eax, DWORD PTR -1408[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -1408[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR stdin[rip], rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1296[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -1392[rbp], rax
	cmp	QWORD PTR -1392[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -1392[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -1392[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1392[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -1392[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -1384[rbp], rax
	cmp	QWORD PTR -1384[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -1392[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -1416[rbp], 0
	lea	rax, -1360[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -1348[rbp]
	and	eax, -11
	mov	DWORD PTR -1348[rbp], eax
	lea	rax, -1360[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	jmp	.L11
.L15:
	cmp	BYTE PTR -1421[rbp], 0
	jne	.L12
	jmp	.L11
.L12:
	cmp	BYTE PTR -1421[rbp], 8
	jne	.L13
	cmp	DWORD PTR -1416[rbp], 0
	jle	.L11
	sub	DWORD PTR -1416[rbp], 1
	mov	eax, DWORD PTR -1416[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L13:
	cmp	BYTE PTR -1421[rbp], 27
	je	.L11
	mov	eax, DWORD PTR -1416[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1416[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -1421[rbp]
	mov	BYTE PTR -1040[rbp+rax], dl
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	cmp	DWORD PTR -1416[rbp], 255
	jg	.L14
	call	getchar@PLT
	mov	BYTE PTR -1421[rbp], al
	cmp	BYTE PTR -1421[rbp], 10
	jne	.L15
.L14:
	lea	rax, -1360[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -1348[rbp]
	or	eax, 10
	mov	DWORD PTR -1348[rbp], eax
	lea	rax, -1360[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -1416[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	mov	rax, QWORD PTR -1384[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	login@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L9
.L16:
	call	fork@PLT
	mov	DWORD PTR -1404[rbp], eax
	mov	eax, DWORD PTR -1404[rbp]
	mov	DWORD PTR g_RunningPid[rip], eax
	mov	eax, DWORD PTR g_RunningPid[rip]
	test	eax, eax
	jne	.L17
	mov	DWORD PTR g_RunningPid[rip], -1
	mov	edi, 256
	call	malloc@PLT
	mov	QWORD PTR -1376[rbp], rax
	mov	QWORD PTR -1368[rbp], 0
	mov	rax, QWORD PTR -1384[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -1376[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1384[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -1384[rbp]
	mov	rax, QWORD PTR 40[rax]
	lea	rdx, -1376[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	mov	eax, 0
	call	execle@PLT
	mov	rax, QWORD PTR -1384[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rcx, -1420[rbp]
	mov	eax, DWORD PTR -1404[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR g_RunningPid[rip], -1
.L9:
	jmp	.L18
	.cfi_endproc
.LFE7:
	.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	"757554.c"
	.text
	.global	g_RunningPid
	.data
	.align	2
	.type	g_RunningPid, %object
	.size	g_RunningPid, 4
g_RunningPid:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SIGINT ignored\000"
	.text
	.align	2
	.global	sigint
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint, %function
sigint:
	@ 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, .L4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r1, .L4+4
	mov	r0, #5
	bl	syslog
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	g_RunningPid
	.word	.LC0
	.size	sigint, .-sigint
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"root\302\273/config/greeting\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"Welcome to Pedigree\000"
	.align	2
.LC5:
	.ascii	"/dev/tty\000"
	.align	2
.LC6:
	.ascii	"Username: \000"
	.align	2
.LC7:
	.ascii	"\012Unknown user: `%s'\012\000"
	.align	2
.LC8:
	.ascii	"Password: \000"
	.align	2
.LC9:
	.ascii	"\010 \010\000"
	.align	2
.LC10:
	.ascii	"\342\200\242\000"
	.align	2
.LC11:
	.ascii	"Password incorrect.\000"
	.align	2
.LC12:
	.ascii	"HOME=%s\000"
	.align	2
.LC13:
	.ascii	"Unable to launch default shell: `%s'\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1392
	sub	sp, sp, #8
	str	r0, [fp, #-1400]
	str	r1, [fp, #-1404]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L22+4
	mov	r0, #2
	bl	signal
	bl	setsid
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	tcgetattr
	ldr	r3, [fp, #-1348]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-1348]
	orr	r3, r3, #1
	str	r3, [fp, #-1348]
.L7:
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #0
	mov	r0, #1
	bl	tcsetattr
	ldr	r1, .L22+8
	ldr	r0, .L22+12
	bl	fopen
	str	r0, [fp, #-1384]
	ldr	r3, [fp, #-1384]
	cmp	r3, #0
	beq	.L8
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r3, [fp, #-1384]
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1380]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1380]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r0, [fp, #-1384]
	bl	fclose
	b	.L20
.L8:
	ldr	r0, .L22+20
	bl	puts
.L20:
	ldr	r3, .L22+24
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r1, #0
	ldr	r0, .L22+32
	bl	open
	str	r0, [fp, #-1376]
	mov	r1, #0
	ldr	r0, [fp, #-1376]
	bl	dup2
	ldr	r1, .L22+8
	ldr	r0, [fp, #-1376]
	bl	fdopen
	mov	r3, r0
	ldr	r2, .L22+28
	str	r3, [r2]
	ldr	r0, .L22+36
	bl	printf
	ldr	r3, .L22+28
	ldr	r2, [r3]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-1372]
	ldr	r3, [fp, #-1372]
	cmp	r3, #0
	bne	.L10
	ldr	r1, [fp, #-1372]
	ldr	r0, .L22+40
	bl	printf
	b	.L11
.L10:
	ldr	r0, [fp, #-1372]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-1372]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-1372]
	bl	getpwnam
	str	r0, [fp, #-1368]
	ldr	r3, [fp, #-1368]
	cmp	r3, #0
	bne	.L12
	ldr	r1, [fp, #-1372]
	ldr	r0, .L22+40
	bl	printf
	b	.L11
.L12:
	ldr	r0, .L22+44
	bl	printf
	ldr	r3, .L22+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-1388]
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, [fp, #-1340]
	bic	r3, r3, #10
	str	r3, [fp, #-1340]
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	b	.L13
.L17:
	ldrb	r3, [fp, #-1393]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	b	.L13
.L14:
	ldrb	r3, [fp, #-1393]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L15
	ldr	r3, [fp, #-1388]
	cmp	r3, #0
	ble	.L13
	ldr	r3, [fp, #-1388]
	sub	r3, r3, #1
	str	r3, [fp, #-1388]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1388]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L22+52
	bl	printf
	b	.L13
.L15:
	ldrb	r3, [fp, #-1393]	@ zero_extendqisi2
	cmp	r3, #27
	beq	.L13
	ldr	r3, [fp, #-1388]
	add	r2, r3, #1
	str	r2, [fp, #-1388]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-1393]
	strb	r2, [r3, #-1032]
	ldr	r0, .L22+56
	bl	printf
.L13:
	ldr	r3, [fp, #-1388]
	cmp	r3, #255
	bgt	.L16
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-1393]
	ldrb	r3, [fp, #-1393]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L17
.L16:
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, [fp, #-1340]
	orr	r3, r3, #10
	str	r3, [fp, #-1340]
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1388]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1368]
	ldr	r3, [r3, #8]
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	login
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L22+60
	bl	puts
	b	.L11
.L18:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1364]
	ldr	r2, .L22+24
	ldr	r3, [fp, #-1364]
	str	r3, [r2]
	ldr	r3, .L22+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L22+24
	mvn	r2, #0
	str	r2, [r3]
	mov	r0, #256
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1360]
	mov	r3, #0
	str	r3, [fp, #-1356]
	ldr	r0, [fp, #-1360]
	ldr	r3, [fp, #-1368]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, .L22+64
	bl	sprintf
	ldr	r3, [fp, #-1368]
	ldr	r0, [r3, #24]
	ldr	r3, [fp, #-1368]
	ldr	r1, [r3, #24]
	sub	r3, fp, #1344
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #0
	bl	execle
	ldr	r3, [fp, #-1368]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L22+68
	bl	printf
	mov	r0, #1
	bl	exit
.L19:
	sub	r3, fp, #1376
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1364]
	bl	waitpid
	ldr	r3, .L22+24
	mvn	r2, #0
	str	r2, [r3]
.L11:
	b	.L20
.L23:
	.align	2
.L22:
	.word	.LC14
	.word	sigint
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	g_RunningPid
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdout
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
