// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rsi, %rbx
movl %edi, %r14d
movb $0x1, %r13b
movb $0x1, %r15b
cmpl $0x2, %edi
jl 0x1191
movq 0x8(%rbx), %rdi
leaq 0xe7e(%rip), %rsi       # 0x2004
callq 0x1050
testl %eax, %eax
sete %r15b
cmpl $0x2, %r14d
jl 0x11ad
movq 0x8(%rbx), %rdi
leaq 0xe6b(%rip), %rsi       # 0x200d
callq 0x1050
testl %eax, %eax
sete %r13b
cmpl $0x2, %r14d
jl 0x11cb
movq 0x8(%rbx), %rdi
leaq 0xe5a(%rip), %rsi       # 0x2018
callq 0x1050
testl %eax, %eax
sete %r12b
jmp 0x11ce
xorl %r12d, %r12d
cmpl $0x2, %r14d
jl 0x11ee
movq 0x8(%rbx), %rdi
leaq 0xe40(%rip), %rsi       # 0x201f
callq 0x1050
testl %eax, %eax
sete %al
movl %eax, -0x30(%rbp)
jmp 0x11f5
movl $0x0, -0x30(%rbp)
cmpl $0x2, %r14d
jl 0x1215
movq 0x8(%rbx), %rdi
leaq 0xe23(%rip), %rsi       # 0x2029
callq 0x1050
testl %eax, %eax
sete %al
movl %eax, -0x2c(%rbp)
jmp 0x121c
movl $0x0, -0x2c(%rbp)
cmpl $0x2, %r14d
jl 0x1239
movq 0x8(%rbx), %rdi
leaq 0xe05(%rip), %rsi       # 0x2032
callq 0x1050
testl %eax, %eax
sete %bl
jmp 0x123b
xorl %ebx, %ebx
orb %r13b, %r15b
movl %r15d, %eax
orb %r12b, %al
testb $0x1, %al
je 0x126a
testb $0x1, %r15b
je 0x125c
leaq 0xde9(%rip), %rdi       # 0x203e
xorl %eax, %eax
callq 0x1040
leaq 0xde3(%rip), %rdi       # 0x2046
xorl %eax, %eax
callq 0x1040
testb $0x1, %r15b
je 0x127e
leaq 0xdd6(%rip), %rdi       # 0x204d
xorl %eax, %eax
callq 0x1040
testb %r12b, %r12b
je 0x1291
leaq 0xdd0(%rip), %rdi       # 0x205a
xorl %eax, %eax
callq 0x1040
cmpb $0x0, -0x30(%rbp)
je 0x12a1
movl $0x2f, %edi
callq 0x1030
cmpb $0x0, -0x2c(%rbp)
je 0x12bc
leaq 0xdb2(%rip), %rdi       # 0x2060
leaq 0xdae(%rip), %rsi       # 0x2063
xorl %eax, %eax
callq 0x1040
testb %bl, %bl
je 0x12d5
leaq 0xd99(%rip), %rdi       # 0x2060
leaq 0xda0(%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