	.file	"75137372.c"
	.intel_syntax noprefix
	.text
	.globl	digit1
	.type	digit1, @function
digit1:
.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 6
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	digit1, .-digit1
	.globl	digit2
	.type	digit2, @function
digit2:
.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, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 8
	jne	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	digit2, .-digit2
	.globl	digit3
	.type	digit3, @function
digit3:
.LFB8:
	.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 2
	jne	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	digit3, .-digit3
	.globl	digit4
	.type	digit4, @function
digit4:
.LFB9:
	.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 4
	jne	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	digit4, .-digit4
	.globl	digit5
	.type	digit5, @function
digit5:
.LFB10:
	.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 9
	jne	.L14
	mov	eax, 1
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	digit5, .-digit5
	.globl	digit6
	.type	digit6, @function
digit6:
.LFB11:
	.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	eax, edi
	mov	BYTE PTR -4[rbp], al
	lea	rax, -4[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	eax, 1
	jne	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	digit6, .-digit6
	.section	.rodata
	.align 8
.LC0:
	.string	"Nexxus Data Warehouse East. Gate 3A PIN: "
.LC1:
	.string	"Invalid PIN."
.LC2:
	.string	"Incorrect PIN."
	.align 8
.LC3:
	.string	"Welcome to Nexxus Data Warehouse East."
.LC4:
	.string	"r"
.LC5:
	.string	"/home/re1/flag.txt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	QWORD PTR -16[rbp], 0
	jne	.L20
	mov	eax, -1
	jmp	.L21
.L20:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 7
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 6
	je	.L22
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 1
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit1
	test	al, al
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit2
	test	al, al
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit3
	test	al, al
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit4
	test	al, al
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit5
	test	al, al
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	digit6
	test	al, al
	jne	.L24
.L23:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 1
	jmp	.L21
.L24:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L25
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	putchar@PLT
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L25:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"75137372.c"
	.text
	.align	2
	.global	digit1
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit1, %function
digit1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #6
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit1, .-digit1
	.align	2
	.global	digit2
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit2, %function
digit2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #8
	bne	.L5
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit2, .-digit2
	.align	2
	.global	digit3
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit3, %function
digit3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #2
	bne	.L8
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit3, .-digit3
	.align	2
	.global	digit4
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit4, %function
digit4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #4
	bne	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit4, .-digit4
	.align	2
	.global	digit5
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit5, %function
digit5:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #9
	bne	.L14
	mov	r3, #1
	b	.L15
.L14:
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit5, .-digit5
	.align	2
	.global	digit6
	.syntax unified
	.arm
	.fpu softvfp
	.type	digit6, %function
digit6:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	sub	r3, fp, #5
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	cmp	r3, #1
	bne	.L17
	mov	r3, #1
	b	.L18
.L17:
	mov	r3, #0
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	digit6, .-digit6
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Nexxus Data Warehouse East. Gate 3A PIN: \000"
	.align	2
.LC1:
	.ascii	"Invalid PIN.\000"
	.align	2
.LC2:
	.ascii	"Incorrect PIN.\000"
	.align	2
.LC3:
	.ascii	"Welcome to Nexxus Data Warehouse East.\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"/home/re1/flag.txt\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r2, #32
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	mvn	r3, #0
	b	.L21
.L20:
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L28+4
	bl	fwrite
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L28+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-16]
	bl	fgets
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	cmp	r3, #6
	beq	.L22
	ldr	r0, .L28+12
	bl	puts
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	b	.L21
.L22:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit1
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit2
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit3
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit4
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit5
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	digit6
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
.L23:
	ldr	r0, .L28+16
	bl	puts
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	b	.L21
.L24:
	ldr	r0, .L28+20
	bl	puts
	ldr	r1, .L28+24
	ldr	r0, .L28+28
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	b	.L26
.L27:
	ldr	r0, [fp, #-8]
	bl	putchar
.L26:
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L27
	ldr	r0, [fp, #-12]
	bl	fclose
.L25:
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	stdout
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
