user: What is the c source code of the assembly code below?

```asm
<LivingColors_learnLamps>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <CC2500_clearLamps@plt>
  mov    $0x36,%edi
  call   <CC2500_sendStrobeCommand@plt>
  mov    $0x0,%esi
  mov    $0xfb,%edi
  call   <CC2500_sendCommand@plt>
  movzbl %al,%ebp
  test   %ebp,%ebp
  jle    L30
  mov    $0x0,%ebx
L121:
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
  add    $0x1,%ebx
  cmp    %ebp,%ebx
  jne    L121
L30:
  mov    $0x0,%eax
  call   <millis@plt>
  mov    %rax,%rbp
  lea    0x9(%rsp),%r12
  jmp    L11
L120:
  mov    %r12,%rdi
  call   <checkAddress@plt>
L0:
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
L70:
  mov    $0x36,%edi
  call   <CC2500_sendStrobeCommand@plt>
  mov    $0x2,%edi
  call   <delay@plt>
L11:
  mov    $0x0,%eax
  call   <millis@plt>
  sub    %rbp,%rax
  cmp    $0x1387,%rax
  ja     L115
  mov    $0x34,%edi
  call   <CC2500_sendStrobeCommand@plt>
  mov    $0xa,%edi
  call   <delay@plt>
  mov    $0x0,%esi
  mov    $0xfb,%edi
  call   <CC2500_sendCommand@plt>
  cmp    $0x10,%al
  jbe    L70
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
  cmp    $0xe,%al
  jne    L54
  mov    $0xe,%edx
  mov    %r12,%rsi
  mov    $0xff,%edi
  call   <CC2500_sendBurstCommand@plt>
  movzbl 0x12(%rsp),%eax
  mov    %eax,%edx
  and    $0xfffffffb,%edx
  cmp    $0x3,%dl
  je     L120
  cmp    $0x5,%al
  jne    L0
  jmp    L120
L54:
  mov    $0x0,%esi
  mov    $0xfb,%edi
  call   <CC2500_sendCommand@plt>
  movzbl %al,%r13d
  test   %r13d,%r13d
  jle    L70
  mov    $0x0,%ebx
L55:
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
  add    $0x1,%ebx
  cmp    %r13d,%ebx
  jne    L55
  jmp    L70
L115:
  mov    $0x36,%edi
  call   <CC2500_sendStrobeCommand@plt>
  mov    $0x0,%esi
  mov    $0xfb,%edi
  call   <CC2500_sendCommand@plt>
  movzbl %al,%ebp
  test   %ebp,%ebp
  jle    L143
  mov    $0x0,%ebx
L95:
  mov    $0x0,%esi
  mov    $0xbf,%edi
  call   <CC2500_sendCommand@plt>
  add    $0x1,%ebx
  cmp    %ebp,%ebx
  jne    L95
L143:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L130
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L130:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void LivingColors_learnLamps() {
  CC2500_clearLamps();
  CC2500_sendStrobeCommand(0x36);
  unsigned char result = CC2500_sendCommand(0xFB, 0x00);
  for (int i = 0; i < result; ++i) {
    CC2500_sendCommand(0xBF, 0x00);
  }
  unsigned long startTime = millis();
  while ((millis() - startTime) < 5000) {
    CC2500_sendStrobeCommand(0x34);
    delay(10);
    result = CC2500_sendCommand(0xFB, 0x00);
    if (result >= 0x11) {
      result = CC2500_sendCommand(0xBF, 0x00);
      if (result == 0x0E) {
        unsigned char data[15];
        CC2500_sendBurstCommand(0xFF, data, result);
        if ((data[9] == 0x03) || (data[9] == 0x05) || (data[9] == 0x07)) {
          checkAddress(data);
        }
        CC2500_sendCommand(0xBF, 0x00);
        CC2500_sendCommand(0xBF, 0x00);
      } else {
        result = CC2500_sendCommand(0xFB, 0x00);
        for (int i = 0; i < result; ++i) {
          CC2500_sendCommand(0xBF, 0x00);
        }
      }
    }
    CC2500_sendStrobeCommand(0x36);
    delay(2);
  }
  CC2500_sendStrobeCommand(0x36);
  result = CC2500_sendCommand(0xFB, 0x00);
  for (int i = 0; i < result; ++i) {
    CC2500_sendCommand(0xBF, 0x00);
  }
}
```