// File: /workspace/github_cpp_makefile_star2_O2/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 0x121c
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebx, %ebx
leaq 0xeb9(%rip), %rdi       # 0x203e
xorl %eax, %eax
callq 0x1040
movb $0x1, %r14b
leaq 0xeb0(%rip), %rdi       # 0x2046
xorl %eax, %eax
callq 0x1040
testb %r14b, %r14b
je 0x11b0
leaq 0xea4(%rip), %rdi       # 0x204d
xorl %eax, %eax
callq 0x1040
testb %r13b, %r13b
je 0x11c3
leaq 0xe9e(%rip), %rdi       # 0x205a
xorl %eax, %eax
callq 0x1040
testb %r12b, %r12b
je 0x11d0
pushq $0x2f
popq %rdi
callq 0x1030
testb %r15b, %r15b
je 0x11ea
leaq 0xe84(%rip), %rdi       # 0x2060
leaq 0xe80(%rip), %rsi       # 0x2063
xorl %eax, %eax
callq 0x1040
testb %bl, %bl
je 0x1203
leaq 0xe6b(%rip), %rdi       # 0x2060
leaq 0xe72(%rip), %rsi       # 0x206e
xorl %eax, %eax
callq 0x1040
pushq $0xa
popq %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsi), %rbx
leaq 0xddd(%rip), %rsi       # 0x2004
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete -0x29(%rbp)
leaq 0xdd1(%rip), %rsi       # 0x200d
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %r12b
leaq 0xdc7(%rip), %rsi       # 0x2018
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %r13b
leaq 0xdb9(%rip), %rsi       # 0x201f
movq %rbx, %rdi
callq 0x1050
movl %eax, %r14d
testl %eax, %eax
sete %al
movl %eax, -0x30(%rbp)
leaq 0xda9(%rip), %rsi       # 0x2029
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %r15b
leaq 0xd9d(%rip), %rsi       # 0x2032
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
sete %bl
orb -0x29(%rbp), %r12b
movl %r12d, %eax
orb %r13b, %al
je 0x12bc
testb %r12b, %r12b
je 0x12ca
movl -0x30(%rbp), %r12d
jmp 0x117e
testl %r14d, %r14d
jne 0x11d0
jmp 0x11c8
xorl %r14d, %r14d
movl -0x30(%rbp), %r12d
jmp 0x118f