// File: /workspace/github_c_makefile_star2_O2/Nico01[P]obj2asm/odisasm.c
// Function: five_byte
int five_byte( byte, text, class )
    uchar   byte;
    char            *text;
    int             class;
{
    dword   offset;
    dword   segment;
    int             size_known;
    char            line[50];
    char            temp[50];
    int             data_size;

    if ( over_seg != -1 ) {         /* No segment overide allowed */
        return(0);
    }

    data_size = size_bytes;

    switch( data_check( 1 ) ) {
        case BAD:
            return( 0 );
        case LABEL:
            return( 0 );
        case FIXUP:
            if ( fix_rec->form != POINTER || fix_rec->extended != size_large ) {
                return( 0 );
            }
            get_fix( temp, 1, FALSE, size_bytes, NEAR, TRUE, &size_known, CS );
            sprintf( line, "far ptr %s", temp );
            break;
        case NORMAL:
            if ( check_getv( &offset, size_large ) ) {
                return( 0 );
            }
            if ( data_check(3) != NORMAL ) {
                return( 0 );
            }
            if ( check_getw( &segment ) ) {
                return( 0 );
            }
            out_hexize( segment, temp, 2 );      /* Convert 2 byte into hex */
            strcpy( line, temp );
            strcat( line, ":" );
            out_hexize( offset, temp, size_bytes ); /* Convert 2/4 bytes into hex */
            strcat( line, temp );
            break; 
    }

    adjust_assumes();

    instr_opcode( text );
    instr_operand( line );

    byte = byte;               /* Prevent unused variable warnings */
    class = class;              /* Prevent unused variable warnings */

    return( 3 + data_size );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
xorl %ebp, %ebp
cmpl $-0x1, 0xf1ec(%rip)     # 0x18a88
je 0x98b0
movl %ebp, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movl 0xf1d2(%rip), %r12d     # 0x18a8c
pushq $0x1
popq %rdi
callq 0xc74e
cmpl $0x3, %eax
ja 0x99bb
movl %eax, %eax
leaq 0x8730(%rip), %rcx      # 0x12004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x125a1(%rip), %esi     # 0x1be84
movq %rsp, %rdi
callq 0x9461
testl %eax, %eax
jne 0x989e
pushq $0x3
popq %rdi
callq 0xc74e
testl %eax, %eax
jne 0x989e
leaq 0x8(%rsp), %rdi
callq 0x93d0
testl %eax, %eax
jne 0x989e
movq 0x8(%rsp), %rdi
leaq 0x50(%rsp), %r14
pushq $0x2
popq %rdx
movq %r14, %rsi
callq 0xc5b5
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x9070
movq %r15, %rdi
callq 0x90b0
movw $0x3a, 0x10(%rsp,%rax)
movq (%rsp), %rdi
movl 0xf145(%rip), %edx      # 0x18a8c
movq %r14, %rsi
callq 0xc5b5
movq %r15, %rdi
movq %r14, %rsi
callq 0x91a0
jmp 0x99bb
leaq 0x127b5(%rip), %rax     # 0x1c118
movq (%rax), %rax
cmpl $0x3, 0x18(%rax)
jne 0x989e
movl 0x38(%rax), %eax
cmpl 0x1250b(%rip), %eax     # 0x1be84
jne 0x989e
movl 0xf107(%rip), %ecx      # 0x18a8c
movq %rsp, %rax
leaq 0x50(%rsp), %r14
pushq $0x1
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
movl %esi, %r8d
movl %esi, %r9d
pushq $0x12
pushq %rax
callq 0xfad9
popq %rcx
popq %rdx
leaq 0x88ba(%rip), %rsi      # 0x12266
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x91b0
callq 0xf1c1
movq %rbx, %rdi
callq 0x9491
leaq 0x10(%rsp), %rdi
callq 0x94b3
addl $0x3, %r12d
movl %r12d, %ebp
jmp 0x989e