// File: /workspace/github_cpp_makefile_star2_O3/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 0x2e36d
testb %al, %al
je 0x2c5df
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rbx)
movq $0x0, 0x8(%rbx)
jmp 0x2c6e9
leaq 0xa68a(%rip), %rsi      # 0x36c70
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2e36d
testb %al, %al
je 0x2c65c
leaq 0x8(%rsp), %rcx
movq (%rcx), %rdi
leaq 0x18(%rsp), %rdx
leaq 0xa431(%rip), %rsi      # 0x36a41
callq 0x2e36d
testb %al, %al
je 0x2c6f7
movq 0x8(%rsp), %rax
movsbl 0x1(%rax), %esi
testl %esi, %esi
je 0x2c63b
movq %r14, %rdi
callq 0x30f0
testq %rax, %rax
jne 0x2c6e1
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa5f6(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
jmp 0x2c78b
leaq 0x18(%rsp), %rdx
leaq 0xa3d9(%rip), %rsi      # 0x36a41
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2e36d
testb %al, %al
je 0x2c715
movq 0x8(%rsp), %r15
movsbl 0x1(%r15), %ebp
testl %ebp, %ebp
je 0x2c733
movq %r14, %rdi
movl %ebp, %esi
callq 0x30f0
testq %rax, %rax
je 0x2c6b2
movq $0x0, (%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
jmp 0x2c6e9
cmpb $0x2d, %bpl
je 0x2c6c5
movzbl %bpl, %eax
cmpl $0x2b, %eax
jne 0x2c76f
incq %r15
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2e36d
testb %al, %al
je 0x2c751
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%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 0xa53a(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
jmp 0x2c78b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa51c(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
jmp 0x2c78b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa4fe(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
jmp 0x2c78b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa4e0(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
jmp 0x2c78b
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0xa4c2(%rip), %rsi      # 0x36c45
movq %rax, %rdi
callq 0x28d64
leaq 0x163ee(%rip), %rsi     # 0x42b80
leaq -0x194d7(%rip), %rdx    # 0x132c2
movq %rbx, %rdi
callq 0x33f0
jmp 0x2c7ab
jmp 0x2c7ab
jmp 0x2c7ab
jmp 0x2c7ab
jmp 0x2c7ab
movq %rax, %r14
movq %rbx, %rdi
callq 0x31c0
movq %r14, %rdi
callq 0x3420