// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c12d
movq %rsi, %r14
xorl %r12d, %r12d
movl $0x8, %edx
movq %rsp, %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x1b7eb
movl $0x2, %edx
movq %r15, %rdi
leaq 0x13be1(%rip), %rsi     # 0x2faf8
callq 0x19466
movq (%rsp), %r13
movq 0x8(%rsp), %r15
movb $0xf, 0xf(%rsp)
movb $0x0, (%rsp)
movq %r13, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movzbl 0x1f(%rsp), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %r15d, %edx
movq %r13, %rsi
leaq 0x10(%rsp), %rax
cmovnsq %rax, %rsi
cmovnsq %rcx, %rdx
movq %rbx, %rdi
callq 0x19466
testq %r15, %r15
jns 0x1bf6e
movq %r13, %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
jns 0x1bf7e
movq (%rsp), %rdi
callq 0x3430
movl $0x10, %r15d
movq %r12, 0x20(%rsp)
cmpq $0x8, %r15
jne 0x1bfa3
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x13b5b(%rip), %rsi     # 0x2faf9
callq 0x19466
cmpq 0x8(%r14), %r12
jae 0x1c03c
movq (%r14), %rax
movzbl (%rax,%r12), %esi
movl $0x2, %edx
movq %rsp, %r13
movq %r13, %rdi
callq 0x1b7eb
movl $0x1, %edx
movq %r13, %rdi
leaq 0x13b25(%rip), %rsi     # 0x2faf9
callq 0x19466
movq (%rsp), %r13
movq 0x8(%rsp), %rbp
movb $0xf, 0xf(%rsp)
movb $0x0, (%rsp)
movq %r13, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
movzbl 0x1f(%rsp), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %ebp, %edx
movq %r13, %rsi
leaq 0x10(%rsp), %rax
cmovnsq %rax, %rsi
cmovnsq %rcx, %rdx
movq %rbx, %rdi
callq 0x19466
testq %rbp, %rbp
jns 0x1c02a
movq %r13, %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
jns 0x1c050
movq (%rsp), %rdi
callq 0x3430
jmp 0x1c050
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x13aac(%rip), %rsi     # 0x2faf7
callq 0x19466
incq %r12
decq %r15
jne 0x1bf89
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x13a8e(%rip), %rsi     # 0x2faf9
callq 0x19466
movl $0x10, %r15d
movq 0x20(%rsp), %r12
cmpq 0x8(%r14), %r12
jae 0x1c0c0
movq (%r14), %rax
movb (%rax,%r12), %bpl
leal -0x20(%rbp), %ecx
movzbl 0xf(%rbx), %eax
movl %eax, %r13d
xorl $0xf, %r13d
cmpb $0x5e, %cl
ja 0x1c0d6
testb %al, %al
cmovsl 0x8(%rbx), %r13d
leal 0x1(%r13), %esi
movq %rbx, %rdi
callq 0x191a4
cmpb $0x0, 0xf(%rbx)
movq %rbx, %rax
jns 0x1c0ba
movq (%rbx), %rax
movb %bpl, (%rax,%r13)
jmp 0x1c0fa
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x13a2a(%rip), %rsi     # 0x2faf9
callq 0x19466
jmp 0x1c0fa
testb %al, %al
cmovsl 0x8(%rbx), %r13d
leal 0x1(%r13), %esi
movq %rbx, %rdi
callq 0x191a4
cmpb $0x0, 0xf(%rbx)
movq %rbx, %rax
jns 0x1c0f5
movq (%rbx), %rax
movb $0x2e, (%rax,%r13)
incq %r12
decq %r15
jne 0x1c07b
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x166b7(%rip), %rsi     # 0x327cc
callq 0x19466
movq 0x20(%rsp), %r12
addq $0x10, %r12
cmpq 0x8(%r14), %r12
jb 0x1bef5
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop