// File: /workspace/github_cpp_makefile_star2_O3/enbock[P]Warp10Server/ulib/src/ByteArray.cpp
// Function: u::ByteArray::toString()
String ByteArray::toString()
{
	String str="[ByteArray size=";
	str += int2string(_size);
	str += " pointer=" + int2string(_position);
	str += " length=" + int2string(_length);
	str += " memory=" + int2string(_size);
	str += "\n";

	static int lineLength = 16;
	static char hex[17] = "0123456789ABCDEF";

	uint64 i;
	uint c;
	char o[lineLength+1];
	char l[3];
	unsigned char v;
	char d[10], f[20];

	c=0;
	sprintf(f, " 0x%%%02dx:", (int)sizeof(uint64));
	sprintf(d, f, 0/*+_buffer*/);
	str += d;
	for(i=0; i<_length and i < 1024*1024*10/*cap on 10MB*/; i++)
	{
		if(c==0) str += " ";
		v = _buffer[i];
		l[0] = hex[v>>4]; // >>4 is identical of /16
		l[1] = hex[v-((v>>4)<<4)]; // <<4 is dientical of *16
		l[2] = 0;

		str += l;
		if(c%2==1) str += " ";
		if(v > 31 && v < 127)
			o[c] = _buffer[i];
		else
			o[c] = *".";
		o[c+1]=0;

		do
		{
			c++;
			if(c == lineLength)
			{
				o[c]=0;
				str += "  ";
				str += o;
				str += "\n";

				sprintf(d, f, i+1);
				if(i+1 < _length)
				{
					str += d;
				}
				c = 0;
			}
			if(c%8==0 && c > 2) str += " ";
			if(i+1 == _length)
			{
				if(c) str +="  ";
				if(c%2==1) str += " ";
			}
		} while(i+1 == _length && c != 0);
	}

	str+="]";
	return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1c37de(%rip), %rsi    # 0x5ce7bb
callq 0x4107ee
movl 0x48(%r14), %esi
leaq -0xc0(%rbp), %rdi
movq %rbx, -0x60(%rbp)
callq 0x410514
leaq 0x38(%rbx), %r15
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x4a23b0
leaq -0x78(%rbp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x40b026
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426e30
leaq -0xc0(%rbp), %rdi
callq 0x410332
movl 0x40(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410514
leaq -0x88(%rbp), %rdi
leaq 0x1c377c(%rip), %rcx    # 0x5ce7cc
movl $0x9, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1d30
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b084
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b08c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r15, %rdi
callq 0x4a23b0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b0c8
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426e30
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b0e0
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426e30
leaq -0xc0(%rbp), %rdi
callq 0x410332
movl 0x50(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410514
leaq -0x88(%rbp), %rdi
leaq 0x1c2f64(%rip), %rcx    # 0x5ce06e
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1d30
movq %r12, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b139
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b141
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r15, %rdi
callq 0x4a23b0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b17d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426e30
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b195
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426e30
leaq -0xc0(%rbp), %rdi
callq 0x410332
movl 0x48(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410514
leaq -0x88(%rbp), %rdi
leaq 0x1c3617(%rip), %rcx    # 0x5ce7d6
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1d30
movq %r12, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b1ee
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b1f6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x48(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r15, %rdi
callq 0x4a23b0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b232
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426e30
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b24a
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426e30
leaq -0xc0(%rbp), %rdi
callq 0x410332
leaq 0x1ce5ed(%rip), %rsi    # 0x5d984a
movq %r15, %rdi
callq 0x4a24f0
movq %rsp, %rax
addq $-0x20, %rax
movq %rax, -0x58(%rbp)
movq %rax, %rsp
leaq 0x1c3565(%rip), %rsi    # 0x5ce7df
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
xorl %eax, %eax
callq 0x4f80d0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x4f80d0
movq %r15, %rdi
movq %r13, %rsi
callq 0x4a24f0
cmpq $0x0, 0x50(%r14)
je 0x40b437
xorl %r13d, %r13d
xorl %r12d, %r12d
testl %r13d, %r13d
jne 0x40b2d3
movq %r15, %rdi
leaq 0x1c3c38(%rip), %rsi    # 0x5cef06
callq 0x4a24f0
movq 0x38(%r14), %rax
movzbl (%rax,%r12), %ebx
movl %ebx, %eax
shrl $0x4, %eax
leaq 0x1c3608(%rip), %rcx    # 0x5ce8f0
movb (%rax,%rcx), %al
movb %al, -0x2b(%rbp)
movl %ebx, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, -0x2a(%rbp)
movb $0x0, -0x29(%rbp)
movq %r15, %rdi
leaq -0x2b(%rbp), %rsi
callq 0x4a24f0
testb $0x1, %r13b
je 0x40b31e
movq %r15, %rdi
leaq 0x1c3bed(%rip), %rsi    # 0x5cef06
callq 0x4a24f0
addb $-0x20, %bl
movb $0x2e, %al
cmpb $0x5e, %bl
ja 0x40b330
movq 0x38(%r14), %rax
movb (%rax,%r12), %al
movl %r13d, %ecx
movq -0x58(%rbp), %rdx
movb %al, (%rdx,%rcx)
incl %r13d
movb $0x0, (%rdx,%r13)
leaq 0x1(%r12), %rbx
cmpl $0x10, %r13d
je 0x40b3bf
testb $0x7, %r13b
setne %al
cmpl $0x3, %r13d
setb %cl
orb %al, %cl
jne 0x40b36e
movq %r15, %rdi
leaq 0x1c3b9d(%rip), %rsi    # 0x5cef06
callq 0x4a24f0
cmpq 0x50(%r14), %rbx
jne 0x40b3a3
testl %r13d, %r13d
je 0x40b437
movq %r15, %rdi
leaq 0x1c3b7e(%rip), %rsi    # 0x5cef05
callq 0x4a24f0
leal -0x1(%r13), %eax
testb $0x1, %al
jne 0x40b3a3
movq %r15, %rdi
leaq 0x1c3b68(%rip), %rsi    # 0x5cef06
callq 0x4a24f0
movq 0x50(%r14), %rax
leal 0x1(%r13), %ecx
testl %r13d, %r13d
je 0x40b3b8
movl %ecx, %r13d
cmpq %rax, %rbx
je 0x40b347
decl %ecx
movl %ecx, %r13d
jmp 0x40b422
movq -0x58(%rbp), %rax
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x1c3b34(%rip), %rsi    # 0x5cef05
callq 0x4a24f0
movq %r15, %rdi
movq -0x58(%rbp), %rsi
callq 0x4a24f0
movq %r15, %rdi
leaq 0x1ce45e(%rip), %rsi    # 0x5d984a
callq 0x4a24f0
xorl %r13d, %r13d
leaq -0x50(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x4f80d0
movq 0x50(%r14), %rax
cmpq %rax, %rbx
jae 0x40b422
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
callq 0x4a24f0
movq 0x50(%r14), %rax
cmpq $0x9ffffe, %r12         # imm = 0x9FFFFE
ja 0x40b437
movq %rbx, %r12
cmpq %rax, %rbx
jb 0x40b2bf
leaq 0x1e79c8(%rip), %rsi    # 0x5f2e06
movq %r15, %rdi
callq 0x4a24f0
movq -0x60(%rbp), %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40b49c
jmp 0x40b467
jmp 0x40b485
jmp 0x40b49c
jmp 0x40b467
jmp 0x40b485
jmp 0x40b49c
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b488
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426e30
jmp 0x40b488
jmp 0x40b485
jmp 0x40b49c
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x40512c
jmp 0x40b49f
jmp 0x40b49c
jmp 0x40b49c
jmp 0x40b49c
movq %rax, %rbx
movq -0x60(%rbp), %rdi
callq 0x40512c
movq %rbx, %rdi
callq 0x4d10c0