// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/arlib/test.cpp
// Function: tostringhex_dbg(arrayview<unsigned char> const&)
string tostringhex_dbg(const arrayview<uint8_t>& item)
{
	string ret;
	for (size_t outer=0;outer<item.size();outer+=16)
	{
		ret += tostringhex<8>(outer)+"  ";
		for (size_t inner=0;inner<16;inner++)
		{
			if (inner == 8) ret += " ";
			if (outer+inner >= item.size()) ret += "   ";
			else ret += tostringhex<2>(item[outer+inner])+" ";
		}
		ret += " ";
		for (size_t inner=0;inner<16;inner++)
		{
			if (outer+inner >= item.size()) ret += " ";
			else
			{
				char c = item[outer+inner];
				if (c >= 0x20 && c <= 0x7e) ret += c;
				else ret += '.';
			}
		}
		ret += "\n";
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movb $0xf, 0xf(%rdi)
movb $0x0, (%rdi)
cmpq $0x0, 0x8(%rsi)
je 0x1ba6a
movq %rsi, %r14
xorl %r12d, %r12d
movl $0x8, %edx
movq %rsp, %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1b137
movl $0x2, %edx
movq %r15, %rdi
leaq 0x1429d(%rip), %rsi     # 0x2fb18
callq 0x1967e
movq (%rsp), %r13
movq 0x8(%rsp), %r15
movb $0xf, 0xf(%rsp)
movb $0x0, (%rsp)
movq %r13, 0x18(%rsp)
movq %r15, %rax
shrq $0x38, %rax
xorq $0xf, %rax
testq %r15, %r15
movl %r15d, %edx
cmovnsq %rax, %rdx
movq %r15, 0x20(%rsp)
movq %r13, %rsi
leaq 0x18(%rsp), %rax
cmovnsq %rax, %rsi
movq %rbx, %rdi
callq 0x1967e
testq %r15, %r15
jns 0x1b8d2
movq %r13, %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
jns 0x1b8e2
movq (%rsp), %rdi
callq 0x3430
movl $0x10, %r15d
movq %r12, 0x10(%rsp)
cmpq $0x8, %r15
jne 0x1b907
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x14217(%rip), %rsi     # 0x2fb19
callq 0x1967e
cmpq 0x8(%r14), %r12
jae 0x1b9a0
movq (%r14), %rax
movzbl (%rax,%r12), %esi
movl $0x2, %edx
movq %rsp, %r13
movq %r13, %rdi
callq 0x1b137
movl $0x1, %edx
movq %r13, %rdi
leaq 0x141e1(%rip), %rsi     # 0x2fb19
callq 0x1967e
movq (%rsp), %r13
movq 0x8(%rsp), %rbp
movb $0xf, 0xf(%rsp)
movb $0x0, (%rsp)
movq %r13, 0x18(%rsp)
movq %rbp, %rax
shrq $0x38, %rax
xorq $0xf, %rax
testq %rbp, %rbp
movl %ebp, %edx
cmovnsq %rax, %rdx
movq %rbp, 0x20(%rsp)
movq %r13, %rsi
leaq 0x18(%rsp), %rax
cmovnsq %rax, %rsi
movq %rbx, %rdi
callq 0x1967e
testq %rbp, %rbp
jns 0x1b98e
movq %r13, %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
jns 0x1b9b4
movq (%rsp), %rdi
callq 0x3430
jmp 0x1b9b4
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x14168(%rip), %rsi     # 0x2fb17
callq 0x1967e
incq %r12
decq %r15
jne 0x1b8ed
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1414a(%rip), %rsi     # 0x2fb19
callq 0x1967e
movl $0x10, %r15d
movq 0x10(%rsp), %r12
cmpq 0x8(%r14), %r12
jae 0x1ba21
movq (%r14), %rax
movb (%rax,%r12), %r13b
movzbl 0xf(%rbx), %eax
movl %eax, %ebp
xorl $0xf, %ebp
testb %al, %al
cmovsl 0x8(%rbx), %ebp
leal 0x1(%rbp), %esi
movq %rbx, %rdi
callq 0x193c4
cmpb $0x0, 0xf(%rbx)
movq %rbx, %rax
jns 0x1ba12
movq (%rbx), %rax
leal -0x20(%r13), %ecx
cmpb $0x5e, %cl
ja 0x1ba37
movb %r13b, (%rax,%rbp)
jmp 0x1ba3b
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x140e9(%rip), %rsi     # 0x2fb19
callq 0x1967e
jmp 0x1ba3b
movb $0x2e, (%rax,%rbp)
incq %r12
decq %r15
jne 0x1b9df
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x16e5a(%rip), %rsi     # 0x328ac
callq 0x1967e
movq 0x10(%rsp), %r12
addq $0x10, %r12
cmpq 0x8(%r14), %r12
jb 0x1b859
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq