LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/helper.h
// Function: getLine(_IO_FILE*)
bool getLine(FILE* in)
{
	bool ret = fgets(line, maxlength, in);
	int len = strlen(line);
	while (len > 0 && (line[len - 1] == '\n' || line[len - 1] == '\r')) {
		line[len - 1] = 0;
		-- len;
	}
	return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rdx
leaq 0xb79d(%rip), %rbx      # 0xe200
movq %rbx, %rdi
movl $0x5f5e100, %esi        # imm = 0x5F5E100
callq 0x22e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x20d0
testl %eax, %eax
jle 0x2aa4
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
incq %rax
movzbl -0x2(%rax,%rbx), %ecx
cmpl $0xd, %ecx
je 0x2a96
cmpl $0xa, %ecx
jne 0x2aa4
movb $0x0, -0x2(%rax,%rbx)
decq %rax
cmpq $0x1, %rax
ja 0x2a87
testq %r14, %r14
setne %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/helper.h
// Function: tryOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
FILE* tryOpen(string filename, string param)
{
	FILE* ret = fopen(filename.c_str(), param.c_str());
	if (ret == NULL) {
		fprintf(stderr, "error while opening %s\n", filename.c_str());
	}
	return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rsi), %rsi
callq 0x2220
movq %rax, %r14
testq %rax, %rax
je 0x2ad7
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
callq 0x2380
jmp 0x2acc
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/helper.h
// Function: splitBy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
vector<string> splitBy(const string &line, char comma)
{
	vector<string> tokens;
	string token = "";
	bool inside = false;
	for (size_t i = 0; i < line.size(); ++ i) {
		if (line[i] == '"') {
			inside ^= 1;
		} else if (line[i] == comma && !inside) {
			tokens.push_back(token);
			token = "";
		} else {
			token += line[i];
		}
	}
	tokens.push_back(token);
	return tokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x76ac(%rip), %rdx      # 0xa1c1
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x87ec
cmpq $0x0, 0x8(%r14)
je 0x2b90
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
xorl %r12d, %r12d
movq (%r14), %rax
movb (%rax,%r13), %al
cmpb $0x22, %al
jne 0x2b45
xorb $0x1, %r12b
jmp 0x2b87
cmpb %bpl, %al
setne %cl
orb %r12b, %cl
testb $0x1, %cl
je 0x2b60
movsbl %al, %esi
movq %r15, %rdi
callq 0x2190
jmp 0x2b87
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55e6
xorl %r12d, %r12d
movq 0x10(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x7642(%rip), %rcx      # 0xa1c1
xorl %r8d, %r8d
callq 0x22c0
incq %r13
cmpq 0x8(%r14), %r13
jb 0x2b34
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x55e6
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2bb9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2bd2
movq %rax, %r14
jmp 0x2bf1
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2bf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x5624
movq %r14, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../config/dna.h
// Function: loadDNASequence[abi:cxx11]()
string loadDNASequence()
{
    FILE* in = tryOpen(DNA_FILENAME, "r");
    string dna = "";
    while (getLine(in)) {
        for (size_t i = 0; line[i]; ++ i) {
            line[i] = tolower(line[i]);
            myAssert(alphabet.find(line[i]) != -1, "Unknown Character: " + line[i]);
        }
        dna += line;
    }
    fclose(in);
    return dna;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, (%rsp)
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x5f694a0(%rip), %rsi   # 0x5f6c308
movq 0x5f694a1(%rip), %rdx   # 0x5f6c310
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x8028
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x7295(%rip), %rsi      # 0xa121
leaq 0x728f(%rip), %rdx      # 0xa122
leaq 0x58(%rsp), %rdi
callq 0x87ec
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %r15
movq %r15, %rsi
callq 0x2ab2
movq %rax, 0x10(%rsp)
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x2ec9
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ee0
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21f0
movq (%rsp), %rdi
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rdi)
leaq 0x72ca(%rip), %rdx      # 0xa1c1
movq %rdx, %rsi
callq 0x87ec
leaq 0x28(%rsp), %r14
leaq 0x71d2(%rip), %r15      # 0xa0dd
leaq 0x18(%rsp), %r13
movq 0x10(%rsp), %rdi
callq 0x2a55
testb %al, %al
je 0x2fc5
movb 0xb2d8(%rip), %al       # 0xe200
testb %al, %al
je 0x2fb0
leaq 0xb2c9(%rip), %r12      # 0xe200
movsbl %al, %edi
callq 0x2280
movb %al, (%r12)
movsbl %al, %esi
leaq 0x5f693fb(%rip), %rdi   # 0x5f6c348
xorl %edx, %edx
callq 0x2250
movq %rax, %rbp
movsbq (%r12), %rbx
addq %r15, %rbx
movq %r14, 0x18(%rsp)
movq %rbx, %rdi
callq 0x20d0
leaq (%rax,%rbx), %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x87ec
xorl %edi, %edi
cmpq $-0x1, %rbp
setne %dil
movq %r13, %rsi
callq 0x2920
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x2fa4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21f0
movb 0x1(%r12), %al
incq %r12
testb %al, %al
jne 0x2f37
movq (%rsp), %rdi
leaq 0xb245(%rip), %rsi      # 0xe200
callq 0x2350
jmp 0x2f10
movq 0x10(%rsp), %rdi
callq 0x21d0
movq (%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
jmp 0x301e
jmp 0x2fee
movq %rax, %rbx
movq 0x8(%rsp), %r14
jmp 0x3017
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
movq 0x8(%rsp), %r14
je 0x3017
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x21f0
movq (%rsp), %rax
movq (%rax), %rdi
cmpq %r14, %rdi
je 0x302e
movq (%r14), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/MACFP.cpp
// Function: getOccurrence(int, int)
vector<int> getOccurrence(int i, int j)
{
    vector<int> ret(1, i);
    int ptr = s->sa->rank[i];
    myAssert(s->sa->sa[ptr] == i, "Wrong SA rank");
    int length = j - i + 1;
    while (ptr > 0 && s->sa->height[ptr] >= length) {
        -- ptr;
        ret.push_back(s->sa->sa[ptr]);
    }
    ptr = s->sa->rank[i];
    while (ptr + 1 < s->size() && s->sa->height[ptr + 1] >= length) {
        ++ ptr;
        ret.push_back(s->sa->sa[ptr]);
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl $0x4, %edi
callq 0x21e0
movq %rax, (%rbx)
leaq 0x4(%rax), %rcx
movq %rcx, 0x10(%rbx)
movl %r14d, (%rax)
movq %rcx, 0x8(%rbx)
movq 0x5f692f9(%rip), %rax   # 0x5f6c368
movq 0x20(%rax), %rax
movslq %r14d, %rdx
movq 0x28(%rax), %rcx
movq 0xa0(%rax), %rax
movq %rdx, (%rsp)
movq (%rax,%rdx,8), %r12
movslq %r12d, %rax
movl (%rcx,%rax,4), %r15d
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x7051(%rip), %rsi      # 0xa0f1
leaq 0x7057(%rip), %rdx      # 0xa0fe
leaq 0x8(%rsp), %rdi
callq 0x87ec
xorl %edi, %edi
cmpl %r14d, %r15d
sete %dil
leaq 0x8(%rsp), %rsi
callq 0x2920
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x30db
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
subl %r14d, %ebp
incl %ebp
movslq %ebp, %r14
testl %r12d, %r12d
jle 0x3144
leal -0x1(%r12), %r13d
shlq $0x2, %r13
movq 0x5f69270(%rip), %rax   # 0x5f6c368
movq 0x20(%rax), %rax
movl %r12d, %ecx
movq 0xb8(%rax), %rdx
cmpq %r14, (%rdx,%rcx,8)
jl 0x3144
movq 0x28(%rax), %rdx
addq %r13, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x312b
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x3133
movq %rbx, %rdi
callq 0x8a8e
decl %r12d
leal 0x1(%r12), %eax
addq $-0x4, %r13
cmpl $0x1, %eax
ja 0x30f1
movq 0x5f6921d(%rip), %rax   # 0x5f6c368
movq 0x20(%rax), %rcx
movq 0xa0(%rcx), %rcx
movq (%rsp), %rdx
movl (%rcx,%rdx,8), %ecx
incl %ecx
movslq %ecx, %r15
cmpq %r15, 0x8(%rax)
jbe 0x31bc
leaq (,%r15,4), %r12
movq 0x20(%rax), %rcx
movq 0xb8(%rcx), %rdx
cmpq %r14, (%rdx,%r12,2)
jl 0x31bc
movq 0x28(%rcx), %rdx
addq %r12, %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x31a0
movl (%rdx), %ecx
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x31af
movq %rbx, %rdi
callq 0x8a8e
movq 0x5f691b9(%rip), %rax   # 0x5f6c368
incq %r15
addq $0x4, %r12
cmpq %r15, 0x8(%rax)
ja 0x3170
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x31f1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x31f1
jmp 0x31ee
jmp 0x31ee
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3205
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/MACFP.cpp
// Function: checkSmallPatch(int, int)
vector<PII> checkSmallPatch(int l, int r)
{
    int length = r - l + 1;
    //myAssert(length <= SMALL_PATCH, "only for small patch!");
    vector<PII> ret(1, make_pair(l, r));
    enumerateEdit(l, 0, l, r, 1, s->size(), EDIT_DIS_THRES, ret);
    return makeMaximal(ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movq %r14, %rax
shlq $0x20, %rax
movl %esi, %r15d
orq %rax, %r15
movl $0x8, %edi
callq 0x21e0
movq %rsp, %r10
movq %rax, (%r10)
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%r10)
movq %r15, (%rax)
movq %rcx, 0x8(%r10)
movq 0x5f6785f(%rip), %rax   # 0x5f6c368
movl 0x8(%rax), %r9d
movl 0x96bd(%rip), %eax      # 0xe1d0
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
movl %r14d, %ecx
movl $0x1, %r8d
pushq %r10
pushq %rax
callq 0x45a7
addq $0x10, %rsp
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2815
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4b4f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4b76
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2330
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/suffix_array.h
// Function: SuffixArray::lcp(long long, long long)
long long lcp(long long i, long long j) {
        long long ret = 0;
        if (i == j) {
            ret = n - 1 - i;
        } else {
            long long l = rank[i], r = rank[j];
            if (l > r) {
                swap(l, r);
            }
            l += 1;
            ret = getMin(0, n - 1, l, r);
        }
        return ret;
    }

// Assembly:
cmpq %rdx, %rsi
jne 0x58e7
notq %rsi
addq (%rdi), %rsi
movq %rsi, %rax
retq
movq 0xa0(%rdi), %rax
movq (%rax,%rsi,8), %rsi
movq (%rax,%rdx,8), %r8
cmpq %r8, %rsi
movq %r8, %rcx
cmovlq %rsi, %rcx
cmovgq %rsi, %r8
movq (%rdi), %rdx
incq %rcx
decq %rdx
xorl %esi, %esi
jmp 0x6086
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/suffix_array.h
// Function: SuffixArray::getMin(long long, long long, long long, long long)
long long getMin(long long l, long long r, long long ll, long long rr) {
        if (r < ll || l > rr) {
            return INF_LL;
        }
        if (ll <= l && r <= rr) {
            return segment_tree[ID(l, r)];
        }
        long long mid = l + r >> 1;
        return min(getMin(l, mid, ll, rr), getMin(mid + 1, r, ll, rr));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r13
movq %rdx, %r15
movabsq $0x7fffffffffffffff, %rbx # imm = 0x7FFFFFFFFFFFFFFF
movabsq $0xde0b6b3a7640000, %rax # imm = 0xDE0B6B3A7640000
cmpq %rcx, %rdx
setl %dl
cmpq %r8, %rsi
setg %cl
orb %dl, %cl
jne 0x611f
movq %r8, %r12
movq %rdi, %r14
cmpq %r12, %r15
setg %al
cmpq %r13, %rsi
setl %cl
orb %al, %cl
je 0x6105
leaq (%rsi,%r15), %rbp
sarq %rbp
movq %r14, %rdi
movq %rbp, %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x6086
leaq 0x1(%rbp), %rsi
cmpq %rax, %rbx
cmovgeq %rax, %rbx
cmpq %r12, %rbp
jl 0x60c1
movabsq $0xde0b6b3a7640000, %rax # imm = 0xDE0B6B3A7640000
jmp 0x611f
leaq (%rsi,%r15), %rax
xorl %ecx, %ecx
cmpq %r15, %rsi
setne %cl
orq %rax, %rcx
movq 0xd0(%r14), %rax
movq (%rax,%rcx,8), %rax
cmpq %rax, %rbx
cmovlq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/suffix_array.h
// Function: SuffixArray::sort(int*, int*, int*, long long, int)
void sort(int *r, int *a, int *b, long long n, int m) {
        for (long long i = 0; i < n; ++ i) {
            wv[i] = r[a[i]];
        }
        for (int i = 0; i < m; ++ i) {
            wss[i]=0;
        }
        for (long long i = 0; i < n; ++ i) {
            ++ wss[wv[i]];
        }
        for (int i = 1; i < m; ++ i) {
            wss[i] += wss[i - 1];
        }
        for (long long i = n - 1; i >= 0; -- i) {
            b[-- wss[wv[i]]] = a[i];
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %r12
testq %r8, %r8
jle 0x770e
movq 0x70(%r12), %rax
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
movl (%rsi,%rdx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
cmpq %rcx, %rbx
jne 0x76fc
movl %ebp, %r13d
testl %ebp, %ebp
jle 0x772c
movq 0x88(%r12), %rdi
leaq (,%r13,4), %rdx
xorl %esi, %esi
callq 0x2110
testq %rbx, %rbx
jle 0x774f
movq 0x70(%r12), %rax
movq 0x88(%r12), %rcx
xorl %edx, %edx
movslq (%rax,%rdx,4), %rsi
incl (%rcx,%rsi,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x7740
cmpl $0x2, %ebp
jl 0x7771
movq 0x88(%r12), %rax
movl (%rax), %ecx
movl $0x1, %edx
addl (%rax,%rdx,4), %ecx
movl %ecx, (%rax,%rdx,4)
incq %rdx
cmpq %rdx, %r13
jne 0x7763
testq %rbx, %rbx
jle 0x77aa
movq 0x70(%r12), %rax
movq 0x88(%r12), %rcx
incq %rbx
movl -0x8(%r15,%rbx,4), %edx
movslq -0x8(%rax,%rbx,4), %rsi
movslq (%rcx,%rsi,4), %rdi
leaq -0x1(%rdi), %r8
movl %r8d, (%rcx,%rsi,4)
movl %edx, -0x4(%r14,%rdi,4)
decq %rbx
cmpq $0x1, %rbx
ja 0x7786
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/shangjingbo1226[P]MACFP/src/methods/../utils/suffix_array.h
// Function: SuffixArray::c12(int, int*, long long, long long)
int c12(int k, int *r, long long a, long long b) {
        if (k == 2) {
            return r[a] < r[b] || r[a] == r[b] && c12(1, r, a + 1, b + 1);
        } else {
            return r[a] < r[b] || r[a] == r[b] && wv[a + 1] < wv[b + 1];
        }
    }

// Assembly:
movl (%rdx,%rcx,4), %r9d
movl (%rdx,%r8,4), %r10d
movb $0x1, %al
cmpl $0x2, %esi
jne 0x77ec
cmpl %r10d, %r9d
jl 0x7807
jne 0x7805
pushq %rax
incq %rcx
incq %r8
movl $0x1, %esi
callq 0x77ba
testl %eax, %eax
setne %al
addq $0x8, %rsp
jmp 0x7807
cmpl %r10d, %r9d
jl 0x7807
jne 0x7805
movq 0x70(%rdi), %rax
movl 0x4(%rax,%rcx,4), %ecx
cmpl 0x4(%rax,%r8,4), %ecx
setl %al
jmp 0x7807
xorl %eax, %eax
movzbl %al, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/akshithasriraman[P]Accelerometer/run.cc
// Function: ExecuteShellCommand[abi:cxx11](char const*)
std::string ExecuteShellCommand(const char* cmd)
{
    char buffer[128];
    std::string result = "";
    std::shared_ptr<FILE> pipe(popen(cmd, "r"), pclose);
    if (!pipe) throw std::runtime_error("popen() failed!");
    while (!feof(pipe.get())) {
        if (fgets(buffer, 128, pipe.get()) != NULL)
            result += buffer;
    }
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x12aa(%rip), %rdx      # 0x3588
movq %rdx, %rsi
callq 0x27e0
leaq 0xd17(%rip), %rsi       # 0x3004
movq %r14, %rdi
callq 0x2040
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movq 0x2ccb(%rip), %rdx      # 0x4fd0
movq %rax, %rsi
callq 0x2876
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2373
callq 0x2120
testl %eax, %eax
jne 0x2352
leaq 0x10(%rsp), %r14
movq (%rsp), %rdx
movq %r14, %rdi
movl $0x80, %esi
callq 0x2130
testq %rax, %rax
je 0x2345
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2180
movq (%rsp), %rdi
callq 0x2120
testl %eax, %eax
je 0x2324
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2361
callq 0x2766
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x2070
movq %rax, %r15
leaq 0xc7f(%rip), %rsi       # 0x3006
movq %rax, %rdi
callq 0x2050
movq 0x2c5a(%rip), %rsi      # 0x4ff0
movq 0x2c1b(%rip), %rdx      # 0x4fb8
movq %r15, %rdi
callq 0x2150
jmp 0x23b9
movq %rax, %r14
movq %r15, %rdi
callq 0x2090
jmp 0x23bc
movq %rax, %r14
jmp 0x23cb
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x23cb
callq 0x2766
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x23df
movq (%r12), %rsi
incq %rsi
callq 0x20d0
movq %r14, %rdi
callq 0x2160
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: add_message(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void add_message(std::string msg)
{
	//if(msg.length() > viewport_width) return 1;
	rlmessages.push_back(msg);
	std::string word_so_far = "";
	for(unsigned int i=0; i<msg.length();i++)
	{
		if(msg[i] == ' ' || msg[i] == '\t' || msg[i] == '\n')
		{
			rlmessage_words.push_back(word_so_far);
			word_so_far = "";
		}
		else
		{
			word_so_far = word_so_far + msg[i];
		}
	}
	rlmessage_words.push_back(word_so_far);
	//return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x68312(%rip), %rdi     # 0x6e238
movq %rbx, %rsi
callq 0x1576e
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x14225(%rip), %rdx     # 0x1a163
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x15b1a
cmpq $0x0, 0x8(%rbx)
je 0x6011
movl $0x1, %ebp
xorl %eax, %eax
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %r15
movabsq $0x100000600, %r14      # imm = 0x100000600
movq (%rbx), %rcx
movzbl (%rcx,%rax), %r12d
cmpq $0x20, %r12
ja 0x5fb9
btq %r12, %r14
jae 0x5fb9
leaq 0x682c4(%rip), %rdi     # 0x6e250
movq %r15, %rsi
callq 0x1576e
movq 0x10(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
leaq 0x141be(%rip), %rcx     # 0x1a163
xorl %r8d, %r8d
callq 0x5380
movl %ebp, %eax
incl %ebp
cmpq %rax, 0x8(%rbx)
ja 0x5f71
jmp 0x6011
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x15f56
movq 0x30(%rsp), %rsi
movsbl %r12b, %r8d
movl $0x1, %ecx
movq %r13, %rdi
xorl %edx, %edx
callq 0x53f0
movq %r15, %rdi
movq %r13, %rsi
callq 0x5300
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5fad
callq 0x5230
jmp 0x5fad
leaq 0x68238(%rip), %rdi     # 0x6e250
leaq 0x8(%rsp), %rsi
callq 0x1576e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6036
callq 0x5230
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6062
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6065
callq 0x5230
jmp 0x6065
jmp 0x6062
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6079
callq 0x5230
movq %rbx, %rdi
callq 0x53d0
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: draw_text_wodge(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void draw_text_wodge(std::string s)
{
	int lines = (int)ceil(((float)s.length())/viewport_width);
	attron(COLOR_PAIR(COLOR_WHITE));
	mvaddstr(lines-1,0,std::string(viewport_width,' ').c_str());
	for(int i=0;i<lines;i++)
	{
		mvaddstr(i,0,(s.substr(viewport_width*i,viewport_width).c_str()));
	}
	//getch();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
js 0x72e3
cvtsi2ss %rax, %xmm0
jmp 0x72f8
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
divss 0x10d08(%rip), %xmm0    # 0x18008
callq 0x5190
cvttss2si %xmm0, %r15d
movq 0x19cc7(%rip), %rbp     # 0x20fd8
movq (%rbp), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %edx, %edx
callq 0x5150
movq (%rbp), %rdi
leal -0x1(%r15), %esi
xorl %edx, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0x7378
movq (%rbp), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %rdi
movl $0x31, %esi
movl $0x20, %edx
callq 0x52c0
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7378
callq 0x5230
testl %r15d, %r15d
jle 0x73e8
movl %r15d, %eax
imulq $0x31, %rax, %r15
xorl %r14d, %r14d
xorl %r12d, %r12d
movq (%rbp), %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x5280
cmpl $-0x1, %eax
je 0x73dc
movq (%rbp), %r13
movl $0x31, %ecx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x5270
movq 0x8(%rsp), %rsi
movq %r13, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x50d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x73dc
callq 0x5230
addq $0x31, %r12
incl %r14d
cmpq %r12, %r15
jne 0x738a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x741d
jmp 0x7422
movq %rax, %rbx
jmp 0x7422
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7422
callq 0x5230
movq %rbx, %rdi
callq 0x53d0
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: draw_last_msg()
void draw_last_msg()
{
	//attron(COLOR_PAIR(COLOR_WHITE));
	clear_area(0,0,viewport_width,message_area_height+1);
	pretty_print_message_words();
	/*std::string s = "";
	for(unsigned int i = last_message_seen; i < rlmessages.size(); i++)
	{
		s += rlmessages[i]; s += " ";
	}
	pretty_print(s);
	last_message_seen = std::max(last_message_seen,(int)rlmessages.size()-2);*/
	last_word_seen  = (int)rlmessage_words.size()-1;
	//mvaddstr(0,0,padmsg(rlmessages.back()).c_str());
}

// Assembly:
pushq %rax
xorl %edi, %edi
xorl %esi, %esi
movl $0x31, %edx
movl $0x7, %ecx
callq 0x742a
callq 0x6081
movq 0x66d61(%rip), %rax     # 0x6e258
subq 0x66d52(%rip), %rax     # 0x6e250
shrq $0x5, %rax
decl %eax
movl %eax, 0x66d62(%rip)     # 0x6e26c
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: random_start_cluster[abi:cxx11]()
std::string random_start_cluster()
{
	switch (rand()%10)
	{
	case 0: case 1: case 2: case 3:
		return clusters_1[rand()%vclusters_1.size()];
	case 4: case 5: case 6:
		return start_clusters_2[rand()%vstart_clusters_2.size()];
	default:
		return start_clusters_3[rand()%vstart_clusters_3.size()];
	}
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x5070
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cmpl $0x4, %eax
jae 0x756b
callq 0x5070
movq 0x66ef1(%rip), %rcx     # 0x6e438
subq 0x66ee2(%rip), %rcx     # 0x6e430
cltq
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x18e30(%rip), %rax     # 0x20390
movq (%rax,%rdx,8), %rsi
leaq 0xf(%rsp), %rdx
jmp 0x75d1
addl $-0x4, %eax
cmpl $0x3, %eax
jae 0x75a3
callq 0x5070
movq 0x66ed1(%rip), %rcx     # 0x6e450
subq 0x66ec2(%rip), %rcx     # 0x6e448
cltq
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x18e98(%rip), %rax     # 0x20430
movq (%rax,%rdx,8), %rsi
leaq 0xe(%rsp), %rdx
jmp 0x75d1
callq 0x5070
movq 0x66eb9(%rip), %rcx     # 0x6e468
subq 0x66eaa(%rip), %rcx     # 0x6e460
cltq
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x19348(%rip), %rax     # 0x20910
movq (%rax,%rdx,8), %rsi
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x5110
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: random_vowel[abi:cxx11]()
std::string random_vowel()
{
	switch (rand()%5)
	{
	case 0: case 1: case 2:
		return pure_vowels[rand()%vpure_vowels.size()];
	default:
		return diphthongs[rand()%vdiphthongs.size()];
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5070
movslq %eax, %r14
imulq $0x66666667, %r14, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x21, %rax
addl %ecx, %eax
leal (%rax,%rax,4), %eax
subl %eax, %r14d
callq 0x5070
cltq
cmpl $0x2, %r14d
ja 0x7641
movq 0x66e61(%rip), %rcx     # 0x6e480
subq 0x66e52(%rip), %rcx     # 0x6e478
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x1932a(%rip), %rax     # 0x20960
movq (%rax,%rdx,8), %rsi
leaq 0x7(%rsp), %rdx
jmp 0x7668
movq 0x66e50(%rip), %rcx     # 0x6e498
subq 0x66e41(%rip), %rcx     # 0x6e490
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x19341(%rip), %rax     # 0x209a0
movq (%rax,%rdx,8), %rsi
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x5110
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: random_end_cluster[abi:cxx11]()
std::string random_end_cluster()
{
	switch (rand()%7)
	{
	case 0: case 1: case 2: case 3:
		return clusters_1[rand()%vclusters_1.size()];
	default://case 4: case 5: case 6:
		return end_clusters_2[rand()%vend_clusters_2.size()];
	//default:
	//	return start_clusters_3[rand()%start_clusters_3->length()];
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5070
cltq
imulq $-0x6db6db6d, %rax, %r14 # imm = 0x92492493
shrq $0x20, %r14
addl %eax, %r14d
movl %r14d, %ecx
shrl $0x1f, %ecx
sarl $0x2, %r14d
addl %ecx, %r14d
leal (,%r14,8), %ecx
subl %ecx, %r14d
addl %eax, %r14d
callq 0x5070
cltq
cmpl $0x3, %r14d
ja 0x76e8
movq 0x66d72(%rip), %rcx     # 0x6e438
subq 0x66d63(%rip), %rcx     # 0x6e430
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x18cb3(%rip), %rax     # 0x20390
movq (%rax,%rdx,8), %rsi
leaq 0x7(%rsp), %rdx
jmp 0x770f
movq 0x66dc1(%rip), %rcx     # 0x6e4b0
subq 0x66db2(%rip), %rcx     # 0x6e4a8
sarq $0x5, %rcx
xorl %edx, %edx
divq %rcx
leaq 0x1937a(%rip), %rax     # 0x20a80
movq (%rax,%rdx,8), %rsi
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x5110
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: random_occupiable_square_away_from_player()
std::pair<int,int> random_occupiable_square_away_from_player()
{
	int target_x = rand()%MAP_SIZE; int target_y = rand()%MAP_SIZE;
	while((map_terrain[target_x][target_y] != DIRT && map_terrain[target_x][target_y] != FLOOR) || d22(target_x,target_y,p_ptr->x,p_ptr->y) <= (vis_range+2)*(vis_range+2))
	{
		target_x = rand()%MAP_SIZE; target_y = rand()%MAP_SIZE;
	}
	return std::make_pair(target_x,target_y);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x162d6(%rip), %r14     # 0x21340
callq 0x5070
movl %eax, %ebx
callq 0x5070
movslq %ebx, %rcx
imulq $0x1b4e81b5, %rcx, %rdx # imm = 0x1B4E81B5
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x24, %rdx
addl %esi, %edx
imull $0x96, %edx, %edx
subl %edx, %ecx
movslq %eax, %rdx
imulq $0x1b4e81b5, %rdx, %rax # imm = 0x1B4E81B5
movq %rax, %rsi
shrq $0x3f, %rsi
sarq $0x24, %rax
addl %esi, %eax
imull $0x96, %eax, %eax
subl %eax, %edx
movslq %ecx, %rax
movslq %edx, %rsi
imulq $0x258, %rax, %rax      # imm = 0x258
addq %r14, %rax
movl (%rax,%rsi,4), %eax
cmpl $0x3, %eax
je 0xb0d0
testl %eax, %eax
jne 0xb06a
movq 0x63409(%rip), %rax     # 0x6e4e0
movl %ecx, %esi
subl 0x20(%rax), %esi
movl %edx, %edi
subl 0x24(%rax), %edi
imull %esi, %esi
imull %edi, %edi
addl %esi, %edi
cmpl $0x65, %edi
jb 0xb06a
shlq $0x20, %rdx
movl %ecx, %eax
orq %rdx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: count_inv_devices(int)
int count_inv_devices(int dev_type)
{
	int ret = 0;
	for(int i=0; i<DEVICE_CONFIGURATIONS;i++)
	{
		ret += dev_inv[dev_type][i].size();
	}
	return ret;
}

// Assembly:
movslq %edi, %rax
movq 0xbaf7e(%rip), %rcx     # 0xc6440
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rcx
xorl %eax, %eax
movl $0x8, %edx
movq (%rcx,%rdx), %rsi
subq -0x8(%rcx,%rdx), %rsi
shrq $0x3, %rsi
addl %esi, %eax
addq $0x18, %rdx
cmpq $0x50, %rdx
jne 0xb4d1
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: total_inv_devices()
int total_inv_devices()
{
	int ret = 0;
	for(int i=0;i<DEVICE_TYPES;i++)
		ret += count_inv_devices(i);
	return ret;
}

// Assembly:
xorl %ecx, %ecx
movq 0xbaf4c(%rip), %rdx     # 0xc6440
xorl %eax, %eax
leaq (%rcx,%rcx,2), %rsi
movq (%rdx,%rsi,8), %rsi
movl $0x8, %r8d
xorl %edi, %edi
movq (%rsi,%r8), %r9
subq -0x8(%rsi,%r8), %r9
shrq $0x3, %r9
addl %r9d, %edi
addq $0x18, %r8
cmpq $0x50, %r8
jne 0xb506
addl %edi, %eax
incq %rcx
cmpq $0x6, %rcx
jne 0xb4f6
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: nearby_home_for_item(int, int)
std::pair<int,int> nearby_home_for_item(int x,int y)
{
	if(map_items[x][y] == NULL && !(map_terrain[x][y]==WALL))
	{
		return std::make_pair(x,y);
	}
	for(int d=0;d<8;d++)
	{
		std::pair<int,int> dir = directions[d];
		int xx = x+dir.first; int yy =y+dir.second;
		if(map_items[xx][yy] == NULL && !(map_terrain[xx][yy]==WALL))
		{
			return std::make_pair(xx,yy);
		}
	}
	return std::make_pair(-1,-1);

}

// Assembly:
movslq %edi, %rax
movslq %esi, %rcx
imulq $0x4b0, %rax, %r8       # imm = 0x4B0
leaq 0x8ef80(%rip), %rdx     # 0x9a4c0
addq %rdx, %r8
cmpq $0x0, (%r8,%rcx,8)
leaq 0x15df1(%rip), %r8      # 0x21340
jne 0xb562
imulq $0x258, %rax, %r9       # imm = 0x258
addq %r8, %r9
cmpl $0x4, (%r9,%rcx,4)
jne 0xb5b8
xorl %esi, %esi
leaq 0xcfa5(%rip), %rdi      # 0x18510
movslq (%rdi,%rsi,8), %r10
movslq 0x4(%rdi,%rsi,8), %r9
addq %rax, %r10
addq %rcx, %r9
imulq $0x4b0, %r10, %r11      # imm = 0x4B0
addq %rdx, %r11
cmpq $0x0, (%r11,%r9,8)
jne 0xb59c
imulq $0x258, %r10, %r11      # imm = 0x258
addq %r8, %r11
cmpl $0x4, (%r11,%r9,4)
jne 0xb5ad
incq %rsi
cmpq $0x8, %rsi
jne 0xb56b
movq $-0x1, %rax
retq
shlq $0x20, %r9
movl %r10d, %eax
orq %r9, %rax
retq
shlq $0x20, %rsi
movl %edi, %eax
orq %rsi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: item_to_location(item*, int, int)
void item_to_location(item* a, int x, int y)
{
	if(a->player_has)
	{
		inv_remove(a);
		a->player_has = false;
	}
	std::pair<int,int> place_here = nearby_home_for_item(x,y);
	if(place_here != std::make_pair(-1,-1))
	{
		map_items[place_here.first][place_here.second] = a;
		a->x = place_here.first; a->y = place_here.second;
	}
	else
	{
		add_message("Abnormal item placement! Maybe it's in a wall, maybe it just squashed another item.");
		//draw_last_msg();
		map_items[x][y] = a;
		a->x = x; a->y = y;
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpb $0x1, 0x98(%rdi)
jne 0xb63a
movslq 0x70(%rbx), %rax
movq 0xbae2c(%rip), %rcx     # 0xc6440
leaq (%rax,%rax,2), %rax
movslq 0x8c(%rbx), %rdx
leaq (%rdx,%rdx,2), %rdi
shlq $0x3, %rdi
addq (%rcx,%rax,8), %rdi
movq %rbx, %rsi
callq 0x15a0e
movb $0x0, 0x98(%rbx)
movl %r14d, %edi
movl %ebp, %esi
callq 0xb52c
movq %rax, %rcx
shrq $0x20, %rcx
cmpl $-0x1, %eax
sete %dl
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpq %rsi, %rcx
sete %sil
testb %sil, %dl
jne 0xb688
movslq %eax, %rdx
movq %rax, %rsi
sarq $0x20, %rsi
imulq $0x4b0, %rdx, %rdx      # imm = 0x4B0
leaq 0x8ee46(%rip), %rdi     # 0x9a4c0
addq %rdx, %rdi
leaq (%rdi,%rsi,8), %rdx
movl %eax, %r14d
movl %ecx, %ebp
jmp 0xb6dc
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xd53d(%rip), %rsi      # 0x18bd6
leaq 0xd589(%rip), %rdx      # 0x18c29
movq %rsp, %r15
movq %r15, %rdi
callq 0x15b1a
movq %r15, %rdi
callq 0x5f0e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xb6c1
callq 0x5230
movslq %r14d, %rax
movslq %ebp, %rcx
imulq $0x4b0, %rax, %rax      # imm = 0x4B0
leaq 0x8edeb(%rip), %rdx     # 0x9a4c0
addq %rax, %rdx
leaq (%rdx,%rcx,8), %rdx
movq %rbx, (%rdx)
movl %r14d, 0x90(%rbx)
movl %ebp, 0x94(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xb70a
callq 0x5230
movq %rbx, %rdi
callq 0x53d0
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: device_to_inventory(item*)
void device_to_inventory(item* a)
{
	if(!a->player_has)
	{
		map_items[a->x][a->y] = NULL;
		a->player_has = true;
		dev_inv[a->device_type][a->configuration].push_back(a);
	}

}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpb $0x0, 0x98(%rdi)
jne 0xb78f
movslq 0x90(%rdi), %rax
movslq 0x94(%rdi), %rcx
imulq $0x4b0, %rax, %rax      # imm = 0x4B0
leaq 0x8ed84(%rip), %rdx     # 0x9a4c0
addq %rax, %rdx
movq $0x0, (%rdx,%rcx,8)
movb $0x1, 0x98(%rdi)
movslq 0x70(%rdi), %rax
movq 0xbace7(%rip), %rcx     # 0xc6440
leaq (%rax,%rax,2), %rax
movslq 0x8c(%rdi), %rdx
movq (%rcx,%rax,8), %rax
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xb784
movq %rdi, (%rsi)
addq $0x8, 0x8(%rax)
jmp 0xb78f
movq %rsp, %rdx
movq %rax, %rdi
callq 0x1658c
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: add_junk(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char, int, int, int)
void add_junk(std::string name, std::string description, char ch, int colour, int x, int y)
{
	item* it = new item();
	it->projection = NULL;
	it->colour = colour;
	it->ch = ch;
	it->device_type = NOT_DEVICE;
	it->name = name;
	it->description = description;
	it->base_description = "";
	it->player_has = false;
	items.push_back(it);
	item_to_location(it,x,y);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0xc(%rsp)
movl %r8d, 0x8(%rsp)
movl %ecx, %ebx
movl %edx, %r13d
movq %rsi, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movl $0xa0, %edi
callq 0x5250
movq %rax, %r14
xorl %r12d, %r12d
movl $0xa0, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x5180
leaq 0x10(%r14), %rdi
leaq 0x20(%r14), %rax
movq %rax, 0x10(%r14)
movb %r12b, 0x20(%r14)
leaq 0x30(%r14), %rbp
leaq 0x40(%r14), %rax
movq %rax, 0x30(%r14)
movb %r12b, 0x40(%r14)
leaq 0x50(%r14), %r15
leaq 0x60(%r14), %rax
movq %rax, 0x50(%r14)
movb %r12b, 0x60(%r14)
movq %r14, 0x20(%rsp)
movl %ebx, 0x8(%r14)
movb %r13b, 0xc(%r14)
movl $0xffffffff, 0x70(%r14) # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rsi
callq 0x5170
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
callq 0x5170
movq 0x58(%r14), %rdx
leaq 0xe925(%rip), %rcx      # 0x1a163
movq %r15, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x5380
movb %r12b, 0x98(%r14)
movq 0xbaba7(%rip), %rsi     # 0xc6400
cmpq 0xbaba8(%rip), %rsi     # 0xc6408
je 0xb86f
movq %r14, (%rsi)
addq $0x8, 0xbab93(%rip)     # 0xc6400
jmp 0xb886
leaq 0xbab82(%rip), %rdi     # 0xc63f8
leaq 0x20(%rsp), %rbx
movq %rbx, %rdx
callq 0x1658c
movq (%rbx), %r14
movq %r14, %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0xb5ec
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: add_actor(species*, bool, int, int, bool)
actor* add_actor(species* sp, bool p, int xx, int yy,bool hologram=false)
{
	actor* a = new actor();
	a->is_hologram = hologram;
	a->sspecies = sp;
	a->is_player = p;
	a->dead = false;
	a->running = false;
	a->stamina = sp->stamina;
	a->energy = 100*(int)(p);

	a->x = xx;
	a->y = yy;
	a->certain = false;
	a->ai_x = xx;
	a->ai_y = yy;
	a->most_noticeable_sound = 0.0f;
	a->runaway_x = -500;
	a->runaway_y = -500;
	actors.push_back(a);
	if(!hologram)
	{
	map_occupants[xx][yy] = a;
	}
	a->health = (sp->health_range? rand()%(sp->health_range):0)+sp->min_health;
	a->sound_threshold = a->sspecies->hearing_thres;
	if(hologram)
	{
		holograms.push_back(a);
	}
	return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r14
movl $0x48, %edi
callq 0x5250
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
movq $0x0, 0x40(%rax)
movq %rax, 0x8(%rsp)
movb %bl, 0x9(%rax)
movq %r14, (%rax)
movb %r12b, 0x8(%rax)
movb $0x0, 0x14(%rax)
movl 0x34(%r14), %ecx
movl %ecx, 0x18(%rax)
testl %r12d, %r12d
movl $0x64, %ecx
cmovel %r12d, %ecx
movl %ecx, 0x10(%rax)
movl %r15d, 0x20(%rax)
movl %ebp, 0x24(%rax)
movl %r15d, 0x28(%rax)
movl %ebp, 0x2c(%rax)
movabsq $-0x1f3000001f4, %rcx   # imm = 0xFFFFFE0CFFFFFE0C
movq %rcx, 0x30(%rax)
movq 0xbaab9(%rip), %rsi     # 0xc63e8
cmpq 0xbaaba(%rip), %rsi     # 0xc63f0
je 0xb945
movq %rax, (%rsi)
addq $0x8, 0xbaaa5(%rip)     # 0xc63e8
jmp 0xb956
leaq 0xbaa94(%rip), %rdi     # 0xc63e0
leaq 0x8(%rsp), %rdx
callq 0x166c2
testb %bl, %bl
jne 0xb97a
movq 0x8(%rsp), %rax
movslq %r15d, %rcx
movslq %ebp, %rdx
imulq $0x4b0, %rcx, %rcx      # imm = 0x4B0
leaq 0x62b7d(%rip), %rsi     # 0x6e4f0
addq %rcx, %rsi
movq %rax, (%rsi,%rdx,8)
cmpl $0x0, 0x8(%r14)
je 0xb98d
callq 0x5070
cltd
idivl 0x8(%r14)
jmp 0xb98f
xorl %edx, %edx
addl 0x4(%r14), %edx
movq 0x8(%rsp), %rax
movl %edx, 0xc(%rax)
movq (%rax), %rcx
movss 0x18(%rcx), %xmm0
movss %xmm0, 0x3c(%rax)
testb %bl, %bl
je 0xb9da
movq 0xbaa65(%rip), %rsi     # 0xc6418
cmpq 0xbaa66(%rip), %rsi     # 0xc6420
je 0xb9c9
movq %rax, (%rsi)
addq $0x8, 0xbaa51(%rip)     # 0xc6418
jmp 0xb9da
leaq 0xbaa40(%rip), %rdi     # 0xc6410
leaq 0x8(%rsp), %rdx
callq 0x166c2
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: player_in_ship()
bool player_in_ship()
{
	bool player_present = false;
	for(int i=ship_x-1;i<ship_x +2;i++)
	{
		for(int j=ship_y-1;j<ship_y+2;j++)
		{
			actor* a = map_occupants[i][j];
			if(a != NULL)
			{
				if(a->is_player)
				{
					player_present = true;
				}
			}
		}

	}
	actor* a = map_occupants[ship_x-2][ship_y];
	if(a != NULL)
	{
		if(a->is_player)
		{
			player_present = true;
		}
	}
	return player_present;
}

// Assembly:
pushq %rbx
movslq 0x61db9(%rip), %rcx     # 0x6e1fc
leal -0x1(%rcx), %eax
movslq 0x61db3(%rip), %rdx     # 0x6e200
leal -0x1(%rdx), %esi
movslq %esi, %rdi
movslq %eax, %r9
imulq $0x4b0, %r9, %rax       # imm = 0x4B0
leaq (%rax,%rdi,8), %r8
decq %rdi
leaq 0x62085(%rip), %rsi     # 0x6e4f0
addq %rsi, %r8
xorl %eax, %eax
movq %r8, %r10
movq %rdi, %r11
movq (%r10), %rbx
testq %rbx, %rbx
je 0xc481
orb 0x8(%rbx), %al
incq %r11
addq $0x8, %r10
cmpq %rdx, %r11
jle 0xc476
leaq 0x1(%r9), %r10
addq $0x4b0, %r8             # imm = 0x4B0
cmpq %rcx, %r9
movq %r10, %r9
jle 0xc470
addl $-0x2, %ecx
movslq %ecx, %rcx
imulq $0x4b0, %rcx, %rcx      # imm = 0x4B0
addq %rcx, %rsi
movq (%rsi,%rdx,8), %rcx
testq %rcx, %rcx
je 0xc4bc
orb 0x8(%rcx), %al
andb $0x1, %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: win_condition()
bool win_condition()
{
	if (!transmitter_destroyed) return false;
	bool player_present = false;
	bool monster_present = false;
	for(int i=ship_x-1;i<ship_x +2;i++)
	{
		for(int j=ship_y-1;j<ship_y+2;j++)
		{
			actor* a = map_occupants[i][j];
			if(a != NULL)
			{
				if(a->is_player)
				{
					player_present = true;
				}
				else return false;
			}
		}

	}
	actor* a = map_occupants[ship_x-2][ship_y];
	if(a != NULL)
	{
		if(a->is_player)
		{
			player_present = true;
		}
		else return false;
	}
	if(map_occupants[ship_x+2][ship_y] != NULL)
	{return false;}
	return player_present;
}

// Assembly:
cmpb $0x1, 0x14dad(%rip)     # 0x21310
jne 0xc61b
pushq %r15
pushq %r14
pushq %rbx
movslq 0x61c87(%rip), %rsi     # 0x6e1fc
leal -0x1(%rsi), %edx
leal 0x2(%rsi), %ecx
movslq 0x61c7e(%rip), %rax     # 0x6e200
leal -0x1(%rax), %edi
movslq %edi, %r8
movslq %edx, %r9
cmpl %ecx, %esi
movl %ecx, %r10d
cmovgl %esi, %r10d
imulq $0x4b0, %r9, %rdx       # imm = 0x4B0
leaq (%rdx,%r8,8), %r11
decq %r8
leaq 0x61f47(%rip), %rdx     # 0x6e4f0
addq %rdx, %r11
xorl %edi, %edi
movq %r11, %rbx
movq %r8, %r14
movq (%rbx), %r15
testq %r15, %r15
je 0xc5c6
movb $0x1, %dil
cmpb $0x1, 0x8(%r15)
jne 0xc61e
incq %r14
addq $0x8, %rbx
cmpq %rax, %r14
jle 0xc5b4
incq %r9
addq $0x4b0, %r11            # imm = 0x4B0
cmpl %r9d, %r10d
jne 0xc5ae
imulq $0x4b0, %rsi, %rsi      # imm = 0x4B0
addq %rdx, %rsi
movq -0x960(%rsi,%rax,8), %rsi
testq %rsi, %rsi
je 0xc601
movb $0x1, %dil
cmpb $0x1, 0x8(%rsi)
jne 0xc61e
movslq %ecx, %rcx
imulq $0x4b0, %rcx, %rcx      # imm = 0x4B0
addq %rcx, %rdx
cmpq $0x0, (%rdx,%rax,8)
sete %al
andb %dil, %al
jmp 0xc620
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: destroy_item(item*)
void destroy_item(item* a)
{
	if (a->device_type != NOT_DEVICE)
	{
		if(a->player_has)
		{
			inv_remove(a);
		}
		else
		{
			map_items[a->x][a->y] = NULL;
		}
		if (a->configuration == ON_REMOTE)
		{
			rm_devices[a->wavelength] = NULL;
		}
		if (a->configuration == ON_TIMER)
		{
			kill_velement(timer_devices,a);
		}
		if(a->device_type == LOW_EXPLOSIVE)
		{
			explosion ex;
			ex.x = a->x;
			ex.y = a->y;
			ex.radius = 2;
			ex.centre_damage = 20;
			explosions_this_turn.push_back(ex);
		}
		if(a->device_type == HIGH_EXPLOSIVE)
		{
			explosion ex;
			ex.x = a->x;
			ex.y = a->y;
			ex.radius = 4;
			ex.centre_damage = 60;
			explosions_this_turn.push_back(ex);
		}
	}
	kill_velement(items,a);

}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movslq 0x70(%rdi), %rax
cmpq $-0x1, %rax
je 0xdb42
cmpb $0x1, 0x98(%rbx)
jne 0xda44
movq 0xb8a1d(%rip), %rcx     # 0xc6440
leaq (%rax,%rax,2), %rax
movslq 0x8c(%rbx), %rdx
leaq (%rdx,%rdx,2), %rdi
shlq $0x3, %rdi
addq (%rcx,%rax,8), %rdi
movq %rbx, %rsi
callq 0x15a0e
jmp 0xda6b
movslq 0x90(%rbx), %rax
movslq 0x94(%rbx), %rcx
imulq $0x4b0, %rax, %rax      # imm = 0x4B0
leaq 0x8ca60(%rip), %rdx     # 0x9a4c0
addq %rax, %rdx
movq $0x0, (%rdx,%rcx,8)
movl 0x8c(%rbx), %eax
cmpl $0x1, %eax
je 0xda90
cmpl $0x2, %eax
jne 0xda9f
movslq 0x74(%rbx), %rax
leaq 0x8c9da(%rip), %rcx     # 0x9a460
movq $0x0, (%rcx,%rax,8)
jmp 0xda9f
leaq 0x8c9f1(%rip), %rdi     # 0x9a488
movq %rbx, %rsi
callq 0x15a0e
movl 0x70(%rbx), %eax
testl %eax, %eax
jne 0xdaf3
movq 0x90(%rbx), %rax
movq %rax, (%rsp)
movabsq $0x1400000002, %rax     # imm = 0x1400000002
movq %rax, 0x8(%rsp)
movq 0x8c951(%rip), %rsi     # 0x9a418
cmpq 0x8c952(%rip), %rsi     # 0x9a420
je 0xdae1
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8c939(%rip)    # 0x9a418
jmp 0xdaf0
leaq 0x8c928(%rip), %rdi     # 0x9a410
movq %rsp, %rdx
callq 0x16b2c
movl 0x70(%rbx), %eax
cmpl $0x1, %eax
jne 0xdb42
movq 0x90(%rbx), %rax
movq %rax, (%rsp)
movabsq $0x3c00000004, %rax     # imm = 0x3C00000004
movq %rax, 0x8(%rsp)
movq 0x8c8ff(%rip), %rsi     # 0x9a418
cmpq 0x8c900(%rip), %rsi     # 0x9a420
je 0xdb33
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8c8e7(%rip)    # 0x9a418
jmp 0xdb42
leaq 0x8c8d6(%rip), %rdi     # 0x9a410
movq %rsp, %rdx
callq 0x16b2c
leaq 0xb88af(%rip), %rdi     # 0xc63f8
movq %rbx, %rsi
callq 0x15a0e
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: walk_description[abi:cxx11](species*)
std::string walk_description(species* sp)
{
	if(!sp->walk_known) return "    ";
	if(sp->walk_energy > human_sp->run_energy) return "vfst";
	else if(sp->walk_energy > human_sp->walk_energy) return "fast";
	else if(sp->walk_energy < human_sp->walk_energy) return "slow";
	return "avrg";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x47(%rsi)
je 0xe1e9
movl 0x2c(%rsi), %eax
movq 0x6025b(%rip), %rcx     # 0x6e428
cmpl 0x30(%rcx), %eax
jle 0xe20b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xadc2(%rip), %rsi      # 0x18fa2
leaq 0xadbf(%rip), %rdx      # 0x18fa6
jmp 0xe1fe
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xbf68(%rip), %rsi      # 0x1a15f
leaq 0xbf65(%rip), %rdx      # 0x1a163
movq %rbx, %rdi
callq 0x15b1a
movq %rbx, %rax
popq %rbx
retq
movl 0x2c(%rcx), %ecx
cmpl %ecx, %eax
jle 0xe229
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xad87(%rip), %rsi      # 0x18fa7
leaq 0xad84(%rip), %rdx      # 0x18fab
jmp 0xe1fe
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
cmpl %ecx, %eax
jge 0xe244
leaq 0xc838(%rip), %rsi      # 0x1aa73
leaq 0xc835(%rip), %rdx      # 0x1aa77
jmp 0xe1fe
leaq 0xad7d(%rip), %rsi      # 0x18fc8
leaq 0xad7a(%rip), %rdx      # 0x18fcc
jmp 0xe1fe
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: run_description[abi:cxx11](species*)
std::string run_description(species* sp)
{
	if(!sp->run_known) return "    ";
	if(sp->run_energy > human_sp->run_energy) return "fast";
	else if(sp->run_energy < human_sp->walk_energy) return "vslw";
	else if(sp->run_energy < human_sp->run_energy) return "slow";
	return "avrg";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x48(%rsi)
je 0xe286
movl 0x30(%rsi), %eax
movq 0x601c0(%rip), %rdx     # 0x6e428
movl 0x30(%rdx), %ecx
cmpl %ecx, %eax
jle 0xe2a8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xad2a(%rip), %rsi      # 0x18fa7
leaq 0xad27(%rip), %rdx      # 0x18fab
jmp 0xe29b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xbecb(%rip), %rsi      # 0x1a15f
leaq 0xbec8(%rip), %rdx      # 0x1a163
movq %rbx, %rdi
callq 0x15b1a
movq %rbx, %rax
popq %rbx
retq
cmpl 0x2c(%rdx), %eax
jge 0xe2c4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xacf1(%rip), %rsi      # 0x18fac
leaq 0xacee(%rip), %rdx      # 0x18fb0
jmp 0xe29b
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
cmpl %ecx, %eax
jge 0xe2df
leaq 0xc79d(%rip), %rsi      # 0x1aa73
leaq 0xc79a(%rip), %rdx      # 0x1aa77
jmp 0xe29b
leaq 0xace2(%rip), %rsi      # 0x18fc8
leaq 0xacdf(%rip), %rdx      # 0x18fcc
jmp 0xe29b
// File: /workspace/github_cpp_makefile_star2_O3/essarrdee[P]mutantaliens/mutantaliens.cpp
// Function: damage_description[abi:cxx11](species*)
std::string damage_description(species* sp)
{
	if(!sp->damage_known) return "    ";
	if(sp->damage <= 4) return "weak";
	if(sp->damage <= 8) return "strg";
	if(sp->damage <= 14) return "dngr";
	return "argh";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x45(%rsi)
je 0xe318
movl 0xc(%rsi), %eax
cmpl $0x4, %eax
jg 0xe33a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xc395(%rip), %rsi      # 0x1a6a4
leaq 0xc392(%rip), %rdx      # 0x1a6a8
jmp 0xe32d
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xbe39(%rip), %rsi      # 0x1a15f
leaq 0xbe36(%rip), %rdx      # 0x1a163
movq %rbx, %rdi
callq 0x15b1a
movq %rbx, %rax
popq %rbx
retq
cmpl $0x8, %eax
ja 0xe356
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xa413(%rip), %rsi      # 0x18760
leaq 0xa410(%rip), %rdx      # 0x18764
jmp 0xe32d
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
cmpl $0xe, %eax
ja 0xe372
leaq 0xac48(%rip), %rsi      # 0x18fb1
leaq 0xac45(%rip), %rdx      # 0x18fb5
jmp 0xe32d
leaq 0xac3d(%rip), %rsi      # 0x18fb6
leaq 0xac3a(%rip), %rdx      # 0x18fba
jmp 0xe32d