// File: /workspace/github_c_makefile_star2_O0/Nico01[P]obj2asm/odisasm.c
// Function: three_a
int three_a( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    int             dir;
    int             reg_size;
    int             data_size;
    int             type;
    int             size_known;
    dword   offset;
    char            line[50];
    char            seg_text[10];
    char            temp[50];
    char            temp2[15];
    int             ref_seg;

    data_size = addr_bytes;

    dir  = ( byte & 0x02 ) >> 1;
    reg_size = ( byte & 0x01 );

    if ( reg_size == 1 && size_large ) {
        reg_size = 2;
    }
    type = reg_size_to_type(reg_size);

    if ( over_seg != -1 ) {                 /* Any previous segment overide? */
        ref_seg = 17+over_seg;
        strcpy( seg_text, sregsc[over_seg] );
    } else {
        ref_seg = DS;
        seg_text[0] = '\0';
    }

    switch( data_check( 1 ) ) {
        case BAD:
            return( 0 );
        case LABEL:     
            return( 0 );
        case FIXUP:
            if ( fix_rec->word_sized && fix_rec->extended == addr_large ) {
                get_fix( temp, 0, FALSE, size_bytes, type, TRUE,
                                                        &size_known, ref_seg );
            } else {
                return( 0 );
            }
            strcpy( line, "" );
            if ( compatibility == 2 ) {
                strcat( line, seg_text );
                strcat( line, " " );
                if ( !size_known ) {
                    strcat( line, type_to_text(type) );
                }
            } else {
                if ( !size_known ) {
                    strcat( line, type_to_text(type) );
                }
                strcat( line, seg_text );
            }
            strcat( line, temp );
            break;
        case NORMAL:
            if ( check_getv( &offset, addr_large ) ) {
                return( 0 );
            }
            out_hexize( offset, temp2, addr_bytes );    /* Make hex digits */

            if ( compatibility == 2 ) {
                sprintf( line, "%s .%s", seg_text, temp2 );
            } else {
                if ( over_seg == -1 ) {
                    sprintf( line, "ds:[%s]", temp2 );
                } else {
                    sprintf( line, "%s[%s]", seg_text, temp2 );
                }
            }
            break;
    }

    if ( dir == 0 ) {
        sprintf( temp, "%s,%s", regs[reg_size][0], line );
    } else {
        sprintf( temp, "%s,%s", line, regs[reg_size][0] );
    }

    adjust_assumes();

    instr_opcode( text );
    instr_operand( temp );

    class = class;              /* Prevent unused variable warnings */

    return( 1 + data_size );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movb %dil, %al
movb %al, -0x5(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl 0x12a22(%rip), %eax     # 0x1ca80
movl %eax, -0x20(%rbp)
movzbl -0x5(%rbp), %eax
andl $0x2, %eax
sarl %eax
movl %eax, -0x18(%rbp)
movzbl -0x5(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x1, -0x1c(%rbp)
jne 0xa08d
cmpl $0x0, 0x15fd8(%rip)     # 0x2005c
je 0xa08d
movl $0x2, -0x1c(%rbp)
movl -0x1c(%rbp), %edi
callq 0x11e50
movl %eax, -0x24(%rbp)
cmpl $-0x1, 0x129d9(%rip)    # 0x1ca78
je 0xa0cd
movl 0x129d1(%rip), %eax     # 0x1ca78
addl $0x11, %eax
movl %eax, -0xc4(%rbp)
leaq -0x7a(%rbp), %rdi
movslq 0x129bd(%rip), %rcx     # 0x1ca78
leaq 0x1216e(%rip), %rax     # 0x1c230
movq (%rax,%rcx,8), %rsi
callq 0x9060
jmp 0xa0db
movl $0x14, -0xc4(%rbp)
movb $0x0, -0x7a(%rbp)
movl $0x1, %edi
callq 0xe580
movl %eax, %ecx
movq %rcx, -0xd0(%rbp)
subl $0x3, %eax
ja 0xa2de
movq -0xd0(%rbp), %rax
leaq 0xcf4f(%rip), %rcx      # 0x17054
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x4(%rbp)
jmp 0xa36b
movl $0x0, -0x4(%rbp)
jmp 0xa36b
leaq 0x161bb(%rip), %rax     # 0x202e8
movq (%rax), %rax
cmpl $0x0, 0x3c(%rax)
je 0xa17f
leaq 0x161ab(%rip), %rax     # 0x202e8
movq (%rax), %rax
movl 0x38(%rax), %eax
cmpl 0x15f17(%rip), %eax     # 0x20060
jne 0xa17f
leaq -0xb0(%rbp), %rdi
movl 0x12924(%rip), %ecx     # 0x1ca7c
movl -0x24(%rbp), %r8d
movl -0xc4(%rbp), %eax
xorl %edx, %edx
movl $0x1, %r9d
leaq -0x28(%rbp), %r10
movl %edx, %esi
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x13210
jmp 0xa18b
movl $0x0, -0x4(%rbp)
jmp 0xa36b
leaq -0x70(%rbp), %rdi
leaq 0xe02a(%rip), %rsi      # 0x181c0
callq 0x9060
leaq 0x15f26(%rip), %rax     # 0x200c8
cmpl $0x2, (%rax)
jne 0xa1ee
leaq -0x70(%rbp), %rdi
leaq -0x7a(%rbp), %rsi
callq 0x9180
leaq -0x70(%rbp), %rdi
leaq 0xddfc(%rip), %rsi      # 0x17fbb
callq 0x9180
cmpl $0x0, -0x28(%rbp)
jne 0xa1ec
leaq -0x70(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl -0x24(%rbp), %edi
callq 0x11f20
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x9180
jmp 0xa223
cmpl $0x0, -0x28(%rbp)
jne 0xa216
leaq -0x70(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl -0x24(%rbp), %edi
callq 0x11f20
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
callq 0x9180
leaq -0x70(%rbp), %rdi
leaq -0x7a(%rbp), %rsi
callq 0x9180
leaq -0x70(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x9180
jmp 0xa2de
movl 0x15e22(%rip), %esi     # 0x20060
leaq -0x30(%rbp), %rdi
callq 0x95e0
cmpl $0x0, %eax
je 0xa258
movl $0x0, -0x4(%rbp)
jmp 0xa36b
movq -0x30(%rbp), %rdi
leaq -0xbf(%rbp), %rsi
movl 0x12817(%rip), %edx     # 0x1ca80
callq 0xe320
leaq 0x15e53(%rip), %rax     # 0x200c8
cmpl $0x2, (%rax)
jne 0xa299
leaq -0x70(%rbp), %rdi
leaq -0x7a(%rbp), %rdx
leaq -0xbf(%rbp), %rcx
leaq 0xd093(%rip), %rsi      # 0x17323
movb $0x0, %al
callq 0x9190
jmp 0xa2dc
cmpl $-0x1, 0x127d8(%rip)    # 0x1ca78
jne 0xa2bd
leaq -0x70(%rbp), %rdi
leaq -0xbf(%rbp), %rdx
leaq 0xd076(%rip), %rsi      # 0x1732a
movb $0x0, %al
callq 0x9190
jmp 0xa2da
leaq -0x70(%rbp), %rdi
leaq -0x7a(%rbp), %rdx
leaq -0xbf(%rbp), %rcx
leaq 0xd05f(%rip), %rsi      # 0x17332
movb $0x0, %al
callq 0x9190
jmp 0xa2dc
jmp 0xa2de
cmpl $0x0, -0x18(%rbp)
jne 0xa314
leaq -0xb0(%rbp), %rdi
movslq -0x1c(%rbp), %rcx
leaq 0x11e0a(%rip), %rax     # 0x1c100
shlq $0x6, %rcx
addq %rcx, %rax
movq (%rax), %rdx
leaq -0x70(%rbp), %rcx
leaq 0xcf8b(%rip), %rsi      # 0x17296
movb $0x0, %al
callq 0x9190
jmp 0xa342
leaq -0xb0(%rbp), %rdi
leaq -0x70(%rbp), %rdx
movslq -0x1c(%rbp), %rcx
leaq 0x11dd6(%rip), %rax     # 0x1c100
shlq $0x6, %rcx
addq %rcx, %rax
movq (%rax), %rcx
leaq 0xcf5b(%rip), %rsi      # 0x17296
movb $0x0, %al
callq 0x9190
callq 0x123f0
movq -0x10(%rbp), %rdi
callq 0x9670
leaq -0xb0(%rbp), %rdi
callq 0x96b0
movl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
nopw (%rax,%rax)