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

```asm
<bytemapmag>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %esi,0x54(%rsp)
  mov    %edx,0x88(%rsp)
  test   %rdi,%rdi
  je     L339
  mov    %esi,%r13d
  test   %esi,%esi
  jle    L339
  mov    %edx,%edi
  test   %edx,%edx
  jle    L339
  mov    %esi,%eax
  imul   %edx,%eax
  cmp    $0x186a0,%eax
  jg     L339
  lea    -0x1(%rcx),%eax
  mov    %ecx,%r14d
  cmp    $0x9,%eax
  ja     L339
  mov    %esi,%ebx
  imul   %ecx,%ebx
  mov    %ebx,%ebp
  imul   %ecx,%ebp
  imul   %ebp,%edi
  call   <malloc@plt>
  mov    %rax,0x58(%rsp)
  test   %rax,%rax
  je     L339
  mov    %rax,0x78(%rsp)
  movslq %ebp,%rax
  mov    %r14d,%ebp
  mov    %rax,0x80(%rsp)
  lea    0x1(%r14),%eax
  mov    %eax,0x68(%rsp)
  movslq %ebx,%rax
  mov    %rax,0x38(%rsp)
  lea    -0x1(%r13),%eax
  mov    %eax,0x94(%rsp)
  movslq %r13d,%rax
  mov    %rax,0x98(%rsp)
  movslq %r14d,%rax
  mov    %rax,0x60(%rsp)
  mov    $0x2,%eax
  sub    %r13d,%eax
  movl   $0xffffffff,0x6c(%rsp)
  mov    %eax,0x8c(%rsp)
  mov    $0x1,%eax
  sub    %r13d,%eax
  movl   $0x0,0x14(%rsp)
  mov    %r15,%r13
  movq   $0x0,0x70(%rsp)
  mov    %eax,0x90(%rsp)
L802:
  movslq 0x6c(%rsp),%rax
  xor    %r12d,%r12d
  mov    %r12d,(%rsp)
  mov    %r13,%r12
  mov    %rax,%rsi
  lea    0x0(%r13,%rax,1),%r15
  add    0x98(%rsp),%rax
  lea    0x0(%r13,%rax,1),%r14
  mov    0x8c(%rsp),%eax
  add    %esi,%eax
  mov    %eax,0x44(%rsp)
  mov    0x90(%rsp),%eax
  add    %esi,%eax
  mov    %eax,0x50(%rsp)
  mov    0x70(%rsp),%rax
  mov    %rax,0x48(%rsp)
  nopl   0x0(%rax,%rax,1)
L668:
  mov    0x68(%rsp),%eax
  movzbl 0x1(%r15),%r9d
  movl   $0x1,0x40(%rsp)
  movl   $0x0,0x28(%rsp)
  mov    %eax,0x4(%rsp)
  mov    0x58(%rsp),%rax
  add    0x48(%rsp),%rax
  mov    %r9b,0x13(%rsp)
  mov    %rax,0x30(%rsp)
  movslq 0x50(%rsp),%rax
  mov    %rax,0x18(%rsp)
  movslq 0x44(%rsp),%rax
  mov    %rax,0x20(%rsp)
  nopl   (%rax)
L570:
  mov    0x40(%rsp),%eax
  mov    0x30(%rsp),%rsi
  jmp    L686
  xchg   %ax,%ax
L233:
  movzbl 0x2(%r15),%edx
  movzbl 0x1(%r14),%ecx
  mov    0x14(%rsp),%r13d
  movzbl (%r15),%r8d
  mov    %edx,%r10d
  mov    %ecx,%r11d
  test   %r13d,%r13d
  je     L50
  mov    0x18(%rsp),%rbx
  movzbl (%r12,%rbx,1),%edi
  movzbl -0x1(%r12,%rbx,1),%r13d
L524:
  mov    0x20(%rsp),%rbx
  movzbl (%r12,%rbx,1),%ebx
  mov    %ebx,0xc(%rsp)
  mov    (%rsp),%ebx
  test   %ebx,%ebx
  je     L700
L130:
  movzbl (%r14),%ebx
  mov    %ebx,0x8(%rsp)
  movzbl 0x2(%r14),%ebx
  cmp    $0x2,%ebp
  je     L499
L157:
  cmp    $0x3,%ebp
  jne    L385
  mov    %ebx,0x2c(%rsp)
  cmp    $0x1,%eax
  je     L311
  cmp    $0x2,%eax
  je     L266
  cmp    $0x3,%eax
  jne    L360
L64:
  mov    %edi,%ebx
  sub    %edx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L385
  sub    %r8d,%edi
  mov    %edi,%r8d
  neg    %r8d
  cmovs  %edi,%r8d
  sub    %ecx,%edx
  cmp    $0x40,%r8d
  jle    L385
L739:
  mov    %edx,%ecx
  neg    %ecx
  cmovs  %edx,%ecx
  cmp    $0x40,%ecx
  jle    L385
L536:
  mov    %r10b,(%rsi)
  nopl   (%rax)
L385:
  add    $0x1,%rsi
  add    $0x1,%eax
  cmp    %eax,0x4(%rsp)
  je     L728
L686:
  movzbl 0x13(%rsp),%edi
  mov    (%rsp),%edx
  mov    %dil,(%rsi)
  test   %edx,%edx
  jne    L233
  movzbl 0x2(%r15),%edx
  movzbl 0x1(%r14),%ecx
  mov    0x14(%rsp),%edi
  mov    %edx,%r10d
  mov    %ecx,%r11d
  test   %edi,%edi
  jne    L454
  mov    %r9d,0xc(%rsp)
  mov    %r9d,%edi
  mov    %r9d,%r13d
  mov    %r9d,%r8d
L700:
  mov    %r9d,0x8(%rsp)
  movzbl 0x2(%r14),%ebx
  cmp    $0x2,%ebp
  jne    L157
L499:
  cmp    $0x1,%eax
  je     L644
  cmp    $0x2,%eax
  je     L64
  cmp    $0x4,%eax
  jne    L467
  mov    %edx,%ebx
  sub    %ecx,%ebx
  mov    %ebx,%r10d
  neg    %r10d
  cmovs  %ebx,%r10d
  cmp    $0x40,%r10d
  jg     L385
  sub    %edi,%edx
  mov    %edx,%edi
  neg    %edi
  cmovs  %edx,%edi
  cmp    $0x40,%edi
  jle    L385
  sub    %r8d,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
L854:
  mov    %r11b,(%rsi)
  add    $0x1,%eax
  add    $0x1,%rsi
  cmp    %eax,0x4(%rsp)
  jne    L686
  nopl   (%rax)
L728:
  addl   $0x1,0x28(%rsp)
  mov    0x28(%rsp),%eax
  mov    0x38(%rsp),%rcx
  add    %ebp,0x4(%rsp)
  add    %rcx,0x30(%rsp)
  add    %ebp,0x40(%rsp)
  cmp    %eax,%ebp
  jne    L570
  addl   $0x1,(%rsp)
  add    $0x1,%r15
  mov    (%rsp),%eax
  add    $0x1,%r14
  mov    0x60(%rsp),%rdi
  addl   $0x1,0x44(%rsp)
  add    %rdi,0x48(%rsp)
  addl   $0x1,0x50(%rsp)
  cmp    %eax,0x54(%rsp)
  jg     L668
  mov    %r12,%r13
  mov    0x54(%rsp),%r12d
  mov    0x6c(%rsp),%esi
  xor    %eax,%eax
  mov    0x80(%rsp),%rcx
  test   %r12d,%r12d
  cmovg  0x94(%rsp),%eax
  addl   $0x1,0x14(%rsp)
  add    %rcx,0x70(%rsp)
  lea    0x1(%rsi,%rax,1),%eax
  mov    %eax,0x6c(%rsp)
  mov    0x14(%rsp),%eax
  cmp    %eax,0x88(%rsp)
  jg     L802
  jmp    L259
L339:
  movq   $0x0,0x78(%rsp)
L259:
  mov    0x78(%rsp),%rax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L50:
  mov    %r9d,0xc(%rsp)
  mov    %r9d,%edi
  mov    %r9d,%r13d
  jmp    L130
L454:
  mov    0x18(%rsp),%rdi
  mov    %r9d,%r8d
  mov    %r9d,%r13d
  movzbl (%r12,%rdi,1),%edi
  jmp    L524
L360:
  cmp    $0x4,%eax
  jne    L12
  mov    %r8d,%r11d
  mov    %ecx,%ebx
  sub    %edi,%r11d
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  sub    %r8d,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L735
  mov    %ecx,%ebx
  sub    %edx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jle    L735
  cmp    $0x40,%r10d
  jle    L289
  mov    %r9d,%edx
  sub    %r13d,%edx
  nop
L857:
  mov    %edx,%ecx
  neg    %ecx
  cmovs  %edx,%ecx
  cmp    $0x40,%ecx
  jle    L385
L231:
  mov    %r8b,(%rsi)
  jmp    L385
L467:
  cmp    $0x3,%eax
  jne    L385
L753:
  mov    %ecx,%r11d
  sub    %r8d,%r11d
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  cmp    $0x40,%r10d
  jg     L385
  sub    %edx,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
  mov    %r8d,%edx
  sub    %edi,%edx
  jmp    L857
  nopl   0x0(%rax)
L266:
  mov    %edi,%r11d
  mov    %r8d,%ebx
  sub    %edx,%r11d
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  sub    %edi,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L372
  mov    %r8d,%ebx
  sub    %ecx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jle    L372
  cmp    $0x40,%r10d
  jle    L543
  mov    %r9d,%edx
  sub    0xc(%rsp),%edx
L497:
  mov    %edx,%ecx
  neg    %ecx
  cmovs  %edx,%ecx
  cmp    $0x40,%ecx
  jle    L385
L247:
  mov    %dil,(%rsi)
  jmp    L385
  nopl   0x0(%rax,%rax,1)
L311:
  mov    %r8d,%r11d
  sub    %edi,%r11d
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  cmp    $0x40,%r10d
  jg     L385
  mov    %r8d,%r10d
  sub    %ecx,%r10d
  mov    %r10d,%ecx
  neg    %ecx
  cmovs  %r10d,%ecx
  cmp    $0x40,%ecx
  jle    L385
  sub    %edx,%edi
  mov    %edi,%edx
  neg    %edx
  cmovs  %edi,%edx
  cmp    $0x40,%edx
  jle    L385
  jmp    L231
  nopl   0x0(%rax)
L644:
  mov    %r8d,%r11d
  sub    %edi,%r11d
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  cmp    $0x40,%r10d
  jg     L385
  sub    %ecx,%r8d
  mov    %r8d,%ecx
  neg    %ecx
  cmovs  %r8d,%ecx
  cmp    $0x40,%ecx
  jle    L385
  mov    %edi,%ecx
  sub    %edx,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
  jmp    L247
L12:
  cmp    $0x6,%eax
  jne    L523
  mov    %edi,%ebx
  sub    %edx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L714
  mov    %edi,%ebx
  sub    %r8d,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jle    L714
  mov    %edx,%ebx
  sub    %ecx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jle    L83
  mov    %r9d,%edx
  sub    0x2c(%rsp),%edx
  jmp    L739
L523:
  cmp    $0x7,%eax
  je     L753
  cmp    $0x8,%eax
  jne    L486
  mov    %ecx,%ebx
  mov    %edx,%r13d
  sub    %r8d,%ebx
  mov    %ebx,%r10d
  neg    %r10d
  cmovs  %ebx,%r10d
  sub    %ecx,%r13d
  mov    %r13d,%ebx
  neg    %ebx
  cmovs  %r13d,%ebx
  cmp    $0x40,%ebx
  jg     L24
  mov    %edx,%r13d
  sub    %edi,%r13d
  mov    %r13d,%ebx
  neg    %ebx
  cmovs  %r13d,%ebx
  cmp    $0x40,%ebx
  jle    L24
  cmp    $0x40,%r10d
  jle    L890
  mov    %r9d,%edx
  sub    0x8(%rsp),%edx
L545:
  mov    %edx,%ecx
  neg    %ecx
  cmovs  %edx,%ecx
  cmp    $0x40,%ecx
  jle    L385
  jmp    L854
L486:
  cmp    $0x9,%eax
  jne    L385
  mov    %edx,%ebx
  sub    %ecx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L385
  sub    %edi,%edx
  mov    %edx,%edi
  neg    %edi
  cmovs  %edx,%edi
  cmp    $0x40,%edi
  jle    L385
  sub    %r8d,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
  jmp    L536
  nopl   0x0(%rax,%rax,1)
L735:
  cmp    $0x40,%r10d
  jg     L385
L289:
  mov    %r8d,%r10d
  sub    %ecx,%r10d
  mov    %r10d,%ecx
  neg    %ecx
  cmovs  %r10d,%ecx
  cmp    $0x40,%ecx
  jle    L385
  sub    %edx,%edi
  mov    %edi,%edx
  neg    %edx
  cmovs  %edi,%edx
  cmp    $0x40,%edx
  jle    L385
  mov    %r9d,%edx
  sub    0x8(%rsp),%edx
  jmp    L857
L372:
  cmp    $0x40,%r10d
  jg     L385
L543:
  mov    %edi,%r10d
  sub    %r8d,%r10d
  mov    %r10d,%r8d
  neg    %r8d
  cmovs  %r10d,%r8d
  cmp    $0x40,%r8d
  jle    L385
  sub    %ecx,%edx
  mov    %edx,%ecx
  neg    %ecx
  cmovs  %edx,%ecx
  cmp    $0x40,%ecx
  jle    L385
  mov    %r9d,%edx
  sub    %r13d,%edx
  jmp    L497
  nopl   0x0(%rax)
L714:
  mov    %edx,%ebx
  sub    %ecx,%ebx
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  cmp    $0x40,%r11d
  jg     L385
L83:
  sub    %edi,%edx
  mov    %edx,%edi
  neg    %edi
  cmovs  %edx,%edi
  cmp    $0x40,%edi
  jle    L385
  sub    %r8d,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
  mov    %r9d,%edx
  sub    0xc(%rsp),%edx
  jmp    L739
  nopl   0x0(%rax)
L24:
  cmp    $0x40,%r10d
  jg     L385
L890:
  sub    %edx,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    $0x40,%edx
  jle    L385
  sub    %edi,%r8d
  mov    %r8d,%edx
  neg    %edx
  cmovs  %r8d,%edx
  cmp    $0x40,%edx
  jle    L385
  mov    %r9d,%edx
  sub    0x2c(%rsp),%edx
  jmp    L545
```

assistant: ```c
unsigned char *bytemapmag(unsigned char *bytemap, int width, int height, int magstep) {
  unsigned char *magnified = NULL;
  int irow, icol, mrow = 0, mcol = 0;
  int imap = (-1), byteval = 0;
  int isAdvMAME = 1;
  int icell[10], bmmdiff = 64;
  if (bytemap == NULL)
    goto end_of_job;
  if (width < 1 || height < 1)
    goto end_of_job;
  if (width * height > 100000)
    goto end_of_job;
  if (magstep < 1 || magstep > 10)
    goto end_of_job;
  if ((magnified = (unsigned char *)(malloc(magstep * width * magstep * height))) != NULL)
    for (irow = 0; irow < height; irow++)
      for (icol = 0; icol < width; icol++) {
        int imag1 = (icol + irow * (width * magstep)) * magstep;
        imap++;
        byteval = (int)(bytemap[imap]);
        for (mrow = 0; mrow < magstep; mrow++)
          for (mcol = 0; mcol < magstep; mcol++) {
            int idup = mcol + mrow * (width * magstep);
            int imag = imag1 + idup;
            magnified[imag] = (unsigned char)(byteval);
            if (isAdvMAME) {
              int mcell = 1 + mcol + magstep * mrow;
              icell[5] = byteval, icell[4] = (icol > 0 ? (int)(bytemap[imap - 1]) : byteval), icell[6] = (icol < width ? (int)(bytemap[imap + 1]) : byteval), icell[2] = (irow > 0 ? (int)(bytemap[imap - width]) : byteval), icell[8] = (irow < height ? (int)(bytemap[imap + width]) : byteval), icell[1] = (irow > 0 && icol > 0 ? (int)(bytemap[imap - width - 1]) : byteval), icell[3] = (irow > 0 && icol < width ? (int)(bytemap[imap - width + 1]) : byteval), icell[7] = (irow < height && icol > 0 ? (int)(bytemap[imap + width - 1]) : byteval), icell[9] = (irow < height && icol < width ? (int)(bytemap[imap + width + 1]) : byteval);
              switch (magstep) {
              default:
                break;
              case 2:
                if (mcell == 1)
                  if ((((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[4] - icell[8])) >= 0 ? ((icell[4] - icell[8])) : (-((icell[4] - icell[8])))) <= bmmdiff)) && !(((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)))
                    magnified[imag] = icell[2];
                if (mcell == 2)
                  if ((((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[2] - icell[4])) >= 0 ? ((icell[2] - icell[4])) : (-((icell[2] - icell[4])))) <= bmmdiff)) && !(((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)))
                    magnified[imag] = icell[6];
                if (mcell == 4)
                  if ((((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[6] - icell[2])) >= 0 ? ((icell[6] - icell[2])) : (-((icell[6] - icell[2])))) <= bmmdiff)) && !(((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)))
                    magnified[imag] = icell[8];
                if (mcell == 3)
                  if ((((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[8] - icell[6])) >= 0 ? ((icell[8] - icell[6])) : (-((icell[8] - icell[6])))) <= bmmdiff)) && !(((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)))
                    magnified[imag] = icell[4];
                break;
              case 3:
                if (mcell == 1)
                  if ((((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[4] - icell[8])) >= 0 ? ((icell[4] - icell[8])) : (-((icell[4] - icell[8])))) <= bmmdiff)) && !(((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)))
                    magnified[imag] = icell[4];
                if (mcell == 2)
                  if (((((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[4] - icell[8])) >= 0 ? ((icell[4] - icell[8])) : (-((icell[4] - icell[8])))) <= bmmdiff)) && !(((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[5] - icell[3])) >= 0 ? ((icell[5] - icell[3])) : (-((icell[5] - icell[3])))) <= bmmdiff))) || ((((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[2] - icell[4])) >= 0 ? ((icell[2] - icell[4])) : (-((icell[2] - icell[4])))) <= bmmdiff)) && !(((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[5] - icell[1])) >= 0 ? ((icell[5] - icell[1])) : (-((icell[5] - icell[1])))) <= bmmdiff))))
                    magnified[imag] = icell[2];
                if (mcell == 3)
                  if ((((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[2] - icell[4])) >= 0 ? ((icell[2] - icell[4])) : (-((icell[2] - icell[4])))) <= bmmdiff)) && !(((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)))
                    magnified[imag] = icell[6];
                if (mcell == 4)
                  if (((((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[8] - icell[6])) >= 0 ? ((icell[8] - icell[6])) : (-((icell[8] - icell[6])))) <= bmmdiff)) && !(((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[5] - icell[1])) >= 0 ? ((icell[5] - icell[1])) : (-((icell[5] - icell[1])))) <= bmmdiff))) || ((((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[4] - icell[8])) >= 0 ? ((icell[4] - icell[8])) : (-((icell[4] - icell[8])))) <= bmmdiff)) && !(((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[5] - icell[7])) >= 0 ? ((icell[5] - icell[7])) : (-((icell[5] - icell[7])))) <= bmmdiff))))
                    magnified[imag] = icell[4];
                if (mcell == 6)
                  if (((((((icell[2] - icell[6])) >= 0 ? ((icell[2] - icell[6])) : (-((icell[2] - icell[6])))) <= bmmdiff)) && !(((((icell[2] - icell[4])) >= 0 ? ((icell[2] - icell[4])) : (-((icell[2] - icell[4])))) <= bmmdiff)) && !(((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[5] - icell[9])) >= 0 ? ((icell[5] - icell[9])) : (-((icell[5] - icell[9])))) <= bmmdiff))) || ((((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[6] - icell[2])) >= 0 ? ((icell[6] - icell[2])) : (-((icell[6] - icell[2])))) <= bmmdiff)) && !(((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[5] - icell[3])) >= 0 ? ((icell[5] - icell[3])) : (-((icell[5] - icell[3])))) <= bmmdiff))))
                    magnified[imag] = icell[6];
                if (mcell == 7)
                  if ((((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[8] - icell[6])) >= 0 ? ((icell[8] - icell[6])) : (-((icell[8] - icell[6])))) <= bmmdiff)) && !(((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)))
                    magnified[imag] = icell[4];
                if (mcell == 8)
                  if (((((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[6] - icell[2])) >= 0 ? ((icell[6] - icell[2])) : (-((icell[6] - icell[2])))) <= bmmdiff)) && !(((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[5] - icell[7])) >= 0 ? ((icell[5] - icell[7])) : (-((icell[5] - icell[7])))) <= bmmdiff))) || ((((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)) && !(((((icell[8] - icell[6])) >= 0 ? ((icell[8] - icell[6])) : (-((icell[8] - icell[6])))) <= bmmdiff)) && !(((((icell[4] - icell[2])) >= 0 ? ((icell[4] - icell[2])) : (-((icell[4] - icell[2])))) <= bmmdiff)) && !(((((icell[5] - icell[9])) >= 0 ? ((icell[5] - icell[9])) : (-((icell[5] - icell[9])))) <= bmmdiff))))
                    magnified[imag] = icell[8];
                if (mcell == 9)
                  if ((((((icell[6] - icell[8])) >= 0 ? ((icell[6] - icell[8])) : (-((icell[6] - icell[8])))) <= bmmdiff)) && !(((((icell[6] - icell[2])) >= 0 ? ((icell[6] - icell[2])) : (-((icell[6] - icell[2])))) <= bmmdiff)) && !(((((icell[8] - icell[4])) >= 0 ? ((icell[8] - icell[4])) : (-((icell[8] - icell[4])))) <= bmmdiff)))
                    magnified[imag] = icell[6];
                break;
              }
            }
          }
      }
end_of_job:
  return (magnified);
}
```