// File: /workspace/github_c_makefile_star2_O2/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, 0xf314(%rip)     # 0x18a88
je 0x9784
movl %ebx, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rsi, %rax
movl %edi, %ebp
leaq 0x8ab5(%rip), %rcx      # 0x12245
leaq 0x8ab2(%rip), %r8       # 0x12249
leaq 0x10(%rsp), %rsi
movl %edx, %edi
movq %rax, %rdx
callq 0x9337
andb $-0x9, %bpl
cmpb $-0x3e, %bpl
jne 0x97c2
movl $0x2, 0xf2d2(%rip)      # 0x18a8c
xorl %ebp, %ebp
pushq $0x3
popq %r14
jmp 0x97d2
movl 0x126bc(%rip), %ebp     # 0x1be84
movl 0xf2bd(%rip), %r14d     # 0x18a8c
incl %r14d
pushq $0x1
popq %rdi
callq 0xc74e
testl %eax, %eax
je 0x9839
cmpl $0x2, %eax
jne 0x9776
leaq 0x1292e(%rip), %rax     # 0x1c118
movq (%rax), %rax
cmpl $0x0, 0x3c(%rax)
je 0x9776
cmpl %ebp, 0x38(%rax)
jne 0x9776
movl 0xf28a(%rip), %ecx      # 0x18a8c
leaq 0x8(%rsp), %rax
leaq 0x50(%rsp), %rbx
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %edx, %r8d
xorl %r9d, %r9d
pushq $0x14
pushq %rax
callq 0xfad9
popq %rcx
popq %rdx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x91a0
callq 0xf1c1
jmp 0x9872
leaq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x9461
testl %eax, %eax
jne 0x9776
movq 0x8(%rsp), %rdi
movl 0xf234(%rip), %edx      # 0x18a8c
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0xc5b5
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x91a0
leaq 0x10(%rsp), %rdi
callq 0x9491
movl %r14d, %ebx
jmp 0x9776