// File: /workspace/github_c_makefile_star2_O3/Carton32[P]quectel-CM/main.c
// Function: main
int main(int argc, char *argv[])
{
    int ret;
    PROFILE_T *ctx = &s_profile;

    dbg_time("QConnectManager_Linux_V1.6.1");

    ret = parse_user_input(argc, argv, ctx);
    if (!ret)
        return ret;

    if (ctx->kill_pdp) {
        return kill_data_call_pdp(ctx->kill_pdp, argv[0]);
    }

    if (ctx->logfile) {
        logfilefp = fopen(ctx->logfile, "a+");
        if (!logfilefp) {
            dbg_time("Fail to open %s, errno: %d(%s)", ctx->logfile, errno, strerror(errno));
        }
    }

    signal(SIGINT, ql_sigaction);
    signal(SIGTERM, ql_sigaction);
    signal(SIGALRM, ql_sigaction);

    do {
        ret = quectel_CM(ctx);
        if (g_donot_exit_when_modem_hangup > 0)
            sleep(3);
    } while (g_donot_exit_when_modem_hangup > 0);

    if (logfilefp) {
        fclose(logfilefp);
    }

    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movl %edi, %ebp
movq 0x22c01(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
leaq 0x170d6(%rip), %rsi     # 0x1e4a4
xorl %r12d, %r12d
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x238c3(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x7406
callq 0xea3b
leaq 0x170ab(%rip), %rsi     # 0x1e4a4
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
movl $0x1, 0x23018(%rip)     # 0x2a428
movslq %ebp, %rax
movq -0x8(%rbx,%rax,8), %rax
cmpb $0x26, (%rax)
jne 0x7427
xorl %r12d, %r12d
cmpb $0x1, 0x1(%rax)
sbbl %r12d, %r12d
addl %ebp, %r12d
cmpl $0x2, %r12d
jl 0x7857
movl $0x1, %r14d
leaq 0x16fdf(%rip), %rbp     # 0x1e420
movslq %r14d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
jne 0x7d9f
leal 0x1(%r14), %r15d
movzbl 0x1(%rax), %eax
leal -0x62(%rax), %ecx
cmpl $0x14, %ecx
ja 0x747a
movslq (%rbp,%rcx,4), %rax
addq %rbp, %rax
jmpq *%rax
movl $0x1, 0x22fb7(%rip)     # 0x2a42c
jmp 0x774f
cmpl $0x34, %eax
je 0x7748
cmpl $0x36, %eax
jne 0x7d9f
movb $0x1, 0x22f9e(%rip)     # 0x2a431
jmp 0x774f
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x774f
addl $0x2, %r14d
addl $-0x30, %eax
movl %eax, 0x22f67(%rip)     # 0x2a428
jmp 0x75e3
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
je 0x774f
addl $0x2, %r14d
movq %rax, 0x22f50(%rip)     # 0x2a43a
jmp 0x75e3
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x774f
addl $0x2, %r14d
addl $-0x30, %eax
movl %eax, 0x22f4a(%rip)     # 0x2a462
jmp 0x75e3
movl $0x1, 0x22ea9(%rip)     # 0x2a3d0
jmp 0x774f
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
je 0x774f
addl $0x2, %r14d
movq %rax, 0x22ee2(%rip)     # 0x2a432
jmp 0x75e3
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rdi
cmpb $0x2d, (%rdi)
je 0x774f
addl $0x2, %r14d
callq 0x54b0
movl %eax, 0x22ee9(%rip)     # 0x2a466
testl %eax, %eax
jle 0x75e3
movb $0x1, 0x2306d(%rip)     # 0x2a5f5
jmp 0x75e3
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rsi
cmpb $0x2d, (%rsi)
je 0x774f
addl $0x2, %r14d
movl $0x20, %edx
leaq 0x22e8f(%rip), %rdi     # 0x2a442
callq 0x5080
jmp 0x75e3
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x774f
addl $0x2, %r14d
addl $0x50, %eax
movl %eax, 0x22f1b(%rip)     # 0x2a4fe
movl %r14d, %r15d
jmp 0x774f
leaq 0x178af(%rip), %rax     # 0x1eea1
movq %rax, 0x22df7(%rip)     # 0x2a3f0
movq %rax, 0x22de8(%rip)     # 0x2a3e8
movq %rax, 0x22dd9(%rip)     # 0x2a3e0
cmpl %r12d, %r15d
jge 0x7626
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
je 0x7626
addl $0x2, %r14d
movq %rax, 0x22dbd(%rip)     # 0x2a3e0
movl %r14d, %r15d
cmpl %r12d, %r15d
jge 0x7641
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
je 0x7641
incl %r15d
movq %rax, 0x22da7(%rip)     # 0x2a3e8
cmpl %r12d, %r15d
jge 0x766b
movslq %r15d, %rax
movq (%rbx,%rax,8), %rax
cmpb $0x2d, (%rax)
je 0x766b
incl %r15d
movq %rax, 0x22d94(%rip)     # 0x2a3f0
cmpb $0x0, (%rax)
je 0x766b
movl $0x2, 0x22d8d(%rip)     # 0x2a3f8
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %r13
movb (%r13), %r14b
cmpb $0x2d, %r14b
je 0x774f
incl %r15d
cmpb $0x30, %r14b
jne 0x7776
cmpb $0x0, 0x1(%r13)
je 0x77b2
movq %r13, %rdi
leaq 0x16e44(%rip), %rsi     # 0x1e4ef
callq 0x5050
testl %eax, %eax
jne 0x779a
jmp 0x77b2
cmpl %r12d, %r15d
jge 0x774f
movslq %r15d, %rax
movq (%rbx,%rax,8), %r13
cmpb $0x2d, (%r13)
je 0x774f
movl %r14d, %r15d
addl $0x2, %r15d
movq %r13, %rdi
leaq 0x16a2c(%rip), %rsi     # 0x1e111
callq 0x52a0
testl %eax, %eax
je 0x7760
movq %r13, %rdi
leaq 0x16e25(%rip), %rsi     # 0x1e51d
callq 0x52a0
testl %eax, %eax
je 0x7760
movq %r13, %rdi
leaq 0x16a0e(%rip), %rsi     # 0x1e119
callq 0x52a0
testl %eax, %eax
je 0x7760
movq %r13, %rdi
leaq 0x16e07(%rip), %rsi     # 0x1e525
callq 0x52a0
testl %eax, %eax
je 0x7760
movq %r13, %rdi
callq 0x54b0
addl $0xfffffc18, %eax       # imm = 0xFFFFFC18
cmpl $0x2327, %eax           # imm = 0x2327
ja 0x7dc4
movq %r13, 0x22cba(%rip)     # 0x2a400
jmp 0x774f
movb $0x1, 0x22ce1(%rip)     # 0x2a430
movl %r15d, %r14d
cmpl %r12d, %r15d
jl 0x7441
jmp 0x7857
movl $0x20, %edx
leaq 0x22c9c(%rip), %rdi     # 0x2a408
movq %r13, %rsi
callq 0x5080
jmp 0x774f
movq %r13, %rdi
leaq 0x16d6f(%rip), %rsi     # 0x1e4ef
callq 0x5050
testl %eax, %eax
je 0x77b2
cmpb $0x31, %r14b
jne 0x77be
cmpb $0x0, 0x1(%r13)
je 0x7839
movq %r13, %rdi
leaq 0x16d50(%rip), %rsi     # 0x1e4f4
callq 0x5050
testl %eax, %eax
jne 0x77f3
jmp 0x7839
movl $0x0, 0x22c3c(%rip)     # 0x2a3f8
jmp 0x774f
movq %r13, %rdi
leaq 0x16d2c(%rip), %rsi     # 0x1e4f4
callq 0x5050
testl %eax, %eax
je 0x7839
cmpb $0x32, %r14b
jne 0x77f3
cmpb $0x0, 0x1(%r13)
je 0x7848
movq %r13, %rdi
leaq 0x16d10(%rip), %rsi     # 0x1e4f8
callq 0x5050
testl %eax, %eax
jne 0x7813
jmp 0x7848
movq %r13, %rdi
leaq 0x16cfb(%rip), %rsi     # 0x1e4f8
callq 0x5050
testl %eax, %eax
je 0x7848
cmpb $0x33, %r14b
jne 0x7813
cmpb $0x0, 0x1(%r13)
je 0x782a
movq %r13, %rdi
leaq 0x16ce0(%rip), %rsi     # 0x1e4fd
callq 0x5050
testl %eax, %eax
jne 0x7e0a
movl $0x3, 0x22bc4(%rip)     # 0x2a3f8
jmp 0x774f
movl $0x1, 0x22bb5(%rip)     # 0x2a3f8
jmp 0x774f
movl $0x2, 0x22ba6(%rip)     # 0x2a3f8
jmp 0x774f
cmpb $0x1, 0x22bd2(%rip)     # 0x2a430
je 0x7870
cmpb $0x1, 0x22bca(%rip)     # 0x2a431
je 0x7870
movb $0x1, 0x22bc0(%rip)     # 0x2a430
movl 0x22bec(%rip), %edi     # 0x2a462
testl %edi, %edi
je 0x7914
movq (%rbx), %rsi
leaq 0x1(%rsi), %rax
movzbl -0x1(%rax), %ecx
cmpl $0x2f, %ecx
je 0x7894
testl %ecx, %ecx
jne 0x7897
jmp 0x789c
movq %rax, %rsi
incq %rax
jmp 0x7885
callq 0xf19b
testl %eax, %eax
jle 0x7dac
movl %eax, %ebx
movq 0x2270e(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
leaq 0x1721e(%rip), %rsi     # 0x1eadf
movq %r14, %rdi
movq %rax, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x52c0
leaq 0x233d1(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x78fa
callq 0xea3b
leaq 0x171f4(%rip), %rsi     # 0x1eadf
movq %r14, %rdi
movq %rax, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x52c0
movl %ebx, %edi
movl $0x2, %esi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5310
movq 0x22b17(%rip), %rdi     # 0x2a432
testq %rdi, %rdi
je 0x79ce
leaq 0x16b9c(%rip), %rsi     # 0x1e4c7
callq 0x5470
leaq 0x23371(%rip), %rcx     # 0x2aca8
movq %rax, (%rcx)
testq %rax, %rax
jne 0x79ce
movq 0x22676(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
movq %rax, %r15
movq 0x22ad6(%rip), %r12     # 0x2a432
callq 0x5070
movq %rax, %rbx
movl (%rax), %ebp
movl %ebp, %edi
callq 0x5530
leaq 0x16b56(%rip), %rsi     # 0x1e4ca
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %rcx
movl %ebp, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x52c0
leaq 0x23317(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x79ce
callq 0xea3b
movq %rax, %r15
movq 0x22a8a(%rip), %r12     # 0x2a432
movl (%rbx), %ebx
movl %ebx, %edi
callq 0x5530
leaq 0x16b12(%rip), %rsi     # 0x1e4ca
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %rcx
movl %ebx, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x52c0
leaq 0x496(%rip), %rbx       # 0x7e6b
movl $0x2, %edi
movq %rbx, %rsi
callq 0x52b0
movl $0xf, %edi
movq %rbx, %rsi
callq 0x52b0
movl $0xe, %edi
movq %rbx, %rsi
callq 0x52b0
leaq 0x20bdd(%rip), %rax     # 0x285e0
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x20bad(%rip), %rax     # 0x285c0
movq 0x10(%rax), %rax
movq %rax, (%rsp)
xorl %ebp, %ebp
leaq 0x229bc(%rip), %rbx     # 0x2a3e0
leaq 0x40(%rsp), %r14
leaq 0x10(%rsp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movb %bpl, 0x60(%rsp)
movb %bpl, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
cmpb %bpl, 0x229ec(%rip)     # 0x2a442
je 0x7a6c
movl $0x21, %edx
movq %r15, %rdi
leaq 0x229db(%rip), %rsi     # 0x2a442
callq 0x5080
movq %r14, %rdi
movq %r15, %rsi
movl $0x21, %edx
movq %rbx, %rcx
callq 0x16520
movl $0x6, %r12d
testl %eax, %eax
jne 0x7ab7
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x17464
movl $0x5, %r12d
testl %eax, %eax
jne 0x7ab7
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1759f
testl %eax, %eax
je 0x7d2f
movl %r12d, 0x22adf(%rip)    # 0x2a59d
movl $0x20, %edx
leaq 0x229a0(%rip), %rdi     # 0x2a46a
movq %r14, %rsi
callq 0x5080
movl $0x20, %edx
leaq 0x229ac(%rip), %r12     # 0x2a48a
movq %r12, %rdi
movq %r15, %rsi
callq 0x5080
movq %r12, %rdi
callq 0x17a2d
cmpl $0x6, 0x22aa5(%rip)     # 0x2a59d
jne 0x7b25
movq 0x22939(%rip), %rsi     # 0x2a43a
testq %rsi, %rsi
je 0x7b17
movq %rbx, %rdi
callq 0x17e0b
cmpl $0x6, 0x22a88(%rip)     # 0x2a59d
jne 0x7b25
movq %rbx, %rdi
callq 0x17374
movl %eax, 0x22a7c(%rip)     # 0x2a5a1
movq %rbx, %rdi
callq 0xffb8
movl 0x22a6d(%rip), %r12d    # 0x2a5a1
movq 0x22485(%rip), %rax     # 0x29fc0
movq (%rax), %r13
callq 0xea3b
cmpl $0x1, %r12d
je 0x7c0b
cmpl $0x3, %r12d
je 0x7baf
cmpl $0x2, %r12d
jne 0x7cdc
movq %r13, %rdi
leaq 0x16fb6(%rip), %r13     # 0x1eb1d
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x2312d(%rip), %rax     # 0x2aca8
movq (%rax), %r12
testq %r12, %r12
je 0x7b98
callq 0xea3b
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x218a1(%rip), %rax     # 0x29440
movq %rax, 0x22b60(%rip)     # 0x2a706
leaq 0x21873(%rip), %rax     # 0x29420
jmp 0x7bff
movq %r13, %rdi
leaq 0x16fac(%rip), %r13     # 0x1eb65
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x230db(%rip), %rax     # 0x2aca8
movq (%rax), %r12
testq %r12, %r12
je 0x7bea
callq 0xea3b
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x220af(%rip), %rax     # 0x29ca0
movq %rax, 0x22b0e(%rip)     # 0x2a706
leaq 0x22081(%rip), %rax     # 0x29c80
movq %rax, 0x22af8(%rip)     # 0x2a6fe
jmp 0x7ca3
movq %r13, %rdi
leaq 0x16f27(%rip), %r13     # 0x1eb3c
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x2307f(%rip), %rax     # 0x2aca8
movq (%rax), %r12
testq %r12, %r12
je 0x7c46
callq 0xea3b
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x216f3(%rip), %rax     # 0x29340
movq %rax, 0x22ab2(%rip)     # 0x2a706
movq 0x2280f(%rip), %rax     # 0x2a46a
movabsq $0x7163712f7665642f, %rcx # imm = 0x7163712F7665642F
xorq %rcx, %rax
movzwl 0x22803(%rip), %ecx     # 0x2a472
xorq $0x696d, %rcx           # imm = 0x696D
orq %rax, %rcx
leaq 0x20940(%rip), %rax     # 0x285c0
cmoveq 0x22358(%rip), %rax     # 0x29fe0
movq %rax, 0x22a6f(%rip)     # 0x2a6fe
movq (%rsp), %rax
cmoveq 0x8(%rsp), %rax
leaq 0x22f88(%rip), %rcx     # 0x2ac28
movq %rax, (%rcx)
callq 0x836f
movl %eax, %r12d
movq %rbx, %rdi
callq 0x181cc
cmpl $0x0, 0x2271a(%rip)     # 0x2a3d4
jle 0x7d89
movl $0x3, %edi
callq 0x5540
cmpl $0x0, 0x22703(%rip)     # 0x2a3d4
jg 0x7a2e
jmp 0x7d89
movl 0x228bf(%rip), %ecx     # 0x2a5a1
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x16e9e(%rip), %rsi     # 0x1eb8d
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x22fa8(%rip), %rax     # 0x2aca8
movq (%rax), %r13
testq %r13, %r13
je 0x7cab
callq 0xea3b
movl 0x2288e(%rip), %ecx     # 0x2a5a1
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x16e6d(%rip), %rsi     # 0x1eb8d
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
jmp 0x7cab
movq 0x2228a(%rip), %rax     # 0x29fc0
movq (%rax), %r13
callq 0xea3b
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x16db4(%rip), %rsi     # 0x1eaff
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
leaq 0x22f4c(%rip), %rax     # 0x2aca8
movq (%rax), %r13
testq %r13, %r13
je 0x7cb3
callq 0xea3b
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x16d85(%rip), %rsi     # 0x1eaff
movq %rax, %rdx
xorl %eax, %eax
callq 0x52c0
jmp 0x7cb3
leaq 0x22f18(%rip), %rax     # 0x2aca8
movq (%rax), %rdi
testq %rdi, %rdi
je 0x7db2
callq 0x5130
jmp 0x7db2
movq (%rbx), %rdi
callq 0x7ecb
xorl %r12d, %r12d
jmp 0x7db2
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl %r12d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x221f5(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
leaq 0x16756(%rip), %rsi     # 0x1e530
xorl %r12d, %r12d
movq %r14, %rdi
movq %rax, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x22eb4(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x7e5e
callq 0xea3b
leaq 0x16728(%rip), %rsi     # 0x1e530
jmp 0x7e4e
movq 0x221af(%rip), %rax     # 0x29fc0
movq (%rax), %r14
callq 0xea3b
leaq 0x166e6(%rip), %rsi     # 0x1e506
xorl %r12d, %r12d
movq %r14, %rdi
movq %rax, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x22e6e(%rip), %rax     # 0x2aca8
movq (%rax), %r14
testq %r14, %r14
je 0x7e5e
callq 0xea3b
leaq 0x166b8(%rip), %rsi     # 0x1e506
movq %r14, %rdi
movq %rax, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x52c0
movq (%rbx), %rdi
callq 0x7ecb
jmp 0x7db2