LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/Diggie-Bro[P]StreamCode/test/../misc/../src/runtime/memory.h
// Function: VariableManager::declareVariable(Variables&, Variables&)
struct VariableMem declareVariable(struct Variables& varname, struct Variables& variable) {
            // if (varname.type != VARIABLE) break
            struct VariableMem mem {variable.type, varname.value, 0, 0.0, "", true};

            if (variable.type == INT) {
                mem.integerMem = stoi(variable.value);
            } else if (variable.type == DOUBLE) {
                mem.doubleMem = stof(variable.value);
            } else if (variable.type == STRING) {
                mem.stringMem = variable.value;
            } else if (variable.type == BOOL) {
                mem.booleanMem = variable.value == "false" ? false : true;
            } else {
                // :TODO hmmmm..... 
            }

            return mem;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movl (%rcx), %eax
movl %eax, (%rdi)
leaq 0x8(%rdi), %r12
leaq 0x8(%rdx), %rsi
movq %r12, %rdi
callq 0x2180
andl $0x0, 0x28(%rbx)
andq $0x0, 0x30(%rbx)
leaq 0x38(%rbx), %r15
leaq 0x2061(%rip), %rsi      # 0x5144
leaq -0x21(%rbp), %rdx
movq %r15, %rdi
callq 0x2070
movb $0x1, 0x58(%rbx)
movl (%r14), %eax
cmpq $0x3, %rax
ja 0x3164
leaq 0x1f01(%rip), %rcx      # 0x5004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addq $0x8, %r14
pushq $0xa
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x350d
movl %eax, 0x28(%rbx)
jmp 0x3164
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x20c0
jmp 0x3164
addq $0x8, %r14
leaq 0x1f5a(%rip), %rsi      # 0x5098
movq %r14, %rdi
callq 0x2a1b
xorb $0x1, %al
movb %al, 0x58(%rbx)
jmp 0x3164
addq $0x8, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x352e
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x30(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x3194
jmp 0x318c
movq %rax, %r14
movq %r12, %rdi
callq 0x20a0
movq %r14, %rdi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O2/Diggie-Bro[P]StreamCode/test/../misc/../src/runtime/memory.h
// Function: VariableManager::getVariable(VariableMem*)
struct Variables getVariable(struct VariableMem* mem) {
            struct Variables variable {mem->type, ""};
            if (mem->type == INT) variable.value = to_string(mem->integerMem);
            else if (mem->type == DOUBLE) variable.value = to_string(mem->doubleMem);
            else if (mem->type == STRING) variable.value = mem->stringMem;
            else if (mem->type == BOOL) variable.value = (mem->booleanMem == true ? "true" : "false");
            return variable;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movl (%rdx), %eax
movl %eax, (%rdi)
leaq 0x8(%rdi), %r14
leaq 0x1f6a(%rip), %rsi      # 0x5144
leaq -0x38(%rbp), %rdx
movq %r14, %rdi
callq 0x2070
movl (%r15), %eax
cmpq $0x3, %rax
ja 0x3266
leaq 0x1e1e(%rip), %rcx      # 0x5014
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x28(%r15), %esi
leaq -0x38(%rbp), %rdi
callq 0x3860
jmp 0x324f
addq $0x38, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x20c0
jmp 0x3266
leaq 0x1e9c(%rip), %rax      # 0x50c2
leaq 0x1e6b(%rip), %rsi      # 0x5098
cmpb $0x0, 0x58(%r15)
cmovneq %rax, %rsi
movq %r14, %rdi
callq 0x2210
jmp 0x3266
movsd 0x30(%r15), %xmm0
leaq -0x38(%rbp), %rdi
callq 0x38c0
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2160
movq %r15, %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3278
jmp 0x3278
movq %rax, %rbx
movq %r14, %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/onlyuser[P]Sandbox/test_c/pre_0x/main3.cpp
// Function: main
int main(int argc, char** argv)
{
    int x = 0;

    // function declaration!! -- because "int(x)" is interpreted as "int x"
    // NOTE: "int(x)" is not a typecast
    int y(int(x));
    std::cout << typeid(y).name() << std::endl; // int (int)

    // variable initialization -- because "g" is not a type
    int f(g(x));
    std::cout << typeid(f).name() << std::endl; // int

    // function declaration!! -- because "g2" is a type
    // NOTE: "g2()" is not a default constructor call
    g2 f2(g2());
    std::cout << typeid(f2).name() << std::endl; // g2 (g2 (*)())

    // function declaration!! -- because "g3" is a type
    int f3(g3(x));
    std::cout << typeid(f3).name() << std::endl; // int (int (*)(int))

    return 0;
}

// Assembly:
pushq %rbx
movq 0x2e31(%rip), %rbx      # 0x3fd8
leaq 0xe56(%rip), %rsi       # 0x2004
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
movq 0x2dfb(%rip), %rax      # 0x3fc0
movq 0x8(%rax), %rax
xorl %esi, %esi
cmpb $0x2a, (%rax)
sete %sil
addq %rax, %rsi
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
leaq 0xe1d(%rip), %rsi       # 0x2009
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
leaq 0xe12(%rip), %rsi       # 0x2015
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void print_array<unsigned int, unsigned long>(unsigned int*, unsigned long)
void print_array(T *a, I n) {
    if (n < 50) {
        for (I i = 0; i < n-1; i++) {
            std::cout << a[i] << ",";
        }
        std::cout << a[n-1] << std::endl;
    }
}

// Assembly:
cmpq $0x31, %rsi
ja 0x1c43
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x33c1(%rip), %r15      # 0x4fd0
leaq -0x1(%rsi), %r13
leaq 0x1594(%rip), %r12      # 0x31ae
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x1c44
movl (%r14,%rbp,4), %esi
movq %r15, %rdi
callq 0x10a0
movq %rax, %rdi
movq %r12, %rsi
callq 0x10e0
incq %rbp
jmp 0x1c22
retq
movl -0x4(%r14,%rbx,4), %esi
movq 0x3380(%rip), %rdi      # 0x4fd0
callq 0x10a0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1080
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void jain_inshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_inshuffle(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		Index m = 1;
		while (3*m-1 <= n) m *= 3;
		m -= 1;

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		for (Index g = 1; g < m; g *= 3) {
			Index cur = g-1;
			Data t = a[cur];
			do {
				Index nxt = inshuffle_perm3(cur, m);
				Data t2 = a[nxt];
				a[nxt] = t;
				t = t2;
				cur = nxt;
			} while (cur != g-1);
		}

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %r9
xorl %r12d, %r12d
cmpq $0x2, %rbx
jb 0x1d11
movq %r9, %rax
movq %rax, %r13
leaq (%rax,%rax,2), %rax
leaq -0x1(%r13,%r13,2), %rcx
cmpq %rbx, %rcx
jbe 0x1c90
movq %rbx, %rax
shrq %rax
leaq -0x1(%r13), %r15
leaq (%r14,%rax,4), %rsi
movq %r15, %rbp
shrq %rbp
leaq (%r14,%rbp,4), %rdi
leaq (%rsi,%rbp,4), %rdx
callq 0x2368
pushq $0x1
popq %r9
movq %r9, %rax
cmpq %r15, %rax
jae 0x1d05
movl -0x4(%r14,%rax,4), %edx
leaq -0x1(%rax), %rcx
movq %rcx, %rsi
cmpq %rsi, %rbp
leaq 0x1(%rsi,%rsi), %rdi
movq %r13, %rsi
cmovaq %r12, %rsi
subq %rsi, %rdi
movl (%r14,%rdi,4), %r8d
movl %edx, (%r14,%rdi,4)
movq %rdi, %rsi
movl %r8d, %edx
cmpq %rcx, %rdi
jne 0x1cda
leaq (%rax,%rax,2), %rax
jmp 0x1cc9
leaq (%r14,%r15,4), %r14
subq %r15, %rbx
jmp 0x1c83
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void check_inshuffle_output<unsigned int, unsigned long>(unsigned int*, unsigned long)
void check_inshuffle_output(Data *a, Index n) {
	for (Index i = 0; i < n; i++) {
		if (a[i] != outshuffle_perm3(i, n)) {
			std::cerr << "Mistake in output!!!" << std::endl;
			exit(-1);
		}
	}
}

// Assembly:
movq %rsi, %rax
shrq %rax
xorl %ecx, %ecx
cmpq %rcx, %rsi
je 0x1d72
movl (%rdi,%rcx,4), %edx
movq %rcx, %r8
shrq %r8
testb $0x1, %cl
movl $0x0, %r9d
cmoveq %rax, %r9
incq %rcx
addq %r8, %r9
cmpq %rdx, %r9
je 0x1d28
pushq %rax
movq 0x329a(%rip), %rdi      # 0x4ff0
leaq 0x1453(%rip), %rsi      # 0x31b0
callq 0x10e0
movq %rax, %rdi
callq 0x1080
pushq $-0x1
popq %rdi
callq 0x10f0
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void prime_inshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void prime_inshuffle(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		int i = 0;
		while (sprimes[i+1] <= n) i++;
		Index m = sprimes[i];

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		Index cur = 0;
		Data t = a[cur];
		do {
			Index nxt = inshuffle_perm3(cur, m);
			Data t2 = a[nxt];
			a[nxt] = t;
			t = t2;
			cur = nxt;
		} while (cur != 0);

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x333b(%rip), %r12      # 0x50c0
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
cmpq $0x2, %rbx
jb 0x1e03
pushq $-0x1
popq %rax
movq %rax, %rcx
incq %rax
cmpq %rbx, 0x10(%r12,%rcx,8)
jbe 0x1d97
movl %eax, %eax
movq (%r12,%rax,8), %r15
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
movq %r15, %rbp
shrq %rbp
leaq (%r14,%rbp,4), %rdi
leaq (%rsi,%rbp,4), %rdx
callq 0x2368
movl (%r14), %ecx
movq %r15, %rax
notq %rax
xorl %edx, %edx
cmpq %rdx, %rbp
movq %rax, %rsi
cmovaq %r13, %rsi
leaq (%rsi,%rdx,2), %rdi
leaq 0x1(%rsi,%rdx,2), %rsi
movl 0x4(%r14,%rdi,4), %r8d
movl %ecx, 0x4(%r14,%rdi,4)
movq %rsi, %rdx
movl %r8d, %ecx
testq %rsi, %rsi
jne 0x1dd2
leaq (%r14,%r15,4), %r14
subq %r15, %rbx
jmp 0x1d8e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void jain_inshuffle_pf<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_inshuffle_pf(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
		Index m = 1;
		while (3*m-1 <= n) m *= 3;
		m -= 1;

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		for (Index g = 1; g < m; g *= 3) {
			Index cur = g-1;
			Data t = a[cur];

			const Index readahead = 35;
			Index buf[readahead];
			buf[0] = cur;
			for (Index i = 1; i < readahead; i++) {
				buf[i] = inshuffle_perm3(buf[i-1], m);
				__builtin_prefetch(a+buf[i]);
			}

			Index bicur = 0;
			do {
				Index biprv = bicur == 0 ? readahead-1 : bicur-1;
				Index binxt = bicur+1 == readahead ? 0 : bicur+1;

				buf[bicur] = inshuffle_perm3(buf[biprv], m);
				__builtin_prefetch(a+buf[bicur], 1);

				Data t2 = a[buf[binxt]];
				a[buf[binxt]] = t;
				t = t2;
				bicur = binxt;
			} while (buf[bicur] != g-1);
		}

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %r14
pushq $0x1
popq %r10
xorl %r12d, %r12d
pushq $0x22
popq %r13
cmpq $0x2, %rsi
jb 0x1f2b
movq %r10, %rax
movq %rax, %rbp
leaq (%rax,%rax,2), %rax
leaq -0x1(%rbp,%rbp,2), %rcx
cmpq %rsi, %rcx
jbe 0x1e3e
movq %rsi, %rax
shrq %rax
leaq -0x1(%rbp), %rbx
movq %rsi, 0x8(%rsp)
leaq (%r14,%rax,4), %rsi
movq %rbx, %r15
shrq %r15
leaq (%r14,%r15,4), %rdi
leaq (%rsi,%r15,4), %rdx
callq 0x2368
pushq $0x1
popq %r10
movq %r10, %rax
cmpq %rbx, %rax
jae 0x1f1a
movl -0x4(%r14,%rax,4), %edx
leaq -0x1(%rax), %rcx
movq %r10, %rsi
movq %rcx, %rdi
movq %rcx, 0x10(%rsp)
cmpq $0x23, %rsi
je 0x1ec0
cmpq %rdi, %r15
leaq 0x1(%rdi,%rdi), %rdi
movq %rbp, %r8
cmovaq %r12, %r8
subq %r8, %rdi
movq %rdi, 0x10(%rsp,%rsi,8)
prefetcht0 (%r14,%rdi,4)
incq %rsi
jmp 0x1e99
xorl %esi, %esi
movq %rsi, %rdi
subq $0x1, %rdi
leaq 0x1(%rsi), %r8
cmovbq %r13, %rdi
cmpq $0x23, %r8
movq 0x10(%rsp,%rdi,8), %rdi
cmoveq %r12, %r8
leaq 0x1(%rdi,%rdi), %r9
cmpq %rdi, %r15
movq %rbp, %rdi
cmovaq %r12, %rdi
subq %rdi, %r9
movq %r9, 0x10(%rsp,%rsi,8)
prefetchw (%r14,%r9,4)
movq 0x10(%rsp,%r8,8), %rdi
movl (%r14,%rdi,4), %esi
movl %edx, (%r14,%rdi,4)
movl %esi, %edx
movq %r8, %rsi
cmpq %rcx, %rdi
jne 0x1ec2
leaq (%rax,%rax,2), %rax
jmp 0x1e7c
movq 0x8(%rsp), %rsi
leaq (%r14,%rbx,4), %r14
subq %rbx, %rsi
jmp 0x1e31
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void prime_inshuffle_pf<unsigned int, unsigned long>(unsigned int*, unsigned long)
void prime_inshuffle_pf(Data *a, Index n) {
	while (n > 1) {
		// Compute appropriate value of m
 		int i = 0;
 		while (sprimes[i+1] <= n) i++;
 		Index m = sprimes[i];

		// Move correct m elements to front of the array
		std::rotate(a+m/2, a+n/2, a+n/2+m/2);

		// Now use Jain's trick to shuffle a[0,...,m-1];
		Index cur = 1;
		Data t = a[cur];

		const Index readahead = 35;
		Index buf[readahead];
		buf[0] = cur;
		for (Index i = 1; i < readahead; i++) {
			buf[i] = inshuffle_perm3(buf[i-1], m);
			__builtin_prefetch(a+buf[i]);
		}

		Index bicur = 0;
		do {
			Index biprv = bicur == 0 ? readahead-1 : bicur-1;
			Index binxt = bicur+1 == readahead ? 0 : bicur+1;

			buf[bicur] = inshuffle_perm3(buf[biprv], m);
			__builtin_prefetch(a+buf[bicur], 1);

			Data t2 = a[buf[binxt]];
			a[buf[binxt]] = t;
			t = t2;
			bicur = binxt;
		} while (buf[bicur] != 1);

		// Recurse on a[m,...n-1]
		a += m;
		n -= m;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
leaq 0x316b(%rip), %r12      # 0x50c0
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
pushq $0x22
popq %r15
cmpq $0x2, %rbx
jb 0x2047
pushq $-0x1
popq %rax
movq %rax, %rcx
incq %rax
cmpq %rbx, 0x10(%r12,%rcx,8)
jbe 0x1f6e
movl %eax, %eax
movq (%r12,%rax,8), %r13
movq %rbx, %rax
shrq %rax
leaq (%r14,%rax,4), %rsi
movq %r13, 0x8(%rsp)
shrq %r13
leaq (%r14,%r13,4), %rdi
leaq (%rsi,%r13,4), %rdx
callq 0x2368
movq 0x8(%rsp), %r10
movl 0x4(%r14), %ecx
movq $0x1, 0x10(%rsp)
movq %r10, %rax
notq %rax
pushq $0x1
popq %rsi
movq %rsi, %rdx
cmpq $0x23, %rsi
je 0x1fe7
cmpq %rdx, %r13
movq %rax, %rdi
cmovaq %rbp, %rdi
leaq (%rdi,%rdx,2), %r8
leaq 0x1(%rdi,%rdx,2), %rdx
movq %rdx, 0x10(%rsp,%rsi,8)
prefetcht0 0x4(%r14,%r8,4)
incq %rsi
jmp 0x1fbe
xorl %edx, %edx
movq %rdx, %rsi
subq $0x1, %rsi
leaq 0x1(%rdx), %rdi
movq %rax, %r8
cmovbq %r15, %rsi
cmpq $0x23, %rdi
movq 0x10(%rsp,%rsi,8), %rsi
cmoveq %rbp, %rdi
cmpq %rsi, %r13
cmovaq %rbp, %r8
leaq (%r8,%rsi,2), %r9
leaq 0x1(%r8,%rsi,2), %rsi
movq %rsi, 0x10(%rsp,%rdx,8)
prefetchw 0x4(%r14,%r9,4)
movq 0x10(%rsp,%rdi,8), %rsi
movl (%r14,%rsi,4), %edx
movl %ecx, (%r14,%rsi,4)
movl %edx, %ecx
movq %rdi, %rdx
cmpq $0x1, %rsi
jne 0x1fe9
leaq (%r14,%r10,4), %r14
subq %r10, %rbx
jmp 0x1f61
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void prime_outshuffle<void blocked_outshuffle<96u, false, unsigned int, unsigned long>(unsigned int*, unsigned long)::block, unsigned long>(void blocked_outshuffle<96u, false, unsigned int, unsigned long>(unsigned int*, unsigned long)::block*, unsigned long)
void prime_outshuffle(Data *a, Index n) {
	if (n <= 1) return;

	// Compute appropriate value of m
	int i = 0;
	while (sprimes[i+1] <= n) i++;
	Index m = sprimes[i];

	// Follow the cycle through a[0,...,m-1];
	Index cur = 0;
	Data t[2];
	int flipflop = 0;
	t[flipflop] = a[cur];
	do {
		Index nxt = outshuffle_perm3(cur, m);
		t[!flipflop] = a[nxt];
		a[nxt] = t[flipflop];
		flipflop = !flipflop;
		cur = nxt;
	} while (cur != 0);

	// Recurse on a[m,...n-1]
	prime_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdi, (%rsp)
cmpq $0x2, %rsi
jb 0x2638
movq %rsi, %rbx
pushq $-0x1
popq %rcx
leaq 0x2b5b(%rip), %rax      # 0x50c0
movq %rcx, %rdx
incq %rcx
cmpq %rbx, 0x10(%rax,%rdx,8)
jbe 0x2565
movq (%rsp), %rsi
movl %ecx, %ecx
movq (%rax,%rcx,8), %r13
leaq 0x10(%rsp), %rdi
movl $0x180, %edx            # imm = 0x180
callq 0x10c0
movq %r13, 0x8(%rsp)
shrq %r13
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %r13, %rax
testb $0x1, %bpl
je 0x25a3
xorl %eax, %eax
shrq %rbp
movl %r12d, %r14d
xorl $0x1, %r14d
movl $0x180, %edx            # imm = 0x180
addq %rax, %rbp
imulq $0x180, %r14, %rax      # imm = 0x180
imulq $0x180, %rbp, %r15      # imm = 0x180
addq (%rsp), %r15
leaq 0x10(%rsp,%rax), %rdi
movq %r15, %rsi
callq 0x10c0
movl %r12d, %eax
imulq $0x180, %rax, %rax      # imm = 0x180
movl $0x180, %edx            # imm = 0x180
movq %r15, %rdi
leaq 0x10(%rsp,%rax), %rsi
callq 0x10c0
movl %r14d, %r12d
testq %rbp, %rbp
jne 0x2598
movq 0x8(%rsp), %rax
movq (%rsp), %r14
imulq $0x180, %rax, %r15      # imm = 0x180
subq %rax, %rbx
movq %rbx, %rsi
addq %r14, %r15
movq %r15, %rdi
callq 0x2539
shrq %rbx
imulq $0x180, %r13, %rdi      # imm = 0x180
movq %r15, %rsi
imulq $0x180, %rbx, %rdx      # imm = 0x180
addq %r14, %rdi
addq %r15, %rdx
callq 0x264a
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void check_outshuffle_output<unsigned int, unsigned long>(unsigned int*, unsigned long)
void check_outshuffle_output(Data *a, Index n) {
	for (Index i = 0; i < n; i++) {
		if (a[i] != inshuffle_perm3(i, n)) {
			std::cerr << "Mistake in output!!!" << std::endl;
			exit(-1);
		}
	}
}

// Assembly:
movq %rsi, %rax
movq %rsi, %rcx
shrq %rax
notq %rcx
xorl %edx, %edx
xorl %r8d, %r8d
cmpq %rsi, %r8
je 0x2137
movl (%rdi,%r8,4), %r9d
cmpq %r8, %rax
movq %rcx, %r10
cmovaq %rdx, %r10
leaq 0x1(%r10,%r8,2), %r10
incq %r8
cmpq %r9, %r10
je 0x20f3
pushq %rax
movq 0x2ed5(%rip), %rdi      # 0x4ff0
leaq 0x108e(%rip), %rsi      # 0x31b0
callq 0x10e0
movq %rax, %rdi
callq 0x1080
pushq $-0x1
popq %rdi
callq 0x10f0
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void blocked_outshuffle<96u, false, unsigned int, unsigned long>(unsigned int*, unsigned long)
void blocked_outshuffle(Data *a, Index n) {
	Index r = n % (2*B);
	Index m = n - r;

	prime_outshuffle(a+m, r);

	for(Index i = 0; i < m/(2*B); i++) {
		static_assert(B==96, "Assuming B==96");
		//rev_outshuffle128(a+(2*B)*i);
		rev_outshuffle192(a+(2*B)*i);
		//rev_outshuffle<2*B>(a+(2*B)*i);
	}
	struct block { Data dummy[B];	};
	if (prefetch) {
		prime_outshuffle_pf<4>((block*)a, m/B);
	} else {
		prime_outshuffle((block*)a, m/B);
	}

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+r/2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0xc0, %ecx
movq %rsi, %rax
xorl %edx, %edx
movq %rsi, %rbx
movq %rdi, %r12
divq %rcx
subq %rdx, %rbx
movq %rdx, %r14
movq %rdx, %rsi
leaq (%rdi,%rbx,4), %r15
movq %r15, %rdi
movq %rax, %r13
callq 0x2059
movq %r12, %rbp
subq $0x1, %r13
jb 0x2188
movq %rbp, %rdi
callq 0x24ec
addq $0x300, %rbp            # imm = 0x300
jmp 0x2171
pushq $0x60
popq %rcx
movq %rbx, %rax
xorl %edx, %edx
divq %rcx
movq %r12, %rdi
movq %rax, %rsi
callq 0x2539
shrq %rbx
shrq %r14
movq %r15, %rsi
leaq (%r12,%rbx,4), %rdi
leaq (%r15,%r14,4), %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2368
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void jain_outshuffle<unsigned int, unsigned long>(unsigned int*, unsigned long)
void jain_outshuffle(Data *a, Index n) {
	if (n <= 1) return;
	// Compute appropriate value of m
	Index m = 1;
	while (3*m-1 <= n) m *= 3;
	m -= 1;

	// Use Jain's trick to shuffle a[0,...,m-1];
	for (Index g = 1; g < m; g *= 3) {
		Index cur = g-1;
		Data t[2];
		int flipflop = 0;
		t[flipflop] = a[cur];
		do {
			Index nxt = outshuffle_perm3(cur, m);
			t[!flipflop] = a[nxt];
			a[nxt] = t[flipflop];
			flipflop = !flipflop;
			cur = nxt;
		} while (cur != g-1);
	}

	// Recurse on a[m,...n-1]
	jain_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
cmpq $0x2, %rsi
jae 0x2253
retq
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rcx
movq %rcx, %rax
leaq (%rcx,%rcx,2), %rcx
leaq -0x1(%rax,%rax,2), %rdx
cmpq %rbx, %rdx
jbe 0x2264
decq %rax
movq %rax, %r12
shrq %r12
pushq $0x1
popq %rcx
cmpq %rax, %rcx
jae 0x22ba
movl -0x4(%r14,%rcx,4), %esi
leaq -0x1(%rcx), %rdx
movq %rdx, %rdi
movq %r12, %r8
testb $0x1, %dil
je 0x229e
xorl %r8d, %r8d
shrq %rdi
addq %r8, %rdi
movl (%r14,%rdi,4), %r8d
movl %esi, (%r14,%rdi,4)
movl %r8d, %esi
cmpq %rdx, %rdi
jne 0x2292
leaq (%rcx,%rcx,2), %rcx
jmp 0x2281
leaq (%r14,%rax,4), %r15
subq %rax, %rbx
movq %rbx, %rsi
movq %r15, %rdi
callq 0x224c
shrq %rbx
leaq (%r14,%r12,4), %rdi
movq %r15, %rsi
leaq (%r15,%rbx,4), %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2368
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void blocked_eytzinger<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)
void blocked_eytzinger(Data *a, Index n) {
	Index h = 0;
	Index m = 0;
	while (m + (1<<h) < n) {
		m += 1<<h;
		h++;
	}
	Index r = n - m;
	blocked_outshuffle<B,prefetch>(a, 2*r);
	std::rotate(a+r, a+2*r, a+n);
	Index one = 1;
	while (h > 0) {
		blocked_outshuffle<B,prefetch>(a, (one<<h)-1);
		h--;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
pushq $-0x1
popq %r15
xorl %edx, %edx
pushq $0x1
popq %rax
incq %r15
movq %rdx, %rcx
shlxl %r15d, %eax, %edx
movslq %edx, %rdx
addq %rcx, %rdx
cmpq %r14, %rdx
jb 0x2301
movq %r14, %r12
subq %rcx, %r12
movq %rbx, %rdi
leaq (%r12,%r12), %rsi
callq 0x21c2
leaq (%rbx,%r12,4), %rdi
leaq (%rbx,%r12,8), %rsi
leaq (%rbx,%r14,4), %rdx
callq 0x2368
pushq $-0x1
popq %r14
movq %r15, %r12
subq $0x1, %r12
jb 0x235c
shlxq %r15, %r14, %rsi
movq %rbx, %rdi
notq %rsi
callq 0x21c2
movq %r12, %r15
jmp 0x2341
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void rev_outshuffle192<unsigned int>(unsigned int*)
void rev_outshuffle192(Data *a) {
	const static int A = 2, B = 95;
	const static std::uint32_t cycles[A][B] = {
		{1, 96, 48, 24, 12, 6, 3, 97, 144, 72, 36, 18, 9, 100, 50, 25, 108, 54, 27, 109, 150, 75, 133, 162, 81, 136, 68, 34, 17, 104, 52, 26, 13, 102, 51, 121, 156, 78, 39, 115, 153, 172, 86, 43, 117, 154, 77, 134, 67, 129, 160, 80, 40, 20, 10, 5, 98, 49, 120, 60, 30, 15, 103, 147, 169, 180, 90, 45, 118, 59, 125, 158, 79, 135, 163, 177, 184, 92, 46, 23, 107, 149, 170, 85, 138, 69, 130, 65, 128, 64, 32, 16, 8, 4, 2},
		{7, 99, 145, 168, 84, 42, 21, 106, 53, 122, 61, 126, 63, 127, 159, 175, 183, 187, 189, 190, 95, 143, 167, 179, 185, 188, 94, 47, 119, 155, 173, 182, 91, 141, 166, 83, 137, 164, 82, 41, 116, 58, 29, 110, 55, 123, 157, 174, 87, 139, 165, 178, 89, 140, 70, 35, 113, 152, 76, 38, 19, 105, 148, 74, 37, 114, 57, 124, 62, 31, 111, 151, 171, 181, 186, 93, 142, 71, 131, 161, 176, 88, 44, 22, 11, 101, 146, 73, 132, 66, 33, 112, 56, 28, 14}
	};
	for (int i = 0; i < A; i++) {
		Data t1 = a[cycles[i][B-1]];
		for (int j = 0; j < B; j++) {
			Data t2 = a[cycles[i][j]];
			a[cycles[i][j]] = t1;
			t1 = t2;
		}
	}
}

// Assembly:
leaq 0xcdd(%rip), %rax       # 0x31d0
xorl %ecx, %ecx
movq %rax, %rdx
cmpq $0x2, %rcx
je 0x2538
imulq $0x17c, %rcx, %rsi      # imm = 0x17C
movl 0x178(%rsi,%rax), %esi
movl (%rdi,%rsi,4), %r8d
xorl %esi, %esi
cmpq $0x5f, %rsi
je 0x252c
movl (%rdx,%rsi,4), %r9d
incq %rsi
movl (%rdi,%r9,4), %r10d
movl %r8d, (%rdi,%r9,4)
movl %r10d, %r8d
jmp 0x2512
incq %rcx
addq $0x17c, %rdx            # imm = 0x17C
jmp 0x24f8
retq
// File: /workspace/github_cpp_makefile_star2_O2/patmorin[P]rotate/jain.cpp
// Function: void prime_outshuffle_pf<4u, void blocked_outshuffle<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)::block, unsigned long>(void blocked_outshuffle<96u, true, unsigned int, unsigned long>(unsigned int*, unsigned long)::block*, unsigned int)
void prime_outshuffle_pf(Data *a, Index n) {
	if (n <= 1) return;

	// Compute appropriate value of m
	int i = 0;
	while (sprimes[i+1] <= n) i++;
	Index m = sprimes[i];

	Index cur = 0;
	Index pf = cur;
	for (unsigned i = 0; i < R; i++)
		__builtin_prefetch(a+(pf = outshuffle_perm3(pf, m)), 1);
	Data t[2];
	int flipflop = 0;
	t[flipflop] = a[cur];
	do {
		__builtin_prefetch(a+(pf = outshuffle_perm3(pf, m)), 1);
		Index nxt = outshuffle_perm3(cur, m);
		t[!flipflop] = a[nxt];
		a[nxt] = t[flipflop];
		flipflop = !flipflop;
		cur = nxt;
	} while (cur != 0);

	// Recurse on a[m,...n-1]
	prime_outshuffle(a+m, n-m);

	// Regroup odds and evens
	std::rotate(a+m/2, a+m, a+m+(n-m)/2);
}

// Assembly:
cmpq $0x2, %rsi
jb 0x2aa1
movq %rdi, %r8
pushq $-0x1
popq %rcx
leaq 0x276b(%rip), %rax      # 0x50c0
movq %rcx, %rdx
incq %rcx
cmpq %rsi, 0x10(%rax,%rdx,8)
jbe 0x2955
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp            # imm = 0x328
movl %ecx, %ecx
movq (%rax,%rcx,8), %r12
movq %r12, 0x10(%rsp)
shrq %r12
pushq $0x4
popq %rax
xorl %ebp, %ebp
subl $0x1, %eax
jb 0x29aa
movq %r12, %rcx
testb $0x1, %bpl
je 0x2996
xorl %ecx, %ecx
shrq %rbp
addq %rcx, %rbp
imulq $0x180, %rbp, %rcx      # imm = 0x180
prefetchw (%r8,%rcx)
jmp 0x2986
leaq 0x20(%rsp), %rdi
movl $0x180, %edx            # imm = 0x180
movq %rsi, 0x18(%rsp)
movq %r8, %rsi
movq %r8, 0x8(%rsp)
callq 0x10c0
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r12, %rax
testb $0x1, %bpl
je 0x29d6
xorl %eax, %eax
shrq %rbp
movq 0x8(%rsp), %rcx
addq %rax, %rbp
imulq $0x180, %rbp, %rax      # imm = 0x180
prefetchw (%rcx,%rax)
movq %r12, %rax
testb $0x1, %r13b
je 0x29f7
xorl %eax, %eax
movl %ebx, %r14d
shrq %r13
xorl $0x1, %r14d
movl $0x180, %edx            # imm = 0x180
addq %rax, %r13
imulq $0x180, %r14, %rax      # imm = 0x180
imulq $0x180, %r13, %r15      # imm = 0x180
leaq 0x20(%rsp,%rax), %rdi
addq %rcx, %r15
movq %r15, %rsi
callq 0x10c0
movl %ebx, %eax
imulq $0x180, %rax, %rax      # imm = 0x180
movl $0x180, %edx            # imm = 0x180
movq %r15, %rdi
leaq 0x20(%rsp,%rax), %rsi
callq 0x10c0
movl %r14d, %ebx
testq %r13, %r13
jne 0x29cb
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rbx
movq 0x8(%rsp), %r14
imulq $0x180, %rax, %r15      # imm = 0x180
subq %rax, %rbx
movq %rbx, %rsi
addq %r14, %r15
movq %r15, %rdi
callq 0x2aa2
shrq %rbx
imulq $0x180, %r12, %rdi      # imm = 0x180
movq %r15, %rsi
imulq $0x180, %rbx, %rdx      # imm = 0x180
addq %r14, %rdi
addq %r15, %rdx
callq 0x2bb3
addq $0x328, %rsp            # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: init_c()
void init_c() {
    for(int i=0;i<8;i++) {
        if(i==0) {
            cu[i] = sqrt(1.0/8.0);
            cv[i] = sqrt(1.0/8.0);
        } else {
            cu[i] = sqrt(2.0/8.0);
            cv[i] = sqrt(2.0/8.0);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movabsq $0x3fd6a09e667f3bcd, %rcx # imm = 0x3FD6A09E667F3BCD
leaq 0x4cbb(%rip), %rdx      # 0x7170
movabsq $0x3fe0000000000000, %rsi # imm = 0x3FE0000000000000
leaq 0x4cea(%rip), %rdi      # 0x71b0
xorl %r8d, %r8d
testq %r8, %r8
je 0x24de
cmpq $0x8, %r8
je 0x24f5
movq %rsi, (%rax,%rdx)
movq %rsi, (%rax,%rdi)
jmp 0x24ec
movq %rcx, 0x4c8b(%rip)      # 0x7170
movq %rcx, 0x4cc4(%rip)      # 0x71b0
incq %r8
addq $0x8, %rax
jmp 0x24c9
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: MyJPEG::jpegDecoder::imgread(char const*, int&, int&, unsigned char*&)
int MyJPEG::jpegDecoder::imgread(const char *filename, int &width, int &height, byte *&bgrdata) {
    //读文件
    std::ifstream infile;
    infile.open(filename, std::ios::in|std::ios::binary);

    infile.seekg(0, infile.end);
    int jpgdatalength = infile.tellg();
    infile.seekg(0, infile.beg);
    std::cout << "encoded jpeg data length is " << jpgdatalength<<"\n";

    byte *decoded = new byte[jpgdatalength]; //decode会不断变换，拷贝一份到copyptr，然后删除
    byte *copyptr = decoded;
    infile.read((char*)decoded,jpgdatalength);  //读取编码的jpeg文件数据到内存中
    infile.close();

    int ret = readinfo(decoded, bgrdata, width, height);
    width = bmpwidth;
    height = bmpheight;
    if(copyptr != nullptr) {
        delete[] copyptr;
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
leaq -0x230(%rbp), %r12
movq %r12, %rdi
callq 0x2140
pushq $0xc
popq %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
leaq -0x230(%rbp), %rdi
pushq $0x2
popq %rdx
xorl %esi, %esi
callq 0x2180
leaq -0x230(%rbp), %rdi
callq 0x2220
movq %rax, %r15
leaq -0x230(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
movq 0x46c1(%rip), %rdi      # 0x6fd0
leaq 0x186a(%rip), %rsi      # 0x4180
callq 0x2110
movq %rax, %rdi
movl %r15d, %esi
callq 0x2210
leaq 0x1ce1(%rip), %rsi      # 0x460e
movq %rax, %rdi
callq 0x2110
movslq %r15d, %r12
movq %r12, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, -0x28(%rbp)
leaq -0x230(%rbp), %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x2150
leaq -0x230(%rbp), %rdi
callq 0x2060
leaq -0x28(%rbp), %rsi
callq 0x253e
movl 0x56cc(%rip), %eax      # 0x8040
movl %eax, (%r14)
movl 0x56c7(%rip), %eax      # 0x8044
movl %eax, (%rbx)
movq %r15, %rdi
callq 0x2160
leaq -0x230(%rbp), %rdi
callq 0x2070
xorl %eax, %eax
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x29af
jmp 0x29af
jmp 0x29af
jmp 0x29af
jmp 0x29af
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2230
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: createhuftable(int*, unsigned char*, int, std::vector<hufcode, std::allocator<hufcode>>&)
void createhuftable(int tree[16], byte *value, int length, std::vector<hufcode> &OUTT) {
    int comlength = 0;
    for (int i = 0; i<16; i++) {
        comlength += tree[i];
    }
    if (comlength != length) {
        std::cout << "data error, length not match\n";
    }
    int left = 0;
    int right = 0;
    int index = 0;
    int last_depth = 0;

    for (int i = 0; i<16; i++) {
        int nums = tree[i];
        if (index != 0) {
            int mul = pow(2, i + 1 - last_depth);
            left = (right + 1)*mul;
        }
        else {
            left = 0;
        }
        if (nums != 0) {
            last_depth = i + 1;
            int cur_value = left;
            for (int j = 0; j<nums; j++) {
                hufcode unit;
                unit.codeLength = i+1;
                unit.encodeValue = cur_value++;
                unit.realVale = value[index++];
                OUTT.push_back(unit);
            }
            right = cur_value - 1;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x68(%rbp)
movq %rsi, -0x58(%rbp)
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x10, %rax
je 0x29f5
addl (%rdi,%rax,4), %ecx
incq %rax
jmp 0x29e7
cmpl %edx, %ecx
movq %rdi, -0x40(%rbp)
je 0x2a14
movq 0x45cc(%rip), %rdi      # 0x6fd0
leaq 0x1890(%rip), %rsi      # 0x429b
callq 0x2110
movq -0x40(%rbp), %rdi
pushq $0x1
popq %rax
xorl %r14d, %r14d
movl %eax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
xorl %r12d, %r12d
movl %eax, %r15d
subl %r12d, %r15d
movl %r14d, %r12d
negl %r12d
cmpq $0x10, %r14
je 0x2ae2
movl (%rdi,%r14,4), %r13d
cmpl $0x0, -0x2c(%rbp)
je 0x2a66
leal (%r15,%r14), %edi
movsd 0x15c5(%rip), %xmm0     # 0x4018
callq 0x21b0
movq -0x40(%rbp), %rdi
cvttsd2si %xmm0, %ebx
imull -0x38(%rbp), %ebx
jmp 0x2a68
xorl %ebx, %ebx
incq %r14
decl %r12d
testl %r13d, %r13d
je 0x2a33
movl $0x0, %eax
cmovlel %eax, %r13d
movl -0x2c(%rbp), %eax
movslq %eax, %rcx
addl %r13d, %eax
movl %eax, -0x2c(%rbp)
cltq
negl %r12d
subq %rcx, %rax
movq %rax, -0x38(%rbp)
addq -0x58(%rbp), %rcx
movq %rcx, -0x60(%rbp)
movl %ebx, %r13d
xorl %r15d, %r15d
cmpq %r15, -0x38(%rbp)
je 0x2ad0
leaq (%r15,%r13), %rax
movl %r12d, -0x4c(%rbp)
movl %eax, -0x48(%rbp)
movq -0x60(%rbp), %rax
movb (%rax,%r15), %al
movb %al, -0x44(%rbp)
movq -0x68(%rbp), %rdi
leaq -0x4c(%rbp), %rsi
callq 0x2ea8
incq %r15
jmp 0x2aa2
addl %r15d, %ebx
movl %ebx, -0x38(%rbp)
movq -0x40(%rbp), %rdi
pushq $0x1
popq %rax
jmp 0x2a27
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: getBit(unsigned char*&)
bool getBit(byte *&framedata) {
    static unsigned char buf;
    static unsigned char count = 0;
    if (count == 0) {
        memcpy(&buf, framedata++, 1);
        if (buf == 0xFF) {
            unsigned char check;
            memcpy(&check, framedata++, 1);
            if (check != 0x00) {
                fprintf(stderr, "data 段有不是 0xFF00 的数据\n");
            }
        }
    }
    bool ret = buf & (1 << (7 - count));
    count = (count == 7 ? 0 : count + 1);
    return ret;
}

// Assembly:
movb 0x55b2(%rip), %al       # 0x80a9
testb %al, %al
jne 0x2b21
movq (%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rdi)
movb (%rax), %cl
movb %cl, 0x559b(%rip)       # 0x80a8
cmpb $-0x1, %cl
jne 0x2b1f
leaq 0x2(%rax), %rcx
movq %rcx, (%rdi)
cmpb $0x0, 0x1(%rax)
jne 0x2b47
xorl %eax, %eax
movzbl 0x5580(%rip), %ecx      # 0x80a8
leal 0x1(%rax), %edx
xorl %esi, %esi
subb $0x7, %al
movzbl %dl, %edx
cmovel %esi, %edx
negb %al
movzbl %al, %eax
btl %eax, %ecx
setb %al
movb %dl, 0x5563(%rip)       # 0x80a9
retq
pushq %rbp
movq %rsp, %rbp
movq 0x4486(%rip), %rax      # 0x6fd8
movq (%rax), %rcx
leaq 0x175d(%rip), %rdi      # 0x42b9
pushq $0x23
popq %rsi
pushq $0x1
popq %rdx
callq 0x2250
movb 0x553c(%rip), %al       # 0x80a9
popq %rbp
jmp 0x2b21
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./jpeg/jpeg_decoder.cpp
// Function: MCU::toRGB()
RGB **toRGB() {
        RGB **ret = new RGB *[maxHeight*8];
        for (int i = 0; i < maxHeight*8; i++) { 
            ret[i] = new RGB[maxWidth*8];
        }

        for (int i = 0; i < maxHeight * 8; i++) {
            for (int j = 0; j < maxWidth * 8; j++) {
                double Y = trans(1, i, j);
                double Cb = trans(2, i, j);
                double Cr = trans(3, i, j);
                ret[i][j].R = chomp(Y + 1.402*Cr + 128);
                ret[i][j].G = chomp(Y - 0.34414*Cb - 0.71414*Cr + 128);
                ret[i][j].B = chomp(Y + 1.772*Cb + 128);
            }
        }
        return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movzbl 0x491f(%rip), %r13d     # 0x7831
movl %r13d, %edi
shll $0x6, %edi
movq %rdi, -0x38(%rbp)
callq 0x2030
movq %rax, -0x30(%rbp)
movzbl 0x4903(%rip), %r14d     # 0x7830
imulq $0x18, %r14, %r12
xorl %r15d, %r15d
cmpq %r15, -0x38(%rbp)
je 0x2f50
movq %r12, %rdi
callq 0x2030
movq -0x30(%rbp), %rcx
movq %rax, (%rcx,%r15)
addq $0x8, %r15
jmp 0x2f34
xorl %r15d, %r15d
movzbl %r13b, %eax
shll $0x3, %eax
cmpq %rax, %r15
jae 0x309b
pushq $0x2
popq %r12
xorl %r13d, %r13d
movzbl %r14b, %eax
shll $0x3, %eax
cmpq %rax, %r13
jae 0x308c
movq %rbx, %rdi
pushq $0x1
popq %rsi
movl %r15d, %edx
movl %r13d, %ecx
callq 0x30c0
movsd %xmm0, -0x40(%rbp)
movq %rbx, %rdi
pushq $0x2
popq %rsi
movl %r15d, %edx
movl %r13d, %ecx
callq 0x30c0
movsd %xmm0, -0x38(%rbp)
movq %rbx, %rdi
pushq $0x3
popq %rsi
movl %r15d, %edx
movl %r13d, %ecx
callq 0x30c0
movsd -0x40(%rbp), %xmm5
movsd 0x106c(%rip), %xmm3     # 0x4030
movsd 0x105c(%rip), %xmm2     # 0x4028
movapd %xmm0, %xmm1
mulsd 0x1048(%rip), %xmm1     # 0x4020
addsd %xmm5, %xmm1
addsd %xmm2, %xmm1
movb $-0x1, %cl
ucomisd %xmm3, %xmm1
movb $-0x1, %dl
ja 0x2ffc
xorpd %xmm4, %xmm4
ucomisd %xmm1, %xmm4
jbe 0x2ff8
xorl %edx, %edx
jmp 0x2ffc
cvttsd2si %xmm1, %edx
movq -0x30(%rbp), %rax
movq (%rax,%r15,8), %rax
movb %dl, -0x2(%rax,%r12)
movsd -0x38(%rbp), %xmm4
movapd %xmm4, %xmm1
mulsd 0x101e(%rip), %xmm1     # 0x4038
addsd %xmm5, %xmm1
mulsd 0x101a(%rip), %xmm0     # 0x4040
addsd %xmm1, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm3, %xmm0
ja 0x3046
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3042
xorl %ecx, %ecx
jmp 0x3046
cvttsd2si %xmm0, %ecx
movb %cl, -0x1(%rax,%r12)
mulsd 0xff5(%rip), %xmm4      # 0x4048
addsd %xmm5, %xmm4
addsd %xmm2, %xmm4
movb $-0x1, %cl
ucomisd %xmm3, %xmm4
ja 0x3075
xorpd %xmm0, %xmm0
ucomisd %xmm4, %xmm0
jbe 0x3071
xorl %ecx, %ecx
jmp 0x3075
cvttsd2si %xmm4, %ecx
movb %cl, (%rax,%r12)
incq %r13
movb 0x47ad(%rip), %r14b     # 0x7830
addq $0x3, %r12
jmp 0x2f6a
incq %r15
movb 0x479b(%rip), %r13b     # 0x7831
jmp 0x2f53
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./bmp/bmp_code.cpp
// Function: MyBMP::BMP::showBmpHead(tagBITMAPFILEHEADER)
void MyBMP::BMP::showBmpHead(BITMAPFILEHEADER pBmpHead) {
    printf("BMP文件大小：%dkb\n", pBmpHead.bfSize/1024);
    printf("保留字必须为0：%d\n",  pBmpHead.bfReserved1);
    printf("保留字必须为0：%d\n",  pBmpHead.bfReserved2);
    printf("实际位图数据的偏移字节数: %d\n",  pBmpHead.bfOffBits);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %r14d, %r15d
shrl $0x10, %r15d
movq %rdx, %rbx
shrq $0x20, %rbx
shrq $0x2a, %rsi
leaq 0xdcb(%rip), %rdi       # 0x4343
xorl %eax, %eax
callq 0x2040
movzwl %r14w, %esi
leaq 0xdd1(%rip), %r14       # 0x435b
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x2040
leaq 0xdcd(%rip), %rdi       # 0x4375
movl %ebx, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2040
nop
// File: /workspace/github_cpp_makefile_star2_O2/OpenFirework[P]MyJPEG_Decoder/./bmp/bmp_code.cpp
// Function: MyBMP::BMP::showBmpInfoHead(tagBITMAPINFOHEADER)
void MyBMP::BMP::showBmpInfoHead(BITMAPINFOHEADER pBmpinfoHead)
{
    //定义显示信息的函数，传入的是信息头结构体
    printf("位图信息头:\n" );
    printf("信息头的大小:%d\n" ,pBmpinfoHead.biSize);
    printf("位图宽度:%d\n" ,pBmpinfoHead.biWidth);
    printf("位图高度:%d\n" ,pBmpinfoHead.biHeight);
    printf("图像的位面数(位面数是调色板的数量,默认为1个调色板):%d\n" ,pBmpinfoHead.biPlanes);
    printf("每个像素的位数:%d\n" ,pBmpinfoHead.biBitCount);
    printf("压缩方式:%d\n" ,pBmpinfoHead.biCompression);
    printf("图像的大小:%d\n" ,pBmpinfoHead.biSizeImage);
    printf("水平方向分辨率:%d\n" ,pBmpinfoHead.biXPelsPerMeter);
    printf("垂直方向分辨率:%d\n" ,pBmpinfoHead.biYPelsPerMeter);
    printf("使用的颜色数:%d\n" ,pBmpinfoHead.biClrUsed);
    printf("重要颜色数:%d\n" ,pBmpinfoHead.biClrImportant);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xf8b(%rip), %rdi       # 0x4552
callq 0x21d0
movl 0x10(%rbp), %esi
leaq 0xdc9(%rip), %rdi       # 0x439f
xorl %eax, %eax
callq 0x2040
movl 0x14(%rbp), %esi
leaq 0xdcf(%rip), %rdi       # 0x43b6
xorl %eax, %eax
callq 0x2040
movl 0x18(%rbp), %esi
leaq 0xdcf(%rip), %rdi       # 0x43c7
xorl %eax, %eax
callq 0x2040
movzwl 0x1c(%rbp), %esi
leaq 0xdce(%rip), %rdi       # 0x43d8
xorl %eax, %eax
callq 0x2040
movzwl 0x1e(%rbp), %esi
leaq 0xe0a(%rip), %rdi       # 0x4426
xorl %eax, %eax
callq 0x2040
movl 0x20(%rbp), %esi
leaq 0xe13(%rip), %rdi       # 0x4440
xorl %eax, %eax
callq 0x2040
movl 0x24(%rbp), %esi
leaq 0xe13(%rip), %rdi       # 0x4451
xorl %eax, %eax
callq 0x2040
movl 0x28(%rbp), %esi
leaq 0xe16(%rip), %rdi       # 0x4465
xorl %eax, %eax
callq 0x2040
movl 0x2c(%rbp), %esi
leaq 0xe1f(%rip), %rdi       # 0x447f
xorl %eax, %eax
callq 0x2040
movl 0x30(%rbp), %esi
leaq 0xe28(%rip), %rdi       # 0x4499
xorl %eax, %eax
callq 0x2040
movl 0x34(%rbp), %esi
leaq 0xe2e(%rip), %rdi       # 0x44b0
xorl %eax, %eax
popq %rbp
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O2/rfotino[P]consolite-assembler/src/asm.cpp
// Function: main
int main(int argc, char **argv) {
  if (3 != argc) {
    usage(argv[0]);
    return 1;
  }

  Tokenizer tokenizer(argv[1]);
  Parser parser(&tokenizer, argv[2]);
  if (!parser.firstPass() || !parser.secondPass()) {
    remove(argv[2]);
    return 1;
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x488, %rsp            # imm = 0x488
movq %rsi, %rbx
cmpl $0x3, %edi
jne 0x3e23
movq 0x8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3e76
leaq 0x278(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40ec
leaq 0x8(%rsp), %rdi
callq 0x20c0
movq 0x10(%rbx), %rdx
leaq 0x8(%rsp), %rdi
leaq 0x278(%rsp), %rsi
callq 0x3eb2
leaq 0x8(%rsp), %rdi
callq 0x5aa2
testb %al, %al
je 0x3dfe
leaq 0x8(%rsp), %rdi
callq 0x6058
xorl %ebp, %ebp
testb %al, %al
jne 0x3e0a
movq 0x10(%rbx), %rdi
callq 0x22d0
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %rdi
callq 0x3f38
leaq 0x278(%rsp), %rdi
callq 0x2060
jmp 0x3e2e
movq (%rbx), %rdi
callq 0x3d4c
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x488, %rsp            # imm = 0x488
popq %rbx
popq %rbp
retq
movq %rax, %rbx
jmp 0x3e60
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20c0
jmp 0x3e6d
movq %rax, %rbx
jmp 0x3e6d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3f38
leaq 0x278(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/rfotino[P]consolite-assembler/src/tokenizer.cpp
// Function: Tokenizer::_getHexVal(char const&)
char Tokenizer::_getHexVal(const char& c) {
  if ('0' <= c && c <= '9') {
    return c - '0';
  } else if ('a' <= c && c <= 'f') {
    return 10 + c - 'a';
  } else if ('A' <= c && c <= 'F') {
    return 10 + c - 'A';
  } else {
    return -1;
  }
}

// Assembly:
movb (%rsi), %cl
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x4215
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x4216
addb $-0x57, %cl
movl %ecx, %eax
retq
leal -0x41(%rcx), %eax
addb $-0x37, %cl
cmpb $0x6, %al
movzbl %cl, %ecx
movl $0xff, %eax
cmovbl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/rfotino[P]consolite-assembler/src/tokenizer.cpp
// Function: Tokenizer::_getData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void Tokenizer::_getData(const std::string& text, std::string& data) {
  size_t i;
  if (text.size() & 1) {
    data.push_back(_getHexVal(text[2]));
    i = 3;
  } else {
    data.push_back((_getHexVal(text[2]) << 4) | _getHexVal(text[3]));
    i = 4;
  }
  for (; i < text.size(); i += 2) {
    data.push_back((_getHexVal(text[i]) << 4) | _getHexVal(text[i+1]));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq (%rsi), %r15
leaq 0x2(%r15), %rsi
movb 0x8(%r14), %r12b
callq 0x4200
movl %eax, %ebp
testb $0x1, %r12b
jne 0x4267
shlb $0x4, %bpl
addq $0x3, %r15
movq %r15, %rsi
callq 0x4200
orb %al, %bpl
pushq $0x4
jmp 0x4269
pushq $0x3
popq %r15
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x2150
cmpq 0x8(%r14), %r15
jae 0x42af
movq (%r14), %r12
leaq (%r12,%r15), %rsi
callq 0x4200
movl %eax, %ebp
shlb $0x4, %bpl
leaq (%r12,%r15), %rsi
incq %rsi
callq 0x4200
orb %bpl, %al
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2150
addq $0x2, %r15
jmp 0x4277
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jasmeet13n[P]HTTP-Proxy-Server-Client/proxy.cpp
// Function: bringToFront(int)
void bringToFront(int block){
	if(cache[block].last==1)
		return;
	//cout << "Bringing to Front " << block << endl;
	cache[block].last = 1;
	for(int i=0; i<SIZE; i++){
		if(i!=block){
			cache[i].last++;
			if(cache[i].last>SIZE)
				cache[i].last = SIZE;
		}
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %edi, %rax
imulq $0x50, %rax, %rcx
leaq 0x6ab5(%rip), %rax      # 0xa470
cmpl $0x1, (%rcx,%rax)
jne 0x39c3
popq %rbp
retq
addq %rax, %rcx
movl $0x1, (%rcx)
movl %edi, %ecx
imulq $0x50, %rcx, %rcx
xorl %edx, %edx
movl $0xa, %esi
cmpq $0x320, %rdx            # imm = 0x320
je 0x39c1
cmpq %rdx, %rcx
je 0x39f9
movl (%rdx,%rax), %edi
leal 0x1(%rdi), %r8d
cmpl $0xa, %edi
cmovgel %esi, %r8d
movl %r8d, (%rdx,%rax)
addq $0x50, %rdx
jmp 0x39d9
// File: /workspace/github_cpp_makefile_star2_O2/jasmeet13n[P]HTTP-Proxy-Server-Client/proxy.cpp
// Function: getFreeBlock()
int getFreeBlock(){
	int end = SIZE;
	int ans = -1;
	//for(int i=0; i<SIZE; i++)
	//	cout << cache[i].last << ",";
	//cout << endl;
	while(end>0){
		for(int i=0; i<SIZE; i++){
			if(cache[i].last==end && cache[i].inUse==0){
				ans = i;
				cache[ans].inUse=-2;
				//cache[ans].last=1;
				//cout << "Ans: "<< ans << endl;
				end=0;
				break;
			}
		}
		end--;
	}
	return ans;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xa, %esi
leaq 0x6a60(%rip), %rdx      # 0xa474
movl %ecx, %eax
testl %esi, %esi
jle 0x3a4b
movq %rdx, %r8
xorl %edi, %edi
cmpq $0xa, %rdi
je 0x3a3a
cmpl %esi, -0x4(%r8)
jne 0x3a31
cmpl $0x0, (%r8)
je 0x3a3e
incq %rdi
addq $0x50, %r8
jmp 0x3a1f
decl %esi
jmp 0x3a16
movl $0xfffffffe, (%r8)      # imm = 0xFFFFFFFE
movl %ecx, %esi
movl %edi, %eax
jmp 0x3a16
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jasmeet13n[P]HTTP-Proxy-Server-Client/proxy.cpp
// Function: checkCache(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int checkCache(string host_file){
	if(whichBlock.find(host_file)==whichBlock.end()){
		return -1;
	}
	int cb = whichBlock[host_file];
	if(cache[cb].host_file == host_file)
		return cb;
	return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x6982(%rip), %rdi      # 0xa3e0
movq %rbx, %rsi
callq 0x5e0c
leaq 0x697b(%rip), %rcx      # 0xa3e8
cmpq %rcx, %rax
je 0x3aaa
leaq 0x6967(%rip), %rdi      # 0xa3e0
movq %rbx, %rsi
callq 0x5836
movslq (%rax), %r14
imulq $0x50, %r14, %rax
leaq 0x69e1(%rip), %rcx      # 0xa470
leaq (%rax,%rcx), %rdi
addq $0x30, %rdi
movq %rbx, %rsi
callq 0x589f
testb %al, %al
pushq $-0x1
popq %rax
cmovnel %r14d, %eax
jmp 0x3aad
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jasmeet13n[P]HTTP-Proxy-Server-Client/proxy.cpp
// Function: isExpired(int)
bool isExpired(int cb){
	time_t raw_time;
	time(&raw_time);
	struct tm * utc;
	utc = gmtime(&raw_time);
	raw_time = mktime(utc);
	//cout << "CACHE : " << cache[cb].expr << " :: CURRENT : " << raw_time << endl;
	if(cache[cb].expr-raw_time>0)
		return false;
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
leaq -0x18(%rbp), %r14
movq %r14, %rdi
callq 0x32b0
movq %r14, %rdi
callq 0x3280
movq %rax, %rdi
callq 0x31e0
movslq %ebx, %rcx
imulq $0x50, %rcx, %rcx
leaq 0x6987(%rip), %rdx      # 0xa470
movslq 0x8(%rcx,%rdx), %rcx
cmpq %rcx, %rax
setge %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq