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

```asm
<ina226Init>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,%eax
  mov    %al,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x8000,-0x4(%rbp)
  movzbl -0x18(%rbp),%esi
  mov    -0x4(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%ecx
  mov    $0x0,%edx
  mov    %eax,%edi
  call   <I2CWriteReg16@plt>
  movl   $0x4f27,-0x4(%rbp)
  movzbl -0x18(%rbp),%esi
  mov    -0x4(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%ecx
  mov    $0x0,%edx
  mov    %eax,%edi
  call   <I2CWriteReg16@plt>
  movl   $0x1400,-0x4(%rbp)
  movzbl -0x18(%rbp),%esi
  mov    -0x4(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%ecx
  mov    $0x5,%edx
  mov    %eax,%edi
  call   <I2CWriteReg16@plt>
  movzbl -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    $0x0,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <I2CReadReg16@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x4f27,-0x8(%rbp)
  je     L14
  movl   $0x1,-0xc(%rbp)
L14:
  movzbl -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    $0x5,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <I2CReadReg16@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x1400,-0x8(%rbp)
  je     L23
  movl   $0x1,-0xc(%rbp)
L23:
  movzbl -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    $0xff,%edx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <I2CReadReg16@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0xc(%rbp)
  jne    L25
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L38
L25:
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L38:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0xc(%rbp),%eax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D6
type_infered: string
name: unpack_data
arguments: label: D25
type_infered: string
name: unpack_data
arguments: label: D47
type_infered: string
name: unpack_data
arguments: label: D38
type_infered: string
name: unpack_data
arguments: label: D4
type_infered: string
name: unpack_data
arguments: label: D26
type_infered: string

tool: D6: Configuring INA226

tool: D25: Config reg = 0x%0x


tool: D47: Cal reg = 0x%0x


tool: D38: Die ID reg = 0x%0x


tool: D4: --- INA226 Init Test passed

tool: D26: --- INA226 Init Test failed

assistant: ```c
unsigned int ina226Init(int fd, unsigned char i2cAddress) {
  unsigned int readData = 0;
  unsigned int writeData;
  unsigned int testFail = 0;
  printf("Configuring INA226\n");
  writeData = 0x8000;
  I2CWriteReg16(fd, i2cAddress, 0x00, writeData);
  writeData = 0x4f27;
  I2CWriteReg16(fd, i2cAddress, 0x00, writeData);
  writeData = 0x1400;
  I2CWriteReg16(fd, i2cAddress, 0x05, writeData);
  readData = I2CReadReg16(fd, i2cAddress, 0x00);
  printf("Config reg = 0x%0x\n", readData);
  if (readData != 0x4f27)
    testFail = 1;
  readData = I2CReadReg16(fd, i2cAddress, 0x05);
  printf("Cal reg = 0x%0x\n", readData);
  if (readData != 0x1400)
    testFail = 1;
  readData = I2CReadReg16(fd, i2cAddress, 0xff);
  printf("Die ID reg = 0x%0x\n", readData);
  if (testFail == 0)
    printf("--- INA226 Init Test passed\n");
  else
    printf("--- INA226 Init Test failed\n");
  printf("\n");
  return testFail;
}
```