// File: /workspace/github_cpp_makefile_star2_O3/ksherlock[P]wdc-utils/disassembler.cpp
// Function: disassembler::format_data(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::pair<std::string, std::string> 
disassembler::format_data(unsigned size, const std::string &data) {

	switch(size) {
		case 1: return std::make_pair("db", data);
		case 2: return std::make_pair("dw", data);
		case 3: return std::make_pair("da", data);
		case 4: return std::make_pair("dl", data);

		default: { 
			std::string tmp;
			tmp = std::to_string(size) + " bytes";
			return std::make_pair(tmp, data);

		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %rbx
leal -0x1(%r15), %eax
cmpl $0x3, %eax
ja 0x7b50
leaq 0x7ac9(%rip), %rcx      # 0xf4e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x8265(%rip), %rax      # 0xfc8c
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x69ce
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6718
jmp 0x7b0d
leaq 0x822d(%rip), %rax      # 0xfc92
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x69ce
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6718
jmp 0x7b0d
leaq 0x81f5(%rip), %rax      # 0xfc95
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x69ce
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6718
jmp 0x7b0d
leaq 0x81b4(%rip), %rax      # 0xfc8f
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x69ce
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6718
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rcx
cmpq %r15, %rcx
je 0x7b2e
movq %rcx, 0x20(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rbx)
jmp 0x7b35
movups (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rbx)
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movl $0x1, %eax
cmpl $0xa, %r15d
jb 0x7bb6
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r15d, %edx
cmpl $0x63, %edx
jbe 0x7baf
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x7bb4
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x7bb6
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x7b7e
addl $-0x3, %eax
jmp 0x7bb6
addl $-0x2, %eax
jmp 0x7bb6
decl %eax
movl %eax, %esi
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x2200
leaq 0x48(%rsp), %r12
movq (%r12), %rdi
movl 0x8(%r12), %esi
movl %r15d, %edx
callq 0x6961
leaq 0x80ae(%rip), %rsi      # 0xfc98
movq %r12, %rdi
callq 0x2320
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7c1a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x7c22
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rsp, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x7c5e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7c75
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rsp, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9346
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x7b3e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x7b3e
jmp 0x7cc0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7cc3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x7cc3
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x7cf3
movq 0x10(%rsp), %rsi
jmp 0x7ceb
jmp 0x7cd9
jmp 0x7cd9
jmp 0x7cd9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7cf3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0
nop