// File: tomfunkhouser[P]gaps/pkgs/R2Shapes/R2Grid.cpp
// Function: gaps::R2Grid::RasterizeGridTriangle(int const*, int const*, int const*, double, double, double, int)
void R2Grid::
RasterizeGridTriangle(const int p1[2], const int p2[2], const int p3[2], RNScalar value1, RNScalar value2, RNScalar value3, int operation)
{
  // Resolve values
  if (value1 == R2_GRID_UNKNOWN_VALUE) return;
  if (value2 == R2_GRID_UNKNOWN_VALUE) return;
  if (value3 == R2_GRID_UNKNOWN_VALUE) return;

  // Get convenient point variables
  R2Point points[3];
  points[0][0] = p1[0];
  points[0][1] = p1[1];
  points[1][0] = p2[0];
  points[1][1] = p2[1];
  points[2][0] = p3[0];
  points[2][1] = p3[1];

  // Get convenient value variables
  RNScalar values[3];
  values[0] = value1;
  values[1] = value2;
  values[2] = value3;

  // Sort vertex indices by Y coordinate
  int iv0, iv1, iv2;
  if (points[0].Y() < points[1].Y()) {
    if (points[0].Y() < points[2].Y()) { 
      if (points[1].Y() < points[2].Y()) { iv0 = 0; iv1 = 1; iv2 = 2; }
      else { iv0 = 0; iv1 = 2; iv2 = 1; }
    }
    else { iv0 = 2; iv1 = 0; iv2 = 1; }
  }
  else {
    if (points[1].Y() < points[2].Y()) { 
      if (points[0].Y() < points[2].Y()) { iv0 = 1; iv1 = 0; iv2 = 2; }
      else { iv0 = 1; iv1 = 2; iv2 = 0; }
    }
    else { iv0 = 2; iv1 = 1; iv2 = 0; }
  }
  
  // Sort vertex coordinates
  double dy = points[iv2].Y() - points[iv0].Y();
  double t1 = (dy > 0) ? (points[iv1].Y() - points[iv0].Y()) / dy : 0;
  double y0 = points[iv0].Y();
  double y1 = points[iv1].Y();
  double y2 = points[iv2].Y();
  double x0 = points[iv0].X();
  double x2 = points[iv2].X();
  double x1a = points[iv1].X();
  double x1b = (1-t1)*x0 + t1*x2;
  double val0 = values[iv0];
  double val2 = values[iv2];
  double val1a = values[iv1];
  double val1b = (1-t1)*val0 + t1*val2;
  if (x1a > x1b) { 
    double swap;
    swap = x1a; x1a = x1b; x1b = swap; 
    swap = val1a; val1a = val1b; val1b = swap; 
  }

  // Rasterize lower half of triangle
  int iy0 = (int) (y0 + 0.5);
  int iy1 = (int) (y1 + 0.5);
  int nysteps = (iy1 - iy0) + 1;
  double xa_step = (x1a - x0) / nysteps;
  double xb_step = (x1b - x0) / nysteps;
  double vala_step = (val1a  - val0) / nysteps;
  double valb_step = (val1b  - val0) / nysteps;
  double xa = x0;
  double xb = x0;
  double vala = val0;
  double valb = val0;
  for (int iy = iy0; iy <= iy1; iy++) {
    int ixa = (int) (xa + 0.5);
    int ixb = (int) (xb + 0.5);
    int nxsteps = (ixb - ixa) + 1;
    double val_step = (valb - vala) / nxsteps;
    double val = vala;
    for (int ix = ixa; ix <= ixb; ix++) {
      RasterizeGridValue(ix, iy, val, operation);
      val += val_step;
    }
    vala += vala_step;
    valb += valb_step;
    xa += xa_step;
    xb += xb_step;
  }
  
  // Rasterize upper half of triangle
  int iy2 = (int) (y2 + 0.5);
  nysteps = (iy2 - iy1) + 1;
  xa_step = (x2 - x1a) / nysteps;
  xb_step = (x2 - x1b) / nysteps;
  vala_step = (val2  - val1a) / nysteps;
  valb_step = (val2  - val1b) / nysteps;
  xa = x1a;
  xb = x1b;
  vala = val1a;
  valb = val1b;
  for (int iy = iy1; iy <= iy2; iy++) {
    int ixa = (int) (xa + 0.5);
    int ixb = (int) (xb + 0.5);
    int nxsteps = (ixb - ixa) + 1;
    double val_step = (valb - vala) / nxsteps;
    double val = vala;
    for (int ix = ixa; ix <= ixb; ix++) {
      RasterizeGridValue(ix, iy, val, operation);
      val += val_step;
    }
    vala += vala_step;
    valb += valb_step;
    xa += xa_step;
    xb += xb_step;
  }
}

// Assembly:
subq $0x248, %rsp            # imm = 0x248
movq %rdi, 0x240(%rsp)
movq %rsi, 0x238(%rsp)
movq %rdx, 0x230(%rsp)
movq %rcx, 0x228(%rsp)
movsd %xmm0, 0x220(%rsp)
movsd %xmm1, 0x218(%rsp)
movsd %xmm2, 0x210(%rsp)
movl %r8d, 0x20c(%rsp)
movq 0x240(%rsp), %rax
movq %rax, 0x88(%rsp)
movsd 0x220(%rsp), %xmm0
movsd 0x83035(%rip), %xmm1    # 0x133eb0
ucomisd %xmm1, %xmm0
jne 0xb0e88
jp 0xb0e88
jmp 0xb1ad0
movsd 0x218(%rsp), %xmm0
movsd 0x83017(%rip), %xmm1    # 0x133eb0
ucomisd %xmm1, %xmm0
jne 0xb0ea6
jp 0xb0ea6
jmp 0xb1ad0
movsd 0x210(%rsp), %xmm0
movsd 0x82ff9(%rip), %xmm1    # 0x133eb0
ucomisd %xmm1, %xmm0
jne 0xb0ec4
jp 0xb0ec4
jmp 0xb1ad0
leaq 0x1d0(%rsp), %rax
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0xc3130
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
addq $0x10, %rax
cmpq %rcx, %rax
movq %rax, 0x80(%rsp)
jne 0xb0ee0
movq 0x238(%rsp), %rax
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x38(%rsp)
leaq 0x1d0(%rsp), %rdi
xorl %esi, %esi
callq 0xa5b60
movsd 0x38(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x238(%rsp), %rax
cvtsi2sdl 0x4(%rax), %xmm0
movsd %xmm0, 0x40(%rsp)
leaq 0x1d0(%rsp), %rdi
movl $0x1, %esi
callq 0xa5b60
movsd 0x40(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x230(%rsp), %rax
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x48(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
xorl %esi, %esi
callq 0xa5b60
movsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x230(%rsp), %rax
cvtsi2sdl 0x4(%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
movl $0x1, %esi
callq 0xa5b60
movsd 0x50(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x228(%rsp), %rax
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x58(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
xorl %esi, %esi
callq 0xa5b60
movsd 0x58(%rsp), %xmm0
movsd %xmm0, (%rax)
movq 0x228(%rsp), %rax
cvtsi2sdl 0x4(%rax), %xmm0
movsd %xmm0, 0x60(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
movl $0x1, %esi
callq 0xa5b60
movsd 0x60(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x220(%rsp), %xmm0
movsd %xmm0, 0x1b0(%rsp)
movsd 0x218(%rsp), %xmm0
movsd %xmm0, 0x1b8(%rsp)
movsd 0x210(%rsp), %xmm0
movsd %xmm0, 0x1c0(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0x38c60
movsd %xmm0, 0x68(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
callq 0x38c60
movsd 0x68(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb1165
leaq 0x1d0(%rsp), %rdi
callq 0x38c60
movsd %xmm0, 0x30(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
callq 0x38c60
movsd 0x30(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb113f
leaq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
callq 0x38c60
movsd %xmm0, 0x28(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
callq 0x38c60
movsd 0x28(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb111c
movl $0x0, 0x1ac(%rsp)
movl $0x1, 0x1a8(%rsp)
movl $0x2, 0x1a4(%rsp)
jmp 0xb113d
movl $0x0, 0x1ac(%rsp)
movl $0x2, 0x1a8(%rsp)
movl $0x1, 0x1a4(%rsp)
jmp 0xb1160
movl $0x2, 0x1ac(%rsp)
movl $0x0, 0x1a8(%rsp)
movl $0x1, 0x1a4(%rsp)
jmp 0xb1232
leaq 0x1d0(%rsp), %rdi
addq $0x10, %rdi
callq 0x38c60
movsd %xmm0, 0x20(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
callq 0x38c60
movsd 0x20(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb120f
leaq 0x1d0(%rsp), %rdi
callq 0x38c60
movsd %xmm0, 0x18(%rsp)
leaq 0x1d0(%rsp), %rdi
addq $0x20, %rdi
callq 0x38c60
movsd 0x18(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb11ec
movl $0x1, 0x1ac(%rsp)
movl $0x0, 0x1a8(%rsp)
movl $0x2, 0x1a4(%rsp)
jmp 0xb120d
movl $0x1, 0x1ac(%rsp)
movl $0x2, 0x1a8(%rsp)
movl $0x0, 0x1a4(%rsp)
jmp 0xb1230
movl $0x2, 0x1ac(%rsp)
movl $0x1, 0x1a8(%rsp)
movl $0x0, 0x1a4(%rsp)
jmp 0xb1232
movslq 0x1a4(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movsd %xmm0, 0x10(%rsp)
movslq 0x1ac(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x198(%rsp)
movsd 0x198(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xb12f2
movslq 0x1a8(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movsd %xmm0, (%rsp)
movslq 0x1ac(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
subsd %xmm1, %xmm0
divsd 0x198(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0xb12fd
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0xb12fd
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x190(%rsp)
movslq 0x1ac(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movsd %xmm0, 0x188(%rsp)
movslq 0x1a8(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movsd %xmm0, 0x180(%rsp)
movslq 0x1a4(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c60
movsd %xmm0, 0x178(%rsp)
movslq 0x1ac(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c50
movsd %xmm0, 0x170(%rsp)
movslq 0x1a4(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c50
movsd %xmm0, 0x168(%rsp)
movslq 0x1a8(%rsp), %rax
leaq 0x1d0(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x38c50
movsd %xmm0, 0x160(%rsp)
movsd 0x81c16(%rip), %xmm0    # 0x133008
subsd 0x190(%rsp), %xmm0
movsd 0x170(%rsp), %xmm2
movsd 0x190(%rsp), %xmm1
mulsd 0x168(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x158(%rsp)
movslq 0x1ac(%rsp), %rax
movsd 0x1b0(%rsp,%rax,8), %xmm0
movsd %xmm0, 0x150(%rsp)
movslq 0x1a4(%rsp), %rax
movsd 0x1b0(%rsp,%rax,8), %xmm0
movsd %xmm0, 0x148(%rsp)
movslq 0x1a8(%rsp), %rax
movsd 0x1b0(%rsp,%rax,8), %xmm0
movsd %xmm0, 0x140(%rsp)
movsd 0x81b8b(%rip), %xmm0    # 0x133008
subsd 0x190(%rsp), %xmm0
movsd 0x150(%rsp), %xmm2
movsd 0x190(%rsp), %xmm1
mulsd 0x148(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x138(%rsp)
movsd 0x160(%rsp), %xmm0
ucomisd 0x158(%rsp), %xmm0
jbe 0xb1532
movsd 0x160(%rsp), %xmm0
movsd %xmm0, 0x130(%rsp)
movsd 0x158(%rsp), %xmm0
movsd %xmm0, 0x160(%rsp)
movsd 0x130(%rsp), %xmm0
movsd %xmm0, 0x158(%rsp)
movsd 0x140(%rsp), %xmm0
movsd %xmm0, 0x130(%rsp)
movsd 0x138(%rsp), %xmm0
movsd %xmm0, 0x140(%rsp)
movsd 0x130(%rsp), %xmm0
movsd %xmm0, 0x138(%rsp)
movsd 0x81ad6(%rip), %xmm0    # 0x133010
addsd 0x188(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x12c(%rsp)
movsd 0x81aba(%rip), %xmm0    # 0x133010
addsd 0x180(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x128(%rsp)
movl 0x128(%rsp), %eax
subl 0x12c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x124(%rsp)
movsd 0x160(%rsp), %xmm0
subsd 0x170(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x118(%rsp)
movsd 0x158(%rsp), %xmm0
subsd 0x170(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x110(%rsp)
movsd 0x140(%rsp), %xmm0
subsd 0x150(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x108(%rsp)
movsd 0x138(%rsp), %xmm0
subsd 0x150(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x100(%rsp)
movsd 0x170(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
movsd 0x170(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
movsd 0x150(%rsp), %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0x150(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movl 0x12c(%rsp), %eax
movl %eax, 0xdc(%rsp)
movl 0xdc(%rsp), %eax
cmpl 0x128(%rsp), %eax
jg 0xb180f
movsd 0x8197c(%rip), %xmm0    # 0x133010
addsd 0xf8(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xd8(%rsp)
movsd 0x81960(%rip), %xmm0    # 0x133010
addsd 0xf0(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xd4(%rsp)
movl 0xd4(%rsp), %eax
subl 0xd8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xd0(%rsp)
movsd 0xe0(%rsp), %xmm0
subsd 0xe8(%rsp), %xmm0
cvtsi2sdl 0xd0(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
movl 0xd8(%rsp), %eax
movl %eax, 0xbc(%rsp)
movl 0xbc(%rsp), %eax
cmpl 0xd4(%rsp), %eax
jg 0xb178d
movq 0x88(%rsp), %rdi
movl 0xbc(%rsp), %esi
movl 0xdc(%rsp), %edx
movsd 0xc0(%rsp), %xmm0
movl 0x20c(%rsp), %ecx
callq 0xb0550
movsd 0xc8(%rsp), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
movl 0xbc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xbc(%rsp)
jmp 0xb1724
movsd 0x108(%rsp), %xmm0
addsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0x100(%rsp), %xmm0
addsd 0xe0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movsd 0x118(%rsp), %xmm0
addsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
movsd 0x110(%rsp), %xmm0
addsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
movl 0xdc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xdc(%rsp)
jmp 0xb1678
movsd 0x817f9(%rip), %xmm0    # 0x133010
addsd 0x178(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xb8(%rsp)
movl 0xb8(%rsp), %eax
subl 0x128(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x124(%rsp)
movsd 0x168(%rsp), %xmm0
subsd 0x160(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x118(%rsp)
movsd 0x168(%rsp), %xmm0
subsd 0x158(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x110(%rsp)
movsd 0x148(%rsp), %xmm0
subsd 0x140(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x108(%rsp)
movsd 0x148(%rsp), %xmm0
subsd 0x138(%rsp), %xmm0
cvtsi2sdl 0x124(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x100(%rsp)
movsd 0x160(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
movsd 0x158(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
movsd 0x140(%rsp), %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0x138(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movl 0x128(%rsp), %eax
movl %eax, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
cmpl 0xb8(%rsp), %eax
jg 0xb1ad0
movsd 0x816bb(%rip), %xmm0    # 0x133010
addsd 0xf8(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xb0(%rsp)
movsd 0x8169f(%rip), %xmm0    # 0x133010
addsd 0xf0(%rsp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xac(%rsp)
movl 0xac(%rsp), %eax
subl 0xb0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xa8(%rsp)
movsd 0xe0(%rsp), %xmm0
subsd 0xe8(%rsp), %xmm0
cvtsi2sdl 0xa8(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
cmpl 0xac(%rsp), %eax
jg 0xb1a4e
movq 0x88(%rsp), %rdi
movl 0x94(%rsp), %esi
movl 0xb4(%rsp), %edx
movsd 0x98(%rsp), %xmm0
movl 0x20c(%rsp), %ecx
callq 0xb0550
movsd 0xa0(%rsp), %xmm0
addsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0xb19e5
movsd 0x108(%rsp), %xmm0
addsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0x100(%rsp), %xmm0
addsd 0xe0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movsd 0x118(%rsp), %xmm0
addsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
movsd 0x110(%rsp), %xmm0
addsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
movl 0xb4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb4(%rsp)
jmp 0xb1939
addq $0x248, %rsp            # imm = 0x248
retq
nopl (%rax,%rax)