	.file	"421230.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"guesses.txt"
.LC2:
	.string	"encrypted"
.LC3:
	.string	"$5$salt"
.LC4:
	.string	"%s\n%s\n%s"
.LC5:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8264[rbp], rax
	mov	DWORD PTR -8280[rbp], 48
	mov	DWORD PTR -8272[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -8276[rbp], 48
	mov	DWORD PTR -8268[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8280[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8272[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -8272[rbp]
	sal	eax, 6
	mov	ecx, eax
	mov	eax, DWORD PTR -8268[rbp]
	add	eax, ecx
	cdqe
	mov	BYTE PTR -8256[rbp+rax*2], dl
	mov	eax, DWORD PTR -8276[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8268[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -8272[rbp]
	sal	eax, 6
	mov	ecx, eax
	mov	eax, DWORD PTR -8268[rbp]
	add	eax, ecx
	cdqe
	mov	BYTE PTR -8255[rbp+rax*2], dl
	mov	edx, DWORD PTR -8268[rbp]
	lea	rax, -8276[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	getOffset
	add	DWORD PTR -8268[rbp], 1
.L3:
	cmp	DWORD PTR -8268[rbp], 63
	jle	.L4
	mov	edx, DWORD PTR -8272[rbp]
	lea	rax, -8280[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	getOffset
	add	DWORD PTR -8272[rbp], 1
.L2:
	cmp	DWORD PTR -8272[rbp], 63
	jle	.L5
	movabs	rax, 7598543892949132656
	movabs	rdx, 8243398692400295535
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -48[rbp], 1768186213
	mov	WORD PTR -44[rbp], 26478
	mov	BYTE PTR -42[rbp], 0
	movabs	rax, 4056392279247906606
	movabs	rdx, 5006126152328834419
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], 778590514
	mov	WORD PTR -12[rbp], 11824
	mov	BYTE PTR -10[rbp], 0
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	crypt@PLT
	mov	rcx, rax
	lea	rdx, -32[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8272[rbp], 0
	jmp	.L6
.L8:
	lea	rdx, -8256[rbp]
	mov	eax, DWORD PTR -8272[rbp]
	cdqe
	add	rax, rax
	add	rdx, rax
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -8272[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	add	DWORD PTR -8272[rbp], 1
.L6:
	cmp	DWORD PTR -8272[rbp], 4095
	jle	.L8
	mov	eax, 0
	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
.LFE0:
	.size	main, .-main
	.globl	getOffset
	.type	getOffset, @function
getOffset:
.LFB1:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cmp	eax, 57
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 7[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L16
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cmp	eax, 90
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 6[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L16
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cmp	eax, 122
	jne	.L15
	mov	eax, 45
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cmp	eax, 46
	jne	.L16
	mov	eax, 46
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L16:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getOffset, .-getOffset
	.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	"421230.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"guesses.txt\000"
	.align	2
.LC4:
	.ascii	"encrypted\000"
	.align	2
.LC5:
	.ascii	"$5$salt\000"
	.align	2
.LC6:
	.ascii	"%s\012%s\012%s\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"permissionproofreading\000"
	.align	2
.LC3:
	.ascii	".g5JI3K8smZB6UyE2Yh.0.\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 = 8264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #12
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	fopen
	str	r0, [r4, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #48
	str	r3, [r2, #-72]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L2
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #48
	str	r3, [r2, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	b	.L3
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	and	r1, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	and	r2, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	lsl	r0, r3, #6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r0, r3
	add	r2, r1, r2
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #12
	lsl	r3, r3, #1
	add	r3, r1, r3
	strb	r2, [r3, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	and	r1, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	and	r2, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	lsl	r0, r3, #6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r0, r3
	add	r2, r1, r2
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #12
	lsl	r3, r3, #1
	add	r3, r1, r3
	strb	r2, [r3, #-51]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-60]
	mov	r0, r3
	bl	getOffset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #63
	ble	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, [r2, #-64]
	mov	r0, r3
	bl	getOffset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #63
	ble	.L5
	ldr	r3, .L11+12
	sub	ip, fp, #64
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r1, #16
	strb	r3, [ip]
	ldr	r3, .L11+16
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r1, #16
	strb	r3, [ip]
	ldr	r1, .L11+20
	ldr	r0, .L11+24
	bl	crypt
	mov	r3, r0
	sub	r2, fp, #40
	sub	r1, fp, #64
	ldr	r0, .L11+28
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L6
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	lsl	r2, r2, #1
	add	r2, r3, r2
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	crypt
	mov	r2, r0
	sub	r3, fp, #40
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-64]
	ldr	r0, .L11+32
	bl	printf
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #4096
	blt	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.align	2
	.global	getOffset
	.syntax unified
	.arm
	.fpu softvfp
	.type	getOffset, %function
getOffset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #57
	bne	.L14
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #7
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L18
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #90
	bne	.L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #6
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L18
.L16:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #122
	bne	.L17
	ldr	r3, [fp, #-12]
	rsb	r2, r3, #45
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L18
.L17:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r3, #46
	bne	.L18
	ldr	r3, [fp, #-12]
	rsb	r2, r3, #46
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L18:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getOffset, .-getOffset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
