	.file	"206393981.c"
	.intel_syntax noprefix
	.text
	.globl	omfile
	.section	.rodata
	.align 8
.LC0:
	.string	"/proc/sys/vm/overcommit_memory"
	.section	.data.rel.local,"aw"
	.align 8
	.type	omfile, @object
	.size	omfile, 8
omfile:
	.quad	.LC0
	.globl	omratio
	.section	.rodata
.LC1:
	.string	"/proc/sys/vm/overcommit_ratio"
	.section	.data.rel.local
	.align 8
	.type	omratio, @object
	.size	omratio, 8
omratio:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"PATH"
.LC3:
	.string	"system path is: %s\n"
	.text
	.globl	getpath
	.type	getpath, @function
getpath:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getpath, .-getpath
	.section	.rodata
	.align 8
.LC4:
	.string	"open file %s failed, error is: %d\n"
	.align 8
.LC5:
	.string	"read file %s failed, is empty\n"
	.align 8
.LC6:
	.string	"filename:%s str:%s value:%d, strsize:%d\n"
	.text
	.globl	readint
	.type	readint, @function
readint:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], 0
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jns	.L3
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L6
.L3:
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	ecx, 0
	mov	edx, 10
	mov	edi, eax
	call	pread@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jg	.L5
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -144[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	esi, DWORD PTR -116[rbp]
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readint, .-readint
	.globl	readmemconf
	.type	readmemconf, @function
readmemconf:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR omfile[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	readint
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR omratio[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	readint
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -4[rbp]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readmemconf, .-readmemconf
	.section	.rodata
	.align 8
.LC7:
	.string	"get system info fail, error=%d\n"
	.align 8
.LC8:
	.string	"Overcommit setting: level: %d ratio: %d\n"
.LC11:
	.string	"Can't malloc size, size: %zu\n"
.LC12:
	.string	"malloc size: %zu MB\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -136[rbp], 2
	mov	DWORD PTR -132[rbp], 95
	mov	DWORD PTR -156[rbp], 0
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	sysinfo@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L20
.L13:
	lea	rax, -136[rbp]
	mov	rdi, rax
	call	readmemconf
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	js	.L15
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L16
.L15:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L16:
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC10[rip]
	jnb	.L17
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -152[rbp], rax
	jmp	.L18
.L17:
	movsd	xmm1, QWORD PTR .LC10[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -152[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -152[rbp], rax
.L18:
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -152[rbp]
	shr	rax, 20
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1073217536
	.align 8
.LC10:
	.long	0
	.long	1138753536
	.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	"206393981.c"
	.text
	.global	omfile
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/proc/sys/vm/overcommit_memory\000"
	.data
	.align	2
	.type	omfile, %object
	.size	omfile, 4
omfile:
	.word	.LC1
	.global	omratio
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/proc/sys/vm/overcommit_ratio\000"
	.data
	.align	2
	.type	omratio, %object
	.size	omratio, 4
omratio:
	.word	.LC2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"PATH\000"
	.align	2
.LC4:
	.ascii	"system path is: %s\012\000"
	.text
	.align	2
	.global	getpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpath, %function
getpath:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	getenv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC3
	.word	.LC4
	.size	getpath, .-getpath
	.section	.rodata
	.align	2
.LC5:
	.ascii	"open file %s failed, error is: %d\012\000"
	.align	2
.LC6:
	.ascii	"read file %s failed, is empty\012\000"
	.align	2
.LC7:
	.ascii	"filename:%s str:%s value:%d, strsize:%d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readint
	.syntax unified
	.arm
	.fpu softvfp
	.type	readint, %function
readint:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r1, #0
	ldr	r0, [fp, #-120]
	bl	open
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L5
	ldr	r1, [fp, #-116]
	ldr	r0, .L10+4
	bl	printf
	mvn	r3, #0
	b	.L8
.L5:
	sub	r1, fp, #108
	mov	r3, #0
	mov	r2, #10
	ldr	r0, [fp, #-116]
	bl	pread
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bgt	.L7
	ldr	r0, .L10+8
	bl	printf
	ldr	r0, [fp, #-116]
	bl	close
	mvn	r3, #0
	b	.L8
.L7:
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #108
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-124]
	str	r2, [r3]
	ldr	r3, [fp, #-124]
	ldr	r1, [r3]
	sub	r2, fp, #108
	ldr	r3, [fp, #-112]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-120]
	ldr	r0, .L10+12
	bl	printf
	ldr	r0, [fp, #-116]
	bl	close
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC8
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	readint, .-readint
	.align	2
	.global	readmemconf
	.syntax unified
	.arm
	.fpu softvfp
	.type	readmemconf, %function
readmemconf:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	readint
	str	r0, [fp, #-12]
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	readint
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L13
	ldr	r3, [fp, #-12]
	b	.L15
.L13:
	ldr	r3, [fp, #-8]
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	omfile
	.word	omratio
	.size	readmemconf, .-readmemconf
	.section	.rodata
	.align	2
.LC9:
	.ascii	"get system info fail, error=%d\012\000"
	.align	2
.LC10:
	.ascii	"Overcommit setting: level: %d ratio: %d\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_d2uiz
	.align	2
.LC11:
	.ascii	"Can't malloc size, size: %zu\012\000"
	.align	2
.LC12:
	.ascii	"malloc size: %zu MB\012\000"
	.align	2
.LC0:
	.word	2
	.word	95
	.align	2
.LC13:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L24+4
	sub	r3, fp, #80
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-92]
	sub	r3, fp, #72
	mov	r0, r3
	bl	sysinfo
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L19
	ldr	r1, [fp, #-92]
	ldr	r0, .L24+8
	bl	printf
	mvn	r3, #0
	b	.L22
.L19:
	sub	r3, fp, #80
	mov	r0, r3
	bl	readmemconf
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-76]
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L24+16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r0, [fp, #-88]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L21
	ldr	r1, [fp, #-88]
	ldr	r0, .L24+20
	bl	printf
	mvn	r3, #0
	b	.L22
.L21:
	ldr	r3, [fp, #-88]
	lsr	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L24+24
	bl	printf
	ldr	r2, [fp, #-88]
	mov	r1, #0
	ldr	r0, [fp, #-84]
	bl	memset
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC13
	.word	.LC0
	.word	.LC9
	.word	.LC10
	.word	1073217536
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
