	.file	"357738.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"input path please: "
	.align 8
.LC1:
	.string	"Try again! Experiment with objdump! (%p)\n"
	.align 8
.LC2:
	.string	"Congratulations, you've completed the hardest stack overflow challenge! %s\n"
	.text
	.globl	getpath
	.type	getpath, @function
getpath:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	and	eax, -1090519040
	cmp	eax, -1090519040
	jne	.L2
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	_exit@PLT
.L2:
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getpath, .-getpath
	.section	.rodata
	.align 8
.LC3:
	.string	"Challenge 4: This challenge looks at restrictions on a return address!"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	call	getpath
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"357738.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input path please: \000"
	.align	2
.LC1:
	.ascii	"Try again! Experiment with objdump! (%p)\012\000"
	.align	2
.LC2:
	.ascii	"Congratulations, you've completed the hardest stack"
	.ascii	" overflow challenge! %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpath, %function
getpath:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	mov	r4, lr
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, .L4+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #80
	mov	r0, r3
	bl	gets
	mov	r3, r4
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	and	r3, r3, #-1090519040
	cmp	r3, #-1090519040
	bne	.L2
	ldr	r1, [fp, #-84]
	ldr	r0, .L4+12
	bl	printf
	mov	r0, #1
	bl	_exit
.L2:
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L4+16
	bl	printf
	nop
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC3
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.size	getpath, .-getpath
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Challenge 4: This challenge looks at restrictions o"
	.ascii	"n a return address!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, .L8
	bl	puts
	bl	getpath
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
