// File: /workspace/github_c_makefile_star2_O2/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 0xf665(%rip), %r12      # 0x1c090
movq (%r12), %rax
leaq 0xf532(%rip), %r13      # 0x1bf68
testq %rax, %rax
je 0xca73
cmpl $0x3, (%r13)
jne 0xca73
movl 0x38(%rax), %eax
cmpl $0x2, %eax
jne 0xca69
leaq 0x5ba9(%rip), %rdi      # 0x125fa
callq 0xc554
leaq 0x6227(%rip), %rdi      # 0x12c84
callq 0xc4c6
movq (%r12), %rax
movl 0x38(%rax), %eax
cmpl $0x1, %eax
jne 0xca73
callq 0xc522
testq %rbx, %rbx
je 0xcb4c
testl %ebp, %ebp
setne %al
leaq 0xf710(%rip), %rbp      # 0x1c198
movq (%rbp), %rdx
testq %rdx, %rdx
sete %cl
testq %rbx, %rbx
setg %sil
js 0xcada
andb %al, %sil
andb %cl, %sil
jne 0xcada
leaq 0xf44e(%rip), %rax      # 0x1bef8
cmpl $0x2, (%rax)
jne 0xcafc
leaq 0x6109(%rip), %r14      # 0x12bbf
cmpl $0x1, %ebx
je 0xcb64
cmpl $0x4, %ebx
je 0xcb5b
cmpl $0x2, %ebx
jne 0xcb6d
leaq 0x56e6(%rip), %r15      # 0x121be
jmp 0xcb27
addq %rbx, %rdx
leaq 0x61d3(%rip), %rsi      # 0x12cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x618c(%rip), %r15      # 0x12c86
jmp 0xcb27
leaq 0xc(%rsp), %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0xef12
movq %rax, %r15
movl (%r14), %edx
leaq 0x6175(%rip), %rsi      # 0x12c8d
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
cmpl $0x3, (%r13)
jne 0xcb43
movq %r15, %rdi
callq 0xc554
movq %r14, %rdi
callq 0xc4c6
callq 0xc522
addq %rbx, (%rbp)
andq $0x0, (%r12)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x67f2(%rip), %r15      # 0x13354
jmp 0xcb27
leaq 0x5ff9(%rip), %r15      # 0x12b64
jmp 0xcb27
leaq 0x6143(%rip), %rsi      # 0x12cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x91b0
leaq 0x60fd(%rip), %r15      # 0x12c8a
jmp 0xcb27