user: Demonstrate the C code that generates the assembly output below:

```asm
<localIDGenerator>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %r9,0x28(%rsp)
  mov    (%rdi),%eax
  mov    %eax,0x10(%rsp)
  mov    (%rsi),%ecx
  mov    %ecx,0xc(%rsp)
  imul   %ecx,%eax
  mov    %eax,%r15d
  add    (%rdx),%eax
  mov    %eax,0x14(%rsp)
  je     L182
  mov    $0x0,%r14d
  mov    $0x0,%ebp
  mov    $0x0,%ebx
  mov    $0x0,%r12d
  jmp    L219
L144:
  mov    0x20(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0x28(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L72
L6:
  cmp    $0x1,%r13d
  jne    L20
  cmp    %r12d,%r15d
  ja     L198
  mov    0x70(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x78(%rsp),%rax
  movl   $0xffffffff,(%rax)
L127:
  cmp    $0x4,%r13d
  jne    L126
  cmp    %r15d,%r12d
  jb     L229
  mov    0xa0(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0xa8(%rsp),%rax
  movl   $0xffffffff,(%rax)
L64:
  add    $0x1,%r14d
  cmp    %r14d,0x14(%rsp)
  je     L182
L219:
  mov    0x18(%rsp),%rax
  mov    (%rax),%r13d
  test   %r13d,%r13d
  jne    L6
  cmp    %r12d,%r15d
  ja     L144
  mov    0x20(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x28(%rsp),%rax
  movl   $0xffffffff,(%rax)
L72:
  cmp    $0x3,%r13d
  jne    L127
  cmp    %r15d,%r12d
  jb     L199
  mov    0x90(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x98(%rsp),%rax
  movl   $0xffffffff,(%rax)
L114:
  cmp    $0x6,%r13d
  jne    L64
  cmp    %r15d,%r12d
  jb     L88
  mov    0xc0(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0xc8(%rsp),%rax
  movl   $0xffffffff,(%rax)
  jmp    L64
L198:
  mov    0x70(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0x78(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L127
L20:
  cmp    $0x2,%r13d
  jne    L72
  cmp    %r12d,%r15d
  ja     L249
  mov    0x80(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x88(%rsp),%rax
  movl   $0xffffffff,(%rax)
L126:
  cmp    $0x5,%r13d
  jne    L114
  cmp    %r15d,%r12d
  jb     L148
  mov    0xb0(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0xb8(%rsp),%rax
  movl   $0xffffffff,(%rax)
  jmp    L64
L249:
  mov    0x80(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0x88(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L126
L199:
  mov    0x90(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0x98(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L114
L229:
  mov    0xa0(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0xa8(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%r13d
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L64
L148:
  mov    0xb0(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0xb8(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%r13d
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L64
L88:
  mov    0xc0(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0xc8(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%r13d
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <incX@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %eax,%edi
  call   <incY@plt>
  mov    %eax,%ebp
  add    $0x1,%r12d
  jmp    L64
L182:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void localIDGenerator(int *localSize0, int *localSize1, int *numCore, unsigned int *coreID, int *id0x, int *id0y, int *id1x, int *id1y, int *id2x, int *id2y, int *id3x, int *id3y, int *id4x, int *id4y, int *id5x, int *id5y, int *id6x, int *id6y) {
#pragma HLS INTERFACE s_axilite port = return bundle = BUS_CMD
#pragma HLS INTERFACE s_axilite register port = numCore bundle = BUS_CMD
#pragma HLS INTERFACE s_axilite register port = localSize0 bundle = BUS_CMD
#pragma HLS INTERFACE s_axilite register port = localSize1 bundle = BUS_CMD
#pragma HLS INTERFACE axis register port = coreID
#pragma HLS INTERFACE axis register port = id0x
#pragma HLS INTERFACE axis register port = id0y
#pragma HLS INTERFACE axis register port = id1x
#pragma HLS INTERFACE axis register port = id1y
#pragma HLS INTERFACE axis register port = id2x
#pragma HLS INTERFACE axis register port = id2y
#pragma HLS INTERFACE axis register port = id3x
#pragma HLS INTERFACE axis register port = id3y
#pragma HLS INTERFACE axis register port = id4x
#pragma HLS INTERFACE axis register port = id4y
#pragma HLS INTERFACE axis register port = id5x
#pragma HLS INTERFACE axis register port = id5y
#pragma HLS INTERFACE axis register port = id6x
#pragma HLS INTERFACE axis register port = id6y
  int numOfX = *localSize0;
  int numOfY = *localSize1;
  int total = numOfX * numOfY;
  unsigned int finish = 0;
  unsigned int cnt = 0;
  int idx = 0;
  int idy = 0;
  unsigned int currNumCore = *numCore;
  int i;
  for (i = 0; i < (total + currNumCore); i++) {
    unsigned int currCoreID = *coreID;
    if (currCoreID == 0) {
      if (cnt >= total) {
        *id0x = -1;
        *id0y = -1;
      } else {
        *id0x = idx;
        *id0y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 1) {
      if (cnt >= total) {
        *id1x = -1;
        *id1y = -1;
      } else {
        *id1x = idx;
        *id1y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 2) {
      if (cnt >= total) {
        *id2x = -1;
        *id2y = -1;
      } else {
        *id2x = idx;
        *id2y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 3) {
      if (cnt >= total) {
        *id3x = -1;
        *id3y = -1;
      } else {
        *id3x = idx;
        *id3y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 4) {
      if (cnt >= total) {
        *id4x = -1;
        *id4y = -1;
      } else {
        *id4x = idx;
        *id4y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 5) {
      if (cnt >= total) {
        *id5x = -1;
        *id5y = -1;
      } else {
        *id5x = idx;
        *id5y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
    if (currCoreID == 6) {
      if (cnt >= total) {
        *id6x = -1;
        *id6y = -1;
      } else {
        *id6x = idx;
        *id6y = idy;
        idx = incX(idx, idy, numOfX, numOfY);
        idy = incY(idx, idy, numOfX, numOfY);
        cnt = cnt + 1;
      }
    }
  }
}
```