// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c375e(%rip), %rsi    # 0x5ce7bb
callq 0x4107fc
movl 0x48(%r14), %esi
leaq -0xc0(%rbp), %rdi
movq %rbx, -0x68(%rbp)
callq 0x410522
leaq 0x38(%rbx), %r15
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x4a24a0
leaq -0x78(%rbp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x40b0a6
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426f20
leaq -0xc0(%rbp), %rdi
callq 0x410354
movl 0x40(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410522
leaq -0x88(%rbp), %rdi
leaq 0x1c36fc(%rip), %rcx    # 0x5ce7cc
movl $0x9, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1e20
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b104
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b10c
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 0x4a24a0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b148
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426f20
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b160
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426f20
leaq -0xc0(%rbp), %rdi
callq 0x410354
movl 0x50(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410522
leaq -0x88(%rbp), %rdi
leaq 0x1c2ee4(%rip), %rcx    # 0x5ce06e
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1e20
movq %r12, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b1b9
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b1c1
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 0x4a24a0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b1fd
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426f20
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b215
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426f20
leaq -0xc0(%rbp), %rdi
callq 0x410354
movl 0x48(%r14), %esi
leaq -0xc0(%rbp), %rdi
callq 0x410522
leaq -0x88(%rbp), %rdi
leaq 0x1c3597(%rip), %rcx    # 0x5ce7d6
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4a1e20
movq %r12, -0x50(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x40b26e
movq %rdx, -0x50(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x40(%rbp)
jmp 0x40b276
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 0x4a24a0
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b2b2
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426f20
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x40b2ca
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x426f20
leaq -0xc0(%rbp), %rdi
callq 0x410354
leaq 0x1ce56d(%rip), %rsi    # 0x5d984a
movq %r15, %rdi
callq 0x4a25e0
movq %rsp, %rax
addq $-0x20, %rax
movq %rax, -0x60(%rbp)
movq %rax, %rsp
leaq 0x1c34e5(%rip), %rsi    # 0x5ce7df
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
xorl %eax, %eax
callq 0x4f81c0
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x4f81c0
movq %r15, %rdi
movq %r13, %rsi
callq 0x4a25e0
cmpq $0x0, 0x50(%r14)
je 0x40b4ab
xorl %ebx, %ebx
movq $0x0, -0x58(%rbp)
testl %ebx, %ebx
jne 0x40b356
movq %r15, %rdi
leaq 0x1c3bb5(%rip), %rsi    # 0x5cef06
callq 0x4a25e0
movq 0x38(%r14), %rax
movq -0x58(%rbp), %rcx
movzbl (%rax,%rcx), %r13d
movl %r13d, %eax
shrl $0x4, %eax
leaq 0x1c3580(%rip), %rcx    # 0x5ce8f0
movb (%rax,%rcx), %al
movb %al, -0x2b(%rbp)
movl %r13d, %eax
andl $0xf, %eax
movb (%rax,%rcx), %al
movb %al, -0x2a(%rbp)
movb $0x0, -0x29(%rbp)
movq %r15, %rdi
leaq -0x2b(%rbp), %rsi
callq 0x4a25e0
testb $0x1, %bl
je 0x40b3a6
movq %r15, %rdi
leaq 0x1c3b65(%rip), %rsi    # 0x5cef06
callq 0x4a25e0
addb $-0x20, %r13b
movb $0x2e, %al
cmpb $0x5e, %r13b
ja 0x40b3bd
movq 0x38(%r14), %rax
movq -0x58(%rbp), %rcx
movb (%rax,%rcx), %al
movl %ebx, %ecx
movq -0x60(%rbp), %rdx
movb %al, (%rdx,%rcx)
leal 0x1(%rbx), %eax
movb $0x0, (%rdx,%rax)
movq -0x58(%rbp), %rax
leaq 0x1(%rax), %r13
incl %ebx
cmpl $0x10, %ebx
jne 0x40b439
movq -0x60(%rbp), %rax
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x1c3b17(%rip), %rsi    # 0x5cef05
callq 0x4a25e0
movq %r15, %rdi
movq -0x60(%rbp), %rsi
callq 0x4a25e0
movq %r15, %rdi
leaq 0x1ce441(%rip), %rsi    # 0x5d984a
callq 0x4a25e0
xorl %ebx, %ebx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
leaq -0xc0(%rbp), %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4f81c0
cmpq 0x50(%r14), %r13
jae 0x40b439
movq %r15, %rdi
movq %r12, %rsi
callq 0x4a25e0
testb $0x7, %bl
setne %al
cmpl $0x3, %ebx
setb %cl
orb %al, %cl
jne 0x40b458
movq %r15, %rdi
leaq 0x1c3ab3(%rip), %rsi    # 0x5cef06
callq 0x4a25e0
cmpq 0x50(%r14), %r13
jne 0x40b485
testl %ebx, %ebx
je 0x40b471
movq %r15, %rdi
leaq 0x1c3a99(%rip), %rsi    # 0x5cef05
callq 0x4a25e0
testb $0x1, %bl
je 0x40b485
movq %r15, %rdi
leaq 0x1c3a86(%rip), %rsi    # 0x5cef06
callq 0x4a25e0
testl %ebx, %ebx
je 0x40b493
cmpq 0x50(%r14), %r13
je 0x40b3d5
cmpq $0x9ffffe, -0x58(%rbp)  # imm = 0x9FFFFE
ja 0x40b4ab
movq %r13, -0x58(%rbp)
cmpq 0x50(%r14), %r13
jb 0x40b343
leaq 0x1e7954(%rip), %rsi    # 0x5f2e06
movq %r15, %rdi
callq 0x4a25e0
movq -0x68(%rbp), %rax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40b510
jmp 0x40b4db
jmp 0x40b4f9
jmp 0x40b510
jmp 0x40b4db
jmp 0x40b4f9
jmp 0x40b510
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x40b4fc
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x426f20
jmp 0x40b4fc
jmp 0x40b4f9
jmp 0x40b510
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x40512a
jmp 0x40b513
jmp 0x40b510
jmp 0x40b510
jmp 0x40b510
movq %rax, %rbx
movq -0x68(%rbp), %rdi
callq 0x40512a
movq %rbx, %rdi
callq 0x4d11b0