// File: /workspace/github_cpp_makefile_star2_O3/cjxgm[P]libgpp/src/libgpp.cpp
// Function: (anonymous namespace)::Preprocessor::arithm_eval(int, int)
char *arithm_eval(int pos1, int pos2) {
            // first define the defined(...) operator
            auto i = find_ident("defined", strlen("defined"));
            if (i >= 0)
                warning("the defined(...) macro is already defined");
            else {
                newmacro("defined", strlen("defined"), 1);
                macros[nmacros].macrolen = 0;
                macros[nmacros].macrotext = XX malloc(1);
                macros[nmacros].macrotext[0] = 0;
                macros[nmacros].nnamedargs = -2; // trademark of the defined(...) macro
                nmacros++;
            }
            // process the text in a usual way
            auto s = process_text(C->buf + pos1, pos2 - pos1, FLAG_META);
            // undefine the defined(...) operator
            if (i < 0) {
                i = find_ident("defined", strlen("defined"));
                if ((i < 0) || (macros[i].nnamedargs != -2))
                    warning("the defined(...) macro was redefined in expression");
                else
                    delete_macro(i);
            }

            if (!do_arithm_eval(s, 0, strlen(s), &i))
                return s; // couldn't compute

            free(s);
            auto result = std::to_string(i);
            return my_strdup(result.data());
        }

// 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
movq 0x8(%rdi), %rdi
movl 0x10(%rbx), %esi
leaq 0x21b4(%rip), %rdx      # 0x8b56
movl $0x7, %ecx
callq 0x6514
movl %eax, %r15d
movl %eax, (%rsp)
testl %eax, %eax
jns 0x6b6f
leaq 0x2195(%rip), %rsi      # 0x8b56
movq %rbx, %rdi
movl $0x7, %edx
callq 0x6678
movq 0x8(%rbx), %r12
movslq 0x10(%rbx), %r13
movl %ebp, 0x4(%rsp)
movl %r14d, %ebp
leaq (,%r13,2), %r14
addq %r13, %r14
shlq $0x4, %r14
movl $0x0, 0x18(%r12,%r14)
movl $0x1, %edi
callq 0x2190
movq %rax, 0x8(%r12,%r14)
movb $0x0, (%rax)
movl $0xfffffffe, 0x1c(%r12,%r14) # imm = 0xFFFFFFFE
movl %ebp, %r14d
movl 0x4(%rsp), %ebp
leal 0x1(%r13), %eax
movl %eax, 0x10(%rbx)
movq 0x20(%rbx), %rax
movslq %r14d, %rcx
movq (%rax), %rsi
addq %rcx, %rsi
subl %ecx, %ebp
movq %rbx, %rdi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x5c9a
movq %rax, %r14
testl %r15d, %r15d
jns 0x6a87
movq 0x8(%rbx), %r15
movl 0x10(%rbx), %esi
leaq 0x2107(%rip), %rdx      # 0x8b56
movq %r15, %rdi
movl $0x7, %ecx
callq 0x6514
movl %eax, (%rsp)
testl %eax, %eax
js 0x6b79
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
cmpl $-0x2, 0x1c(%r15,%rcx)
jne 0x6b79
movq %rbx, %rdi
movl %eax, %esi
callq 0x6596
movq %r14, %rdi
callq 0x2070
movq %rsp, %rcx
movq %r14, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x7006
testl %eax, %eax
je 0x6b5d
movq %r14, %rdi
callq 0x2180
movl (%rsp), %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl $0x1, %ebp
cmpl $0xa, %ebx
jb 0x6b09
movl $0x4, %ebp
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x6b02
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x6b07
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x6b09
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebp
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x6ad1
addl $-0x3, %ebp
jmp 0x6b09
addl $-0x2, %ebp
jmp 0x6b09
decl %ebp
shrl $0x1f, %r14d
movl %r14d, %esi
addl %ebp, %esi
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x2170
movq (%r15), %rdi
addq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x7df6
movq (%r15), %rdi
callq 0x2f64
movq %rax, %r14
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x6b5d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x231e
jmp 0x6a1e
callq 0x233d
jmp 0x6a87
nop