// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq 0x11907(%rip), %rax     # 0x20260
cmpq $0x0, (%rax)
je 0xe9aa
leaq 0x117d2(%rip), %rax     # 0x20138
cmpl $0x3, (%rax)
jne 0xe9aa
leaq 0x118ee(%rip), %rax     # 0x20260
movq (%rax), %rax
cmpl $0x2, 0x38(%rax)
jne 0xe993
leaq 0x8c1f(%rip), %rdi      # 0x175a1
callq 0xe290
leaq 0x938a(%rip), %rdi      # 0x17d18
callq 0xe190
leaq 0x118c6(%rip), %rax     # 0x20260
movq (%rax), %rax
cmpl $0x1, 0x38(%rax)
jne 0xe9a8
callq 0xe240
jmp 0xe9aa
cmpq $0x0, -0x8(%rbp)
je 0xeb25
cmpl $0x0, -0xc(%rbp)
je 0xe9cf
leaq 0x119a6(%rip), %rax     # 0x20368
cmpq $0x0, (%rax)
jne 0xe9cf
cmpq $0x0, -0x8(%rbp)
jg 0xe9d6
cmpq $0x0, -0x8(%rbp)
jge 0xea0e
leaq 0x933d(%rip), %rax      # 0x17d1a
movq %rax, -0x18(%rbp)
leaq -0x70(%rbp), %rdi
leaq 0x1197c(%rip), %rax     # 0x20368
movq (%rax), %rdx
addq -0x8(%rbp), %rdx
leaq 0x935b(%rip), %rsi      # 0x17d55
movb $0x0, %al
callq 0x9190
leaq -0x70(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xead5
leaq 0x116b3(%rip), %rax     # 0x200c8
cmpl $0x2, (%rax)
jne 0xea98
leaq 0x8a08(%rip), %rax      # 0x17429
movq %rax, -0x20(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x78(%rbp)
subl $0x1, %eax
je 0xea46
jmp 0xea32
movl -0x78(%rbp), %eax
subl $0x2, %eax
je 0xea53
jmp 0xea3c
movl -0x78(%rbp), %eax
subl $0x4, %eax
je 0xea60
jmp 0xea6d
leaq 0x91ab(%rip), %rax      # 0x17bf8
movq %rax, -0x18(%rbp)
jmp 0xea96
leaq 0x87e0(%rip), %rax      # 0x1723a
movq %rax, -0x18(%rbp)
jmp 0xea96
leaq 0x99a1(%rip), %rax      # 0x18408
movq %rax, -0x18(%rbp)
jmp 0xea96
leaq 0x92aa(%rip), %rax      # 0x17d1e
movq %rax, -0x18(%rbp)
leaq -0x70(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq 0x92ce(%rip), %rsi      # 0x17d55
movb $0x0, %al
callq 0x9190
leaq -0x70(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xead3
leaq 0x9282(%rip), %rax      # 0x17d21
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl %eax, %edi
leaq -0x74(%rbp), %rsi
callq 0x11fb0
movq %rax, -0x18(%rbp)
leaq -0x70(%rbp), %rdi
movl -0x74(%rbp), %edx
leaq 0x9267(%rip), %rsi      # 0x17d2b
movb $0x0, %al
callq 0x9190
leaq -0x70(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xead5
leaq 0x1165c(%rip), %rax     # 0x20138
cmpl $0x3, (%rax)
jne 0xeaff
cmpq $0x0, -0x8(%rbp)
je 0xeaff
movq -0x18(%rbp), %rdi
callq 0xe290
movq -0x20(%rbp), %rdi
callq 0xe190
callq 0xe240
movq -0x8(%rbp), %rcx
leaq 0x1185e(%rip), %rax     # 0x20368
addq (%rax), %rcx
leaq 0x11854(%rip), %rax     # 0x20368
movq %rcx, (%rax)
leaq 0x11742(%rip), %rax     # 0x20260
movq $0x0, (%rax)
addq $0x80, %rsp
popq %rbp
retq
nop