	.file	"95642.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/%d/stat"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"/proc/pid/stat format error\n"
.LC3:
	.string	"%8x %8x %8x %8x\n"
	.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, 1136
	mov	DWORD PTR -1124[rbp], edi
	mov	QWORD PTR -1136[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1088[rbp], eax
	mov	edx, DWORD PTR -1088[rbp]
	lea	rax, -1072[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1072[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1084[rbp], eax
	cmp	DWORD PTR -1084[rbp], -1
	jne	.L2
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L10
.L2:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1084[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1092[rbp], eax
	mov	eax, DWORD PTR -1092[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	mov	DWORD PTR -1092[rbp], 0
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1080[rbp], rax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -1080[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
.L5:
	add	QWORD PTR -1080[rbp], 1
	mov	rax, QWORD PTR -1080[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L7
	jmp	.L6
.L12:
	nop
.L6:
	add	DWORD PTR -1092[rbp], 1
.L4:
	cmp	DWORD PTR -1092[rbp], 29
	jle	.L5
	lea	rdi, -1096[rbp]
	lea	rsi, -1100[rbp]
	lea	rcx, -1104[rbp]
	lea	rdx, -1108[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 4
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L10
.L9:
	mov	esi, DWORD PTR -1096[rbp]
	mov	ecx, DWORD PTR -1100[rbp]
	mov	edx, DWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"95642.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/%d/stat\000"
	.align	2
.LC1:
	.ascii	"%d%d%d%d\000"
	.align	2
.LC2:
	.ascii	"/proc/pid/stat format error\012\000"
	.align	2
.LC3:
	.ascii	"%8x %8x %8x %8x\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	sub	sp, sp, #8
	str	r0, [fp, #-1104]
	str	r1, [fp, #-1108]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1108]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1072]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1072]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	cmn	r3, #1
	bne	.L2
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L10
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1068]
	bl	read
	str	r0, [fp, #-1076]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1076]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1076]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1080]
	b	.L4
.L7:
	ldr	r3, [fp, #-1080]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
.L5:
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L7
	b	.L6
.L12:
	nop
.L6:
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L4:
	ldr	r3, [fp, #-1076]
	cmp	r3, #29
	ble	.L5
	sub	r1, fp, #1088
	sub	r1, r1, #4
	sub	r2, fp, #1088
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L13+8
	ldr	r0, [fp, #-1080]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #4
	beq	.L9
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L13+16
	bl	fwrite
	mov	r3, #1
	b	.L10
.L9:
	ldr	r1, [fp, #-1096]
	ldr	r2, [fp, #-1092]
	ldr	r0, [fp, #-1088]
	ldr	r3, [fp, #-1084]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L13+20
	bl	printf
	mov	r3, #0
.L10:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
