	.file	"370880.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"MYST_TARGET"
.LC1:
	.string	"sgx"
.LC2:
	.string	"r"
.LC3:
	.string	"tmp/myst.key"
.LC4:
	.string	"the_stack_data/370880.c"
.LC5:
	.string	"fp != NULL"
.LC6:
	.string	"BEGIN EC PRIVATE KEY"
	.align 8
.LC7:
	.string	"strstr(line, \"BEGIN EC PRIVATE KEY\")"
.LC8:
	.string	"linenum > 1"
.LC9:
	.string	"tmp/myst.pem"
.LC10:
	.string	"Open Enclave SDK"
.LC11:
	.string	"foundOE != 0"
	.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
	sub	rsp, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 15
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L3:
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L4
.L6:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
	cmp	DWORD PTR -1056[rbp], 0
	jne	.L5
	lea	rax, -1040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 22
	lea	rsi, .LC4[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L5:
	add	DWORD PTR -1056[rbp], 1
.L4:
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -1056[rbp], 1
	jg	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 26
	lea	rsi, .LC4[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L7:
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 29
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L8:
	mov	DWORD PTR -1052[rbp], 0
	jmp	.L9
.L10:
	lea	rax, -1040[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L9
	mov	DWORD PTR -1052[rbp], 1
.L9:
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -1052[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 37
	lea	rsi, .LC4[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L2:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"370880.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"MYST_TARGET\000"
	.align	2
.LC1:
	.ascii	"sgx\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"tmp/myst.key\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/370880.c\000"
	.align	2
.LC5:
	.ascii	"fp != NULL\000"
	.align	2
.LC6:
	.ascii	"BEGIN EC PRIVATE KEY\000"
	.align	2
.LC7:
	.ascii	"strstr(line, \"BEGIN EC PRIVATE KEY\")\000"
	.align	2
.LC8:
	.ascii	"linenum > 1\000"
	.align	2
.LC9:
	.ascii	"tmp/myst.pem\000"
	.align	2
.LC10:
	.ascii	"Open Enclave SDK\000"
	.align	2
.LC11:
	.ascii	"foundOE != 0\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	getenv
	mov	r3, r0
	ldr	r1, .L14+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L14+12
	ldr	r0, .L14+16
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L14+20
	mov	r2, #15
	ldr	r1, .L14+24
	ldr	r0, .L14+28
	bl	__assert_fail
.L3:
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L4
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+32
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L14+20
	mov	r2, #22
	ldr	r1, .L14+24
	ldr	r0, .L14+36
	bl	__assert_fail
.L5:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-1036]
	bl	fclose
	ldr	r3, [fp, #-1044]
	cmp	r3, #1
	bgt	.L7
	ldr	r3, .L14+20
	mov	r2, #26
	ldr	r1, .L14+24
	ldr	r0, .L14+40
	bl	__assert_fail
.L7:
	ldr	r1, .L14+12
	ldr	r0, .L14+44
	bl	fopen
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L14+20
	mov	r2, #29
	ldr	r1, .L14+24
	ldr	r0, .L14+28
	bl	__assert_fail
.L8:
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L9
.L10:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+48
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r3, #1
	str	r3, [fp, #-1040]
.L9:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1036]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r0, [fp, #-1036]
	bl	fclose
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L14+20
	mov	r2, #37
	ldr	r1, .L14+24
	ldr	r0, .L14+52
	bl	__assert_fail
.L2:
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5315
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5315, %object
	.size	__PRETTY_FUNCTION__.5315, 5
__PRETTY_FUNCTION__.5315:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
