// File: /workspace/github_cpp_makefile_star2_O1/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib::parse_complex_delim(char const*, char const*)
alglib::complex alglib::parse_complex_delim(const char *s, const char *delim)
{
    double d_result;
    const char *new_s;
    alglib::complex c_result;
    
    // parse as real value
    if( _parse_real_delim(s, delim, &d_result, &new_s) )
        return d_result;

    // parse as "a+bi" or "a-bi"
    if( _parse_real_delim(s, "+-", &c_result.x, &new_s) )
    {
        s = new_s;
        if( !_parse_real_delim(s, "i", &c_result.y, &new_s) )
            throw alglib::ap_error("Cannot parse value");
        s = new_s+1;
        if( *s==0 || strchr(delim,*s)==NULL )
            throw alglib::ap_error("Cannot parse value");
        return c_result;
    }
    
    // parse as complex value "bi+a" or "bi-a"
    if( _parse_real_delim(s, "i", &c_result.y, &new_s) )
    {
        s = new_s+1;
        if( *s==0 )
            throw alglib::ap_error("Cannot parse value");
        if( strchr(delim,*s)!=NULL )
        {
            c_result.x = 0;
            return c_result;
        }
        if( strchr("+-",*s)!=NULL )
        {
            if( !_parse_real_delim(s, delim, &c_result.x, &new_s) )
                throw alglib::ap_error("Cannot parse value");
            return c_result;
        }
        throw alglib::ap_error("Cannot parse value");
    }

    // error
    throw alglib::ap_error("Cannot parse value");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x20(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2f007
testb %al, %al
je 0x2d22f
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x2d34b
leaq 0xa85e(%rip), %rsi      # 0x37a94
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2f007
testb %al, %al
je 0x2d2ac
leaq 0x8(%rsp), %rcx
movq (%rcx), %rdi
leaq 0x18(%rsp), %rdx
leaq 0xa605(%rip), %rsi      # 0x37865
callq 0x2f007
testb %al, %al
je 0x2d359
movq 0x8(%rsp), %rax
movsbl 0x1(%rax), %esi
testl %esi, %esi
je 0x2d28b
movq %r14, %rdi
callq 0x30f0
testq %rax, %rax
jne 0x2d336
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa7ca(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
jmp 0x2d3ed
leaq 0x18(%rsp), %rdx
leaq 0xa5ad(%rip), %rsi      # 0x37865
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2f007
testb %al, %al
je 0x2d377
movq 0x8(%rsp), %r15
movsbl 0x1(%r15), %ebp
testl %ebp, %ebp
je 0x2d395
movq %r14, %rdi
movl %ebp, %esi
callq 0x30f0
testq %rax, %rax
je 0x2d2fa
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq %rax, (%rbx)
jmp 0x2d340
leaq 0xa793(%rip), %rdi      # 0x37a94
movl $0x3, %edx
movl %ebp, %esi
callq 0x32c0
testq %rax, %rax
je 0x2d3b3
incq %r15
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2f007
testb %al, %al
je 0x2d3d1
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa6fc(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
jmp 0x2d3ed
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa6de(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
jmp 0x2d3ed
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa6c0(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
jmp 0x2d3ed
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa6a2(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
jmp 0x2d3ed
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa684(%rip), %rsi      # 0x37a69
movq %rax, %rdi
callq 0x2966e
leaq 0x1678c(%rip), %rsi     # 0x43b80
leaq -0x19b77(%rip), %rdx    # 0x13884
movq %rbx, %rdi
callq 0x33f0
jmp 0x2d40d
jmp 0x2d40d
jmp 0x2d40d
jmp 0x2d40d
jmp 0x2d40d
movq %rax, %r14
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x3420