	.file	"550361.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Do some output\n"
	.align 8
.LC2:
	.string	"Error writing to temporary file\n"
	.text
	.globl	work
	.type	work, @function
work:
.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, 32
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	call	tmpfile@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 9999
	jle	.L4
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L6:
	movsd	xmm0, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
.L5:
	cmp	DWORD PTR -20[rbp], 999999
	jle	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	work, .-work
	.section	.rodata
	.align 8
.LC4:
	.string	"CPU usage: User = %ld.%06ld, System = %ld.%06ld\n"
.LC5:
	.string	"Current priority = %d\n"
	.align 8
.LC6:
	.string	"Current FSIZE limit: soft = %ld, hard = %ld\n"
.LC7:
	.string	"Setting a 2K file size limit"
	.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, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	work
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getrusage@PLT
	mov	rsi, QWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	mov	esi, eax
	mov	edi, 0
	call	getpriority@PLT
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	getrlimit@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -176[rbp], 2048
	mov	QWORD PTR -168[rbp], 4096
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	setrlimit@PLT
	mov	eax, 0
	call	work
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1074921472
	.align 8
.LC3:
	.long	2061584302
	.long	1074376212
	.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	"550361.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Do some output\012\000"
	.align	2
.LC1:
	.ascii	"Error writing to temporary file\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.text
	.align	2
	.global	work
	.syntax unified
	.arm
	.fpu softvfp
	.type	work, %function
work:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r2, #0
	ldr	r3, .L7
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	bl	tmpfile
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L7+4
	bl	fwrite
	ldr	r0, [fp, #-16]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, .L7+16
	cmp	r3, r2
	ble	.L4
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L7+20
	ldr	r3, .L7+24
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	ldr	r2, .L7+28
	cmp	r3, r2
	blt	.L6
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	1074921472
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	9999
	.word	2061584302
	.word	1074376212
	.word	1000000
	.size	work, .-work
	.section	.rodata
	.align	2
.LC2:
	.ascii	"CPU usage: User = %ld.%06ld, System = %ld.%06ld\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Current priority = %d\012\000"
	.align	2
.LC4:
	.ascii	"Current FSIZE limit: soft = %ld, hard = %ld\012\000"
	.align	2
.LC5:
	.ascii	"Setting a 2K file size limit\000"
	.align	2
.LC6:
	.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, #96
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	work
	sub	r3, fp, #80
	mov	r1, r3
	mov	r0, #0
	bl	getrusage
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-76]
	ldr	r0, [fp, #-72]
	ldr	r3, [fp, #-68]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L11+4
	bl	printf
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	getpriority
	str	r0, [fp, #-92]
	ldr	r1, [fp, #-92]
	ldr	r0, .L11+8
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	mov	r0, #1
	bl	getrlimit
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	mov	r3, #2048
	str	r3, [fp, #-88]
	mov	r3, #4096
	str	r3, [fp, #-84]
	ldr	r0, .L11+16
	bl	puts
	sub	r3, fp, #88
	mov	r1, r3
	mov	r0, #1
	bl	setrlimit
	bl	work
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
