// File: /workspace/github_c_makefile_star2_O0/Nico01[P]obj2asm/omain.c
// Function: main
int main(int argc, char *argv[])
{
    char            *argp;
    int             name_arg;
    int             argi;
    int             bad_args;
    char            *fnamep;
    dword   position;
    int             at_eof;
    int             rec_type;
    word    rec_length;
    char            temp_name[50];
    char            ch;
    int             i486;

    bad_args = FALSE;
    argi = 1;
    name_arg = 0;
    i486 = FALSE;

    while ( argi < argc ) {
        argp = argv[argi];
        if ( *argp++ == '-' ) {
            while ( *argp ) {
                switch ( *argp ) {
                    case 'a':
                        add_labels = TRUE;
                        break;
                    case '4':
                        compatibility = 1;
                        break;
                    case 'h':
                        hex_output = TRUE;
                        break;
                    case 'v':
                        i486 = TRUE;
                        break;
                    case 'c':
                        code_string = atoi(argp+1);
                        while ( (ch = *(argp+1)) != '\0' ) {
                            if ( ch < '0' || ch > '9' ) {
                                break;
                            }
                            argp++;
                        }
                        break;
                    case 's':
                        code_string = atoi(argp+1);
                        while ( (ch = *(argp+1)) != '\0' ) {
                            if ( ch < '0' || ch > '9' ) {
                                break;
                            }
                            argp++;
                        }
                        break;
                    case 'f':
                        argp++;
                        if ( *argp != '(' ) {
                            bad_args = TRUE;
                            break;
                        }
                        fnamep = extra_filename;
                        while ( (ch = *(argp+1)) != '\0' ) {
                            argp++;
                            if ( ch == ')' ) {
                                *fnamep = '\0';
                                break;
                            }
                            *fnamep++ = ch;
                        }
                        if ( ch == '\0' ) {
                            bad_args = TRUE;
                        }
                        break;
                    default:
                        bad_args = TRUE;
                        break;
                }
                argp++;
            }
        } else {
            if ( name_arg == 0 ) {
                name_arg = argi;
            } else {
                bad_args = TRUE;
            }
        }
        argi++;
    }

    if ( name_arg == 0 ) {
        bad_args = TRUE;
    }

    if ( bad_args ) {
        fprintf( stderr, "Usage:  %s [-options] [objfilename]\n", argv[0] );
        fprintf( stderr, "where -options are:\n" );
        fprintf( stderr, "           -4 Make MASM 4.0 compatible (no RETF)\n" );
        fprintf( stderr, "           -a Add labels for un-named data references\n");
        fprintf( stderr, "           -h Hex output in comments\n");
        fprintf( stderr, "           -v Include 486 instructions\n" );
        fprintf( stderr, "          -c# Minimum string size in a code segment (default=40)\n");
        fprintf( stderr, "          -s# Mimimum string size in a data segment (default=3)\n");
        fprintf( stderr, " -f(filename) Additional information filename (w/paren.)\n");
        fprintf( stderr, "\n" );
        fprintf( stderr, "Additional information file lines:\n");
        fprintf( stderr, "SEG sname CODE                named segment is a code segment\n");
        fprintf( stderr, "SEG sname DATA                named segment is a data segment\n");
        fprintf( stderr, "var=sname:####                creates a local label in segment name\n");
        fprintf( stderr, "sname:####:DB/DW/DD/DF/DQ/DT  directs dis-assembly into data\n");
        fprintf( stderr, "... (for more info, read OBJASM.DOC)\n");
        exit(1);
    }

    switch( compatibility ) {
        case 0:             /* MASM 5.0+ */
            if ( i486 ) {
                ex_instr[0x08].text = "invd";
                ex_instr[0x09].text = "wbinvd";
                op_grp[6][7] = "invlpg";
                ex_instr[0xA6].text = "cmpxchg";
                ex_instr[0xA7].text = "cmpxchg";
                ex_instr[0xC0].text = "xadd";
                ex_instr[0xC1].text = "xadd";
                ex_instr[0xC8].text = "bswap";
                ex_instr[0xC9].text = "bswap";
                ex_instr[0xCA].text = "bswap";
                ex_instr[0xCB].text = "bswap";
                ex_instr[0xCC].text = "bswap";
                ex_instr[0xCD].text = "bswap";
                ex_instr[0xCE].text = "bswap";
                ex_instr[0xCF].text = "bswap";

            }
            break;
        case 1:             /* MASM 4.0  */
            /*
            ** Make far return only a comment
            */
            instr[0xCB].text = "ret\t; (retf)";
            break;
    }

    strcpy( temp_name, argv[name_arg] );
    if ( strchr(temp_name,'.') == NULL ) {  /* Append ".obj" if no extension */
        strcat( temp_name, ".obj" );        /* is supplied                   */
    }

    o_file = fopen( temp_name, "rb" );
    if ( o_file == NULL ) {
        fprintf( stderr, "%s: Cannot open %s\n", argv[0], temp_name );
        exit(2);
    }

    /* Print copyright message */
    printf("; OBJASM version 2.0 released on Jan 3, 1991\n");
    printf("; (C) Copyright 1988,1989,1990,1991 by Robert F. Day.  All rights reserved\n\n");

    init_trees();                   /* Initialize all trees */

    at_eof = FALSE;
    position = 0;

    while ( !at_eof ) {
        fseek( o_file, position, L_SET );

        rec_type = fgetc( o_file );

        if ( rec_type == EOF ) {
            at_eof = TRUE;
        } else {
            //size_t rec_length = getw( o_file );
            fread(&rec_length, 1, 2, o_file);

            o_position = position + 3;      /* (1 rec_type) + (2 rec_length) */

#ifdef DEBUG
            printf("PROCESSING rec_type [%02X] rec_length [%04X]\n",
                                                    rec_type, rec_length );
#endif

            switch( rec_type ) {
              case THEADR:  theadr();                       break;
              case LNAMES:  lnames( rec_length );           break;
              case GRPDEF:  grpdef( rec_length );           break;
              case SEGDEF:  segdef();                       break;
              case SEGDEFL: segdef();                       break;
              case PUBDEF:  pubdef( rec_length, TRUE );     break;
              case PUBDEFL: pubdef( rec_length, TRUE );     break;
              case LPUBDEF: pubdef( rec_length, FALSE );    break;
              case LPUBDF2: pubdef( rec_length, FALSE );    break;
              case EXTDEF:  extdef( rec_length, TRUE );     break;
              case LEXTDEF: extdef( rec_length, FALSE );    break;
              case LEDATA:  ledata( rec_length, REGULAR );  break;
              case LEDATAL: ledata( rec_length, LARGER );   break;
              case LIDATA:  lidata( rec_length, REGULAR );  break;
              case LIDATAL: lidata( rec_length, LARGER );   break;
              case FIXUPP:  fixupp( rec_length, REGULAR );  break;
              case FIXUPPL: fixupp( rec_length, LARGER );   break;
              case COMDEF:  comdef( rec_length, TRUE );     break;
              case LCOMDEF: comdef( rec_length, FALSE );    break;
              case MODEND:  modend( rec_length, REGULAR );
                            at_eof = TRUE;                  break;
              case MODENDL: modend( rec_length, LARGER );
                            at_eof = TRUE;                  break;
              case TYPDEF:                                  break;
              case COMENT:  printf("; [%04X]",position);
                            coment( rec_length );           break;
              case LINNUM:  linnum( rec_length );           break;
              default:  printf( "Bad record type: [%08lX:%02X:%04X]\n",
                                position, rec_type, rec_length          );
                        break;
            }
            position += 3 + rec_length;
        }
    }

#ifdef DEBUG
    printf("PROCESSING dis-assembly, pass 1\n");
#endif

    if ( strlen(extra_filename) != 0 ) {
        load_extra( argv[0], extra_filename );
    }

    pass = 1;
    process();                      /* First pass: Processing */

    pass = 2;
    process();                      /* Second pass: Figure out labels */

#ifdef DEBUG
    printf("PROCESSING listing externals\n");
#endif

    list_ext();                     /* Show EXTERNAL's */

#ifdef DEBUG
    printf("PROCESSING listing publics and communal definitions\n");
#endif

    list_pub();                     /* Show PUBLIC's */

    list_struc();                   /* Show STRUC's */

#ifdef DEBUG
    printf("PROCESSING dis-assembly, pass 2 (last)\n");
#endif

    pass = 3;
    process();                      /* Third pass: Output */

    fclose( o_file );

#ifdef DEBUG
    printf("END OF RUN\n");
#endif

    return(0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x1, -0x20(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x88(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0xd8f6
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0xd8d1
jmp 0xd701
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0xd8cf
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
addl $-0x34, %eax
movl %eax, %ecx
movq %rcx, -0x90(%rbp)
subl $0x42, %eax
ja 0xd8b7
movq -0x90(%rbp), %rax
leaq 0xa088(%rip), %rcx      # 0x177c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, 0x12981(%rip)     # 0x200cc
jmp 0xd8be
movl $0x1, 0x1296e(%rip)     # 0x200c8
jmp 0xd8be
movl $0x1, 0x12967(%rip)     # 0x200d0
jmp 0xd8be
movl $0x1, -0x88(%rbp)
jmp 0xd8be
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
callq 0x9170
movl %eax, 0xf4a4(%rip)      # 0x1cc34
movq -0x18(%rbp), %rax
movb 0x1(%rax), %al
movb %al, -0x81(%rbp)
movsbl %al, %eax
cmpl $0x0, %eax
je 0xd7cd
movsbl -0x81(%rbp), %eax
cmpl $0x30, %eax
jl 0xd7bd
movsbl -0x81(%rbp), %eax
cmpl $0x39, %eax
jle 0xd7bf
jmp 0xd7cd
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xd790
jmp 0xd8be
movq -0x18(%rbp), %rdi
addq $0x1, %rdi
callq 0x9170
movl %eax, 0xf44f(%rip)      # 0x1cc34
movq -0x18(%rbp), %rax
movb 0x1(%rax), %al
movb %al, -0x81(%rbp)
movsbl %al, %eax
cmpl $0x0, %eax
je 0xd822
movsbl -0x81(%rbp), %eax
cmpl $0x30, %eax
jl 0xd812
movsbl -0x81(%rbp), %eax
cmpl $0x39, %eax
jle 0xd814
jmp 0xd822
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xd7e5
jmp 0xd8be
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x28, %eax
je 0xd848
movl $0x1, -0x24(%rbp)
jmp 0xd8be
leaq 0x12891(%rip), %rax     # 0x200e0
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movb 0x1(%rax), %al
movb %al, -0x81(%rbp)
movsbl %al, %eax
cmpl $0x0, %eax
je 0xd8a2
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movsbl -0x81(%rbp), %eax
cmpl $0x29, %eax
jne 0xd889
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
jmp 0xd8a2
movb -0x81(%rbp), %cl
movq -0x30(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movb %cl, (%rax)
jmp 0xd853
movsbl -0x81(%rbp), %eax
cmpl $0x0, %eax
jne 0xd8b5
movl $0x1, -0x24(%rbp)
jmp 0xd8be
movl $0x1, -0x24(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0xd701
jmp 0xd8e8
cmpl $0x0, -0x1c(%rbp)
jne 0xd8df
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0xd8e6
movl $0x1, -0x24(%rbp)
jmp 0xd8e8
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0xd6c8
cmpl $0x0, -0x1c(%rbp)
jne 0xd903
movl $0x1, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0xda9e
movq 0xe6e4(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
leaq 0x9fa7(%rip), %rsi      # 0x178cc
movb $0x0, %al
callq 0x9120
movq 0xe6c5(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0x9fb4(%rip), %rsi      # 0x178f1
movb $0x0, %al
callq 0x9120
movq 0xe6ad(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0x9fb1(%rip), %rsi      # 0x17906
movb $0x0, %al
callq 0x9120
movq 0xe695(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0x9fcb(%rip), %rsi      # 0x17938
movb $0x0, %al
callq 0x9120
movq 0xe67d(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0x9fea(%rip), %rsi      # 0x1796f
movb $0x0, %al
callq 0x9120
movq 0xe665(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0x9ff8(%rip), %rsi      # 0x17995
movb $0x0, %al
callq 0x9120
movq 0xe64d(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa008(%rip), %rsi      # 0x179bd
movb $0x0, %al
callq 0x9120
movq 0xe635(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa032(%rip), %rsi      # 0x179ff
movb $0x0, %al
callq 0x9120
movq 0xe61d(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa05b(%rip), %rsi      # 0x17a40
movb $0x0, %al
callq 0x9120
movq 0xe605(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa277(%rip), %rsi      # 0x17c74
movb $0x0, %al
callq 0x9120
movq 0xe5ed(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa065(%rip), %rsi      # 0x17a7a
movb $0x0, %al
callq 0x9120
movq 0xe5d5(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa071(%rip), %rsi      # 0x17a9e
movb $0x0, %al
callq 0x9120
movq 0xe5bd(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa098(%rip), %rsi      # 0x17add
movb $0x0, %al
callq 0x9120
movq 0xe5a5(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa0bf(%rip), %rsi      # 0x17b1c
movb $0x0, %al
callq 0x9120
movq 0xe58d(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa0ec(%rip), %rsi      # 0x17b61
movb $0x0, %al
callq 0x9120
movq 0xe575(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
leaq 0xa112(%rip), %rsi      # 0x17b9f
movb $0x0, %al
callq 0x9120
movl $0x1, %edi
callq 0x91a0
movl 0x12624(%rip), %eax     # 0x200c8
movl %eax, -0x94(%rbp)
testl %eax, %eax
je 0xdac4
jmp 0xdab0
movl -0x94(%rbp), %eax
subl $0x1, %eax
je 0xdc0e
jmp 0xdc23
cmpl $0x0, -0x88(%rbp)
je 0xdc0c
leaq 0x10bb8(%rip), %rax     # 0x1e690
leaq 0xa0e8(%rip), %rcx      # 0x17bc7
movq %rcx, 0xd0(%rax)
leaq 0x10ba3(%rip), %rax     # 0x1e690
leaq 0xa0d1(%rip), %rcx      # 0x17bc5
movq %rcx, 0xe8(%rax)
leaq 0xe8be(%rip), %rax      # 0x1c3c0
leaq 0xa0c3(%rip), %rcx      # 0x17bcc
movq %rcx, 0x1b8(%rax)
leaq 0x10b79(%rip), %rax     # 0x1e690
leaq 0xa0b5(%rip), %rcx      # 0x17bd3
movq %rcx, 0xfa0(%rax)
leaq 0x10b64(%rip), %rax     # 0x1e690
leaq 0xa0a0(%rip), %rcx      # 0x17bd3
movq %rcx, 0xfb8(%rax)
leaq 0x10b4f(%rip), %rax     # 0x1e690
leaq 0xa093(%rip), %rcx      # 0x17bdb
movq %rcx, 0x1210(%rax)
leaq 0x10b3a(%rip), %rax     # 0x1e690
leaq 0xa07e(%rip), %rcx      # 0x17bdb
movq %rcx, 0x1228(%rax)
leaq 0x10b25(%rip), %rax     # 0x1e690
leaq 0xa06e(%rip), %rcx      # 0x17be0
movq %rcx, 0x12d0(%rax)
leaq 0x10b10(%rip), %rax     # 0x1e690
leaq 0xa059(%rip), %rcx      # 0x17be0
movq %rcx, 0x12e8(%rax)
leaq 0x10afb(%rip), %rax     # 0x1e690
leaq 0xa044(%rip), %rcx      # 0x17be0
movq %rcx, 0x1300(%rax)
leaq 0x10ae6(%rip), %rax     # 0x1e690
leaq 0xa02f(%rip), %rcx      # 0x17be0
movq %rcx, 0x1318(%rax)
leaq 0x10ad1(%rip), %rax     # 0x1e690
leaq 0xa01a(%rip), %rcx      # 0x17be0
movq %rcx, 0x1330(%rax)
leaq 0x10abc(%rip), %rax     # 0x1e690
leaq 0xa005(%rip), %rcx      # 0x17be0
movq %rcx, 0x1348(%rax)
leaq 0x10aa7(%rip), %rax     # 0x1e690
leaq 0x9ff0(%rip), %rcx      # 0x17be0
movq %rcx, 0x1360(%rax)
leaq 0x10a92(%rip), %rax     # 0x1e690
leaq 0x9fdb(%rip), %rcx      # 0x17be0
movq %rcx, 0x1378(%rax)
jmp 0xdc23
leaq 0xf07b(%rip), %rax      # 0x1cc90
leaq 0x9fca(%rip), %rcx      # 0x17be6
movq %rcx, 0x1318(%rax)
leaq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x9060
leaq -0x80(%rbp), %rdi
movl $0x2e, %esi
callq 0x90b0
cmpq $0x0, %rax
jne 0xdc5c
leaq -0x80(%rbp), %rdi
leaq 0x9f9c(%rip), %rsi      # 0x17bf3
callq 0x9180
leaq -0x80(%rbp), %rdi
leaq 0x9f91(%rip), %rsi      # 0x17bf8
callq 0x9160
movq %rax, 0x124b5(%rip)     # 0x20128
cmpq $0x0, 0x124ad(%rip)     # 0x20128
jne 0xdcaa
movq 0xe374(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
leaq -0x80(%rbp), %rcx
leaq 0x986f(%rip), %rsi      # 0x17508
movb $0x0, %al
callq 0x9120
movl $0x2, %edi
callq 0x91a0
leaq 0x9f4a(%rip), %rdi      # 0x17bfb
movb $0x0, %al
callq 0x90c0
leaq 0x9f6a(%rip), %rdi      # 0x17c29
movb $0x0, %al
callq 0x90c0
callq 0x163a0
movl $0x0, -0x3c(%rbp)
movq $0x0, -0x38(%rbp)
cmpl $0x0, -0x3c(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xdcec
jmp 0xdf36
movq 0x12435(%rip), %rdi     # 0x20128
movq -0x38(%rbp), %rsi
xorl %edx, %edx
callq 0x9140
movq 0x12423(%rip), %rdi     # 0x20128
callq 0x90d0
movl %eax, -0x40(%rbp)
cmpl $-0x1, -0x40(%rbp)
jne 0xdd1f
movl $0x1, -0x3c(%rbp)
jmp 0xdf31
movq 0x12402(%rip), %rcx     # 0x20128
leaq -0x44(%rbp), %rdi
movl $0x1, %esi
movl $0x2, %edx
callq 0x9080
movq -0x38(%rbp), %rax
addq $0x3, %rax
movq %rax, 0x123e8(%rip)     # 0x20130
movl -0x40(%rbp), %eax
addl $-0x80, %eax
movl %eax, %ecx
movq %rcx, -0xa0(%rbp)
subl $0x38, %eax
ja 0xdf09
movq -0xa0(%rbp), %rax
leaq 0x996e(%rip), %rcx      # 0x176dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x162e0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
callq 0x15940
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
callq 0x15010
jmp 0xdf21
callq 0x15d60
jmp 0xdf21
callq 0x15d60
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x15b30
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x15b30
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x15b30
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x15b30
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x149f0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x149f0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x154b0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x154b0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x155e0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x155e0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x14e00
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x14e00
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x134a0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x134a0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
xorl %esi, %esi
callq 0x159a0
movl $0x1, -0x3c(%rbp)
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x159a0
movl $0x1, -0x3c(%rbp)
jmp 0xdf21
jmp 0xdf21
movq -0x38(%rbp), %rsi
leaq 0x9d8c(%rip), %rdi      # 0x17c76
movb $0x0, %al
callq 0x90c0
movl -0x44(%rbp), %eax
movl %eax, %edi
callq 0x135f0
jmp 0xdf21
movl -0x44(%rbp), %eax
movl %eax, %edi
callq 0x15760
jmp 0xdf21
movq -0x38(%rbp), %rsi
movl -0x40(%rbp), %edx
movl -0x44(%rbp), %ecx
leaq 0x9d65(%rip), %rdi      # 0x17c7f
movb $0x0, %al
callq 0x90c0
movl -0x44(%rbp), %eax
addl $0x3, %eax
movl %eax, %eax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xdcda
leaq 0x121a3(%rip), %rdi     # 0x200e0
callq 0x90a0
cmpq $0x0, %rax
je 0xdf5b
movq -0x10(%rbp), %rax
movq (%rax), %rdi
leaq 0x1218a(%rip), %rsi     # 0x200e0
callq 0xcf20
movl $0x1, 0x121d3(%rip)     # 0x20138
callq 0x10c60
movl $0x2, 0x121c4(%rip)     # 0x20138
callq 0x10c60
callq 0x11150
callq 0x112c0
callq 0x113b0
movl $0x3, 0x121a6(%rip)     # 0x20138
callq 0x10c60
movq 0x1218a(%rip), %rdi     # 0x20128
callq 0x9090
xorl %eax, %eax
addq $0xa0, %rsp
popq %rbp
retq
nop