	.file	"204572.c"
	.intel_syntax noprefix
	.text
	.globl	loadBalance
	.type	loadBalance, @function
loadBalance:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	movss	DWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L3:
	movss	DWORD PTR -20[rbp], xmm0
	sub	DWORD PTR -44[rbp], 1
	mov	ebx, 0
	jmp	.L4
.L9:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -28[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	trunc@PLT
	mov	eax, ebx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L5
	cvttsd2si	rax, xmm0
	jmp	.L6
.L5:
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	movabs	rcx, -9223372036854775808
	xor	rax, rcx
.L6:
	mov	QWORD PTR [rdx], rax
	movss	xmm0, DWORD PTR -20[rbp]
	subss	xmm0, DWORD PTR -28[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	call	trunc@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movq	xmm1, rax
	divsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -48[rbp]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -24[rbp]
	addss	xmm0, DWORD PTR -28[rbp]
	mov	eax, ebx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	comiss	xmm0, DWORD PTR .LC3[rip]
	jnb	.L7
	cvttss2si	rax, xmm0
	jmp	.L8
.L7:
	movss	xmm1, DWORD PTR .LC3[rip]
	subss	xmm0, xmm1
	cvttss2si	rax, xmm0
	movabs	rcx, -9223372036854775808
	xor	rax, rcx
.L8:
	mov	QWORD PTR 8[rdx], rax
	movss	xmm0, DWORD PTR -28[rbp]
	addss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -28[rbp], xmm0
	add	ebx, 1
.L4:
	cmp	ebx, DWORD PTR -44[rbp]
	jb	.L9
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -28[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	trunc@PLT
	mov	eax, ebx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	comisd	xmm0, QWORD PTR .LC1[rip]
	jnb	.L10
	cvttsd2si	rax, xmm0
	jmp	.L11
.L10:
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	movabs	rcx, -9223372036854775808
	xor	rax, rcx
.L11:
	mov	QWORD PTR [rdx], rax
	mov	eax, ebx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	loadBalance, .-loadBalance
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage:\n%s <N_RANGES> [0 - <OPENED_END>[ <OFFSET ( [0.0 - 2.0] where 1.0=50%% )>\n"
.LC5:
	.string	"erro malloc()"
.LC6:
	.string	"erro loadBalance()"
	.align 8
.LC7:
	.string	"%u range: [%lu - %lu[\t\t\t(total of elements: %lu)\n"
.LC8:
	.string	"\nGrand total: %lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	cmp	DWORD PTR -52[rbp], 4
	je	.L14
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	eax, eax
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	eax, DWORD PTR -32[rbp]
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -32[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	esi, DWORD PTR -28[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movd	xmm0, esi
	mov	esi, ecx
	mov	rdi, rax
	call	loadBalance
	cmp	eax, -1
	jne	.L17
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L15
.L17:
	mov	DWORD PTR -36[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	sub	rax, rdx
	mov	rdi, rax
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -36[rbp]
	lea	esi, 1[rcx]
	mov	r8, rdi
	mov	rcx, rdx
	mov	rdx, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	sub	rax, rdx
	add	QWORD PTR -24[rbp], rax
	add	DWORD PTR -36[rbp], 1
.L18:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jb	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1138753536
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 4
.LC3:
	.long	1593835520
	.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	"204572.c"
	.text
	.global	__aeabi_ui2f
	.global	__aeabi_f2d
	.global	__aeabi_d2uiz
	.global	__aeabi_fsub
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_fadd
	.global	__aeabi_f2uiz
	.align	2
	.global	loadBalance
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadBalance, %function
loadBalance:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]	@ float
	mov	r4, #0
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	ldr	r0, [fp, #-48]
	bl	__aeabi_ui2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r4, #0
	b	.L2
.L3:
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	trunc
	mov	r2, r0
	mov	r3, r1
	lsl	r1, r4, #3
	ldr	r0, [fp, #-40]
	add	r5, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [r5]
	ldr	r1, [fp, #-32]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	trunc
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r1, [fp, #-32]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	lsl	r3, r4, #3
	ldr	r2, [fp, #-40]
	add	r5, r2, r3
	mov	r0, r1
	bl	__aeabi_f2uiz
	mov	r3, r0
	str	r3, [r5, #4]
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	add	r4, r4, #1
.L2:
	ldr	r3, [fp, #-44]
	cmp	r4, r3
	bcc	.L3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	trunc
	mov	r2, r0
	mov	r3, r1
	lsl	r1, r4, #3
	ldr	r0, [fp, #-40]
	add	r5, r0, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [r5]
	lsl	r3, r4, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	str	r2, [r3, #4]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	loadBalance, .-loadBalance
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012%s <N_RANGES> [0 - <OPENED_END>[ <OFFSET "
	.ascii	"( [0.0 - 2.0] where 1.0=50%% )>\012\000"
	.align	2
.LC1:
	.ascii	"erro malloc()\000"
	.align	2
.LC2:
	.ascii	"erro loadBalance()\000"
	.align	2
.LC3:
	.ascii	"%u range: [%lu - %lu[\011\011\011(total of elements"
	.ascii	": %lu)\012\000"
	.align	2
.LC4:
	.ascii	"\012Grand total: %lu\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	beq	.L6
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	mvn	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L12+4
	bl	puts
	mvn	r3, #0
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	ldr	r3, [fp, #-8]	@ float
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	loadBalance
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L12+8
	bl	puts
	mvn	r3, #0
	b	.L7
.L9:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L11:
	ldr	r3, [fp, #-28]
	add	r0, r3, #1
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	lr, [r3, #4]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L12+12
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L11
	ldr	r1, [fp, #-24]
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
