	.file	"262780.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"w"
.LC2:
	.string	"%1024s"
.LC3:
	.string	"%d%d%d\n"
.LC4:
	.string	"%s\n%d %d\n%d\n"
.LC5:
	.string	"enstegging..."
	.align 8
.LC6:
	.string	"copying rest/adding garbage..."
.LC7:
	.string	"done"
	.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
	push	rbx
	sub	rsp, 1112
	.cfi_offset 3, -24
	mov	DWORD PTR -1108[rbp], edi
	mov	QWORD PTR -1120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1080[rbp], rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1072[rbp], rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	lea	rdx, -1056[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rsi, -1092[rbp]
	lea	rcx, -1096[rbp]
	lea	rdx, -1100[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edi, DWORD PTR -1092[rbp]
	mov	esi, DWORD PTR -1096[rbp]
	mov	ecx, DWORD PTR -1100[rbp]
	lea	rdx, -1056[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L2
.L5:
	mov	DWORD PTR -1088[rbp], 0
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1101[rbp], al
	movzx	eax, BYTE PTR -1101[rbp]
	and	eax, -2
	mov	esi, eax
	movzx	eax, BYTE PTR -1103[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -1088[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	or	eax, esi
	mov	BYTE PTR -1102[rbp], al
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1102[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -1088[rbp], 1
.L3:
	cmp	DWORD PTR -1088[rbp], 7
	jle	.L4
.L2:
	mov	rdx, QWORD PTR -1072[rbp]
	lea	rax, -1103[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L5
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	time@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	hash
	add	eax, ebx
	mov	edi, eax
	call	srand@PLT
	jmp	.L6
.L9:
	mov	DWORD PTR -1084[rbp], 0
	jmp	.L7
.L8:
	call	rand@PLT
	sar	eax, 3
	or	al, -2
	mov	edx, eax
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	movzx	eax, BYTE PTR -1056[rbp+rax]
	and	edx, eax
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], dl
	add	DWORD PTR -1084[rbp], 1
.L7:
	cmp	DWORD PTR -1084[rbp], 1023
	jle	.L8
	mov	eax, DWORD PTR -1092[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -1064[rbp]
	lea	rax, -1056[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L6:
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1056[rbp]
	mov	rcx, rdx
	mov	edx, 1024
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1092[rbp], eax
	mov	eax, DWORD PTR -1092[rbp]
	test	eax, eax
	jne	.L9
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	hash
	.type	hash, @function
hash:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 5381
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L13:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hash, .-hash
	.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	"262780.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"%1024s\000"
	.align	2
.LC3:
	.ascii	"%d%d%d\012\000"
	.align	2
.LC4:
	.ascii	"%s\012%d %d\012%d\012\000"
	.align	2
.LC5:
	.ascii	"enstegging...\000"
	.align	2
.LC6:
	.ascii	"copying rest/adding garbage...\000"
	.align	2
.LC7:
	.ascii	"done\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1072
	sub	sp, sp, #12
	str	r0, [fp, #-1080]
	str	r1, [fp, #-1084]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1084]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1044]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-1052]
	bl	__isoc99_fscanf
	sub	r1, fp, #1056
	sub	r1, r1, #12
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L12+16
	ldr	r0, [fp, #-1052]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-1072]
	ldr	r3, [fp, #-1068]
	ldr	r1, [fp, #-1064]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #4
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r1, .L12+20
	ldr	r0, [fp, #-1044]
	bl	fprintf
	ldr	r0, .L12+24
	bl	puts
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-1060]
	b	.L3
.L4:
	ldr	r0, [fp, #-1052]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-1073]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #5
	ldrsb	r3, [r3]
	bic	r3, r3, #1
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-1075]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-1060]
	asr	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-1074]
	sub	r0, fp, #1056
	sub	r0, r0, #12
	sub	r0, r0, #6
	ldr	r3, [fp, #-1044]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1060]
.L3:
	ldr	r3, [fp, #-1060]
	cmp	r3, #7
	ble	.L4
.L2:
	sub	r0, fp, #1056
	sub	r0, r0, #12
	sub	r0, r0, #7
	ldr	r3, [fp, #-1048]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L12+28
	bl	puts
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-1084]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	hash
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	srand
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-1056]
	b	.L7
.L8:
	bl	rand
	mov	r3, r0
	asr	r3, r3, #3
	orr	r1, r3, #254
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1056]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	lsl	r3, r1, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r1, r3, #255
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1056]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1056]
	add	r3, r3, #1
	str	r3, [fp, #-1056]
.L7:
	ldr	r3, [fp, #-1056]
	cmp	r3, #1024
	blt	.L8
	ldr	r3, [fp, #-1064]
	mov	r2, r3
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1044]
	mov	r1, #1
	bl	fwrite
.L6:
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1052]
	mov	r2, #1024
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-1064]
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L12+32
	bl	puts
	ldr	r0, [fp, #-1052]
	bl	fclose
	ldr	r0, [fp, #-1048]
	bl	fclose
	ldr	r0, [fp, #-1044]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.align	2
	.global	hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash, %function
hash:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L18
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #5
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	5381
	.size	hash, .-hash
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
