// File: /workspace/github_c_makefile_star2_O2/salextpuru[P]speccy-toochain/src/mhmt/mhmt-main.c
// Function: dump_config
void dump_config(void)
{
    printf("Configuration review:\n");
    printf("\n");
    printf("Pack format: ");

    if( wrk.packtype==PK_MLZ )
        printf("MegaLZ.\n");

    else if( wrk.packtype==PK_HRM )
        printf("Hrum3.5\n");

    else if( wrk.packtype==PK_HST )
        printf("Hrust1.x\n");

    else
        printf("unknown.\n"); // this should be actually never displayed

    printf("Mode:        ");

    if( wrk.mode )
        printf("depacking.\n");

    else
        printf("packing.\n");

    if( !wrk.mode ) {
        printf("Pack coding: ");

        if( wrk.greedy )
            printf("greedy (sub-optimal but faster).\n");

        else
            printf("optimal (slower).\n");
    }

    if( wrk.zxheader ) {
        printf("Header for old ZX ");

        if( wrk.packtype==PK_HRM )
            printf("hrum3.5 ");

        else if( wrk.packtype==PK_HST )
            printf("hrust1.x ");

        printf("depackers is on.\n");
    }

    if( wrk.wordbit ) {
        printf("Bitstream is grouped in words -\n");

        if( wrk.bigend ) {
            printf(" words are big-endian, %s","INCOMPATIBLE with old ZX depackers!\n");

        } else {
            printf(" words are little-endian, ");

            if( (wrk.packtype==PK_HRM) || (wrk.packtype==PK_HST) )
                printf("compatible with old ZX depackers.\n");

            else
                printf("INCOMPATIBLE with old ZX depackers!\n");
        }

    } else {
        printf("Bitstream is grouped in bytes -\n");

        if( wrk.packtype==PK_MLZ )
            printf(" compatible with old ZX depackers.\n");

        else
            printf(" INCOMPATIBLE with old ZX depackers!\n");
    }

    printf("Maximum lookback window size is %d bytes.\n\n",wrk.maxwin);
    // files
    printf("Input file \"%s\" (%d bytes) successfully loaded.\n", wrk.fname_in, wrk.inlen);
    printf("Output file \"%s\" created.\n", wrk.fname_out );
//	...more info...?
}

// Assembly:
pushq %rbx
leaq 0x2f28(%rip), %rdi      # 0x5c7a
callq 0x1110
pushq $0xa
popq %rdi
callq 0x10e0
leaq 0x279d(%rip), %rdi      # 0x5503
xorl %eax, %eax
callq 0x1040
leaq 0x75ac(%rip), %rbx      # 0xa320
movl (%rbx), %eax
decl %eax
cmpl $0x2, %eax
ja 0x2d8f
movl %eax, %eax
leaq 0x3012(%rip), %rcx      # 0x5d98
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x2d96
leaq 0x2efa(%rip), %rdi      # 0x5c90
callq 0x1110
leaq 0x276f(%rip), %rdi      # 0x5511
xorl %eax, %eax
callq 0x1040
cmpl $0x0, 0x8(%rbx)
leaq 0x2f00(%rip), %rax      # 0x5cb4
leaq 0x2ef7(%rip), %rdi      # 0x5cb2
cmoveq %rax, %rdi
callq 0x1110
cmpl $0x0, 0x8(%rbx)
jne 0x2df3
leaq 0x274e(%rip), %rdi      # 0x551f
xorl %eax, %eax
callq 0x1040
cmpl $0x0, 0x4(%rbx)
leaq 0x2eda(%rip), %rax      # 0x5cbd
leaq 0x2ee5(%rip), %rdi      # 0x5ccf
cmoveq %rax, %rdi
callq 0x1110
cmpl $0x0, 0xc(%rbx)
je 0x2e36
leaq 0x272d(%rip), %rdi      # 0x552d
xorl %eax, %eax
callq 0x1040
movl (%rbx), %eax
cmpl $0x2, %eax
je 0x2e1c
cmpl $0x3, %eax
jne 0x2e2a
leaq 0x272f(%rip), %rdi      # 0x5549
jmp 0x2e23
leaq 0x271d(%rip), %rdi      # 0x5540
xorl %eax, %eax
callq 0x1040
leaq 0x2ebf(%rip), %rdi      # 0x5cf0
callq 0x1110
cmpl $0x0, 0x10(%rbx)
je 0x2e65
leaq 0x2f26(%rip), %rdi      # 0x5d69
callq 0x1110
cmpl $0x0, 0x14(%rbx)
je 0x2e7f
leaq 0x26fe(%rip), %rdi      # 0x5553
leaq 0x2711(%rip), %rsi      # 0x556d
xorl %eax, %eax
callq 0x1040
jmp 0x2eb5
leaq 0x2e95(%rip), %rdi      # 0x5d01
callq 0x1110
cmpl $0x1, (%rbx)
jne 0x2ea0
leaq 0x2ec9(%rip), %rdi      # 0x5d46
jmp 0x2eb0
leaq 0x270c(%rip), %rdi      # 0x5592
xorl %eax, %eax
callq 0x1040
movl (%rbx), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x2ea9
leaq 0x2ea9(%rip), %rdi      # 0x5d47
jmp 0x2eb0
leaq 0x2e7a(%rip), %rdi      # 0x5d21
jmp 0x2eb0
leaq 0x2e72(%rip), %rdi      # 0x5d22
callq 0x1110
movl 0x1c(%rbx), %esi
leaq 0x26ee(%rip), %rdi      # 0x55ad
xorl %eax, %eax
callq 0x1040
movq 0x20(%rbx), %rsi
movl 0x48(%rbx), %edx
leaq 0x2705(%rip), %rdi      # 0x55d9
xorl %eax, %eax
callq 0x1040
movq 0x28(%rbx), %rsi
leaq 0x2724(%rip), %rdi      # 0x560a
xorl %eax, %eax
popq %rbx
jmp 0x1040
nop