// File: /workspace/github_cpp_makefile_star2_O3/richardxday[P]rdlib/src/rdlib-config.c
// Function: main
int main(int argc, char *argv[])
{
    bool cflags    = ((argc < 2) || (strcmp(argv[1], "--cflags") == 0));
    bool cxxflags  = ((argc < 2) || (strcmp(argv[1], "--cxxflags") == 0));
    bool libs      = ((argc > 1) && (strcmp(argv[1], "--libs") == 0));
    bool rootdir   = ((argc > 1) && (strcmp(argv[1], "--rootdir") == 0));
    bool prefix    = ((argc > 1) && (strcmp(argv[1], "--prefix") == 0));
    bool makefiles = ((argc > 1) && (strcmp(argv[1], "--makefiles") == 0));

    if (cflags || cxxflags || libs) {
#ifdef __APPLE__
        printf(" -arch i386");
#endif

        if (cflags || cxxflags) {
#ifdef __i386__
            printf(" -msse3");
#endif

#ifdef __x86_64__
            printf(" -msse3");
#endif

#ifdef __arm__
#ifdef __SOFTFP__
            printf(" -mfloat-abi=softfp");
#endif
#endif
        }

#ifdef __linux__
        printf(" -fPIC");
#endif
    }

    if (cflags || cxxflags) {
#if defined(__linux__) || defined(__CYGWIN__)
        printf(" -D__LINUX__");
#endif

#ifdef __CYGWIN__
        printf(" -D_GNU_SOURCE=1");
#endif
    }

    if (cflags || cxxflags) {
#ifdef __MINGW64__
        printf(" -D__WORDSIZE=64");
#else
#ifdef __MINGW32__
        printf(" -D__WORDSIZE=32");
#endif
#endif
    }

    if (libs) {
#ifdef __MINGW32__
        printf(" -lwsock32");
#else
        printf(" -lrt");
#endif
    }

    if (rootdir) {
        printf("%s", RDLIB_ROOTDIR);
    }

    if (prefix) {
        printf("%s", RDLIB_PREFIX);
    }

    if (makefiles) {
        printf("%s", RDLIB_MAKEFILES);
    }

    printf("\n");

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jge 0x11c0
xorl %r14d, %r14d
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebx, %ebx
leaq 0xebd(%rip), %rdi       # 0x203e
xorl %eax, %eax
callq 0x1040
leaq 0xeb7(%rip), %rdi       # 0x2046
xorl %eax, %eax
callq 0x1040
leaq 0xeb0(%rip), %rdi       # 0x204d
xorl %eax, %eax
callq 0x1040
testb %r13b, %r13b
je 0x1283
leaq 0xea6(%rip), %rdi       # 0x205a
xorl %eax, %eax
callq 0x1040
jmp 0x1283
movq 0x8(%rsi), %rbx
leaq 0xe39(%rip), %rsi       # 0x2004
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete -0x29(%rbp)
leaq 0xe2d(%rip), %rsi       # 0x200d
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %r15b
leaq 0xe23(%rip), %rsi       # 0x2018
movq %rbx, %rdi
callq 0x1050
movl %eax, %r14d
testl %eax, %eax
sete %r13b
leaq 0xe12(%rip), %rsi       # 0x201f
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %r12b
leaq 0xe07(%rip), %rsi       # 0x2029
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %al
movl %eax, -0x30(%rbp)
leaq 0xdf9(%rip), %rsi       # 0x2032
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %bl
orb -0x29(%rbp), %r15b
movl %r15d, %eax
orb %r13b, %al
cmpb $0x1, %al
jne 0x1262
testb %r15b, %r15b
je 0x1268
movl -0x30(%rbp), %r14d
jmp 0x117a
movl -0x30(%rbp), %r14d
jmp 0x1283
leaq 0xdd7(%rip), %rdi       # 0x2046
xorl %eax, %eax
callq 0x1040
testl %r14d, %r14d
movl -0x30(%rbp), %r14d
je 0x11ad
testb %r12b, %r12b
je 0x1292
movl $0x2f, %edi
callq 0x1030
testb %r14b, %r14b
je 0x12ac
leaq 0xdc2(%rip), %rdi       # 0x2060
leaq 0xdbe(%rip), %rsi       # 0x2063
xorl %eax, %eax
callq 0x1040
testb %bl, %bl
je 0x12c5
leaq 0xda9(%rip), %rdi       # 0x2060
leaq 0xdb0(%rip), %rsi       # 0x206e
xorl %eax, %eax
callq 0x1040
movl $0xa, %edi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq