// File: /workspace/github_c_makefile_star2_O0/Edilbert[P]BS9/bs9.c
// Function: ParseFillData
char *ParseFillData(char *p)
{
   int i,m,v;

   p = EvalOperand(p,&m,0);
   if (m < 0 || m > 0xffff)
   {
      ErrorMsg("Illegal FILL multiplier %d\n",m);
      exit(1);
   }
   p = NeedChar(p,'(');
   if (!p)
   {
      ErrorMsg("Missing '(' before FILL value\n");
      exit(1);
   }
   p = EvalOperand(p+1,&v,0);
   v &= 0xff;
   if (!Pass)
   {
      for (i=0 ; i < m ; ++i) PutByte(pc+i,v);
      if (ListOn)
      {
         PrintPC();
         if (m > 0) fprintf(lf," %2.2x",v);
         else       fprintf(lf,"   ");
         if (m > 1) fprintf(lf," %2.2x",v);
         else       fprintf(lf,"   ");
         if (m > 2) fprintf(lf," %2.2x",v);
         else       fprintf(lf,"   ");
         fprintf(lf," %s ; %d bytes\n",Line,m);
      }
   }
   pc += m;
   p += strlen(p);
   return p;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x4740
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rsp)
jl 0x69a0
cmpl $0xffff, 0x8(%rsp)      # imm = 0xFFFF
jle 0x69bc
movl 0x8(%rsp), %esi
leaq 0x9c28(%rip), %rdi      # 0x105d3
movb $0x0, %al
callq 0x3150
movl $0x1, %edi
callq 0x22b0
movq 0x10(%rsp), %rdi
movl $0x28, %esi
callq 0x36a0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x69f0
leaq 0x9c10(%rip), %rdi      # 0x105ef
movb $0x0, %al
callq 0x3150
movl $0x1, %edi
callq 0x22b0
movq 0x10(%rsp), %rdi
addq $0x1, %rdi
leaq 0x4(%rsp), %rsi
xorl %edx, %edx
callq 0x4740
movq %rax, 0x10(%rsp)
movl 0x4(%rsp), %eax
andl $0xff, %eax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x21fda(%rip)     # 0x289f8
jne 0x6b2f
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x8(%rsp), %eax
jge 0x6a56
movl 0x10cd8(%rip), %edi     # 0x17714
addl 0xc(%rsp), %edi
movl 0x4(%rsp), %esi
callq 0x23f0
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x6a2c
cmpl $0x0, 0xe73b(%rip)      # 0x15198
je 0x6b2d
callq 0x3350
cmpl $0x0, 0x8(%rsp)
jle 0x6a8a
movq 0x21f72(%rip), %rdi     # 0x289e8
movl 0x4(%rsp), %edx
leaq 0x9715(%rip), %rsi      # 0x10196
movb $0x0, %al
callq 0x21e0
jmp 0x6a9f
movq 0x21f57(%rip), %rdi     # 0x289e8
leaq 0xab94(%rip), %rsi      # 0x1162c
movb $0x0, %al
callq 0x21e0
cmpl $0x1, 0x8(%rsp)
jle 0x6ac1
movq 0x21f3b(%rip), %rdi     # 0x289e8
movl 0x4(%rsp), %edx
leaq 0x96de(%rip), %rsi      # 0x10196
movb $0x0, %al
callq 0x21e0
jmp 0x6ad6
movq 0x21f20(%rip), %rdi     # 0x289e8
leaq 0xab5d(%rip), %rsi      # 0x1162c
movb $0x0, %al
callq 0x21e0
cmpl $0x2, 0x8(%rsp)
jle 0x6af8
movq 0x21f04(%rip), %rdi     # 0x289e8
movl 0x4(%rsp), %edx
leaq 0x96a7(%rip), %rsi      # 0x10196
movb $0x0, %al
callq 0x21e0
jmp 0x6b0d
movq 0x21ee9(%rip), %rdi     # 0x289e8
leaq 0xab26(%rip), %rsi      # 0x1162c
movb $0x0, %al
callq 0x21e0
movq 0x21ed4(%rip), %rdi     # 0x289e8
movl 0x8(%rsp), %ecx
leaq 0x9aef(%rip), %rsi      # 0x1060e
leaq 0x2135a(%rip), %rdx     # 0x27e80
movb $0x0, %al
callq 0x21e0
jmp 0x6b2f
movl 0x8(%rsp), %eax
addl 0x10bdb(%rip), %eax     # 0x17714
movl %eax, 0x10bd5(%rip)     # 0x17714
movq 0x10(%rsp), %rdi
callq 0x20f0
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax)