user: Please show me the C implementation that matches the assembly code listed below:

```asm
<updatepins>:
  endbr64
  push   %rbx
  xor    %ecx,%ecx
  mov    %edi,%ebx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0x9b,%edi
  xor    %eax,%eax
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xcb,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xc3,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x4d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x4d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  xor    %ecx,%ecx
  xor    %eax,%eax
  mov    $0x5,%edx
  mov    $0x5d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
  cmp    $0x1,%ebx
  je     L20
  cmp    $0x2,%ebx
  je     L95
  cmp    $0x3,%ebx
  je     L72
  cmp    $0x4,%ebx
  jne    L17
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0xab,%edi
L40:
  xor    %eax,%eax
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
L123:
  pop    %rbx
  ret
  nopl   (%rax)
L72:
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0xab,%edi
L110:
  xor    %eax,%eax
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L17:
  cmp    $0x5,%ebx
  jne    L107
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  jmp    L40
L107:
  cmp    $0x6,%ebx
  jne    L67
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  pop    %rbx
  mov    $0x4d,%esi
  mov    $0xab,%edi
  xor    %eax,%eax
  jmp    1050 <drawX@plt>
L67:
  cmp    $0x7,%ebx
  jne    L102
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x4d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  pop    %rbx
  mov    $0x4d,%esi
  mov    $0xbb,%edi
  xor    %eax,%eax
  jmp    1050 <drawX@plt>
  nopw   0x0(%rax,%rax,1)
L102:
  cmp    $0x8,%ebx
  jne    L36
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x3d,%esi
  mov    $0xb3,%edi
L135:
  xor    %eax,%eax
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x4d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x4d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  pop    %rbx
  mov    $0x5d,%esi
  mov    $0xb3,%edi
  xor    %eax,%eax
  jmp    1050 <drawX@plt>
  nopw   0x0(%rax,%rax,1)
L95:
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0x9b,%edi
  jmp    L110
  nopl   0x0(%rax)
L20:
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  pop    %rbx
  ret
  nopl   (%rax)
L36:
  cmp    $0x9,%ebx
  jne    L120
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0xbb,%edi
L88:
  xor    %eax,%eax
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xa3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x3d,%esi
  mov    $0xb3,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x3d,%esi
  mov    $0xc3,%edi
  jmp    L135
L120:
  cmp    $0xa,%ebx
  jne    L123
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  xor    %eax,%eax
  mov    $0x9b,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xab,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    $0x2d,%esi
  mov    $0xbb,%edi
  call   <drawX@plt>
  mov    $0xffff,%ecx
  mov    $0x5,%edx
  mov    $0x2d,%esi
  mov    $0xcb,%edi
  jmp    L88
```

assistant: ```c
void updatepins(int score, int round) {
  int sizeofBox = 16;
  int sizeofXs = 5;
  int rowoffset2 = (4 * sizeofBox - 3 * sizeofBox) / 2;
  int rowoffset3 = rowoffset2 + (3 * sizeofBox - 2 * sizeofBox) / 2;
  int rowoffset4 = rowoffset3 + (2 * sizeofBox - sizeofBox) / 2;
  int boxnum;
  int horzposition = (320 - 20) / 2;
  int offset;
  offset = (sizeofBox - sizeofXs) / 2;
  drawX(horzposition + offset, 40 + offset, 5, 0);
  drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0);
  drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0);
  drawX(horzposition + offset + sizeofBox * 3, 40 + offset, 5, 0);
  drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0);
  drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0);
  drawX(horzposition + offset + rowoffset2 + sizeofBox * 2, 40 + offset + sizeofBox, 5, 0);
  drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0);
  drawX(horzposition + offset + rowoffset3 + sizeofBox, 40 + offset + sizeofBox * 2, 5, 0);
  drawX(horzposition + offset + rowoffset4, 40 + offset + sizeofBox * 3, 5, 0);
  if (score == 1) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
  }
  if (score == 2) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
  }
  if (score == 3) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
  }
  if (score == 4) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
  }
  if (score == 5) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
  }
  if (score == 6) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
  }
  if (score == 7) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset3 + sizeofBox, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
  }
  if (score == 8) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset3 + sizeofBox, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset4, 40 + offset + sizeofBox * 3, 5, 0XFFFF);
  }
  if (score == 9) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox * 2, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset3 + sizeofBox, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset4, 40 + offset + sizeofBox * 3, 5, 0XFFFF);
  }
  if (score == 10) {
    drawX(horzposition + offset, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 2, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + sizeofBox * 3, 40 + offset, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2, 40 + offset + sizeofBox, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset2 + sizeofBox * 2, 40 + offset + sizeofBox, 5, 0xFFFF);
    drawX(horzposition + offset + rowoffset3, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset3 + sizeofBox, 40 + offset + sizeofBox * 2, 5, 0XFFFF);
    drawX(horzposition + offset + rowoffset4, 40 + offset + sizeofBox * 3, 5, 0XFFFF);
  }
}
```