// File: /workspace/github_c_makefile_star2_O1/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 0x100bc(%rip), %r12     # 0x1d090
movq (%r12), %rax
leaq 0xff89(%rip), %r13      # 0x1cf68
testq %rax, %rax
je 0xd018
cmpl $0x3, (%r13)
jne 0xd018
cmpl $0x2, 0x38(%rax)
jne 0xd009
leaq 0x6602(%rip), %rdi      # 0x135fa
callq 0xca9b
leaq 0x6c80(%rip), %rdi      # 0x13c84
callq 0xc9d9
movq (%r12), %rax
cmpl $0x1, 0x38(%rax)
jne 0xd018
callq 0xca3f
testq %rbx, %rbx
je 0xd0f4
testl %ebp, %ebp
setne %al
leaq 0x1016b(%rip), %rbp     # 0x1d198
movq (%rbp), %rdx
testq %rdx, %rdx
sete %cl
testq %rbx, %rbx
setg %sil
js 0xd07f
andb %al, %sil
andb %cl, %sil
jne 0xd07f
leaq 0xfea9(%rip), %rax      # 0x1cef8
cmpl $0x2, (%rax)
jne 0xd0a1
leaq 0x6b64(%rip), %r14      # 0x13bbf
cmpl $0x1, %ebx
je 0xd10c
cmpl $0x4, %ebx
je 0xd103
cmpl $0x2, %ebx
jne 0xd115
leaq 0x6141(%rip), %r15      # 0x131be
jmp 0xd0cc
addq %rbx, %rdx
leaq 0x6c2e(%rip), %rsi      # 0x13cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
leaq 0x6be7(%rip), %r15      # 0x13c86
jmp 0xd0cc
leaq 0xc(%rsp), %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0xf662
movq %rax, %r15
movl (%r14), %edx
leaq 0x6bd0(%rip), %rsi      # 0x13c8d
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x91b0
cmpl $0x3, (%r13)
jne 0xd0e8
movq %r15, %rdi
callq 0xca9b
movq %r14, %rdi
callq 0xc9d9
callq 0xca3f
addq %rbx, (%rbp)
movq $0x0, (%r12)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x724a(%rip), %r15      # 0x14354
jmp 0xd0cc
leaq 0x6a51(%rip), %r15      # 0x13b64
jmp 0xd0cc
leaq 0x6b9b(%rip), %rsi      # 0x13cb7
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x91b0
leaq 0x6b55(%rip), %r15      # 0x13c8a
jmp 0xd0cc