// File: /workspace/github_cpp_makefile_star2_O2/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 0x2b748
testb %al, %al
je 0x29e09
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rbx)
andq $0x0, 0x8(%rbx)
jmp 0x29f0e
leaq 0x9df4(%rip), %rsi      # 0x33c04
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2b748
testb %al, %al
je 0x29e84
leaq 0x8(%rsp), %rcx
movq (%rcx), %rdi
leaq 0x18(%rsp), %rdx
leaq 0x9b9b(%rip), %rsi      # 0x339d5
callq 0x2b748
testb %al, %al
je 0x29f1c
movq 0x8(%rsp), %rax
movsbl 0x1(%rax), %esi
testl %esi, %esi
je 0x29e65
movq %r14, %rdi
callq 0x30d0
testq %rax, %rax
jne 0x29f06
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9d62(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
jmp 0x29fa6
leaq 0x18(%rsp), %rdx
leaq 0x9b45(%rip), %rsi      # 0x339d5
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x2b748
testb %al, %al
je 0x29f38
movq 0x8(%rsp), %r15
movsbl 0x1(%r15), %ebp
testl %ebp, %ebp
je 0x29f54
movq %r14, %rdi
movl %ebp, %esi
callq 0x30d0
testq %rax, %rax
je 0x29ed7
andq $0x0, (%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
jmp 0x29f0e
cmpb $0x2d, %bpl
je 0x29eea
movzbl %bpl, %eax
cmpl $0x2b, %eax
jne 0x29f8c
incq %r15
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2b748
testb %al, %al
je 0x29f70
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9cab(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
jmp 0x29fa6
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9c8f(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
jmp 0x29fa6
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9c73(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
jmp 0x29fa6
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9c57(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
jmp 0x29fa6
pushq $0x20
popq %rdi
callq 0x3130
movq %rax, %rbx
leaq 0x9c3b(%rip), %rsi      # 0x33bd9
movq %rax, %rdi
callq 0x26d2a
leaq 0x16bd3(%rip), %rsi     # 0x40b80
leaq -0x1789c(%rip), %rdx    # 0x12718
movq %rbx, %rdi
callq 0x33b0
jmp 0x29fc6
jmp 0x29fc6
jmp 0x29fc6
jmp 0x29fc6
jmp 0x29fc6
movq %rax, %r14
movq %rbx, %rdi
callq 0x3190
movq %r14, %rdi
callq 0x33e0
nop