	.file	"151706853.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s <proc filename>\n"
.LC1:
	.string	"w"
.LC2:
	.string	"/proc/procdetails"
	.align 8
.LC3:
	.string	"Could not find /proc/procdetails! Did you load the procdetails kernel module?\n"
.LC4:
	.string	"r"
	.align 8
.LC5:
	.string	"Something strange happened...\n"
.LC6:
	.string	"%s"
.LC7:
	.string	"Did not find any information"
	.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	cmp	DWORD PTR -324[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L11
.L2:
	mov	BYTE PTR -17[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -296[rbp]
	lea	rcx, 1[rax]
	lea	rax, -272[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L5:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 78
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L6:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC4[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L9:
	mov	rax, QWORD PTR -312[rbp]
	add	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rcx, -312[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], -1
	jne	.L9
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -304[rbp], 0
	jne	.L10
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"151706853.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <proc filename>\012\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"/proc/procdetails\000"
	.align	2
.LC3:
	.ascii	"Could not find /proc/procdetails! Did you load the "
	.ascii	"procdetails kernel module?\012\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"Something strange happened...\012\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"Did not find any information\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 = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-300]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mvn	r3, #0
	b	.L11
.L2:
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-276]
	add	r1, r3, #1
	sub	r3, fp, #264
	mov	r2, #255
	mov	r0, r3
	bl	strncpy
	b	.L5
.L4:
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #264
	mov	r2, #255
	mov	r0, r3
	bl	strncpy
.L5:
	ldr	r1, .L13+8
	ldr	r0, .L13+12
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L13+16
	ldr	r3, [r3]
	mov	r2, #78
	mov	r1, #1
	ldr	r0, .L13+20
	bl	fwrite
	mvn	r3, #0
	b	.L11
.L6:
	sub	r3, fp, #264
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-272]
	bl	fclose
	ldr	r1, .L13+24
	ldr	r0, .L13+12
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L13+16
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L13+28
	bl	fwrite
	mvn	r3, #0
	b	.L11
.L9:
	ldr	r3, [fp, #-284]
	ldr	r2, [fp, #-280]
	add	r3, r2, r3
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-288]
	mov	r1, r3
	ldr	r0, .L13+32
	bl	printf
.L8:
	sub	r1, fp, #284
	sub	r3, fp, #288
	ldr	r2, [fp, #-272]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	bne	.L9
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-272]
	bl	fclose
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L13+36
	bl	puts
	mvn	r3, #0
	b	.L11
.L10:
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
