// File: /workspace/github_c_makefile_star2_O1/Nico01[P]obj2asm/odisasm.c
// Function: three_byte
int three_byte( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    dword   offset;
    int             dummy;
    int             data_size;
    int             size_tmp;
    char            line[50];
    char            temp[50];

    if ( over_seg != -1 ) {         /* No segment overide allowed */
        return( 0 );
    }

    reg_format( class, line, text, "%s\t", "%s\t%s," );

    size_tmp = size_large;

    if ( byte == 0xC2 || byte == 0xCA ) {       /* <RET jjkk>/<RETF jjkk> */
        size_tmp = FALSE;
        size_bytes = 2;
    }

    data_size = size_bytes;

    switch( data_check( 1 ) ) {
        case BAD:       return( 0 );
        case LABEL:     return( 0 );
        case FIXUP:     if ( fix_rec->word_sized
                                && fix_rec->extended == size_tmp ) {
                            get_fix( temp, 2, TRUE, size_bytes,
                                                    NEAR, FALSE, &dummy, DS );
                            strcat( line, temp );
                            adjust_assumes();
                            instr_opcode( line );
                            return( data_size+1 );
                        } else {
                            return( 0 );
                        }
        case NORMAL:    if ( check_getv( &offset, size_tmp ) ) {
                            return( 0 );
                        }
                        out_hexize( offset, temp, size_bytes );
                        strcat( line, temp );
                        instr_opcode(line);
                        return( data_size+1 );
    }
    return(0);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
xorl %ebx, %ebx
cmpl $-0x1, 0xff7c(%rip)     # 0x19a88
je 0x9b1c
movl %ebx, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %rax
movl %edi, %ebp
leaq 0x971d(%rip), %rcx      # 0x13245
leaq 0x971a(%rip), %r8       # 0x13249
leaq 0x10(%rsp), %rsi
movl %edx, %edi
movq %rax, %rdx
callq 0x964a
andb $-0x9, %bpl
cmpb $-0x3e, %bpl
jne 0x9b57
movl $0x2, 0xff3a(%rip)      # 0x19a8c
xorl %r14d, %r14d
jmp 0x9b5e
movl 0x13326(%rip), %r14d    # 0x1ce84
movl 0xff28(%rip), %ebp      # 0x19a8c
movl $0x1, %edi
callq 0xcca8
testl %eax, %eax
je 0x9bd3
cmpl $0x2, %eax
jne 0x9b0e
leaq 0x1359a(%rip), %rax     # 0x1d118
movq (%rax), %rax
cmpl $0x0, 0x3c(%rax)
je 0x9b0e
cmpl %r14d, 0x38(%rax)
jne 0x9b0e
movl 0xfef9(%rip), %ecx      # 0x19a8c
leaq 0x8(%rsp), %rax
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
movl $0x1, %r8d
xorl %r9d, %r9d
pushq $0x14
pushq %rax
callq 0x10207
addq $0x10, %rsp
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x91a0
callq 0xf919
jmp 0x9c16
leaq 0x8(%rsp), %rdi
testl %r14d, %r14d
je 0x9be4
callq 0x971c
jmp 0x9be9
callq 0x96e5
testl %eax, %eax
jne 0x9b0e
movq 0x8(%rsp), %rdi
movl 0xfe90(%rip), %edx      # 0x19a8c
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0xcb08
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x91a0
leaq 0x10(%rsp), %rdi
callq 0x97c1
incl %ebp
movl %ebp, %ebx
jmp 0x9b0e