	.file	"776985.c"
	.intel_syntax noprefix
	.text
	.local	termw
	.comm	termw,4,4
	.local	termh
	.comm	termh,4,4
	.local	doubleres
	.comm	doubleres,4,4
	.data
	.align 4
	.type	blend, @object
	.size	blend, 4
blend:
	.long	1
	.local	termbg
	.comm	termbg,3,1
	.local	imw
	.comm	imw,4,4
	.local	imh
	.comm	imh,4,4
	.local	im
	.comm	im,8,8
	.local	legend
	.comm	legend,8,8
	.local	tabw
	.comm	tabw,4,4
	.local	barw
	.comm	barw,4,4
	.local	barh
	.comm	barh,4,4
	.local	res
	.comm	res,4,4
	.local	marginx
	.comm	marginx,4,4
	.align 4
	.type	resized, @object
	.size	resized, 4
resized:
	.long	1
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"stty size"
	.align 8
.LC2:
	.string	"Failed to determine terminal size using stty.\n"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"the_stack_data/776985.c"
.LC5:
	.string	"num == 2"
	.text
	.type	get_terminal_size, @function
get_terminal_size:
.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, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	popen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, termw[rip]
	lea	rdx, termh[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 2
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 71
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_terminal_size, .-get_terminal_size
	.type	set_console_mode, @function
set_console_mode:
.LFB7:
	.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 doubleres[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_console_mode, .-set_console_mode
	.type	setup_image, @function
setup_image:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR im[rip]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR im[rip]
	mov	rdi, rax
	call	free@PLT
.L6:
	mov	rax, QWORD PTR legend[rip]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR legend[rip]
	mov	rdi, rax
	call	free@PLT
.L7:
	mov	eax, DWORD PTR termw[rip]
	mov	DWORD PTR imw[rip], eax
	mov	eax, DWORD PTR termh[rip]
	sub	eax, 1
	add	eax, eax
	mov	DWORD PTR imh[rip], eax
	mov	edx, DWORD PTR imw[rip]
	mov	eax, DWORD PTR imh[rip]
	imul	eax, edx
	sal	eax, 2
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR im[rip], rax
	mov	rax, QWORD PTR im[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR imh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR imw[rip]
	imul	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR legend[rip], rax
	mov	eax, DWORD PTR imh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR imw[rip]
	imul	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR legend[rip]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR imw[rip]
	sub	eax, 4
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	DWORD PTR tabw[rip], eax
	mov	eax, DWORD PTR tabw[rip]
	mov	edx, 2
	cmp	eax, 2
	cmovl	eax, edx
	mov	DWORD PTR tabw[rip], eax
	mov	eax, DWORD PTR tabw[rip]
	sub	eax, 1
	mov	DWORD PTR barw[rip], eax
	mov	eax, DWORD PTR barw[rip]
	mov	edx, 8
	cmp	eax, 8
	cmovg	eax, edx
	mov	DWORD PTR barw[rip], eax
	mov	eax, DWORD PTR imh[rip]
	sub	eax, 4
	mov	DWORD PTR barh[rip], eax
	mov	edx, DWORD PTR imw[rip]
	mov	eax, DWORD PTR tabw[rip]
	imul	eax, DWORD PTR -52[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR marginx[rip], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L8
.L14:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, edx
	sal	eax, 8
	sub	eax, edx
	mov	ecx, DWORD PTR imh[rip]
	cdq
	idiv	ecx
	sub	eax, -128
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 255
	sub	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 255
	mov	eax, DWORD PTR -16[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	sal	eax, 16
	or	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	sal	eax, 8
	or	eax, edx
	or	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	je	.L10
	mov	eax, DWORD PTR imw[rip]
	sub	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	je	.L10
	cmp	DWORD PTR -36[rbp], 0
	je	.L10
	mov	eax, DWORD PTR imh[rip]
	sub	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jne	.L11
.L10:
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR im[rip]
	mov	edx, DWORD PTR imw[rip]
	mov	esi, edx
	imul	esi, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	add	edx, esi
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L9:
	mov	eax, DWORD PTR imw[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L13
	add	DWORD PTR -36[rbp], 1
.L8:
	mov	eax, DWORD PTR imh[rip]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setup_image, .-setup_image
	.section	.rodata
.LC7:
	.string	"%3.1f"
.LC8:
	.string	"%s"
	.text
	.type	setup_legend, @function
setup_legend:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC6[rip]
	divss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rdx, xmm3
	lea	rax, -64[rbp]
	movq	xmm0, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 1
	call	snprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC6[rip]
	divss	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rdx, xmm4
	lea	rax, -48[rbp]
	movq	xmm0, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 1
	call	snprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC6[rip]
	divss	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, xmm0
	movq	rdx, xmm5
	lea	rax, -32[rbp]
	movq	xmm0, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 1
	call	snprintf@PLT
	mov	DWORD PTR -72[rbp], 1
	mov	DWORD PTR -68[rbp], 1
	mov	rdx, QWORD PTR legend[rip]
	mov	eax, DWORD PTR imw[rip]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, rcx
	lea	rcx, [rdx+rax]
	lea	rax, -32[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L16
	mov	eax, DWORD PTR imh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR barh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	divss	xmm1, xmm2
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -72[rbp], eax
	mov	rdx, QWORD PTR legend[rip]
	mov	eax, DWORD PTR imw[rip]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, rcx
	lea	rcx, [rdx+rax]
	lea	rax, -64[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
.L16:
	mov	eax, DWORD PTR imh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR barh[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	divss	xmm1, xmm2
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -72[rbp], eax
	mov	rdx, QWORD PTR legend[rip]
	mov	eax, DWORD PTR imw[rip]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	add	rax, rcx
	lea	rcx, [rdx+rax]
	lea	rax, -48[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	setup_legend, .-setup_legend
	.type	sigwinchHandler, @function
sigwinchHandler:
.LFB10:
	.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
	mov	DWORD PTR resized[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sigwinchHandler, .-sigwinchHandler
	.local	orig_termios
	.comm	orig_termios,60,32
	.globl	disableRawMode
	.type	disableRawMode, @function
disableRawMode:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, orig_termios[rip]
	mov	esi, 2
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	disableRawMode, .-disableRawMode
	.globl	enableRawMode
	.type	enableRawMode, @function
enableRawMode:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, orig_termios[rip]
	mov	edi, 0
	call	tcgetattr@PLT
	lea	rdi, disableRawMode[rip]
	call	atexit@PLT
	mov	rax, QWORD PTR orig_termios[rip]
	mov	rdx, QWORD PTR orig_termios[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+16]
	mov	rdx, QWORD PTR orig_termios[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+32]
	mov	rdx, QWORD PTR orig_termios[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR orig_termios[rip+56]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -9
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -3
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -57[rbp], 0
	mov	BYTE PTR -58[rbp], 0
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	enableRawMode, .-enableRawMode
	.section	.rodata
.LC9:
	.string	"\033[38;2;"
.LC10:
	.string	"%d;%d;%dm"
.LC11:
	.string	"\033[48;2;"
.LC12:
	.string	"%d;%d;%dm%c"
.LC13:
	.string	"%d;%d;%dm\342\226\200"
.LC14:
	.string	"\033[0m"
	.text
	.type	print_image_double_res, @function
print_image_double_res:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 208
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -196[rbp], edi
	mov	DWORD PTR -200[rbp], esi
	mov	QWORD PTR -208[rbp], rdx
	mov	QWORD PTR -216[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	eax, DWORD PTR -200[rbp]
	and	eax, 1
	test	eax, eax
	je	.L23
	sub	DWORD PTR -200[rbp], 1
.L23:
	mov	DWORD PTR -164[rbp], 32768
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -128[rbp], rax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L24:
	cmp	rsp, rdx
	je	.L25
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L24
.L25:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L26
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L26:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L27
.L40:
	mov	eax, DWORD PTR -172[rbp]
	imul	eax, DWORD PTR -196[rbp]
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	QWORD PTR -144[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	add	eax, 1
	imul	eax, DWORD PTR -196[rbp]
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -168[rbp], 0
	jmp	.L28
.L37:
	cmp	QWORD PTR -216[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -216[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -216[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	jmp	.L30
.L29:
	mov	eax, 0
.L30:
	mov	BYTE PTR -173[rbp], al
	mov	eax, DWORD PTR -164[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -144[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -177[rbp], al
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -144[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -176[rbp], al
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -144[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -175[rbp], al
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -144[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -174[rbp], al
	cmp	BYTE PTR -173[rbp], 0
	je	.L31
	mov	BYTE PTR -174[rbp], -1
	movzx	eax, BYTE PTR -174[rbp]
	mov	BYTE PTR -175[rbp], al
	movzx	eax, BYTE PTR -175[rbp]
	mov	BYTE PTR -176[rbp], al
	movzx	eax, BYTE PTR -176[rbp]
	mov	BYTE PTR -177[rbp], al
.L31:
	mov	eax, DWORD PTR blend[rip]
	test	eax, eax
	je	.L32
	mov	DWORD PTR -160[rbp], 255
	movzx	edx, BYTE PTR -174[rbp]
	mov	eax, 255
	sub	eax, edx
	mov	DWORD PTR -156[rbp], eax
	movzx	eax, BYTE PTR -177[rbp]
	imul	eax, DWORD PTR -160[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip]
	movzx	eax, al
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -177[rbp], al
	movzx	eax, BYTE PTR -176[rbp]
	imul	eax, DWORD PTR -160[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip+1]
	movzx	eax, al
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -176[rbp], al
	movzx	eax, BYTE PTR -175[rbp]
	imul	eax, DWORD PTR -160[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip+2]
	movzx	eax, al
	imul	eax, DWORD PTR -156[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -175[rbp], al
.L32:
	movzx	esi, BYTE PTR -175[rbp]
	movzx	ecx, BYTE PTR -176[rbp]
	movzx	edx, BYTE PTR -177[rbp]
	lea	rax, -112[rbp]
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC10[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	eax, DWORD PTR -164[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rdx, -1[rax]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -164[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -136[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -177[rbp], al
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -136[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -176[rbp], al
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -136[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -175[rbp], al
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -136[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -174[rbp], al
	cmp	BYTE PTR -173[rbp], 0
	je	.L33
	mov	BYTE PTR -174[rbp], 0
	movzx	eax, BYTE PTR -174[rbp]
	mov	BYTE PTR -175[rbp], al
	movzx	eax, BYTE PTR -175[rbp]
	mov	BYTE PTR -176[rbp], al
	movzx	eax, BYTE PTR -176[rbp]
	mov	BYTE PTR -177[rbp], al
.L33:
	mov	eax, DWORD PTR blend[rip]
	test	eax, eax
	je	.L34
	mov	DWORD PTR -152[rbp], 255
	movzx	edx, BYTE PTR -174[rbp]
	mov	eax, 255
	sub	eax, edx
	mov	DWORD PTR -148[rbp], eax
	movzx	eax, BYTE PTR -177[rbp]
	imul	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip]
	movzx	eax, al
	imul	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -177[rbp], al
	movzx	eax, BYTE PTR -176[rbp]
	imul	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip+1]
	movzx	eax, al
	imul	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -176[rbp], al
	movzx	eax, BYTE PTR -175[rbp]
	imul	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR termbg[rip+2]
	movzx	eax, al
	imul	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2139062143
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -175[rbp], al
.L34:
	cmp	BYTE PTR -173[rbp], 0
	je	.L35
	movsx	ecx, BYTE PTR -173[rbp]
	movzx	edi, BYTE PTR -175[rbp]
	movzx	esi, BYTE PTR -176[rbp]
	movzx	edx, BYTE PTR -177[rbp]
	lea	rax, -112[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, edi
	mov	r8d, esi
	mov	ecx, edx
	lea	rdx, .LC12[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 16
	jmp	.L36
.L35:
	movzx	esi, BYTE PTR -175[rbp]
	movzx	ecx, BYTE PTR -176[rbp]
	movzx	edx, BYTE PTR -177[rbp]
	lea	rax, -112[rbp]
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC13[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L36:
	mov	eax, DWORD PTR -164[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rdx, -1[rax]
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	add	DWORD PTR -168[rbp], 1
.L28:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L37
	mov	eax, DWORD PTR -164[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strncat@PLT
	mov	eax, DWORD PTR -200[rbp]
	sub	eax, 1
	cmp	DWORD PTR -172[rbp], eax
	jne	.L38
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	puts@PLT
.L39:
	add	DWORD PTR -172[rbp], 2
.L27:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L40
	mov	rsp, r12
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print_image_double_res, .-print_image_double_res
	.section	.rodata
	.align 8
.LC15:
	.string	"/sys/devices/system/cpu/cpufreq/policy%d/%s"
.LC16:
	.string	"rb"
.LC17:
	.string	"numread > 0"
	.text
	.globl	get_cpu_stat
	.type	get_cpu_stat, @function
get_cpu_stat:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -304[rbp]
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC15[rip]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L43
	mov	eax, -1
	jmp	.L46
.L43:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	edx, 128
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jg	.L45
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 250
	lea	rsi, .LC4[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L45:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	atoi@PLT
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_cpu_stat, .-get_cpu_stat
	.section	.rodata
	.align 8
.LC18:
	.string	"/sys/devices/system/cpu/cpu%d/topology/thread_siblings_list"
	.text
	.globl	get_cpu_coreid
	.type	get_cpu_coreid, @function
get_cpu_coreid:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -272[rbp]
	mov	ecx, edx
	lea	rdx, .LC18[rip]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L49
	mov	eax, -1
	jmp	.L52
.L49:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	edx, 128
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jg	.L51
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 264
	lea	rsi, .LC4[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L51:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	atoi@PLT
.L52:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	get_cpu_coreid, .-get_cpu_coreid
	.local	prev
	.comm	prev,8,8
	.local	curr
	.comm	curr,8,8
	.section	.rodata
.LC19:
	.string	"/proc/stat"
.LC20:
	.string	"f"
.LC21:
	.string	"numr > 0"
.LC22:
	.string	"cpu%d"
.LC23:
	.string	"s"
.LC24:
	.string	"cpu%d %u %u %u %u %u %u %u"
.LC25:
	.string	"numscanned == 8"
.LC26:
	.string	"cpunr == cpu"
	.text
	.globl	get_usages
	.type	get_usages, @function
get_usages:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 160
	mov	DWORD PTR -16532[rbp], edi
	mov	QWORD PTR -16544[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR prev[rip]
	test	rax, rax
	je	.L55
	mov	rax, QWORD PTR curr[rip]
	test	rax, rax
	jne	.L56
.L55:
	mov	eax, DWORD PTR -16532[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	QWORD PTR -16488[rbp], rax
	mov	rax, QWORD PTR -16488[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR prev[rip], rax
	mov	rax, QWORD PTR -16488[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR curr[rip], rax
	mov	rax, QWORD PTR prev[rip]
	mov	rdx, QWORD PTR -16488[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR curr[rip]
	mov	rdx, QWORD PTR -16488[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L56:
	lea	rsi, .LC16[rip]
	lea	rdi, .LC19[rip]
	call	fopen@PLT
	mov	QWORD PTR -16480[rbp], rax
	cmp	QWORD PTR -16480[rbp], 0
	jne	.L57
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 285
	lea	rsi, .LC4[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L57:
	mov	rdx, QWORD PTR -16480[rbp]
	lea	rax, -16400[rbp]
	mov	rcx, rdx
	mov	edx, 16384
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -16504[rbp], eax
	cmp	DWORD PTR -16504[rbp], 0
	jg	.L58
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 288
	lea	rsi, .LC4[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L58:
	mov	rax, QWORD PTR -16480[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -16504[rbp]
	cmp	eax, 16383
	ja	.L72
	mov	eax, DWORD PTR -16504[rbp]
	cdqe
	mov	BYTE PTR -16400[rbp+rax], 0
	mov	DWORD PTR -16516[rbp], 0
	jmp	.L60
.L70:
	mov	edx, DWORD PTR -16516[rbp]
	lea	rax, -16416[rbp]
	mov	ecx, edx
	lea	rdx, .LC22[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -16416[rbp]
	lea	rax, -16400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -16472[rbp], rax
	cmp	QWORD PTR -16472[rbp], 0
	jne	.L61
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 298
	lea	rsi, .LC4[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L61:
	mov	rcx, QWORD PTR prev[rip]
	mov	edx, DWORD PTR -16516[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR -16464[rbp], rax
	mov	rcx, QWORD PTR curr[rip]
	mov	edx, DWORD PTR -16516[rbp]
	mov	eax, edx
	sal	eax, 3
	sub	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR -16456[rbp], rax
	mov	rax, QWORD PTR -16456[rbp]
	lea	r9, 24[rax]
	mov	rax, QWORD PTR -16456[rbp]
	lea	r8, 20[rax]
	mov	rax, QWORD PTR -16456[rbp]
	lea	rdi, 16[rax]
	mov	rax, QWORD PTR -16456[rbp]
	lea	rsi, 12[rax]
	mov	rax, QWORD PTR -16456[rbp]
	lea	r11, 8[rax]
	mov	rax, QWORD PTR -16456[rbp]
	lea	r10, 4[rax]
	mov	rcx, QWORD PTR -16456[rbp]
	lea	rdx, -16520[rbp]
	mov	rax, QWORD PTR -16472[rbp]
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9, r11
	mov	r8, r10
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 32
	mov	DWORD PTR -16500[rbp], eax
	cmp	DWORD PTR -16500[rbp], 8
	je	.L62
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 303
	lea	rsi, .LC4[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L62:
	mov	eax, DWORD PTR -16520[rbp]
	cmp	DWORD PTR -16516[rbp], eax
	je	.L63
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 304
	lea	rsi, .LC4[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L63:
	mov	DWORD PTR -16512[rbp], 0
	mov	DWORD PTR -16508[rbp], 0
	jmp	.L64
.L65:
	mov	eax, DWORD PTR -16508[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16456[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -16508[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -16464[rbp]
	add	rdx, rcx
	mov	ecx, DWORD PTR [rdx]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -16508[rbp]
	cdqe
	mov	DWORD PTR -16448[rbp+rax*4], edx
	mov	eax, DWORD PTR -16508[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16456[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16508[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -16464[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -16508[rbp]
	cdqe
	mov	eax, DWORD PTR -16448[rbp+rax*4]
	add	DWORD PTR -16512[rbp], eax
	add	DWORD PTR -16508[rbp], 1
.L64:
	cmp	DWORD PTR -16508[rbp], 6
	jle	.L65
	mov	edx, DWORD PTR -16448[rbp]
	mov	eax, DWORD PTR -16444[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -16440[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -16428[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -16424[rbp]
	add	eax, edx
	mov	DWORD PTR -16496[rbp], eax
	mov	edx, DWORD PTR -16436[rbp]
	mov	eax, DWORD PTR -16432[rbp]
	add	eax, edx
	mov	DWORD PTR -16492[rbp], eax
	mov	eax, DWORD PTR -16496[rbp]
	test	rax, rax
	js	.L66
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L67
.L66:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L67:
	mov	eax, DWORD PTR -16512[rbp]
	test	rax, rax
	js	.L68
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rax
	jmp	.L69
.L68:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rdx
	addss	xmm1, xmm1
.L69:
	mov	eax, DWORD PTR -16516[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16544[rbp]
	add	rax, rdx
	divss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -16516[rbp], 1
.L60:
	mov	eax, DWORD PTR -16516[rbp]
	cmp	eax, DWORD PTR -16532[rbp]
	jl	.L70
.L72:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	get_usages, .-get_usages
	.section	.rodata
.LC27:
	.string	"IMCATBG"
.LC28:
	.string	"Found %d cpus.\n"
.LC29:
	.string	"scaling_min_freq"
.LC30:
	.string	"scaling_max_freq"
.LC31:
	.string	"base_frequency"
.LC32:
	.string	"cpu>0"
.LC33:
	.string	"cpu %d(core%d): %d/%d/%d\n"
.LC34:
	.string	"written == num_cpus"
.LC35:
	.string	"rank %d: %d\n"
.LC36:
	.string	"sigaction"
.LC37:
	.string	"\033[2J"
.LC38:
	.string	"scaling_cur_freq"
.LC40:
	.string	"\033[1;1H"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 712
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -516[rbp], edi
	mov	QWORD PTR -528[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC27[rip]
	call	getenv@PLT
	mov	QWORD PTR -360[rbp], rax
	cmp	QWORD PTR -360[rbp], 0
	je	.L74
	mov	rax, QWORD PTR -360[rbp]
	add	rax, 1
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	mov	BYTE PTR termbg[rip+2], al
	mov	eax, DWORD PTR -432[rbp]
	sar	eax, 8
	mov	BYTE PTR termbg[rip+1], al
	mov	eax, DWORD PTR -432[rbp]
	sar	eax, 16
	mov	BYTE PTR termbg[rip], al
	mov	DWORD PTR blend[rip], 1
.L74:
	mov	eax, 0
	call	set_console_mode
	mov	edi, 84
	call	sysconf@PLT
	mov	DWORD PTR -428[rbp], eax
	mov	rcx, QWORD PTR stderr[rip]
	mov	eax, DWORD PTR -428[rbp]
	mov	edx, eax
	lea	rsi, .LC28[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -352[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L75:
	cmp	rsp, rcx
	je	.L76
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L75
.L76:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L77
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L77:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -344[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -336[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -544[rbp], rax
	mov	QWORD PTR -536[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -560[rbp], rax
	mov	QWORD PTR -552[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L78:
	cmp	rsp, rcx
	je	.L79
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L78
.L79:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L80
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L80:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -328[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -320[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -576[rbp], rax
	mov	QWORD PTR -568[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -592[rbp], rax
	mov	QWORD PTR -584[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L81:
	cmp	rsp, rcx
	je	.L82
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L81
.L82:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L83
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L83:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -312[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -304[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -608[rbp], rax
	mov	QWORD PTR -600[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -624[rbp], rax
	mov	QWORD PTR -616[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L84:
	cmp	rsp, rcx
	je	.L85
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L84
.L85:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L86
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L86:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -296[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -288[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -640[rbp], rax
	mov	QWORD PTR -632[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -656[rbp], rax
	mov	QWORD PTR -648[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L87:
	cmp	rsp, rcx
	je	.L88
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L87
.L88:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L89
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L89:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -272[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -672[rbp], rax
	mov	QWORD PTR -664[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -688[rbp], rax
	mov	QWORD PTR -680[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L90:
	cmp	rsp, rdx
	je	.L91
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L90
.L91:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L92
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L92:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -264[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -256[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -704[rbp], rax
	mov	QWORD PTR -696[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -720[rbp], rax
	mov	QWORD PTR -712[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L93:
	cmp	rsp, rdx
	je	.L94
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L93
.L94:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L95
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L95:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -248[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -240[rbp], rax
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -736[rbp], rax
	mov	QWORD PTR -728[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	mov	QWORD PTR -752[rbp], rax
	mov	QWORD PTR -744[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L96:
	cmp	rsp, rdx
	je	.L97
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L96
.L97:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L98
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L98:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -232[rbp], rax
	mov	DWORD PTR -436[rbp], 0
	jmp	.L99
.L105:
	mov	eax, DWORD PTR -436[rbp]
	lea	rsi, .LC29[rip]
	mov	edi, eax
	call	get_cpu_stat
	mov	rdx, QWORD PTR -328[rbp]
	mov	ecx, DWORD PTR -436[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	mov	eax, DWORD PTR -436[rbp]
	lea	rsi, .LC30[rip]
	mov	edi, eax
	call	get_cpu_stat
	mov	rdx, QWORD PTR -312[rbp]
	mov	ecx, DWORD PTR -436[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	mov	eax, DWORD PTR -436[rbp]
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	get_cpu_stat
	mov	rdx, QWORD PTR -344[rbp]
	mov	ecx, DWORD PTR -436[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jg	.L100
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
.L100:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	js	.L101
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jns	.L102
.L101:
	cmp	DWORD PTR -436[rbp], 0
	jg	.L103
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 360
	lea	rsi, .LC4[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L103:
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -328[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -344[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -312[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	jmp	.L104
.L102:
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -436[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
.L104:
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	get_cpu_coreid
	mov	rdx, QWORD PTR -264[rbp]
	mov	ecx, DWORD PTR -436[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	r8d, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -436[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -436[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	add	DWORD PTR -436[rbp], 1
.L99:
	mov	eax, DWORD PTR -436[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L105
	mov	DWORD PTR -440[rbp], -1
	mov	DWORD PTR -444[rbp], 0
	jmp	.L106
.L108:
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -444[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -440[rbp], eax
	jge	.L107
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -444[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -440[rbp], eax
.L107:
	add	DWORD PTR -444[rbp], 1
.L106:
	mov	eax, DWORD PTR -444[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L108
	cmp	DWORD PTR -440[rbp], 0
	js	.L109
	mov	eax, DWORD PTR -428[rbp]
	sub	eax, 1
	cmp	DWORD PTR -440[rbp], eax
	jge	.L109
	mov	DWORD PTR -448[rbp], 0
	mov	DWORD PTR -452[rbp], 0
	jmp	.L110
.L114:
	mov	DWORD PTR -456[rbp], 0
	jmp	.L111
.L113:
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -456[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -452[rbp], eax
	jne	.L112
	mov	eax, DWORD PTR -448[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -448[rbp], edx
	mov	rdx, QWORD PTR -248[rbp]
	cdqe
	mov	ecx, DWORD PTR -456[rbp]
	mov	DWORD PTR [rdx+rax*4], ecx
.L112:
	add	DWORD PTR -456[rbp], 1
.L111:
	mov	eax, DWORD PTR -456[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L113
	add	DWORD PTR -452[rbp], 1
.L110:
	mov	eax, DWORD PTR -452[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jle	.L114
	mov	eax, DWORD PTR -448[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	je	.L154
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 386
	lea	rsi, .LC4[rip]
	lea	rdi, .LC34[rip]
	call	__assert_fail@PLT
.L109:
	mov	DWORD PTR -460[rbp], 0
	jmp	.L117
.L118:
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -460[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -460[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -460[rbp], 1
.L117:
	mov	eax, DWORD PTR -460[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L118
	jmp	.L116
.L154:
	nop
.L116:
	mov	DWORD PTR -464[rbp], 0
	jmp	.L119
.L120:
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -464[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -464[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -464[rbp], 1
.L119:
	mov	eax, DWORD PTR -464[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L120
	mov	DWORD PTR -424[rbp], -16752464
	mov	eax, 0
	call	enableRawMode
	lea	rax, -208[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -72[rbp], 0
	lea	rax, sigwinchHandler[rip]
	mov	QWORD PTR -208[rbp], rax
	lea	rax, -208[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 28
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L121
	lea	rdi, .LC36[rip]
	call	perror@PLT
.L121:
	mov	DWORD PTR -468[rbp], 0
	jmp	.L122
.L151:
	mov	eax, DWORD PTR resized[rip]
	test	eax, eax
	je	.L123
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	call	get_terminal_size
	mov	eax, DWORD PTR -428[rbp]
	mov	edi, eax
	call	setup_image
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	setup_legend
	mov	DWORD PTR resized[rip], 0
.L123:
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	eax, DWORD PTR barh[rip]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	movd	eax, xmm0
	movd	xmm0, eax
	call	roundf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR res[rip], eax
	lea	rax, -501[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -420[rbp], eax
	cmp	DWORD PTR -420[rbp], 1
	jne	.L124
	movzx	eax, BYTE PTR -501[rbp]
	cmp	al, 27
	jne	.L124
	mov	DWORD PTR -468[rbp], 1
.L124:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L125
.L126:
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -472[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	lea	rsi, .LC38[rip]
	mov	edi, eax
	call	get_cpu_stat
	mov	rdx, QWORD PTR -296[rbp]
	mov	ecx, DWORD PTR -472[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	add	DWORD PTR -472[rbp], 1
.L125:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L126
	mov	DWORD PTR -476[rbp], 0
	jmp	.L127
.L143:
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -476[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -396[rbp], eax
	mov	rax, QWORD PTR -264[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -392[rbp], eax
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -480[rbp], eax
	cmp	DWORD PTR -392[rbp], -1
	je	.L128
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -396[rbp]
	je	.L128
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, DWORD PTR -392[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -480[rbp], eax
.L128:
	mov	DWORD PTR -484[rbp], 0
	jmp	.L129
.L142:
	mov	eax, DWORD PTR -484[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR res[rip]
	imul	eax, edx
	mov	DWORD PTR -388[rbp], eax
	mov	BYTE PTR -497[rbp], 0
	mov	BYTE PTR -498[rbp], -64
	mov	BYTE PTR -499[rbp], 0
	mov	BYTE PTR -500[rbp], -1
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -388[rbp], eax
	jl	.L130
	mov	BYTE PTR -497[rbp], -96
	mov	BYTE PTR -498[rbp], -96
	mov	BYTE PTR -499[rbp], 0
.L130:
	mov	rax, QWORD PTR -344[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -388[rbp], eax
	jl	.L131
	mov	BYTE PTR -497[rbp], -64
	mov	BYTE PTR -498[rbp], 0
	mov	BYTE PTR -499[rbp], 0
.L131:
	mov	edx, DWORD PTR -484[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 4
	mov	esi, DWORD PTR barh[rip]
	cdq
	idiv	esi
	mov	DWORD PTR -384[rbp], eax
	mov	edx, DWORD PTR -484[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 6
	mov	esi, DWORD PTR barh[rip]
	cdq
	idiv	esi
	add	eax, 48
	mov	DWORD PTR -380[rbp], eax
	movzx	eax, BYTE PTR -497[rbp]
	cmp	DWORD PTR -384[rbp], eax
	ja	.L132
	movzx	eax, BYTE PTR -497[rbp]
	cmp	DWORD PTR -380[rbp], eax
	cmovbe	eax, DWORD PTR -380[rbp]
	jmp	.L133
.L132:
	mov	eax, DWORD PTR -384[rbp]
.L133:
	mov	BYTE PTR -497[rbp], al
	movzx	eax, BYTE PTR -498[rbp]
	cmp	DWORD PTR -384[rbp], eax
	ja	.L134
	movzx	eax, BYTE PTR -498[rbp]
	cmp	DWORD PTR -380[rbp], eax
	cmovbe	eax, DWORD PTR -380[rbp]
	jmp	.L135
.L134:
	mov	eax, DWORD PTR -384[rbp]
.L135:
	mov	BYTE PTR -498[rbp], al
	movzx	eax, BYTE PTR -499[rbp]
	cmp	DWORD PTR -384[rbp], eax
	ja	.L136
	movzx	eax, BYTE PTR -499[rbp]
	cmp	DWORD PTR -380[rbp], eax
	cmovbe	eax, DWORD PTR -380[rbp]
	jmp	.L137
.L136:
	mov	eax, DWORD PTR -384[rbp]
.L137:
	mov	BYTE PTR -499[rbp], al
	mov	eax, DWORD PTR -388[rbp]
	cmp	DWORD PTR -480[rbp], eax
	jnb	.L138
	shr	BYTE PTR -497[rbp], 2
	shr	BYTE PTR -498[rbp], 2
	shr	BYTE PTR -499[rbp], 2
	shr	BYTE PTR -500[rbp], 2
.L138:
	movzx	eax, BYTE PTR -500[rbp]
	sal	eax, 24
	mov	edx, eax
	movzx	eax, BYTE PTR -499[rbp]
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -498[rbp]
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -497[rbp]
	or	eax, edx
	mov	DWORD PTR -376[rbp], eax
	mov	DWORD PTR -488[rbp], 1
	jmp	.L139
.L141:
	mov	eax, DWORD PTR tabw[rip]
	imul	eax, DWORD PTR -476[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR marginx[rip]
	add	edx, eax
	mov	eax, DWORD PTR -488[rbp]
	add	eax, edx
	mov	DWORD PTR -372[rbp], eax
	mov	eax, DWORD PTR imh[rip]
	sub	eax, 2
	sub	eax, DWORD PTR -484[rbp]
	mov	DWORD PTR -368[rbp], eax
	mov	eax, DWORD PTR imw[rip]
	cmp	DWORD PTR -372[rbp], eax
	jge	.L140
	mov	rdx, QWORD PTR im[rip]
	mov	eax, DWORD PTR imw[rip]
	imul	eax, DWORD PTR -368[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -372[rbp]
	add	eax, ecx
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -376[rbp]
	mov	DWORD PTR [rdx], eax
.L140:
	add	DWORD PTR -488[rbp], 1
.L139:
	mov	eax, DWORD PTR barw[rip]
	cmp	DWORD PTR -488[rbp], eax
	jle	.L141
	add	DWORD PTR -484[rbp], 1
.L129:
	mov	eax, DWORD PTR barh[rip]
	cmp	DWORD PTR -484[rbp], eax
	jl	.L142
	add	DWORD PTR -476[rbp], 1
.L127:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L143
	mov	rdx, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR -428[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_usages
	mov	DWORD PTR -492[rbp], 0
	jmp	.L144
.L150:
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -492[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -412[rbp], eax
	mov	eax, DWORD PTR tabw[rip]
	imul	eax, DWORD PTR -492[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR marginx[rip]
	add	eax, edx
	mov	DWORD PTR -408[rbp], eax
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, DWORD PTR -412[rbp]
	movsx	rdx, edx
	movss	xmm2, DWORD PTR [rax+rdx*4]
	movss	xmm0, DWORD PTR .LC39[rip]
	movaps	xmm1, xmm0
	subss	xmm1, xmm2
	mov	eax, DWORD PTR barh[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -404[rbp], eax
	mov	DWORD PTR -496[rbp], 0
	jmp	.L145
.L149:
	mov	eax, DWORD PTR -496[rbp]
	add	eax, 2
	mov	DWORD PTR -400[rbp], eax
	mov	eax, DWORD PTR imw[rip]
	cmp	DWORD PTR -408[rbp], eax
	jge	.L146
	mov	eax, DWORD PTR -496[rbp]
	cmp	eax, DWORD PTR -404[rbp]
	jne	.L147
	mov	eax, DWORD PTR -424[rbp]
	jmp	.L148
.L147:
	mov	eax, 0
.L148:
	mov	rcx, QWORD PTR im[rip]
	mov	edx, DWORD PTR imw[rip]
	mov	esi, edx
	imul	esi, DWORD PTR -400[rbp]
	mov	edx, DWORD PTR -408[rbp]
	add	edx, esi
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	DWORD PTR [rdx], eax
.L146:
	add	DWORD PTR -496[rbp], 1
.L145:
	mov	eax, DWORD PTR barh[rip]
	cmp	DWORD PTR -496[rbp], eax
	jle	.L149
	add	DWORD PTR -492[rbp], 1
.L144:
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, DWORD PTR -428[rbp]
	jl	.L150
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR legend[rip]
	mov	rdx, QWORD PTR im[rip]
	mov	esi, DWORD PTR imh[rip]
	mov	eax, DWORD PTR imw[rip]
	mov	edi, eax
	call	print_image_double_res
	mov	DWORD PTR -416[rbp], 1000000
	mov	QWORD PTR -224[rbp], 0
	mov	eax, DWORD PTR -416[rbp]
	sal	eax, 6
	cdqe
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
.L122:
	cmp	DWORD PTR -468[rbp], 0
	je	.L151
	mov	rax, QWORD PTR im[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L153
	call	__stack_chk_fail@PLT
.L153:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 18
__PRETTY_FUNCTION__.4:
	.string	"get_terminal_size"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 13
__PRETTY_FUNCTION__.3:
	.string	"get_cpu_stat"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 15
__PRETTY_FUNCTION__.2:
	.string	"get_cpu_coreid"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"get_usages"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 4
.LC6:
	.long	1232348160
	.align 4
.LC39:
	.long	1065353216
	.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	"776985.c"
	.text
	.local	termw
	.comm	termw,4,4
	.local	termh
	.comm	termh,4,4
	.local	doubleres
	.comm	doubleres,4,4
	.data
	.align	2
	.type	blend, %object
	.size	blend, 4
blend:
	.word	1
	.local	termbg
	.comm	termbg,3,4
	.local	imw
	.comm	imw,4,4
	.local	imh
	.comm	imh,4,4
	.local	im
	.comm	im,4,4
	.local	legend
	.comm	legend,4,4
	.local	tabw
	.comm	tabw,4,4
	.local	barw
	.comm	barw,4,4
	.local	barh
	.comm	barh,4,4
	.local	res
	.comm	res,4,4
	.local	marginx
	.comm	marginx,4,4
	.align	2
	.type	resized, %object
	.size	resized, 4
resized:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"stty size\000"
	.align	2
.LC2:
	.ascii	"Failed to determine terminal size using stty.\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/776985.c\000"
	.align	2
.LC5:
	.ascii	"num == 2\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_terminal_size, %function
get_terminal_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	popen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L4+8
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L4+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L4+16
	ldr	r2, .L4+20
	ldr	r1, .L4+24
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L3
	ldr	r3, .L4+28
	mov	r2, #71
	ldr	r1, .L4+32
	ldr	r0, .L4+36
	bl	__assert_fail
.L3:
	ldr	r0, [fp, #-12]
	bl	pclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	termw
	.word	termh
	.word	.LC3
	.word	__PRETTY_FUNCTION__.7535
	.word	.LC4
	.word	.LC5
	.size	get_terminal_size, .-get_terminal_size
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_console_mode, %function
set_console_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L7
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	doubleres
	.size	set_console_mode, .-set_console_mode
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_image, %function
setup_image:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L10:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L11:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, .L19+20
	str	r3, [r2]
	ldr	r3, .L19+12
	ldr	r3, [r3]
	ldr	r2, .L19+20
	ldr	r2, [r2]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19
	str	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L19+20
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19+4
	str	r2, [r3]
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L19+12
	ldr	r3, [r3]
	sub	r3, r3, #4
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19+24
	str	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #2
	movge	r3, r3
	movlt	r3, #2
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+28
	str	r3, [r2]
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, #8
	movlt	r3, r3
	movge	r3, #8
	ldr	r2, .L19+28
	str	r3, [r2]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	sub	r3, r3, #4
	ldr	r2, .L19+32
	str	r3, [r2]
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mul	r3, r1, r3
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L19+36
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L12
.L18:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L17:
	ldr	r3, [fp, #-36]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	ldr	r2, .L19+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #128
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #255
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-16]
	orr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L19+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L14
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L19+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L15
.L14:
	ldr	r3, [fp, #-8]
	b	.L16
.L15:
	mov	r3, #0
.L16:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, .L19+12
	ldr	r2, [r2]
	ldr	r0, [fp, #-36]
	mul	r0, r2, r0
	ldr	r2, [fp, #-32]
	add	r2, r0, r2
	lsl	r2, r2, #2
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r3, .L19+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L12:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L18
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	im
	.word	legend
	.word	termw
	.word	imw
	.word	termh
	.word	imh
	.word	tabw
	.word	barw
	.word	barh
	.word	marginx
	.size	setup_image, .-setup_image
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%3.1f\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.global	__aeabi_fsub
	.global	__aeabi_f2iz
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_legend, %function
setup_legend:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L24+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r0, fp, #64
	stm	sp, {r2-r3}
	ldr	r2, .L24+8
	mov	r1, #16
	bl	snprintf
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L24+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r0, fp, #48
	stm	sp, {r2-r3}
	ldr	r2, .L24+8
	mov	r1, #16
	bl	snprintf
	ldr	r3, [fp, #-88]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L24+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r0, fp, #32
	stm	sp, {r2-r3}
	ldr	r2, .L24+8
	mov	r1, #16
	bl	snprintf
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-68]
	ldr	r3, .L24+12
	ldr	r2, [r3]
	ldr	r3, .L24+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-72]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-68]
	add	r3, r1, r3
	add	r3, r2, r3
	sub	r2, fp, #32
	ldr	r1, .L24+20
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-80]
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
	ldr	r3, .L24+24
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, .L24+28
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r3, [fp, #-88]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, .L24+12
	ldr	r2, [r3]
	ldr	r3, .L24+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-72]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-68]
	add	r3, r1, r3
	add	r3, r2, r3
	sub	r2, fp, #64
	ldr	r1, .L24+20
	mov	r0, r3
	bl	sprintf
.L22:
	ldr	r3, .L24+24
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, .L24+28
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r3, [fp, #-88]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, .L24+12
	ldr	r2, [r3]
	ldr	r3, .L24+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-72]
	mul	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-68]
	add	r3, r1, r3
	add	r3, r2, r3
	sub	r2, fp, #48
	ldr	r1, .L24+20
	mov	r0, r3
	bl	sprintf
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	1232348160
	.word	.LC6
	.word	legend
	.word	imw
	.word	.LC7
	.word	imh
	.word	barh
	.size	setup_legend, .-setup_legend
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigwinchHandler, %function
sigwinchHandler:
	@ 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, .L27
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L28:
	.align	2
.L27:
	.word	resized
	.size	sigwinchHandler, .-sigwinchHandler
	.local	orig_termios
	.comm	orig_termios,60,4
	.align	2
	.global	disableRawMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	disableRawMode, %function
disableRawMode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L30
	mov	r1, #2
	mov	r0, #0
	bl	tcsetattr
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	orig_termios
	.size	disableRawMode, .-disableRawMode
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	enableRawMode
	.syntax unified
	.arm
	.fpu softvfp
	.type	enableRawMode, %function
enableRawMode:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L34+4
	mov	r0, #0
	bl	tcgetattr
	ldr	r0, .L34+8
	bl	atexit
	ldr	r3, .L34+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #8
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #0
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #2
	mov	r0, #0
	bl	tcsetattr
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC9
	.word	orig_termios
	.word	disableRawMode
	.size	enableRawMode, .-enableRawMode
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\033[38;2;\000"
	.align	2
.LC11:
	.ascii	"%d;%d;%dm\000"
	.align	2
.LC12:
	.ascii	"\033[48;2;\000"
	.align	2
.LC13:
	.ascii	"%d;%d;%dm%c\000"
	.align	2
.LC14:
	.ascii	"%d;%d;%dm\342\226\200\000"
	.align	2
.LC15:
	.ascii	"\033[0m\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_image_double_res, %function
print_image_double_res:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #168
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	str	r2, [fp, #-160]
	str	r3, [fp, #-164]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, [fp, #-156]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-156]
	sub	r3, r3, #1
	str	r3, [fp, #-156]
.L37:
	mov	r3, #32768
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-124]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-124]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-124]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L38
.L51:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-152]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-160]
	add	r3, r3, r2
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	ldr	r2, [fp, #-152]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-160]
	add	r3, r3, r2
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-116]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L39
.L48:
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-164]
	add	r2, r3, #1
	str	r2, [fp, #-164]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L41
.L40:
	mov	r3, #0
.L41:
	strb	r3, [fp, #-141]
	ldr	r4, [fp, #-124]
	ldr	r0, [fp, #-116]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L53+4
	ldr	r0, [fp, #-116]
	bl	strncat
	ldr	r3, [fp, #-136]
	add	r2, r3, #1
	str	r2, [fp, #-136]
	ldrb	r3, [r3]
	strb	r3, [fp, #-145]
	ldr	r3, [fp, #-136]
	add	r2, r3, #1
	str	r2, [fp, #-136]
	ldrb	r3, [r3]
	strb	r3, [fp, #-144]
	ldr	r3, [fp, #-136]
	add	r2, r3, #1
	str	r2, [fp, #-136]
	ldrb	r3, [r3]
	strb	r3, [fp, #-143]
	ldr	r3, [fp, #-136]
	add	r2, r3, #1
	str	r2, [fp, #-136]
	ldrb	r3, [r3]
	strb	r3, [fp, #-142]
	ldrb	r3, [fp, #-141]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
	mvn	r3, #0
	strb	r3, [fp, #-142]
	ldrb	r3, [fp, #-142]
	strb	r3, [fp, #-143]
	ldrb	r3, [fp, #-143]
	strb	r3, [fp, #-144]
	ldrb	r3, [fp, #-144]
	strb	r3, [fp, #-145]
.L42:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	mov	r3, #255
	str	r3, [fp, #-112]
	ldrb	r3, [fp, #-142]	@ zero_extendqisi2
	rsb	r3, r3, #255
	str	r3, [fp, #-108]
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	ldr	r2, [fp, #-112]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-108]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-145]
	ldrb	r3, [fp, #-144]	@ zero_extendqisi2
	ldr	r2, [fp, #-112]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-108]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-144]
	ldrb	r3, [fp, #-143]	@ zero_extendqisi2
	ldr	r2, [fp, #-112]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-108]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-143]
.L43:
	ldrb	r1, [fp, #-145]	@ zero_extendqisi2
	ldrb	r3, [fp, #-144]	@ zero_extendqisi2
	ldrb	r2, [fp, #-143]	@ zero_extendqisi2
	sub	r0, fp, #96
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L53+20
	mov	r1, #80
	bl	snprintf
	ldr	r4, [fp, #-124]
	ldr	r0, [fp, #-116]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	sub	r2, r3, #1
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	strncat
	ldr	r4, [fp, #-124]
	ldr	r0, [fp, #-116]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L53+24
	ldr	r0, [fp, #-116]
	bl	strncat
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldrb	r3, [r3]
	strb	r3, [fp, #-145]
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldrb	r3, [r3]
	strb	r3, [fp, #-144]
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldrb	r3, [r3]
	strb	r3, [fp, #-143]
	ldr	r3, [fp, #-132]
	add	r2, r3, #1
	str	r2, [fp, #-132]
	ldrb	r3, [r3]
	strb	r3, [fp, #-142]
	ldrb	r3, [fp, #-141]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	strb	r3, [fp, #-142]
	ldrb	r3, [fp, #-142]
	strb	r3, [fp, #-143]
	ldrb	r3, [fp, #-143]
	strb	r3, [fp, #-144]
	ldrb	r3, [fp, #-144]
	strb	r3, [fp, #-145]
.L44:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	mov	r3, #255
	str	r3, [fp, #-104]
	ldrb	r3, [fp, #-142]	@ zero_extendqisi2
	rsb	r3, r3, #255
	str	r3, [fp, #-100]
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-145]
	ldrb	r3, [fp, #-144]	@ zero_extendqisi2
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-144]
	ldrb	r3, [fp, #-143]	@ zero_extendqisi2
	ldr	r2, [fp, #-104]
	mul	r2, r3, r2
	ldr	r3, .L53+12
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, .L53+16
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r3, r2, r3
	strb	r3, [fp, #-143]
.L45:
	ldrb	r3, [fp, #-141]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	ldrb	ip, [fp, #-145]	@ zero_extendqisi2
	ldrb	r3, [fp, #-144]	@ zero_extendqisi2
	ldrb	r2, [fp, #-143]	@ zero_extendqisi2
	ldrb	r1, [fp, #-141]	@ zero_extendqisi2
	sub	r0, fp, #96
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, .L53+28
	mov	r1, #80
	bl	snprintf
	b	.L47
.L46:
	ldrb	r1, [fp, #-145]	@ zero_extendqisi2
	ldrb	r3, [fp, #-144]	@ zero_extendqisi2
	ldrb	r2, [fp, #-143]	@ zero_extendqisi2
	sub	r0, fp, #96
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L53+32
	mov	r1, #80
	bl	snprintf
.L47:
	ldr	r4, [fp, #-124]
	ldr	r0, [fp, #-116]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	sub	r2, r3, #1
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	strncat
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L39:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L48
	ldr	r4, [fp, #-124]
	ldr	r0, [fp, #-116]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L53+36
	ldr	r0, [fp, #-116]
	bl	strncat
	ldr	r3, [fp, #-156]
	sub	r3, r3, #1
	ldr	r2, [fp, #-140]
	cmp	r2, r3
	bne	.L49
	ldr	r1, [fp, #-116]
	ldr	r0, .L53+40
	bl	printf
	b	.L50
.L49:
	ldr	r0, [fp, #-116]
	bl	puts
.L50:
	ldr	r3, [fp, #-140]
	add	r3, r3, #2
	str	r3, [fp, #-140]
.L38:
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	blt	.L51
	mov	sp, r5
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC16
	.word	.LC10
	.word	blend
	.word	termbg
	.word	-2139062143
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC7
	.size	print_image_double_res, .-print_image_double_res
	.section	.rodata
	.align	2
.LC17:
	.ascii	"/sys/devices/system/cpu/cpufreq/policy%d/%s\000"
	.align	2
.LC18:
	.ascii	"rb\000"
	.align	2
.LC19:
	.ascii	"numread > 0\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_cpu_stat
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cpu_stat, %function
get_cpu_stat:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #264
	ldr	r3, [fp, #-284]
	str	r3, [sp]
	ldr	r3, [fp, #-280]
	ldr	r2, .L61+4
	mov	r1, #128
	bl	snprintf
	sub	r3, fp, #264
	ldr	r1, .L61+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L56
	mvn	r3, #0
	b	.L59
.L56:
	sub	r0, fp, #136
	ldr	r3, [fp, #-272]
	mov	r2, #128
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bgt	.L58
	ldr	r3, .L61+12
	mov	r2, #250
	ldr	r1, .L61+16
	ldr	r0, .L61+20
	bl	__assert_fail
.L58:
	ldr	r0, [fp, #-272]
	bl	fclose
	sub	r3, fp, #136
	mov	r0, r3
	bl	atoi
	mov	r3, r0
.L59:
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC20
	.word	.LC17
	.word	.LC18
	.word	__PRETTY_FUNCTION__.7610
	.word	.LC4
	.word	.LC19
	.size	get_cpu_stat, .-get_cpu_stat
	.section	.rodata
	.align	2
.LC21:
	.ascii	"/sys/devices/system/cpu/cpu%d/topology/thread_sibli"
	.ascii	"ngs_list\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_cpu_coreid
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cpu_coreid, %function
get_cpu_coreid:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #264
	ldr	r3, [fp, #-280]
	ldr	r2, .L69+4
	mov	r1, #128
	bl	snprintf
	sub	r3, fp, #264
	ldr	r1, .L69+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L64
	mvn	r3, #0
	b	.L67
.L64:
	sub	r0, fp, #136
	ldr	r3, [fp, #-272]
	mov	r2, #128
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bgt	.L66
	ldr	r3, .L69+12
	mov	r2, #264
	ldr	r1, .L69+16
	ldr	r0, .L69+20
	bl	__assert_fail
.L66:
	ldr	r0, [fp, #-272]
	bl	fclose
	sub	r3, fp, #136
	mov	r0, r3
	bl	atoi
	mov	r3, r0
.L67:
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC22
	.word	.LC21
	.word	.LC18
	.word	__PRETTY_FUNCTION__.7618
	.word	.LC4
	.word	.LC19
	.size	get_cpu_coreid, .-get_cpu_coreid
	.local	prev
	.comm	prev,4,4
	.local	curr
	.comm	curr,4,4
	.section	.rodata
	.align	2
.LC23:
	.ascii	"/proc/stat\000"
	.align	2
.LC24:
	.ascii	"f\000"
	.align	2
.LC25:
	.ascii	"numr > 0\000"
	.align	2
.LC26:
	.ascii	"cpu%d\000"
	.align	2
.LC27:
	.ascii	"s\000"
	.align	2
.LC28:
	.ascii	"cpu%d %u %u %u %u %u %u %u\000"
	.align	2
.LC29:
	.ascii	"numscanned == 8\000"
	.align	2
.LC30:
	.ascii	"cpunr == cpu\000"
	.global	__aeabi_ui2f
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_usages
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_usages, %function
get_usages:
	@ args = 0, pretend = 0, frame = 16496
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16384
	sub	sp, sp, #136
	sub	r3, fp, #16384
	sub	r3, r3, #20
	str	r0, [r3, #-108]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	str	r1, [r3, #-112]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, .L86+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L86+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
.L72:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r3, #-108]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [r1, #-84]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r0, [r3, #-84]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L86+4
	str	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r0, [r3, #-84]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L86+8
	str	r2, [r3]
	ldr	r3, .L86+4
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-84]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L86+8
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-84]
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L73:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r4, r3
	ldr	r1, .L86+12
	ldr	r0, .L86+16
	bl	fopen
	str	r0, [r4, #-80]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bne	.L74
	ldr	r3, .L86+20
	ldr	r2, .L86+24
	ldr	r1, .L86+28
	ldr	r0, .L86+32
	bl	__assert_fail
.L74:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	sub	r0, fp, #16384
	sub	r0, r0, #20
	sub	r0, r0, #4
	ldr	r3, [r3, #-80]
	mov	r2, #16384
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #16384
	sub	r2, r2, #20
	str	r3, [r2, #-76]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bgt	.L75
	ldr	r3, .L86+20
	mov	r2, #288
	ldr	r1, .L86+28
	ldr	r0, .L86+36
	bl	__assert_fail
.L75:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r0, [r3, #-80]
	bl	fclose
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-76]
	cmp	r3, #16384
	bcs	.L85
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-76]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-96]
	b	.L77
.L83:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	sub	r0, fp, #16384
	sub	r0, r0, #20
	sub	r0, r0, #20
	ldr	r3, [r3, #-96]
	ldr	r2, .L86+40
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r4, r3
	sub	r2, fp, #16384
	sub	r2, r2, #20
	sub	r2, r2, #20
	sub	r3, fp, #16384
	sub	r3, r3, #20
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	str	r0, [r4, #-72]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	bne	.L78
	ldr	r3, .L86+20
	ldr	r2, .L86+44
	ldr	r1, .L86+28
	ldr	r0, .L86+48
	bl	__assert_fail
.L78:
	ldr	r3, .L86+4
	ldr	r1, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r3, #-96]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	add	r3, r1, r3
	str	r3, [r2, #-68]
	ldr	r3, .L86+8
	ldr	r1, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r3, #-96]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	add	r3, r1, r3
	str	r3, [r2, #-64]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-64]
	add	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	r1, r2, #8
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	r0, r2, #12
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	ip, r2, #16
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	lr, r2, #20
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	r4, r2, #24
	sub	r2, fp, #16384
	sub	r2, r2, #20
	mov	r5, r2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	mov	r7, r2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	sub	r2, r2, #100
	sub	r6, fp, #16384
	sub	r6, r6, #20
	str	r4, [sp, #20]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r7, #-64]
	ldr	r1, .L86+52
	ldr	r0, [r6, #-72]
	bl	__isoc99_sscanf
	str	r0, [r5, #-60]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-60]
	cmp	r3, #8
	beq	.L79
	ldr	r3, .L86+20
	ldr	r2, .L86+56
	ldr	r1, .L86+28
	ldr	r0, .L86+60
	bl	__assert_fail
.L79:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-100]
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-96]
	cmp	r2, r3
	beq	.L80
	ldr	r3, .L86+20
	mov	r2, #304
	ldr	r1, .L86+28
	ldr	r0, .L86+64
	bl	__assert_fail
.L80:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-92]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-88]
	b	.L81
.L82:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	sub	r1, fp, #16384
	sub	r1, r1, #20
	ldr	r1, [r1, #-68]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-48]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-64]
	add	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	sub	r1, fp, #16384
	sub	r1, r1, #20
	ldr	r1, [r1, #-68]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-48]
	sub	r2, fp, #16384
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-92]
	add	r3, r2, r3
	str	r3, [r1, #-92]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	add	r3, r3, #1
	str	r3, [r2, #-88]
.L81:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-88]
	cmp	r3, #6
	ble	.L82
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r3, #-48]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-44]
	add	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-40]
	add	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-28]
	add	r2, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-24]
	sub	r1, fp, #16384
	sub	r1, r1, #20
	add	r3, r2, r3
	str	r3, [r1, #-56]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r3, #-36]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-32]
	sub	r1, fp, #16384
	sub	r1, r1, #20
	add	r3, r2, r3
	str	r3, [r1, #-52]
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r0, [r3, #-56]
	bl	__aeabi_ui2f
	mov	r5, r0
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r0, [r3, #-92]
	bl	__aeabi_ui2f
	mov	r1, r0
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #20
	ldr	r2, [r2, #-112]
	add	r4, r2, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r4]	@ float
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r3, [r3, #-96]
	add	r3, r3, #1
	str	r3, [r2, #-96]
.L77:
	sub	r3, fp, #16384
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #20
	ldr	r2, [r2, #-96]
	ldr	r3, [r3, #-108]
	cmp	r2, r3
	blt	.L83
.L85:
	nop
	ldr	r3, .L86
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC31
	.word	prev
	.word	curr
	.word	.LC18
	.word	.LC23
	.word	__PRETTY_FUNCTION__.7627
	.word	285
	.word	.LC4
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	298
	.word	.LC27
	.word	.LC28
	.word	303
	.word	.LC29
	.word	.LC30
	.size	get_usages, .-get_usages
	.section	.rodata
	.align	2
.LC32:
	.ascii	"IMCATBG\000"
	.align	2
.LC33:
	.ascii	"Found %d cpus.\012\000"
	.align	2
.LC34:
	.ascii	"scaling_min_freq\000"
	.align	2
.LC35:
	.ascii	"scaling_max_freq\000"
	.align	2
.LC36:
	.ascii	"base_frequency\000"
	.align	2
.LC37:
	.ascii	"cpu>0\000"
	.align	2
.LC38:
	.ascii	"cpu %d(core%d): %d/%d/%d\012\000"
	.align	2
.LC39:
	.ascii	"written == num_cpus\000"
	.align	2
.LC40:
	.ascii	"rank %d: %d\012\000"
	.align	2
.LC41:
	.ascii	"sigaction\000"
	.align	2
.LC42:
	.ascii	"\033[2J\000"
	.align	2
.LC43:
	.ascii	"scaling_cur_freq\000"
	.global	__aeabi_fmul
	.align	2
.LC44:
	.ascii	"\033[1;1H\000"
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #392
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	ldr	r3, .L146
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r0, .L146+4
	bl	getenv
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	and	r2, r3, #255
	ldr	r3, .L146+8
	strb	r2, [r3, #2]
	ldr	r3, [fp, #-300]
	asr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, .L146+8
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-300]
	asr	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, .L146+8
	strb	r2, [r3]
	ldr	r3, .L146+12
	mov	r2, #1
	str	r2, [r3]
.L89:
	bl	set_console_mode
	mov	r0, #84
	bl	sysconf
	str	r0, [fp, #-296]
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-296]
	ldr	r1, .L146+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-260]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-232]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L90
.L96:
	ldr	r1, .L146+24
	ldr	r0, [fp, #-308]
	bl	get_cpu_stat
	mov	r1, r0
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, .L146+28
	ldr	r0, [fp, #-308]
	bl	get_cpu_stat
	mov	r1, r0
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, .L146+32
	ldr	r0, [fp, #-308]
	bl	get_cpu_stat
	mov	r1, r0
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-308]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bgt	.L91
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-308]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
.L91:
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-308]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	blt	.L92
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-308]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bge	.L93
.L92:
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bgt	.L94
	ldr	r3, .L146+36
	mov	r2, #360
	ldr	r1, .L146+40
	ldr	r0, .L146+44
	bl	__assert_fail
.L94:
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-308]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-280]
	ldr	r1, [r3]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-288]
	ldr	r1, [r3]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-272]
	ldr	r1, [r3]
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	b	.L95
.L93:
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-308]
	ldr	r1, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
.L95:
	ldr	r0, [fp, #-308]
	bl	get_cpu_coreid
	mov	r1, r0
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-308]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, .L146+16
	ldr	ip, [r3]
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-308]
	ldr	lr, [r3, r2, lsl #2]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-308]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-288]
	ldr	r1, [fp, #-308]
	ldr	r2, [r2, r1, lsl #2]
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-308]
	ldr	r1, [r1, r0, lsl #2]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	ldr	r2, [fp, #-308]
	ldr	r1, .L146+48
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L90:
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L96
	mvn	r3, #0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L97
.L99:
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-316]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-312]
	cmp	r2, r3
	bge	.L98
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-316]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-312]
.L98:
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L97:
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L99
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	blt	.L100
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	ldr	r2, [fp, #-312]
	cmp	r2, r3
	bge	.L100
	mov	r3, #0
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-324]
	b	.L101
.L105:
	mov	r3, #0
	str	r3, [fp, #-328]
	b	.L102
.L104:
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-328]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-324]
	cmp	r2, r3
	bne	.L103
	ldr	r3, [fp, #-320]
	add	r2, r3, #1
	str	r2, [fp, #-320]
	ldr	r2, [fp, #-240]
	ldr	r1, [fp, #-328]
	str	r1, [r2, r3, lsl #2]
.L103:
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
.L102:
	ldr	r2, [fp, #-328]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L104
	ldr	r3, [fp, #-324]
	add	r3, r3, #1
	str	r3, [fp, #-324]
.L101:
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-312]
	cmp	r2, r3
	ble	.L105
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	beq	.L145
	ldr	r3, .L146+36
	ldr	r2, .L146+52
	ldr	r1, .L146+40
	ldr	r0, .L146+56
	bl	__assert_fail
.L100:
	mov	r3, #0
	str	r3, [fp, #-332]
	b	.L108
.L109:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-332]
	ldr	r1, [fp, #-332]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
.L108:
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L109
	b	.L107
.L145:
	nop
.L107:
	mov	r3, #0
	str	r3, [fp, #-336]
	b	.L110
.L111:
	ldr	r3, .L146+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-336]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-336]
	ldr	r1, .L146+60
	bl	fprintf
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	str	r3, [fp, #-336]
.L110:
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L111
	ldr	r3, .L146+64
	str	r3, [fp, #-228]
	bl	enableRawMode
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L146+68
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #28
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L112
	ldr	r0, .L146+72
	bl	perror
.L112:
	mov	r3, #0
	str	r3, [fp, #-340]
	b	.L113
.L142:
	ldr	r3, .L146+76
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L114
	ldr	r0, .L146+80
	bl	printf
	bl	get_terminal_size
	ldr	r0, [fp, #-296]
	bl	setup_image
	ldr	r2, [fp, #-272]
	ldr	r1, [fp, #-280]
	ldr	r0, [fp, #-288]
	bl	setup_legend
	ldr	r3, .L146+76
	mov	r2, #0
	str	r2, [r3]
.L114:
	ldr	r3, [fp, #-272]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, .L146+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	roundf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	ldr	r2, .L146+88
	str	r3, [r2]
	sub	r3, fp, #372
	sub	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #1
	bne	.L115
	ldrb	r3, [fp, #-373]	@ zero_extendqisi2
	cmp	r3, #27
	bne	.L115
	mov	r3, #1
	str	r3, [fp, #-340]
.L115:
	mov	r3, #0
	str	r3, [fp, #-344]
	b	.L116
.L117:
	ldr	r3, [fp, #-232]
	ldr	r2, [fp, #-344]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-168]
	ldr	r1, .L146+92
	ldr	r0, [fp, #-168]
	bl	get_cpu_stat
	mov	r1, r0
	ldr	r3, [fp, #-264]
	ldr	r2, [fp, #-344]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L116:
	ldr	r2, [fp, #-344]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L117
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L118
.L134:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-348]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-200]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-264]
	ldr	r2, [fp, #-200]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-196]
	cmn	r3, #1
	beq	.L119
	ldr	r2, [fp, #-196]
	ldr	r3, [fp, #-200]
	cmp	r2, r3
	beq	.L119
	ldr	r3, [fp, #-264]
	ldr	r2, [fp, #-196]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-352]
.L119:
	mov	r3, #0
	str	r3, [fp, #-356]
	b	.L120
.L133:
	ldr	r3, [fp, #-356]
	add	r3, r3, #1
	ldr	r2, .L146+88
	ldr	r2, [r2]
	mul	r3, r2, r3
	str	r3, [fp, #-192]
	mov	r3, #0
	strb	r3, [fp, #-369]
	mvn	r3, #63
	strb	r3, [fp, #-370]
	mov	r3, #0
	strb	r3, [fp, #-371]
	mvn	r3, #0
	strb	r3, [fp, #-372]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-200]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-192]
	cmp	r2, r3
	blt	.L121
	mvn	r3, #95
	strb	r3, [fp, #-369]
	mvn	r3, #95
	strb	r3, [fp, #-370]
	mov	r3, #0
	strb	r3, [fp, #-371]
.L121:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-200]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-192]
	cmp	r2, r3
	blt	.L122
	mvn	r3, #63
	strb	r3, [fp, #-369]
	mov	r3, #0
	strb	r3, [fp, #-370]
	mov	r3, #0
	strb	r3, [fp, #-371]
.L122:
	ldr	r2, [fp, #-356]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L146+84
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-188]
	ldr	r2, [fp, #-356]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, .L146+84
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #48
	str	r3, [fp, #-184]
	ldrb	r3, [fp, #-369]	@ zero_extendqisi2
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	bhi	.L123
	ldrb	r2, [fp, #-369]	@ zero_extendqisi2
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	and	r3, r3, #255
	b	.L124
.L123:
	ldr	r3, [fp, #-188]
	and	r3, r3, #255
.L124:
	strb	r3, [fp, #-369]
	ldrb	r3, [fp, #-370]	@ zero_extendqisi2
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	bhi	.L125
	ldrb	r2, [fp, #-370]	@ zero_extendqisi2
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	and	r3, r3, #255
	b	.L126
.L125:
	ldr	r3, [fp, #-188]
	and	r3, r3, #255
.L126:
	strb	r3, [fp, #-370]
	ldrb	r3, [fp, #-371]	@ zero_extendqisi2
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	bhi	.L127
	ldrb	r2, [fp, #-371]	@ zero_extendqisi2
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	and	r3, r3, #255
	b	.L128
.L127:
	ldr	r3, [fp, #-188]
	and	r3, r3, #255
.L128:
	strb	r3, [fp, #-371]
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-352]
	cmp	r2, r3
	bcs	.L129
	ldrb	r3, [fp, #-369]	@ zero_extendqisi2
	lsr	r3, r3, #2
	strb	r3, [fp, #-369]
	ldrb	r3, [fp, #-370]	@ zero_extendqisi2
	lsr	r3, r3, #2
	strb	r3, [fp, #-370]
	ldrb	r3, [fp, #-371]	@ zero_extendqisi2
	lsr	r3, r3, #2
	strb	r3, [fp, #-371]
	ldrb	r3, [fp, #-372]	@ zero_extendqisi2
	lsr	r3, r3, #2
	strb	r3, [fp, #-372]
.L129:
	ldrb	r3, [fp, #-372]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldrb	r3, [fp, #-371]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-370]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-369]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-180]
	mov	r3, #1
	str	r3, [fp, #-360]
	b	.L130
.L132:
	ldr	r3, .L146+96
	ldr	r3, [r3]
	ldr	r2, [fp, #-348]
	mul	r2, r3, r2
	ldr	r3, .L146+100
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-360]
	add	r3, r2, r3
	str	r3, [fp, #-176]
	ldr	r3, .L146+104
	ldr	r3, [r3]
	sub	r2, r3, #2
	ldr	r3, [fp, #-356]
	sub	r3, r2, r3
	str	r3, [fp, #-172]
	ldr	r3, .L146+108
	ldr	r3, [r3]
	ldr	r2, [fp, #-176]
	cmp	r2, r3
	bge	.L131
	ldr	r3, .L146+112
	ldr	r2, [r3]
	ldr	r3, .L146+108
	ldr	r3, [r3]
	ldr	r1, [fp, #-172]
	mul	r1, r3, r1
	ldr	r3, [fp, #-176]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-180]
	str	r2, [r3]
.L131:
	ldr	r3, [fp, #-360]
	add	r3, r3, #1
	str	r3, [fp, #-360]
.L130:
	ldr	r3, .L146+116
	ldr	r3, [r3]
	ldr	r2, [fp, #-360]
	cmp	r2, r3
	ble	.L132
	ldr	r3, [fp, #-356]
	add	r3, r3, #1
	str	r3, [fp, #-356]
.L120:
	ldr	r3, .L146+84
	ldr	r3, [r3]
	ldr	r2, [fp, #-356]
	cmp	r2, r3
	blt	.L133
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L118:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L134
	ldr	r1, [fp, #-256]
	ldr	r0, [fp, #-296]
	bl	get_usages
	mov	r3, #0
	str	r3, [fp, #-364]
	b	.L135
.L141:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-364]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-216]
	ldr	r3, .L146+96
	ldr	r3, [r3]
	ldr	r2, [fp, #-364]
	mul	r2, r3, r2
	ldr	r3, .L146+100
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-256]
	ldr	r2, [fp, #-216]
	ldr	r3, [r3, r2, lsl #2]	@ float
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r3, .L146+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-208]
	mov	r3, #0
	str	r3, [fp, #-368]
	b	.L136
.L140:
	ldr	r3, [fp, #-368]
	add	r3, r3, #2
	str	r3, [fp, #-204]
	ldr	r3, .L146+108
	ldr	r3, [r3]
	ldr	r2, [fp, #-212]
	cmp	r2, r3
	bge	.L137
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-208]
	cmp	r2, r3
	bne	.L138
	ldr	r3, [fp, #-228]
	b	.L139
.L138:
	mov	r3, #0
.L139:
	ldr	r2, .L146+112
	ldr	r1, [r2]
	ldr	r2, .L146+108
	ldr	r2, [r2]
	ldr	r0, [fp, #-204]
	mul	r0, r2, r0
	ldr	r2, [fp, #-212]
	add	r2, r0, r2
	lsl	r2, r2, #2
	add	r2, r1, r2
	str	r3, [r2]
.L137:
	ldr	r3, [fp, #-368]
	add	r3, r3, #1
	str	r3, [fp, #-368]
.L136:
	ldr	r3, .L146+84
	ldr	r3, [r3]
	ldr	r2, [fp, #-368]
	cmp	r2, r3
	ble	.L140
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	str	r3, [fp, #-364]
.L135:
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-296]
	cmp	r2, r3
	blt	.L141
	ldr	r0, .L146+120
	bl	printf
	ldr	r3, .L146+108
	ldr	r0, [r3]
	ldr	r3, .L146+104
	ldr	r1, [r3]
	ldr	r3, .L146+112
	ldr	r2, [r3]
	ldr	r3, .L146+124
	ldr	r3, [r3]
	bl	print_image_double_res
	ldr	r3, .L146+128
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-220]
	lsl	r3, r3, #6
	str	r3, [fp, #-160]
	sub	r3, fp, #164
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
.L113:
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	beq	.L142
	ldr	r3, .L146+112
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L146+80
	bl	printf
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L146
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L144
	bl	__stack_chk_fail
.L144:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L147:
	.align	2
.L146:
	.word	.LC45
	.word	.LC32
	.word	termbg
	.word	blend
	.word	stderr
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	__PRETTY_FUNCTION__.7664
	.word	.LC4
	.word	.LC37
	.word	.LC38
	.word	386
	.word	.LC39
	.word	.LC40
	.word	-16752464
	.word	sigwinchHandler
	.word	.LC41
	.word	resized
	.word	.LC42
	.word	barh
	.word	res
	.word	.LC43
	.word	tabw
	.word	marginx
	.word	imh
	.word	imw
	.word	im
	.word	barw
	.word	.LC44
	.word	legend
	.word	1000000
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7535, %object
	.size	__PRETTY_FUNCTION__.7535, 18
__PRETTY_FUNCTION__.7535:
	.ascii	"get_terminal_size\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7610, %object
	.size	__PRETTY_FUNCTION__.7610, 13
__PRETTY_FUNCTION__.7610:
	.ascii	"get_cpu_stat\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7618, %object
	.size	__PRETTY_FUNCTION__.7618, 15
__PRETTY_FUNCTION__.7618:
	.ascii	"get_cpu_coreid\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7627, %object
	.size	__PRETTY_FUNCTION__.7627, 11
__PRETTY_FUNCTION__.7627:
	.ascii	"get_usages\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7664, %object
	.size	__PRETTY_FUNCTION__.7664, 5
__PRETTY_FUNCTION__.7664:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
