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

```asm
<checkAllBusesWright>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  lea    D44(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
L10:
  mov    %r14d,%eax
  xor    %r13d,%r13d
  shl    $0x10,%eax
  mov    %eax,0xc(%rsp)
  nopl   0x0(%rax)
L4:
  mov    %r13d,%eax
  xor    %ebx,%ebx
  shl    $0xb,%eax
  or     0xc(%rsp),%eax
  mov    %eax,0x4(%rsp)
L100:
  mov    %ebx,%edx
  mov    %r13d,%esi
  mov    %r14d,%edi
  call   <checkDevice@plt>
  cmp    $0xffffffff,%eax
  je     L26
  cmp    $0x8086,%ax
  jne    L26
  shr    $0x10,%eax
  cmp    $0x1e00,%eax
  je     L27
L26:
  add    $0x1,%ebx
  cmp    $0x8,%ebx
  jne    L100
  add    $0x1,%r13d
  cmp    $0x20,%r13d
  jne    L4
  add    $0x1,%r14d
  cmp    $0x100,%r14d
  jne    L10
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L27:
  mov    %ebx,%ecx
  mov    %r13d,%edx
  mov    %r14d,%esi
  xor    %eax,%eax
  lea    D69(%rip),%rdi
  call   <printf@plt>
  mov    %ebx,%edi
  mov    $0xcf8,%esi
  shl    $0x8,%edi
  or     0x4(%rsp),%edi
  or     $0x80000018,%edi
  call   <outl@plt>
  mov    $0xcfc,%edi
  call   <inl@plt>
  lea    D58(%rip),%rdi
  mov    %eax,%ebp
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  and    $0xfffc,%ebp
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  lea    0x2(%rbp),%r15d
  mov    %ebp,%esi
  call   <printf@plt>
  mov    %r15d,%esi
  mov    $0x5a,%edi
  mov    %r15d,0x8(%rsp)
  call   <outb@plt>
  mov    %r15d,%edi
  call   <inb@plt>
  lea    D58(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r15d,%edi
  call   <inb@plt>
  cmp    $0x5a,%eax
  je     L62
L40:
  lea    0x6(%rbp),%eax
  mov    $0xe0,%edi
  lea    0x7(%rbp),%r15d
  mov    %eax,%esi
  mov    %eax,(%rsp)
  call   <outb@plt>
  mov    %r15d,%edi
  call   <inb@plt>
  lea    D58(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cs nopw 0x0(%rax,%rax,1)
L128:
  mov    %r15d,%edi
  call   <inb@plt>
  test   $0x80,%al
  jne    L128
  mov    (%rsp),%esi
  mov    $0xe0,%edi
  call   <outb@plt>
  mov    0x8(%rsp),%esi
  mov    $0x1,%edi
  call   <outb@plt>
  lea    0x3(%rbp),%esi
  xor    %edi,%edi
  call   <outb@plt>
  lea    0x4(%rbp),%esi
  xor    %edi,%edi
  call   <outb@plt>
  lea    0x5(%rbp),%esi
  xor    %edi,%edi
  call   <outb@plt>
  mov    (%rsp),%esi
  mov    $0xe0,%edi
  call   <outb@plt>
  mov    %r15d,%esi
  mov    $0x20,%edi
  call   <outb@plt>
  nop
L14:
  mov    %r15d,%edi
  call   <inb@plt>
  test   $0x80,%al
  jne    L14
  mov    %r15d,%edi
  call   <inb@plt>
  test   $0x80,%al
  jne    L26
  movslq %ebp,%rbp
  mov    $0x100,%r15d
  nopl   (%rax)
L109:
  mov    %rbp,%rdi
  call   <inw@plt>
  mov    %r12,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  sub    $0x1,%r15d
  jne    L109
  jmp    L26
L62:
  lea    D50(%rip),%rdi
  call   <puts@plt>
  jmp    L40
```

tool_calls: name: disassemble_data
arguments: label: D44
type: string
name: disassemble_data
arguments: label: D69
type: string
name: disassemble_data
arguments: label: D58
type: string
name: disassemble_data
arguments: label: D50
type: string

tool: D44: 0x%X


tool: D69: @ %d %d %d


tool: D58: %X


tool: D50: register pritomen

assistant: ```c
int checkAllBusesWright() {
  int bus;
  int device;
  int function;
  uint32_t got, bar2, base;
  uint16_t ven, dev;
  for (bus = 0; bus < 256; bus++) {
    for (device = 0; device < 32; device++) {
      for (function = 0; function < 8; function++) {
        got = checkDevice(bus, device, function);
        if (got != 0xFFFFFFFF) {
          dev = (uint16_t)((got >> 16) & 0xffff);
          ven = (uint16_t)((got >> 0) & 0xffff);
          if (ven == 0x8086 && (dev == 0x1e00)) {
            printf("@ %d %d %d\n", bus, device, function);
            outl(0x80000000 | (bus << 16) | (device << 11) | (function << 8) | 0x18 & 0xfc, 0xCF8);
            bar2 = inl(0xCFC);
            printf("%X\n", bar2);
            base = bar2 & 0xFFFC;
            printf("%X\n", base);
            outb(0x5A, base + 2);
            printf("%X\n", inb(base + 2));
            if (inb(base + 2) == 0x5A) {
              printf("register pritomen\n");
            }
            outb(0xE0, base + 6);
            printf("%X\n", inb(base + 7));
            while ((inb(base + 7) & 0x80) != 0)
              ;
            outb(0xE0, base + 6);
            outb(0x01, base + 2);
            outb(0x00, base + 3);
            outb(0x00, base + 4);
            outb(0x00, base + 5);
            outb(0xE0, base + 6);
            outb(0x20, base + 7);
            while ((inb(base + 7) & 0x80) != 0)
              ;
            if ((inb(base + 7) & 0x80) == 0) {
              int i;
              for (i = 0; i < 256; i++) {
                printf("0x%X\n", inw(base + 0));
              }
            }
          }
        }
      }
    }
  }
  return 0;
}
```