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

```asm
<ListImage>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0xa48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa38(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  sete   %al
  test   %edx,%edx
  sete   %dl
  or     %dl,%al
  jne    L1
  test   %rdi,%rdi
  jne    L17
L1:
  xor    %r12d,%r12d
L43:
  mov    0xa38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0xa48,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L17:
  mov    %rsp,%r12
  mov    $0x514,%edx
  mov    %rsi,%rbp
  mov    %r12,%rdi
  lea    D6(%rip),%rsi
  lea    0x520(%rsp),%r13
  call   <strncpy@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <base64decode@plt>
  mov    $0x514,%edx
  cmp    %edx,%eax
  cmovge %eax,%edx
  mov    %edx,%r12d
  cmp    %edx,%ebx
  jl     L1
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  jmp    L43
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D6
type_infered: string

tool: D6: R0lGODlhEAAQAIcAAAAAAB8seiUtWSMuYyMwaD1CX1oVFkkjI00yM2I/P0tPaFFSY1hcd3RKSn9MSG1ufxo/mwc1pCQ5tzpJiDxNkQ5J0yhWzjp24khTlllclktXokpWqUlTuktts2dpsGdot2RovGhptlhnwUZ55COC/ymE/1uDzUyQ+Eyc/06d/1SM81CN/1id/1mc/1yY+1+b/F2c/12g/2KN1Wab82Ke/3+u7HWq/3bC/33B/5YqK5czMp03NphRUZtTUZpvb8cXGdkbHPQNC/oPDf89NNpGPP9ANt1RR/9NSv9PTY6OjpGRkZWVmpiYmbWWlruYmaCgoKqqqqurq6yrq7CwsLm5vry8vJub0bCw2oDC/4nG/7rg/8utrM+xsc/P1M/P1tfX19rZ2dra2t7e38rK5cvV8dHR6dfe88Ti/8rl/97r/+ba2v/NxP/Rx+Li4+np6e7r6/Pt7fX19ff39/Pz+////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAHQALAAAAAAQABAAAAibAOkIHEhQIAgrGQoqpMNhhpYRDBYS3HDixoUCEp00odOFQocBTBb24LLFgcAlVRbyMMJmDZEEEgXmEFJkSBADMen4AILkyA8EBceE+ODBC50GO3QcmELwiggzc8hooEJHihKFEl6gSXNmRYCYFUrQsAGDRIQoEi2kaBGDBQoITyRicIElCw4VAmJ2mSCjhgkCSXLSeaBgAZScAQEAOw==

assistant: ```c
int ListImage(char *source, char *dest, int size) {
  char Gif[1300];
  char temp[1300];
  int size2;
  if (!source || !dest || !size) {
    return (0);
  }
  strncpy(Gif,
          "R0lGODlhEAAQAIcAAAAAAB8seiUtWSMuYyMwaD1CX1oVFkkjI00yM2I/P0tPaFFSY1hcd3RKSn9M"
          "SG1ufxo/mwc1pCQ5tzpJiDxNkQ5J0yhWzjp24khTlllclktXokpWqUlTuktts2dpsGdot2RovGhp"
          "tlhnwUZ55COC/ymE/1uDzUyQ+Eyc/06d/1SM81CN/1id/1mc/1yY+1+b/F2c/12g/2KN1Wab82Ke"
          "/3+u7HWq/3bC/33B/5YqK5czMp03NphRUZtTUZpvb8cXGdkbHPQNC/oPDf89NNpGPP9ANt1RR/9N"
          "Sv9PTY6OjpGRkZWVmpiYmbWWlruYmaCgoKqqqqurq6yrq7CwsLm5vry8vJub0bCw2oDC/4nG/7rg"
          "/8utrM+xsc/P1M/P1tfX19rZ2dra2t7e38rK5cvV8dHR6dfe88Ti/8rl/97r/+ba2v/NxP/Rx+Li"
          "4+np6e7r6/Pt7fX19ff39/Pz+////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
          "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAHQALAAAAAAQABAA"
          "AAibAOkIHEhQIAgrGQoqpMNhhpYRDBYS3HDixoUCEp00odOFQocBTBb24LLFgcAlVRbyMMJmDZEE"
          "EgXmEFJkSBADMen4AILkyA8EBceE+ODBC50GO3QcmELwiggzc8hooEJHihKFEl6gSXNmRYCYFUrQ"
          "sAGDRIQoEi2kaBGDBQoITyRicIElCw4VAmJ2mSCjhgkCSXLSeaBgAZScAQEAOw==",
          1300);
  size2 = base64decode(temp, Gif);
  if (size2 < 1300) {
    size2 = 1300;
  }
  if (size2 > size) {
    return (0);
  }
  memcpy(dest, temp, size2);
  return (size2);
}
```