	.file	"62135.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"\nWelcome to mem, version %.1F\n"
.LC2:
	.string	"\nUsage:"
	.align 8
.LC3:
	.string	"mem reads the memory from a given PID and writes to a file"
	.align 8
.LC4:
	.string	" - May require elevated permissions"
.LC5:
	.string	"./mem <pid> <out_path>"
	.align 8
.LC6:
	.string	" - where <pid> is the target PID to capture"
	.align 8
.LC7:
	.string	" - and <out_path> is the local dir to write output"
	.align 8
.LC8:
	.string	" If <out_path> is not there, writes to stdout"
	.align 8
.LC9:
	.string	" If <pid> is 0, all PIDs will be captured\n\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR .LC0[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC10:
	.string	"Missing target PID\n"
.LC11:
	.string	"w"
.LC12:
	.string	"writing to: %s\n"
.LC13:
	.string	"Error opening output file."
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L3
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	call	usage
	mov	eax, -1
	jmp	.L4
.L3:
	cmp	DWORD PTR -36[rbp], 3
	jle	.L5
	mov	eax, 0
	call	usage
	mov	eax, -1
	jmp	.L4
.L5:
	mov	esi, 256
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -36[rbp], 3
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
.L7:
	mov	esi, 256
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -24[rbp], rax
.L9:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pullAllPidMemory
	jmp	.L11
.L10:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pullPidMemory
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC14:
	.string	"/proc/%d/mem"
.LC15:
	.string	"r"
	.align 8
.LC16:
	.string	"Error opening mem for process."
	.text
	.globl	readMem
	.type	readMem, @function
readMem:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	esi, 256
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, edx
	lea	rdx, .LC14[rip]
	mov	esi, 255
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L13:
	mov	ecx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	edx, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readMem, .-readMem
	.section	.rodata
.LC17:
	.string	"/proc/%d/maps"
	.align 8
.LC18:
	.string	"Error opening memory map for this PID"
.LC19:
	.string	"%x-%x %[^\n]"
.LC20:
	.string	"[heap]"
.LC21:
	.string	"[stack]"
.LC22:
	.string	"deleted"
	.text
	.globl	pullPidMemory
	.type	pullPidMemory, @function
pullPidMemory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 256
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	esi, 256
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 16
	mov	eax, 0
	call	ptrace@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC17[rip]
	mov	esi, 255
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L19
	lea	rdi, .LC18[rip]
	call	perror@PLT
	jmp	.L18
.L21:
	mov	rsi, QWORD PTR -24[rbp]
	lea	rcx, -40[rbp]
	lea	rdx, -44[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rsi
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L19
.L20:
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	sub	eax, edx
	mov	edi, eax
	mov	esi, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	edi, eax
	call	readMem
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L21
	nop
.L18:
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	mov	edi, 17
	mov	eax, 0
	call	ptrace@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pullPidMemory, .-pullPidMemory
	.section	.rodata
.LC23:
	.string	"/proc/"
	.text
	.globl	pullAllPidMemory
	.type	pullAllPidMemory, @function
pullAllPidMemory:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC23[rip]
	call	opendir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L29
	jmp	.L25
.L27:
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 19[rax]
	lea	rax, -40[rbp]
	mov	edx, 10
	mov	rsi, rax
	mov	rdi, rcx
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L26
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pullPidMemory
.L25:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L27
.L29:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pullAllPidMemory, .-pullAllPidMemory
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.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	"62135.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Welcome to mem, version %.1F\012\000"
	.align	2
.LC1:
	.ascii	"\012Usage:\000"
	.align	2
.LC2:
	.ascii	"mem reads the memory from a given PID and writes to"
	.ascii	" a file\000"
	.align	2
.LC3:
	.ascii	" - May require elevated permissions\000"
	.align	2
.LC4:
	.ascii	"./mem <pid> <out_path>\000"
	.align	2
.LC5:
	.ascii	" - where <pid> is the target PID to capture\000"
	.align	2
.LC6:
	.ascii	" - and <out_path> is the local dir to write output\000"
	.align	2
.LC7:
	.ascii	" If <out_path> is not there, writes to stdout\000"
	.align	2
.LC8:
	.ascii	" If <pid> is 0, all PIDs will be captured\012\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	ldr	r3, .L2
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	ldr	r0, .L2+28
	bl	puts
	ldr	r0, .L2+32
	bl	puts
	ldr	r0, .L2+36
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	1072693248
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Missing target PID\012\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC11:
	.ascii	"writing to: %s\012\000"
	.align	2
.LC12:
	.ascii	"Error opening output file.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L5
	ldr	r0, .L14
	bl	puts
	bl	usage
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L7
	bl	usage
	mvn	r3, #0
	b	.L6
.L7:
	mov	r1, #256
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strncpy
	b	.L9
.L8:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
.L9:
	mov	r1, #256
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L14+4
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L14+8
	bl	printf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L14+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-20]
	bl	pullAllPidMemory
	b	.L13
.L12:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	pullPidMemory
.L13:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-20]
	bl	fclose
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	stdout
	.size	main, .-main
	.section	.rodata
	.align	2
.LC13:
	.ascii	"/proc/%d/mem\000"
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"Error opening mem for process.\000"
	.text
	.align	2
	.global	readMem
	.syntax unified
	.arm
	.fpu softvfp
	.type	readMem, %function
readMem:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r1, #256
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, .L18
	mov	r1, #255
	ldr	r0, [fp, #-12]
	bl	snprintf
	ldr	r1, .L18+4
	ldr	r0, [fp, #-12]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L18+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L17:
	ldr	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fseek
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fread
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	readMem, .-readMem
	.section	.rodata
	.align	2
.LC16:
	.ascii	"/proc/%d/maps\000"
	.align	2
.LC17:
	.ascii	"Error opening memory map for this PID\000"
	.align	2
.LC18:
	.ascii	"%x-%x %[^\012]\000"
	.align	2
.LC19:
	.ascii	"[heap]\000"
	.align	2
.LC20:
	.ascii	"[stack]\000"
	.align	2
.LC21:
	.ascii	"deleted\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pullPidMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	pullPidMemory, %function
pullPidMemory:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #256
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r1, #256
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-44]
	mov	r0, #16
	bl	ptrace
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	b	.L20
.L21:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	waitpid
	ldr	r3, [fp, #-44]
	ldr	r2, .L29+4
	mov	r1, #255
	ldr	r0, [fp, #-24]
	bl	snprintf
	ldr	r1, .L29+8
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L29+12
	bl	perror
	b	.L24
.L27:
	sub	r1, fp, #28
	sub	r2, fp, #32
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L29+16
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	ldr	r1, .L29+20
	ldr	r0, [fp, #-20]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L29+24
	ldr	r0, [fp, #-20]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L29+28
	ldr	r0, [fp, #-20]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
.L26:
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r2, r2, r3
	ldr	r3, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	readMem
.L25:
	ldr	r0, [fp, #-12]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	nop
.L24:
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-44]
	mov	r0, #17
	bl	ptrace
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
.L20:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC22
	.word	.LC16
	.word	.LC14
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	pullPidMemory, .-pullPidMemory
	.section	.rodata
	.align	2
.LC23:
	.ascii	"/proc/\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pullAllPidMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	pullAllPidMemory, %function
pullAllPidMemory:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L38+4
	bl	opendir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L37
	b	.L33
.L35:
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	sub	r1, fp, #24
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L34
	b	.L33
.L34:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	pullPidMemory
.L33:
	ldr	r0, [fp, #-20]
	bl	readdir
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L35
.L37:
	nop
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC24
	.word	.LC23
	.size	pullAllPidMemory, .-pullAllPidMemory
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
