	.file	"150143877.c"
	.intel_syntax noprefix
	.text
	.local	term_requested
	.comm	term_requested,4,4
	.globl	sig_handler
	.type	sig_handler, @function
sig_handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 15
	jne	.L3
	mov	DWORD PTR term_requested[rip], 1
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sig_handler, .-sig_handler
	.section	.rodata
.LC0:
	.string	"register SIGTERM handler"
.LC1:
	.string	"invalid hog max: %s\n"
.LC2:
	.string	"hog up to %ld\n"
.LC3:
	.string	"exit: SIGTERM\n"
.LC4:
	.string	"done hogging\n"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	lea	rsi, sig_handler[rip]
	mov	edi, 15
	call	signal@PLT
	cmp	rax, -1
	jne	.L5
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L6
.L5:
	cmp	DWORD PTR -52[rbp], 1
	jg	.L7
	movabs	rax, 9223372036854775807
	mov	QWORD PTR -40[rbp], rax
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -40[rbp], rax
.L8:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L6
.L9:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
.L15:
	mov	eax, DWORD PTR term_requested[rip]
	test	eax, eax
	jle	.L10
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jle	.L11
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	sleep@PLT
	jmp	.L12
.L11:
	add	QWORD PTR -24[rbp], 1
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, rcx
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L13
	mov	edi, 0
	call	sleep@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L14:
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -32[rbp], rax
.L12:
	jmp	.L15
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"150143877.c"
	.text
	.local	term_requested
	.comm	term_requested,4,4
	.align	2
	.global	sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_handler, %function
sig_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	bne	.L3
	ldr	r3, .L4
	mov	r2, #1
	str	r2, [r3]
.L3:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	term_requested
	.size	sig_handler, .-sig_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"register SIGTERM handler\000"
	.align	2
.LC1:
	.ascii	"invalid hog max: %s\012\000"
	.align	2
.LC2:
	.ascii	"hog up to %ld\012\000"
	.align	2
.LC3:
	.ascii	"exit: SIGTERM\012\000"
	.align	2
.LC4:
	.ascii	"done hogging\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r1, .L18
	mov	r0, #15
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L18+4
	bl	perror
	mov	r3, #1
	b	.L8
.L7:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L9
	mvn	r3, #-2147483648
	str	r3, [fp, #-24]
	b	.L10
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L18+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+12
	bl	fprintf
	mov	r3, #1
	b	.L8
.L11:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L18+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #2
	bl	sleep
	mov	r0, #30
	bl	sysconf
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
.L17:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L12
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L18+24
	bl	fwrite
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	b	.L8
.L12:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L13
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L18+28
	bl	fwrite
	mov	r0, #2
	bl	sleep
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r3, .L18+32
	umull	r2, r3, r1, r3
	lsr	r2, r3, #6
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L15
	mov	r0, #0
	bl	sleep
.L15:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L16:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L14:
	b	.L17
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	sig_handler
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.word	term_requested
	.word	.LC3
	.word	.LC4
	.word	274877907
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
