	.file	"153028.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/proc/meminfo"
.LC2:
	.string	"Usage: %s name_to_search\n"
.LC3:
	.string	"iValue:[%lld]\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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	cmp	DWORD PTR -132[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L5
.L2:
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L15
.L13:
	cmp	QWORD PTR -72[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -116[rbp], 0
.L11:
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	je	.L17
	cmp	DWORD PTR -116[rbp], 1
	jne	.L7
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, QWORD PTR -96[rbp]
	test	rax, rax
	jg	.L18
.L7:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L9
	mov	DWORD PTR -116[rbp], 1
.L9:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	QWORD PTR -96[rbp], rax
	jmp	.L11
.L17:
	nop
	jmp	.L8
.L18:
	nop
.L8:
	mov	rax, QWORD PTR -96[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -96[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L12
.L5:
	mov	rdx, QWORD PTR -88[rbp]
	lea	rcx, -104[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L13
.L12:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	lea	rax, -48[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"153028.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/proc/meminfo\000"
	.align	2
.LC2:
	.ascii	"Usage: %s name_to_search\012\000"
	.align	2
.LC3:
	.ascii	"iValue:[%lld]\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 = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	fopen
	str	r0, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-68]
	b	.L5
.L2:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	mov	r3, #1
	b	.L15
.L13:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L5
	ldr	r4, [fp, #-92]
	ldr	r0, [fp, #-68]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-68]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
.L11:
	mov	r1, #32
	ldr	r0, [fp, #-84]
	bl	strchr
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L7
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	cmp	r3, #0
	bgt	.L18
.L7:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	str	r3, [fp, #-80]
.L9:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	b	.L11
.L17:
	nop
	b	.L8
.L18:
	nop
.L8:
	mov	r1, #32
	ldr	r0, [fp, #-84]
	bl	strchr
	str	r0, [fp, #-72]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-84]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #48
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	memcpy
	b	.L12
.L5:
	sub	r1, fp, #88
	sub	r3, fp, #92
	ldr	r2, [fp, #-76]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L13
.L12:
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-76]
	bl	fclose
	sub	r3, fp, #48
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #48
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoll
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L19+16
	bl	printf
.L14:
	mov	r3, #0
.L15:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.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
