	.file	"8687.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"This binary is not designed for running in this way\n-- the system administrator has been informed\n"
.LC1:
	.string	"%s username \n"
.LC2:
	.string	"getspnam: unknown <%s>\n"
.LC3:
	.string	"Trying: <%s>\n"
.LC4:
	.string	"This one worked! %s\n"
.LC5:
	.string	"%s"
.LC6:
	.string	"Failed!!!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	QWORD PTR -1056[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	isatty@PLT
	test	eax, eax
	jne	.L2
	cmp	DWORD PTR -1044[rbp], 2
	je	.L3
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 98
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 10
	call	sleep@PLT
	mov	eax, 1
	jmp	.L9
.L3:
	cmp	DWORD PTR -1044[rbp], 1
	jg	.L5
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L9
.L5:
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getspnam@PLT
	mov	QWORD PTR -1040[rbp], rax
	cmp	QWORD PTR -1040[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L9
.L8:
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdx, QWORD PTR 8[rax]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -1032[rbp], rax
	cmp	QWORD PTR -1032[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -1032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L9
.L7:
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jg	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"8687.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This binary is not designed for running in this way"
	.ascii	"\012-- the system administrator has been informed\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s username \012\000"
	.align	2
.LC2:
	.ascii	"getspnam: unknown <%s>\012\000"
	.align	2
.LC3:
	.ascii	"Trying: <%s>\012\000"
	.align	2
.LC4:
	.ascii	"This one worked! %s\012\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"Failed!!!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	str	r1, [fp, #-1028]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-1024]
	cmp	r3, #2
	beq	.L3
.L2:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r2, #98
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r0, #10
	bl	sleep
	mov	r3, #1
	b	.L9
.L3:
	ldr	r3, [fp, #-1024]
	cmp	r3, #1
	bgt	.L5
	ldr	r3, .L11+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1028]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+12
	bl	fprintf
	mov	r3, #1
	b	.L9
.L5:
	ldr	r3, [fp, #-1028]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	getspnam
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1028]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+16
	bl	fprintf
	mov	r3, #1
	b	.L9
.L8:
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, [fp, #-1020]
	ldr	r2, [r3, #4]
	sub	r3, fp, #1012
	mov	r1, r2
	mov	r0, r3
	bl	crypt
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-1020]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-1016]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	mov	r3, #0
	b	.L9
.L7:
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L11+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L11+32
	bl	puts
	mov	r3, #1
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
