LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/dgboy2000[P]compress/compress.cpp
// Function: SuffixArray::SuffixArray(int*, int)
SuffixArray::SuffixArray(int *data, int _n) {
    n = _n;
    
    s = (int *) calloc(n + 3, sizeof(int));
    memcpy(s, data, n * (sizeof(int)));
    
    prepareSuffixArray();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl %edx, (%rdi)
leal 0x3(%rbx), %eax
movslq %eax, %rdi
movl $0x4, %esi
callq 0x2110
movq %rax, 0x10(%r15)
movslq %ebx, %rdx
shlq $0x2, %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2170
movq %r15, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x544a
// File: /workspace/github_cpp_makefile_star2_O1/dgboy2000[P]compress/compress.cpp
// Function: SuffixArray::print()
void SuffixArray::print() {
    for (int i=0; i<(n+3); ++i) {
        printf("s[%d] = %d\n", i, s[i]);
    }
    for (int i=0; i<n; ++i) {
        printf("sa[%d] = %d\n", i, sa[i]);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $-0x2, (%rdi)
jl 0x5a5f
leaq 0x26a1(%rip), %r14      # 0x80d5
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movl (%rax,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x2050
leaq 0x1(%r15), %rax
movslq (%rbx), %rcx
addq $0x2, %rcx
cmpq %rcx, %r15
movq %rax, %r15
jl 0x5a37
cmpl $0x0, (%rbx)
jle 0x5a8e
leaq 0x2676(%rip), %r14      # 0x80e1
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movl (%rax,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x2050
incq %r15
movslq (%rbx), %rax
cmpq %rax, %r15
jl 0x5a6e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/dgboy2000[P]compress/compress.cpp
// Function: SuffixArray::radixPass(int*, int*, int*, int, int)
void SuffixArray::radixPass(int* a, int* b, int* r, int n, int K)
{// count occurrences
    int* c = new int[K + 1]; // counter array
    for (int i = 0; i <= K; i++) c[i] = 0; // reset counters
    for (int i = 0; i < n; i++) c[r[a[i]]]++; // count occurrences
    for (int i = 0, sum = 0; i <= K; i++) // exclusive prefix sums
    {int t = c[i]; c[i] = sum; sum += t; }
    for (int i = 0; i < n; i++) b[c[r[a[i]]]++] = a[i]; // sort
    delete [] c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r13d
movl %r8d, 0x4(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movslq %r9d, %rbp
leaq 0x4(,%rbp,4), %rax
cmpl $-0x1, %ebp
movq $-0x1, %rdi
cmovgeq %rax, %rdi
callq 0x2030
movq %rax, %r12
testl %ebp, %ebp
js 0x5aea
movl %r13d, %eax
leaq 0x4(,%rax,4), %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20f0
movl 0x4(%rsp), %edi
movl %edi, %eax
testl %edi, %edi
jle 0x5b0a
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
movslq (%rbx,%rdx,4), %rdx
incl (%r12,%rdx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x5af6
testl %r13d, %r13d
js 0x5b2a
incl %r13d
xorl %ecx, %ecx
xorl %edx, %edx
movl (%r12,%rcx,4), %esi
addl %edx, %esi
movl %edx, (%r12,%rcx,4)
incq %rcx
movl %esi, %edx
cmpq %rcx, %r13
jne 0x5b16
testl %edi, %edi
jle 0x5b50
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
movslq (%rbx,%rdx,4), %rsi
movslq (%r12,%rsi,4), %rdi
leal 0x1(%rdi), %r8d
movl %r8d, (%r12,%rsi,4)
movl %edx, (%r14,%rdi,4)
incq %rcx
cmpq %rcx, %rax
jne 0x5b30
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/dgboy2000[P]compress/compress.cpp
// Function: test_suffix_arrays()
void test_suffix_arrays() {
    int len = 9;
    int word[] = {1, 2, 3, 4, 5, 4, 3, 2, 1};
    int true_suffixes[] = {8, 0, 7, 1, 6, 2, 5, 3, 4};
    
    SuffixArray sa(word, len);
    int *suffixes = sa.getSuffixArray();
    
    
    for (int i=0; i<len; ++i) {
        if (suffixes[i] == true_suffixes[i]) {
            //printf("CORRECT: True suffix SA[%d] = %d\n", i, suffixes[i]);
        } else {
            printf("FAIL: True suffix SA[%d] is %d but found %d\n", i, true_suffixes[i], suffixes[i]);
            return;
        }
    }
    printf("PASS: suffix array is correct\n");
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq 0x8(%rsp), %rbx
movl $0x9, (%rbx)
movl $0xc, %edi
movl $0x4, %esi
callq 0x2110
movq %rax, 0x10(%rbx)
movaps 0x26f0(%rip), %xmm0     # 0x8280
movups %xmm0, (%rax)
movaps 0x26f6(%rip), %xmm0     # 0x8290
movups %xmm0, 0x10(%rax)
movl $0x1, 0x20(%rax)
movq %rbx, %rdi
callq 0x544a
leaq 0x26fc(%rip), %rax      # 0x82b0
xorl %esi, %esi
movq 0x8(%rbx), %rbx
movl (%rbx,%rsi,4), %ecx
movl (%rax), %edx
cmpl %edx, %ecx
jne 0x5bde
incq %rsi
addq $0x4, %rax
cmpq $0x9, %rsi
jne 0x5bba
leaq 0x267e(%rip), %rdi      # 0x8255
callq 0x2240
jmp 0x5bec
leaq 0x2509(%rip), %rdi      # 0x80ee
xorl %eax, %eax
callq 0x2050
movq %rbx, %rdi
callq 0x21f0
movq 0x18(%rsp), %rdi
addq $0x20, %rsp
popq %rbx
jmp 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/strfunc.cpp
// Function: delsp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string delsp(std::string input){
	//str+=(std::string)" ";
	input.insert(input.length()," ");
	while(1){
		if(input.find("  ",0)==std::string::npos) break;
		input.erase(input.find("  ",0),1);
	}
	if(input[0]==' ') input.erase(0,1);
	#ifdef DEBUG
	std::cout << input << std::endl;
	#endif

	return input;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
leaq 0x4bc3(%rip), %rcx      # 0x7005
movl $0x1, %r8d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x21c0
leaq 0x4bab(%rip), %rsi      # 0x7004
movl $0x2, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2290
cmpq $-0x1, %rax
je 0x24af
leaq 0x4b8f(%rip), %r15      # 0x7004
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2290
movl $0x1, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2060
movl $0x2, %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2290
cmpq $-0x1, %rax
jne 0x2475
movq (%rbx), %rax
cmpb $0x20, (%rax)
jne 0x24c6
movl $0x1, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2060
leaq 0x10(%r14), %rcx
movq %rcx, (%r14)
movq (%rbx), %rdx
leaq 0x10(%rbx), %rax
cmpq %rax, %rdx
je 0x24e5
movq %rdx, (%r14)
movq (%rax), %rcx
movq %rcx, 0x10(%r14)
jmp 0x24eb
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/strfunc.cpp
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::list<std::string> split(std::string input){
	int i,pos,n=(int)input.length();
	std::list<std::string> output;
	
	pos = 0;
	for(i=0;i<n;i++){
		if(input[i]==' '){
			output.push_back(input.substr(i-pos,pos));
			#if MYDEBUG
			std::cout << input.substr(i-pos,pos) << std::endl;
			#endif
			pos = 0;
			continue;
		}
		pos++;
	}
	return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %r12
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
movq $0x0, 0x10(%rdi)
testl %r12d, %r12d
jle 0x25f8
movq %rsi, %r14
leaq 0x18(%rsp), %r13
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
xorl %eax, %eax
movq (%r14), %rcx
cmpb $0x20, (%rcx,%rbp)
jne 0x259c
movl %ebp, %ecx
subl %eax, %ecx
movslq %ecx, %rdx
movslq %eax, %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x21b0
movl $0x30, %edi
callq 0x2180
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rdx
cmpq %r13, %rdx
je 0x25a0
movq %rdx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x20(%rax)
jmp 0x25a8
incl %eax
jmp 0x25ec
movups (%r13), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2050
incq 0x10(%rbx)
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x25ea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
xorl %eax, %eax
incq %rbp
cmpq %rbp, %r12
jne 0x2550
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2629
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2629
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x263a
movq %r14, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: is_float(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool is_float(std::string input){
	unsigned int i;
	bool dec=false;

	for(i=0;i<input.length();i++){
		if(is_dec(input[i]) && dec){
			throw((std::string)"小数点を2個以上指定することはできません。");
			return false;
		}
		if(!is_dig(input[i]) && !is_dec(input[i])) return false;
		if(is_dec(input[i])) dec=true;

		if(dec && input.length()==1){
			//「.」のみの小数は扱えません
			return false;
		}
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
sete %al
je 0x2950
movq (%rdi), %rdx
movl $0x1, %esi
xorl %r9d, %r9d
movl $0x1, %edi
xorl %r8d, %r8d
movb (%rdx,%r9), %r9b
cmpb $0x2e, %r9b
jne 0x2912
testb $0x1, %r8b
jne 0x2957
cmpb $0x2e, %r9b
setne %r10b
leal -0x30(%r9), %r11d
cmpb $0xa, %r11b
setae %r11b
testb %r11b, %r10b
jne 0x2950
cmpb $0x2e, %r9b
movzbl %r8b, %r8d
cmovel %esi, %r8d
cmpq $0x1, %rcx
jne 0x2943
testb $0x1, %r8b
jne 0x2950
movl %edi, %r9d
incl %edi
cmpq %r9, %rcx
setbe %al
ja 0x2902
andb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x20c0
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
movb $0x1, %bpl
leaq 0x4744(%rip), %rsi      # 0x70b9
leaq 0x477a(%rip), %rdx      # 0x70f6
movq %rbx, %rdi
callq 0x6256
xorl %ebp, %ebp
leaq 0x73fb(%rip), %rsi      # 0x9d88
movq 0x7624(%rip), %rdx      # 0x9fb8
movq %rbx, %rdi
callq 0x2280
movq %rax, %r14
testb %bpl, %bpl
je 0x29ac
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: is_alphastr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool is_alphastr(std::string input){
	unsigned int i;

	for(i=0;i<input.length();i++){
		if(!is_alphabet(input[i])){
			return false;
		}
	}
	return true;
}

// Assembly:
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
sete %al
je 0x29f7
movq (%rdi), %rdx
movb (%rdx), %sil
andb $-0x21, %sil
addb $-0x41, %sil
cmpb $0x19, %sil
ja 0x29f7
movl $0x1, %esi
movl %esi, %esi
cmpq %rsi, %rcx
setbe %al
jbe 0x29f7
movb (%rdx,%rsi), %dil
andb $-0x21, %dil
addb $-0x41, %dil
incl %esi
cmpb $0x1a, %dil
jb 0x29d9
retq
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: findop(Element**, int)
int findop(Element** input,int length){
	int i,output=-1;

	for(i=0;i<length;i++){
		//std::cout << i + " ";
		#if MYDEBUG
		std::cout << input[i]->data_is() << ".type_is() --->" << input[i]->type_is() << std::endl;
		#endif

		if((input[i]->type_is()) == "op"){
			output=i;
			break;
		}
	}
	if(output==-1) throw((std::string)"演算子が見つかりませんでした。");

	return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %esi, %esi
jle 0x371e
movq %rdi, %r14
leaq 0x18(%rsp), %r13
movl %esi, %r12d
xorl %ebx, %ebx
leaq 0x8(%rsp), %r15
movq (%r14,%rbx,8), %rax
movq %r13, 0x8(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x61c6
movq %r15, %rdi
leaq 0x3a6b(%rip), %rsi      # 0x7156
callq 0x2080
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3709
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
testl %ebp, %ebp
je 0x371c
incq %rbx
cmpq %rbx, %r12
jne 0x36c5
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x371e
movl %ebx, %eax
cmpl $-0x1, %eax
je 0x3732
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x20c0
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
movb $0x1, %bpl
leaq 0x3a5f(%rip), %rsi      # 0x71af
leaq 0x3a85(%rip), %rdx      # 0x71dc
movq %rbx, %rdi
callq 0x6256
xorl %ebp, %ebp
leaq 0x6620(%rip), %rsi      # 0x9d88
movq 0x6849(%rip), %rdx      # 0x9fb8
movq %rbx, %rdi
callq 0x2280
movq %rax, %r14
testb %bpl, %bpl
je 0x3787
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: take_elements(Element**, int, int)
Element** take_elements(Element** elements, int pos, int num){
	int i;
	Element **output = new Element*[num];

	for(i=pos;i<pos+num;i++){
		output[i-pos] = elements[i];
	}
	return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %edx, %r15
leaq (,%r15,8), %rax
testl %r15d, %r15d
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
testl %r15d, %r15d
jle 0x37ef
addl %ebp, %ebx
movslq %ebp, %rcx
leaq (%r14,%rcx,8), %rsi
leal 0x1(%rcx), %edx
cmpl %edx, %ebx
cmovlel %edx, %ebx
notl %ecx
addl %ebx, %ecx
leaq 0x8(,%rcx,8), %rdx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2140
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: op_divide(Element*, Element*)
Element* op_divide(Element* op1,Element* op2){
	//long a;
	double b;
	Element *rtn;
	
	b = atof(op1->data_is().c_str()) / atof(op2->data_is().c_str());
	rtn = new Element(ftoa(b));

	return rtn;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x61c6
movq (%r14), %rdi
callq 0x2210
movsd %xmm0, (%rsp)
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x61c6
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x2210
movapd %xmm0, %xmm1
cmpq %r14, %rbx
je 0x4575
movq 0x60(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x2190
movsd 0x8(%rsp), %xmm1
movsd (%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x459a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2190
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
movsd (%rsp), %xmm0
callq 0x273f
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45de
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x460e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x460e
movq %rax, %r14
movl $0x40, %esi
movq %rbx, %rdi
jmp 0x462d
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x4632
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: fn_absolute(Element*)
Element* fn_absolute(Element* op){
	long a;
	double b;
	Element *rtn;
	
	if(op->type_is() == "int"){
		a = atol(op->data_is().c_str());
		if(a<0) a*=-1;
		rtn = new Element(ltoa(a));
	}else if(op->type_is() == "float"){
		b = atof(op->data_is().c_str());
		if(b<0) b*=-1;
		rtn = new Element(ftoa(b));
	}

	return rtn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x61c6
leaq 0x274f(%rip), %rsi      # 0x714a
movq %r14, %rdi
callq 0x2080
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4a1a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %r14
testl %ebp, %ebp
je 0x4ae8
movq %r15, (%r14)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
leaq 0x2717(%rip), %rsi      # 0x7159
movq %r14, %rdi
callq 0x2080
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4a5f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %r14
movq %r15, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
movq (%r14), %rbx
movq %rbx, %rdi
callq 0x2210
cmpq %r15, %rbx
je 0x4aa2
movq 0x10(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
movaps %xmm0, 0x20(%rsp)
callq 0x2190
movapd 0x20(%rsp), %xmm0
movapd 0x2566(%rip), %xmm1     # 0x7010
xorpd %xmm0, %xmm1
maxsd %xmm0, %xmm1
movapd %xmm1, 0x20(%rsp)
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
movaps 0x20(%rsp), %xmm0
callq 0x273f
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x48(%rsp), %rax
jmp 0x4b56
movq %r15, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
movq (%r14), %r14
movq %r14, %rdi
callq 0x21e0
movq %rax, %rbx
cmpq %r15, %r14
je 0x4b20
movq 0x10(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2190
movq %rbx, %r14
negq %r14
cmovsq %rbx, %r14
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x26bc
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4b6a
movq (%rax), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bb5
movq 0x68(%rsp), %rsi
jmp 0x4ba8
jmp 0x4bb2
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4bb5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x4bb5
movq %rax, %r14
movl $0x40, %esi
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: fn_pm(Element*)
Element* fn_pm(Element* op){
	long a;
	double b;
	Element *rtn;
	
	if(op->type_is() == "int"){
		a = atol(op->data_is().c_str());
		a*=-1;
		rtn = new Element(ltoa(a));
	}else if(op->type_is() == "float"){
		b = atof(op->data_is().c_str());
		b*=-1;
		rtn = new Element(ftoa(b));
	}

	return rtn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x61c6
leaq 0x254d(%rip), %rsi      # 0x714a
movq %r14, %rdi
callq 0x2080
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4c1c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %r14
testl %ebp, %ebp
je 0x4cdf
movq %r15, (%r14)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
leaq 0x2515(%rip), %rsi      # 0x7159
movq %r14, %rdi
callq 0x2080
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x4c61
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rsp, %r14
movq %r15, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
movq (%r14), %rbx
movq %rbx, %rdi
callq 0x2210
movaps %xmm0, 0x20(%rsp)
cmpq %r15, %rbx
je 0x4c9e
movq 0x10(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x2190
movaps 0x20(%rsp), %xmm0
xorps 0x2366(%rip), %xmm0     # 0x7010
movaps %xmm0, 0x20(%rsp)
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
movaps 0x20(%rsp), %xmm0
callq 0x273f
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x48(%rsp), %rax
jmp 0x4d46
movq %r15, (%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x61c6
movq (%r14), %rbx
movq %rbx, %rdi
callq 0x21e0
movq %rax, %r14
cmpq %r15, %rbx
je 0x4d17
movq 0x10(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x2190
negq %r14
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x26bc
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d5a
movq (%rax), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4da5
movq 0x68(%rsp), %rsi
jmp 0x4d98
jmp 0x4da2
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4da5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x4da5
movq %rax, %r14
movl $0x40, %esi
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: fn_pow(Element*, Element*)
Element* fn_pow(Element* op1,Element* op2){
	double b;
	Element *rtn;
	
	b = std::pow(atof(op1->data_is().c_str()), atof(op2->data_is().c_str()));
	rtn = new Element(ftoa(b));

	return rtn;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x61c6
movq (%r14), %rdi
callq 0x2210
movsd %xmm0, 0x8(%rsp)
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x61c6
movq 0x50(%rsp), %rdi
callq 0x2210
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
callq 0x22a0
movsd %xmm0, 0x8(%rsp)
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f21
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x4f38
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2190
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x273f
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x3290
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f7d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4fad
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x4fad
movq %rax, %r14
movl $0x40, %esi
movq %rbx, %rdi
jmp 0x4fcc
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x4fd1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: fn_cbrt(Element*)
Element* fn_cbrt(Element* op1){
	double b;
	Element *op2;
	
	//b = cbrtf(atof(op1->data_is().c_str()));
	//rtn = new Element(ftoa(b));
	op2 = new Element("0.333333333"); // あとで修正

	return fn_pow(op1,op2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movl $0x40, %edi
callq 0x2180
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1f40(%rip), %rsi      # 0x71dd
leaq 0x1f44(%rip), %rdx      # 0x71e8
movq %rsp, %rdi
callq 0x6256
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3290
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x52cd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e95
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5300
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x5300
movq %rax, %r14
movl $0x40, %esi
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: del_array(Element**, int, int, int)
Element** del_array(Element** input, int length, int pos, int num){
	// 入力配列 Element** input
	// 入力のサイズ int length <- 配列のサイズを指定
	// 削除開始位置 int pos    <- 開始位置なので、演算子の個数を
	// 削除個数     int num    <- 演算子を含める場合は、呼び出し時に引数に+1する。

	int i,j;
	Element **rtn = new Element*[length-num];

	for(i=0;i<pos;i++) rtn[i] = input[i];
	j = i;

	for(;i<pos+num;i++){
		// delete input[i];
	}

	for(i=pos+num;i<length;i++){
		rtn[j] = input[i];
		j++;
	}

	return rtn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %r12
movl %esi, %eax
subl %ecx, %eax
cltq
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x2030
movq %rax, %r15
testl %r14d, %r14d
jle 0x5724
movl %r14d, %r13d
shlq $0x3, %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2140
jmp 0x5727
xorl %r13d, %r13d
leal (%rbx,%r14), %eax
cmpl %ebp, %eax
jge 0x574f
movq %r15, %rdi
addq %r13, %rdi
cltq
leaq (%r12,%rax,8), %rsi
notl %ebx
addl %ebp, %ebx
subl %r14d, %ebx
leaq 0x8(,%rbx,8), %rdx
callq 0x2140
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: ins_element(Element**, Element*, int, int)
Element** ins_element(Element **inp_arr, Element* inp_elm, int length, int pos){
	int i;
	Element **rtn = new Element*[length+1];
	
	for(i=0;i<pos;i++) rtn[i] = inp_arr[i];
	rtn[i] = inp_elm;
	#if MYDEBUG
	std::cout << "debug:" << inp_elm->data_is() << std::endl;
	#endif
	// ここで、iはrtnに合わせる
	for(i=i+1;i<length+1;i++) rtn[i] = inp_arr[i-1];
	
	return rtn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r15
movslq %edx, %rax
leaq 0x8(,%rax,8), %rcx
cmpl $-0x1, %eax
movq $-0x1, %rdi
cmovgeq %rcx, %rdi
callq 0x2030
movq %rax, %r14
testl %ebx, %ebx
jle 0x57ab
movl %ebx, %edx
shlq $0x3, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2140
jmp 0x57ad
xorl %ebx, %ebx
movl %ebx, %eax
movq %r12, (%r14,%rax,8)
cmpl %ebp, %ebx
jge 0x57d4
leaq (%r14,%rax,8), %rdi
addq $0x8, %rdi
leaq (%r15,%rax,8), %rsi
notl %ebx
addl %ebp, %ebx
leaq 0x8(,%rbx,8), %rdx
callq 0x2140
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/./element.h
// Function: calc_array(Element**, int)
Element** calc_array(Element** x, int length){
	Element* ins;
	int pos=0;
	int numop=0;

	if(length == 1){
		
	}

	while(length > 1){
		pos=-1;
		pos = findop(x,length); //	演算子の位置をposに代入
		numop = op_num(x[pos]->data_is()); // オペランド数を調べる
		if(pos-numop<0) throw((std::string)"書式が間違っています。演算子の位置がおかしいようです。");
		ins = calc_elements(take_elements(x, pos-numop, numop),x[pos]->data_is()); // 演算子とオペランドをcalc_elementsに渡し、計算結果を得る
		pos-=numop; // 削除および挿入の開始位置を指定
		x = ins_element(del_array(x,length,pos,numop+1), ins, length-numop-1, pos);
		length-=numop; // 計算後の配列の長さをlengthに代入
	}
	return x;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r12
cmpl $0x2, %esi
jl 0x58e3
movl %esi, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0x369c
movl %eax, %ebp
movslq %eax, %r15
movq (%r12,%r15,8), %rax
leaq 0x38(%rsp), %r14
movq %r14, 0x28(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0x61c6
movq %r13, %rdi
callq 0x37fa
movl %eax, %r13d
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x5852
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
subl %r13d, %ebp
js 0x58f5
movq %r12, %rdi
movl %ebp, %esi
movl %r13d, %edx
callq 0x378f
movq %rax, %r14
movq (%r12,%r15,8), %rax
leaq 0x18(%rsp), %r15
movq %r15, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x61c6
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x5450
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x58b4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
leal 0x1(%r13), %ecx
movq %r12, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x56d0
subl %r13d, %ebx
leal -0x1(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %ecx
callq 0x5761
movq %rax, %r12
cmpl $0x1, %ebx
jg 0x57fc
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x20c0
movq %rax, %rbx
addq $0x10, %rax
movq %rax, (%rbx)
movb $0x1, %bpl
leaq 0x1929(%rip), %rsi      # 0x723c
leaq 0x1973(%rip), %rdx      # 0x728d
movq %rbx, %rdi
callq 0x6256
xorl %ebp, %ebp
leaq 0x445d(%rip), %rsi      # 0x9d88
movq 0x4686(%rip), %rdx      # 0x9fb8
movq %rbx, %rdi
callq 0x2280
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5966
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x5966
movq %rax, %r14
testb %bpl, %bpl
je 0x5966
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/syusui-s[P]old_rpn_language/main.cpp
// Function: main
int main(void){
	std::string input;
	
	////////////////////////////////////
	std::cout << PROGNAME << ", version " << PROGVER << std::endl;
	while(1){
		std::cout << INPUTSTR;
		std::getline(std::cin, input);
		interpret(input);
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x4037(%rip), %rdi      # 0x9fc8
leaq 0x134f(%rip), %rsi      # 0x72e7
movl $0xc, %edx
callq 0x21d0
movq 0x401f(%rip), %rdi      # 0x9fc8
leaq 0x1373(%rip), %rsi      # 0x7323
movl $0xa, %edx
callq 0x21d0
movq 0x4007(%rip), %rbx      # 0x9fc8
leaq 0x1366(%rip), %rsi      # 0x732e
movl $0x10, %edx
movq %rbx, %rdi
callq 0x21d0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %esi
movq 0x3fd5(%rip), %rdi      # 0x9fc8
callq 0x2040
movq %rax, %rdi
callq 0x20e0
leaq 0x18(%rsp), %rbp
movq 0x3fbc(%rip), %rbx      # 0x9fc8
leaq 0x132c(%rip), %r14      # 0x733f
movq 0x3fbe(%rip), %r15      # 0x9fd8
leaq 0x28(%rsp), %r12
leaq 0x8(%rsp), %r13
movl $0x8, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x22d0
movq %rbp, 0x8(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x61c6
movq %r13, %rdi
callq 0x5ce2
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6024
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x6024
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x60b2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x60b2
jmp 0x60af
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x60ce
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Json::Value&, bool)
bool Reader::parse(const std::string& document,
                   Value& root,
                   bool collectComments) {
  document_.assign(document.begin(), document.end());
  const char* begin = document_.c_str();
  const char* end = begin + document_.length();
  return parse(begin, end, root, collectComments);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rdi, %r15
addq $0xa0, %rdi
movq (%rsi), %rcx
movq 0x8(%rsi), %r8
movq 0xa8(%r15), %rdx
xorl %esi, %esi
callq 0x8700
movq 0xa0(%r15), %rsi
movq 0xa8(%r15), %rdx
addq %rsi, %rdx
movq %r15, %rdi
movq %r14, %rcx
movl %ebx, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x94d2
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::parse(char const*, char const*, Json::Value&, bool)
bool Reader::parse(const char* beginDoc,
                   const char* endDoc,
                   Value& root,
                   bool collectComments) {
  if (!features_.allowComments_) {
    collectComments = false;
  }

  begin_ = beginDoc;
  end_ = endDoc;
  collectComments_ = collectComments;
  current_ = begin_;
  lastValueEnd_ = 0;
  lastValue_ = 0;
  commentsBefore_.clear();
  errors_.clear();
  while (!nodes_.empty())
    nodes_.pop();
  nodes_.push(&root);

  bool successful = readValue();
  Token token;
  skipCommentTokens(token);
  if (collectComments_ && !commentsBefore_.empty())
    root.setComment(commentsBefore_, commentAfter);
  if (features_.strictRoot_) {
    if (!root.isArray() && !root.isObject()) {
      // Set error location to start of doc, ideally should be first token found
      // in doc
      token.type_ = tokenError;
      token.start_ = beginDoc;
      token.end_ = endDoc;
      addError(
          "A valid JSON document must be either an array or an object value.",
          token);
      return false;
    }
  }
  return successful;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
andb 0x108(%rdi), %r8b
movq %rsi, 0xc0(%rdi)
movq %rdx, 0xc8(%rdi)
movb %r8b, 0x10c(%rdi)
movq %rsi, 0xd0(%rdi)
movq $0x0, 0xf0(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0xd8(%rdi)
movq 0xe8(%rdi), %rax
movb $0x0, (%rax)
addq $0x50, %rdi
callq 0xff32
movq 0x30(%rbx), %rax
cmpq 0x10(%rbx), %rax
je 0x954e
movq %rbx, %rdi
callq 0x1100e
jmp 0x953a
movq %r12, -0x48(%rbp)
movq 0x40(%rbx), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x9569
movq %r12, (%rax)
addq $0x8, 0x30(%rbx)
jmp 0x9575
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x11060
movq %rbx, %rdi
callq 0x96ee
movl %eax, %r13d
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0x9bc2
cmpb $0x1, 0x10c(%rbx)
jne 0x95b3
cmpq $0x0, 0xf0(%rbx)
je 0x95b3
leaq 0xe8(%rbx), %rsi
movq %r12, %rdi
movl $0x2, %edx
callq 0x165aa
cmpb $0x1, 0x109(%rbx)
jne 0x962d
movq %r12, %rdi
callq 0x149cc
testb %al, %al
jne 0x962d
movq %r12, %rdi
callq 0x149da
testb %al, %al
jne 0x962d
leaq -0x60(%rbp), %r12
movl $0xd, (%r12)
movq %r15, 0x8(%r12)
movq %r14, 0x10(%r12)
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x5fbf7(%rip), %rsi     # 0x691f0
leaq 0x5fc31(%rip), %rdx     # 0x69231
leaq -0x48(%rbp), %r14
movq %r14, %rdi
callq 0x1126a
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x9bfc
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x962a
callq 0x85d0
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9650
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::parse(std::istream&, Json::Value&, bool)
bool Reader::parse(std::istream& is, Value& root, bool collectComments) {
  // std::istream_iterator<char> begin(is);
  // std::istream_iterator<char> end;
  // Those would allow streamed input from a file, if parse() were a
  // template function.

  // Since JSONCPP_STRING is reference-counted, this at least does not
  // create an extra copy.
  JSONCPP_STRING doc;
  std::getline(is, doc, (char)EOF);
  return parse(doc.data(), doc.data() + doc.size(), root, collectComments);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %ecx, %r14d
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r15
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x40(%rbp), %rsi
movq %rax, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x8be0
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
movzbl %r14b, %r8d
movq %r15, %rdi
movq %rbx, %rcx
callq 0x94d2
movl %eax, %ebx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x96c5
callq 0x85d0
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x96e5
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::addError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Json::Reader::Token&, char const*)
bool Reader::addError(const JSONCPP_STRING& message,
                      Token& token,
                      Location extra) {
  ErrorInfo info;
  info.token_ = token;
  info.message_ = message;
  info.extra_ = extra;
  errors_.push_back(info);
  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r14
movq %rdi, %rbx
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movups (%rdx), %xmm0
movaps %xmm0, -0x28(%r15)
movq 0x10(%rdx), %rax
movq %rax, -0x18(%r15)
callq 0x8380
leaq -0x60(%rbp), %rsi
movq %r14, 0x38(%rsi)
addq $0x50, %rbx
movq %rbx, %rdi
callq 0xff70
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c5e
callq 0x85d0
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x9c7c
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::decodeNumber(Json::Reader::Token&)
bool Reader::decodeNumber(Token& token) {
  Value decoded;
  if (!decodeNumber(token, decoded))
    return false;
  currentValue().swapPayload(decoded);
  currentValue().setOffsetStart(token.start_ - begin_);
  currentValue().setOffsetLimit(token.end_ - begin_);
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x12d6c
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xaf94
movl %eax, %ebx
testb %al, %al
je 0xa3f7
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa394
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x40(%rbp), %rsi
callq 0x13540
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa3b8
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0x8(%r15), %rsi
subq 0xc0(%r14), %rsi
callq 0x1662c
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa3e3
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0x10(%r15), %rsi
subq 0xc0(%r14), %rsi
callq 0x16636
leaq -0x40(%rbp), %rdi
callq 0x13416
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x13416
movq %rbx, %rdi
callq 0x8b40
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::decodeString(Json::Reader::Token&)
bool Reader::decodeString(Token& token) {
  JSONCPP_STRING decoded_string;
  if (!decodeString(token, decoded_string))
    return false;
  Value decoded(decoded_string);
  currentValue().swapPayload(decoded);
  currentValue().setOffsetStart(token.start_ - begin_);
  currentValue().setOffsetLimit(token.end_ - begin_);
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r15
movq %rdi, %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq -0x40(%rbp), %rdx
callq 0xac9c
movl %eax, %ebx
testb %al, %al
je 0xa4f1
leaq -0x68(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x13156
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa485
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
leaq -0x68(%rbp), %rsi
callq 0x13540
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa4a9
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0x8(%r15), %rsi
subq 0xc0(%r14), %rsi
callq 0x1662c
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
jne 0xa4d4
movq 0x48(%r14), %rcx
movl $0x200, %eax            # imm = 0x200
addq -0x8(%rcx), %rax
movq -0x8(%rax), %rdi
movq 0x10(%r15), %rsi
subq 0xc0(%r14), %rsi
callq 0x16636
leaq -0x68(%rbp), %rdi
callq 0x13416
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xa4ff
callq 0x85d0
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa510
movq %rax, %rbx
jmp 0xa521
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x13416
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xa52f
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::readString()
bool Reader::readString() {
  Char c = '\0';
  while (current_ != end_) {
    c = getNextChar();
    if (c == '\\')
      getNextChar();
    else if (c == '"')
      break;
  }
  return c == '"';
}

// Assembly:
movq 0xc8(%rdi), %rax
movq 0xd0(%rdi), %rdx
cmpq %rax, %rdx
je 0xa832
pushq %rbp
movq %rsp, %rbp
leaq 0x1(%rdx), %rsi
movq %rsi, 0xd0(%rdi)
movzbl (%rdx), %ecx
cmpl $0x5c, %ecx
je 0xa80f
cmpl $0x22, %ecx
jne 0xa822
jmp 0xa82a
cmpq %rax, %rsi
je 0xa822
addq $0x2, %rdx
movq %rdx, 0xd0(%rdi)
movq %rdx, %rsi
movq %rsi, %rdx
cmpq %rax, %rsi
jne 0xa7f5
cmpb $0x22, %cl
sete %al
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::readNumber()
void Reader::readNumber() {
  const char* p = current_;
  char c = '0'; // stopgap for already consumed character
  // integral part
  while (c >= '0' && c <= '9')
    c = (current_ = p) < end_ ? *p++ : '\0';
  // fractional part
  if (c == '.') {
    c = (current_ = p) < end_ ? *p++ : '\0';
    while (c >= '0' && c <= '9')
      c = (current_ = p) < end_ ? *p++ : '\0';
  }
  // exponential part
  if (c == 'e' || c == 'E') {
    c = (current_ = p) < end_ ? *p++ : '\0';
    if (c == '+' || c == '-')
      c = (current_ = p) < end_ ? *p++ : '\0';
    while (c >= '0' && c <= '9')
      c = (current_ = p) < end_ ? *p++ : '\0';
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xc8(%rdi), %rdx
movq 0xd0(%rdi), %rax
movq %rax, 0xd0(%rdi)
cmpq %rdx, %rax
jae 0xa95d
movb (%rax), %cl
incq %rax
jmp 0xa95f
xorl %ecx, %ecx
leal -0x30(%rcx), %esi
cmpb $0xa, %sil
jb 0xa94a
cmpb $0x2e, %cl
jne 0xa9b0
movq %rax, 0xd0(%rdi)
movq 0xc8(%rdi), %rdx
cmpq %rdx, %rax
jae 0xa987
movb (%rax), %cl
incq %rax
jmp 0xa989
xorl %ecx, %ecx
leal -0x30(%rcx), %esi
cmpb $0x9, %sil
ja 0xa9b0
movq %rax, 0xd0(%rdi)
cmpq %rdx, %rax
jae 0xa9a5
movb (%rax), %cl
incq %rax
jmp 0xa9a7
xorl %ecx, %ecx
leal -0x30(%rcx), %esi
cmpb $0xa, %sil
jb 0xa992
andb $-0x21, %cl
cmpb $0x45, %cl
jne 0xaa20
movq %rax, 0xd0(%rdi)
movq 0xc8(%rdi), %rcx
cmpq %rcx, %rax
jae 0xa9d2
movb (%rax), %dl
incq %rax
jmp 0xa9d4
xorl %edx, %edx
cmpb $0x2d, %dl
je 0xa9e1
movzbl %dl, %esi
cmpl $0x2b, %esi
jne 0xa9f6
movq %rax, 0xd0(%rdi)
cmpq %rcx, %rax
jae 0xa9f4
movb (%rax), %dl
incq %rax
jmp 0xa9f6
xorl %edx, %edx
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0xaa20
movq %rax, 0xd0(%rdi)
cmpq %rcx, %rax
jae 0xaa1a
movb (%rax), %dl
incq %rax
addb $-0x30, %dl
cmpb $0xa, %dl
setb %dl
jmp 0xaa1c
xorl %edx, %edx
testb %dl, %dl
jne 0xa9fe
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::match(char const*, int)
bool Reader::match(Location pattern, int patternLength) {
  if (end_ - current_ < patternLength)
    return false;
  int index = patternLength;
  while (index--)
    if (current_[index] != pattern[index])
      return false;
  current_ += patternLength;
  return true;
}

// Assembly:
movq 0xc8(%rdi), %r8
movq 0xd0(%rdi), %rax
subq %rax, %r8
movslq %edx, %rcx
cmpq %rcx, %r8
jge 0xaa3e
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
movq %rcx, %r8
movq %rcx, %rdx
subq $0x1, %rdx
jb 0xaa61
movb -0x1(%rax,%r8), %r9b
cmpb -0x1(%rsi,%r8), %r9b
movq %rdx, %r8
je 0xaa48
xorl %eax, %eax
jmp 0xaa6d
addq %rcx, %rax
movq %rax, 0xd0(%rdi)
movb $0x1, %al
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::readCStyleComment()
bool Reader::readCStyleComment() {
  while ((current_ + 1) < end_) {
    Char c = getNextChar();
    if (c == '*' && *current_ == '/')
      break;
  }
  return getNextChar() == '/';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xc8(%rdi), %rax
movq 0xd0(%rdi), %rdx
leaq 0x1(%rdx), %rcx
cmpq %rax, %rcx
jae 0xaaae
cmpq %rax, %rdx
je 0xaaa3
movq %rcx, 0xd0(%rdi)
cmpb $0x2a, (%rdx)
jne 0xaaa6
cmpb $0x2f, (%rcx)
jne 0xaaa6
jmp 0xaaae
movq %rdx, %rcx
movq %rcx, %rdx
incq %rcx
jmp 0xaa86
movq 0xd0(%rdi), %rcx
cmpq %rax, %rcx
je 0xaacd
leaq 0x1(%rcx), %rax
movq %rax, 0xd0(%rdi)
cmpb $0x2f, (%rcx)
sete %al
jmp 0xaacf
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::addComment(char const*, char const*, Json::CommentPlacement)
void Reader::addComment(Location begin,
                        Location end,
                        CommentPlacement placement) {
  assert(collectComments_);
  const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
  if (placement == commentAfterOnSameLine) {
    assert(lastValue_ != 0);
    lastValue_->setComment(normalized, placement);
  } else {
    commentsBefore_ += normalized;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
cmpb $0x0, 0x10c(%rdi)
je 0xab9b
movl %ecx, %r14d
movq %rdi, %rbx
leaq -0x30(%rbp), %rdi
callq 0xabf6
cmpl $0x1, %r14d
jne 0xab69
movq 0xe0(%rbx), %rdi
testq %rdi, %rdi
je 0xabba
leaq -0x30(%rbp), %rsi
movl $0x1, %edx
callq 0x165aa
jmp 0xab80
addq $0xe8, %rbx
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq %rbx, %rdi
callq 0x81f0
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xab92
callq 0x85d0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x5e6e3(%rip), %rdi     # 0x69285
leaq 0x5e6ed(%rip), %rsi     # 0x69296
leaq 0x5e700(%rip), %rcx     # 0x692b0
movl $0x18a, %edx            # imm = 0x18A
callq 0x8420
leaq 0x5e733(%rip), %rdi     # 0x692f4
leaq 0x5e6ce(%rip), %rsi     # 0x69296
leaq 0x5e6e1(%rip), %rcx     # 0x692b0
movl $0x18d, %edx            # imm = 0x18D
callq 0x8420
movq %rax, %rbx
leaq -0x20(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xabee
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40
// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]RtConverter/src/Json/json_reader.cpp
// Function: Json::Reader::normalizeEOL[abi:cxx11](char const*, char const*)
JSONCPP_STRING Reader::normalizeEOL(Reader::Location begin,
                                    Reader::Location end) {
  JSONCPP_STRING normalized;
  normalized.reserve(static_cast<size_t>(end - begin));
  Reader::Location current = begin;
  while (current != end) {
    char c = *current++;
    if (c == '\r') {
      if (current != end && *current == '\n')
        // convert dos EOL
        ++current;
      // convert Mac EOL
      normalized += '\n';
    } else {
      normalized += c;
    }
  }
  return normalized;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rdx, %rsi
subq %r15, %rsi
callq 0x89e0
cmpq %r14, %r15
je 0xac70
leaq 0x1(%r15), %r13
movb (%r15), %al
cmpb $0xd, %al
jne 0xac5d
cmpq %r14, %r13
je 0xac4e
cmpb $0xa, 0x1(%r15)
jne 0xac4e
addq $0x2, %r15
movq %r15, %r13
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8530
jmp 0xac68
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8530
movq %r13, %r15
cmpq %r14, %r13
jne 0xac30
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xac84
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xac94
callq 0x85d0
movq %r14, %rdi
callq 0x8b40