	.file	"216972.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"W0247-4RXD3-6TW0F-0FD63-64EFD-38180"
	.text
	.globl	verify
	.type	verify, @function
verify:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	verify, .-verify
	.section	.rodata
.LC1:
	.string	"--unregister"
.LC2:
	.string	"r"
.LC3:
	.string	".status"
.LC4:
	.string	"Not registered."
.LC5:
	.string	"Unregistered successfully!"
.LC6:
	.string	"Failed to unregister!\n"
.LC7:
	.string	"%s"
.LC8:
	.string	"Key found: %s\n"
.LC9:
	.string	"Already registered."
.LC10:
	.string	"Enter the licence key: "
.LC11:
	.string	"%[^\n]s"
.LC12:
	.string	"Successfully registered!"
.LC13:
	.string	"w"
.LC14:
	.string	"Invalid key!\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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -548[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC3[rip]
	call	remove@PLT
	test	eax, eax
	jne	.L6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -528[rbp], rax
	cmp	QWORD PTR -528[rbp], 0
	je	.L7
	lea	rdx, -512[rbp]
	mov	rax, QWORD PTR -528[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -528[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	verify
	test	al, al
	je	.L7
	lea	rax, -512[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	cmp	DWORD PTR -548[rbp], 1
	jg	.L8
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -512[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -560[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L9:
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	verify
	test	al, al
	je	.L10
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rsi, .LC13[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -520[rbp], rax
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.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	"216972.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"W0247-4RXD3-6TW0F-0FD63-64EFD-38180\000"
	.text
	.align	2
	.global	verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify, %function
verify:
	@ 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	r1, .L3
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	verify, .-verify
	.section	.rodata
	.align	2
.LC1:
	.ascii	"--unregister\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	".status\000"
	.align	2
.LC4:
	.ascii	"Not registered.\000"
	.align	2
.LC5:
	.ascii	"Unregistered successfully!\000"
	.align	2
.LC6:
	.ascii	"Failed to unregister!\012\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"Key found: %s\012\000"
	.align	2
.LC9:
	.ascii	"Already registered.\000"
	.align	2
.LC10:
	.ascii	"Enter the licence key: \000"
	.align	2
.LC11:
	.ascii	"%[^\012]s\000"
	.align	2
.LC12:
	.ascii	"Successfully registered!\000"
	.align	2
.LC13:
	.ascii	"w\000"
	.align	2
.LC14:
	.ascii	"Invalid key!\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-528]
	cmp	r3, #1
	ble	.L6
	ldr	r3, [fp, #-532]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	bl	fopen
	str	r0, [fp, #-520]
	ldr	r3, [fp, #-520]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L14+16
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	ldr	r0, [fp, #-520]
	bl	fclose
	ldr	r0, .L14+12
	bl	remove
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L14+20
	bl	puts
	mov	r0, #0
	bl	exit
.L8:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L14+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	bl	fopen
	str	r0, [fp, #-516]
	ldr	r3, [fp, #-516]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #508
	mov	r2, r3
	ldr	r1, .L14+32
	ldr	r0, [fp, #-516]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-516]
	bl	fclose
	sub	r3, fp, #508
	mov	r0, r3
	bl	verify
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #508
	mov	r1, r3
	ldr	r0, .L14+36
	bl	printf
	ldr	r0, .L14+40
	bl	puts
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-528]
	cmp	r3, #1
	bgt	.L10
	ldr	r0, .L14+44
	bl	printf
	sub	r3, fp, #508
	mov	r1, r3
	ldr	r0, .L14+48
	bl	__isoc99_scanf
	b	.L11
.L10:
	ldr	r3, [fp, #-532]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #508
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L11:
	sub	r3, fp, #508
	mov	r0, r3
	bl	verify
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L14+52
	bl	puts
	ldr	r1, .L14+56
	ldr	r0, .L14+12
	bl	fopen
	str	r0, [fp, #-512]
	sub	r3, fp, #508
	ldr	r1, [fp, #-512]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-512]
	bl	fclose
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L14+60
	bl	fwrite
	mov	r0, #1
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC15
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
