// File: /workspace/github_c_makefile_star2_O3/Nico01[P]obj2asm/oprocess.c
// Function: pre_dups
void pre_dups( count, orgable )
    long    count;
    int     orgable;
{
    char    *opcode;
    char    *operand;
    char    temp[80];
    int     times;

    if ( last_pub_rec && pass == 3 ) {
        if ( last_pub_rec->type == FAR ) {
            out_directive("=");
            out_operand("$");
        }
        if ( last_pub_rec->type == NEAR ) {
            out_endline();
        }
    }

    if ( count != 0L ) {
        if ( (orgable && inst_offset == 0 && count > 0L) || count < 0L ) {
            opcode = "ORG";
            sprintf( temp, "0%04Xh", inst_offset + count );
            operand = temp;
        } else {
            if ( compatibility == 2 ) {
                operand = "1";                  /* Default operand */
                switch( (int)count ) {
                    case 1:    opcode = "rb";  break;
                    case 2:    opcode = "rw";  break;
                    case 4:    opcode = "rd";  break;
                    default:    opcode = "rs";
                                sprintf( temp, "0%04Xh", count );
                                operand = temp;
                                break;
                }
            } else {
                operand = "1 dup (?)";          /* Default operand */

                opcode = size_to_opcode( (int)count, &times );

                sprintf( temp, "%d dup(?)", times );
                operand = temp;
            }
        }
        if ( pass == 3 && count != 0L ) {
            out_directive( opcode );
            out_operand( operand );
            out_endline();
        }
        inst_offset += count;
        last_pub_rec = NULL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x10059(%rip), %r12     # 0x1d090
movq (%r12), %rax
leaq 0xff26(%rip), %r13      # 0x1cf68
testq %rax, %rax
je 0xd07f
cmpl $0x3, (%r13)
jne 0xd07f
movl 0x38(%rax), %eax
cmpl $0x2, %eax
jne 0xd075
leaq 0x659d(%rip), %rdi      # 0x135fa
callq 0xcb07
leaq 0x6c1b(%rip), %rdi      # 0x13c84
callq 0xca45
movq (%r12), %rax
movl 0x38(%rax), %eax
cmpl $0x1, %eax
jne 0xd07f
callq 0xcaab
testq %rbx, %rbx
je 0xd15b
testl %ebp, %ebp
setne %al
leaq 0x10104(%rip), %rbp     # 0x1d198
movq (%rbp), %rdx
testq %rdx, %rdx
sete %cl
testq %rbx, %rbx
setg %sil
js 0xd0e6
andb %al, %sil
andb %cl, %sil
jne 0xd0e6
leaq 0xfe42(%rip), %rax      # 0x1cef8
cmpl $0x2, (%rax)
jne 0xd108
leaq 0x6afd(%rip), %r14      # 0x13bbf
cmpl $0x1, %ebx
je 0xd173
cmpl $0x4, %ebx
je 0xd16a
cmpl $0x2, %ebx
jne 0xd17c
leaq 0x60da(%rip), %r15      # 0x131be
jmp 0xd133
addq %rbx, %rdx
leaq 0x6bc7(%rip), %rsi      # 0x13cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x6b80(%rip), %r15      # 0x13c86
jmp 0xd133
leaq 0xc(%rsp), %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0xf69e
movq %rax, %r15
movl (%r14), %edx
leaq 0x6b69(%rip), %rsi      # 0x13c8d
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
cmpl $0x3, (%r13)
jne 0xd14f
movq %r15, %rdi
callq 0xcb07
movq %r14, %rdi
callq 0xca45
callq 0xcaab
addq %rbx, (%rbp)
movq $0x0, (%r12)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x71e3(%rip), %r15      # 0x14354
jmp 0xd133
leaq 0x69ea(%rip), %r15      # 0x13b64
jmp 0xd133
leaq 0x6b34(%rip), %rsi      # 0x13cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x91b0
leaq 0x6aee(%rip), %r15      # 0x13c8a
jmp 0xd133