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

```asm
<iSqrt>:
  endbr64
  mov    %edi,%eax
  cmp    $0x3fffffff,%edi
  jle    L54
  sub    $0x40000000,%eax
  mov    $0x10000000,%edx
  mov    $0x23ffffff,%ecx
  mov    $0x20000000,%esi
L70:
  cmp    %eax,%ecx
  jge    L105
  sub    $0x4000000,%eax
  or     $0x4000000,%edx
  sub    %esi,%eax
L105:
  mov    %edx,%ecx
  lea    0xffffff(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L87
  sub    $0x1000000,%eax
  or     $0x1000000,%ecx
  sub    %edx,%eax
L87:
  mov    %ecx,%edx
  lea    0x3fffff(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L3
  sub    $0x400000,%eax
  or     $0x400000,%edx
  sub    %ecx,%eax
L3:
  mov    %edx,%ecx
  lea    0xfffff(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L37
  sub    $0x100000,%eax
  or     $0x100000,%ecx
  sub    %edx,%eax
L37:
  mov    %ecx,%edx
  lea    0x3ffff(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L74
  sub    $0x40000,%eax
  or     $0x40000,%edx
  sub    %ecx,%eax
L74:
  mov    %edx,%ecx
  lea    0xffff(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L66
  sub    $0x10000,%eax
  or     $0x10000,%ecx
  sub    %edx,%eax
L66:
  mov    %ecx,%edx
  lea    0x3fff(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L139
  sub    $0x4000,%eax
  or     $0x40,%dh
  sub    %ecx,%eax
L139:
  mov    %edx,%ecx
  lea    0xfff(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L93
  sub    $0x1000,%eax
  or     $0x10,%ch
  sub    %edx,%eax
L93:
  mov    %ecx,%edx
  lea    0x3ff(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L113
  sub    $0x400,%eax
  or     $0x4,%dh
  sub    %ecx,%eax
L113:
  mov    %edx,%ecx
  lea    0xff(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L86
  sub    $0x100,%eax
  or     $0x1,%ch
  sub    %edx,%eax
L86:
  mov    %ecx,%edx
  lea    0x3f(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L43
  sub    $0x40,%eax
  or     $0x40,%edx
  sub    %ecx,%eax
L43:
  mov    %edx,%ecx
  lea    0xf(%rdx),%esi
  sar    %ecx
  cmp    %esi,%eax
  jle    L102
  sub    $0x10,%eax
  or     $0x10,%ecx
  sub    %edx,%eax
L102:
  mov    %ecx,%edx
  lea    0x3(%rcx),%esi
  sar    %edx
  cmp    %esi,%eax
  jle    L45
  sub    $0x4,%eax
  or     $0x4,%edx
  sub    %ecx,%eax
L45:
  mov    %edx,%r8d
  sar    %r8d
  cmp    %edx,%eax
  jle    L4
  sub    $0x1,%eax
  or     $0x1,%r8d
  sub    %edx,%eax
L4:
  cmp    %r8d,%eax
  setg   %al
  movzbl %al,%eax
  add    %eax,%r8d
  mov    %r8d,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L54:
  cmp    $0xfffffff,%edi
  jle    L178
  sub    $0x10000000,%eax
  mov    $0x13ffffff,%ecx
  mov    $0x8000000,%edx
  mov    $0x10000000,%esi
  jmp    L70
L178:
  xor    %edx,%edx
  mov    $0x3ffffff,%ecx
  xor    %esi,%esi
  jmp    L70
```

assistant: ```c
int iSqrt(int value) {
  int root = 0;
  if ((0x40000000l >> 0) + root <= value) {
    value -= (0x40000000l >> 0) + root;
    root = (root >> 1) | (0x40000000l >> 0);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 2) + root <= value) {
    value -= (0x40000000l >> 2) + root;
    root = (root >> 1) | (0x40000000l >> 2);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 4) + root <= value) {
    value -= (0x40000000l >> 4) + root;
    root = (root >> 1) | (0x40000000l >> 4);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 6) + root <= value) {
    value -= (0x40000000l >> 6) + root;
    root = (root >> 1) | (0x40000000l >> 6);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 8) + root <= value) {
    value -= (0x40000000l >> 8) + root;
    root = (root >> 1) | (0x40000000l >> 8);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 10) + root <= value) {
    value -= (0x40000000l >> 10) + root;
    root = (root >> 1) | (0x40000000l >> 10);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 12) + root <= value) {
    value -= (0x40000000l >> 12) + root;
    root = (root >> 1) | (0x40000000l >> 12);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 14) + root <= value) {
    value -= (0x40000000l >> 14) + root;
    root = (root >> 1) | (0x40000000l >> 14);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 16) + root <= value) {
    value -= (0x40000000l >> 16) + root;
    root = (root >> 1) | (0x40000000l >> 16);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 18) + root <= value) {
    value -= (0x40000000l >> 18) + root;
    root = (root >> 1) | (0x40000000l >> 18);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 20) + root <= value) {
    value -= (0x40000000l >> 20) + root;
    root = (root >> 1) | (0x40000000l >> 20);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 22) + root <= value) {
    value -= (0x40000000l >> 22) + root;
    root = (root >> 1) | (0x40000000l >> 22);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 24) + root <= value) {
    value -= (0x40000000l >> 24) + root;
    root = (root >> 1) | (0x40000000l >> 24);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 26) + root <= value) {
    value -= (0x40000000l >> 26) + root;
    root = (root >> 1) | (0x40000000l >> 26);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 28) + root <= value) {
    value -= (0x40000000l >> 28) + root;
    root = (root >> 1) | (0x40000000l >> 28);
  } else {
    root = root >> 1;
  };
  if ((0x40000000l >> 30) + root <= value) {
    value -= (0x40000000l >> 30) + root;
    root = (root >> 1) | (0x40000000l >> 30);
  } else {
    root = root >> 1;
  };
  if (root < value) {
    ++root;
  }
  return root;
}
```