// File: /workspace/github_cpp_makefile_star2_O1/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 0x7c78
leaq 0x79a1(%rip), %rcx      # 0xf4e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x813d(%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 0x6b00
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6848
jmp 0x7c35
leaq 0x8105(%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 0x6b00
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6848
jmp 0x7c35
leaq 0x80cd(%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 0x6b00
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6848
jmp 0x7c35
leaq 0x808c(%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 0x6b00
movq -0x18(%r15), %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x6848
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rcx
cmpq %r15, %rcx
je 0x7c56
movq %rcx, 0x20(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rbx)
jmp 0x7c5d
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 0x7cde
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %r15d, %edx
cmpl $0x63, %edx
jbe 0x7cd7
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x7cdc
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x7cde
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x7ca6
addl $-0x3, %eax
jmp 0x7cde
addl $-0x2, %eax
jmp 0x7cde
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 0x6a93
leaq 0x7f86(%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 0x7d42
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x7d4a
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 0x7d86
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7d9d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rsp, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x9470
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x7c66
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x7c66
jmp 0x7de8
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7deb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21c0
jmp 0x7deb
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x7e1b
movq 0x10(%rsp), %rsi
jmp 0x7e13
jmp 0x7e01
jmp 0x7e01
jmp 0x7e01
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7e1b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
movq %rbx, %rdi
callq 0x22c0
nop