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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x65,-0x19(%rbp)
  jmp    L8
L22:
  movl   $0x0,-0x18(%rbp)
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movl   $0x0,-0x14(%rbp)
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x18(%rbp),%eax
  test   %eax,%eax
  js     L51
  mov    -0x14(%rbp),%eax
  test   %eax,%eax
  js     L51
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <kuvvet_alma@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    -0x10(%rbp),%rcx
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L55
L51:
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L55:
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x19(%rbp),%rax
  mov    %rax,%rsi
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
L8:
  movzbl -0x19(%rbp),%eax
  cmp    $0x68,%al
  jne    L22
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D59
type_guessed: string
name: parse_data
arguments: data_tag: D47
type_guessed: string
name: parse_data
arguments: data_tag: D18
type_guessed: string
name: parse_data
arguments: data_tag: D1
type_guessed: string
name: parse_data
arguments: data_tag: D4
type_guessed: string
name: parse_data
arguments: data_tag: D17
type_guessed: string
name: parse_data
arguments: data_tag: D77
type_guessed: string
name: parse_data
arguments: data_tag: D54
type_guessed: string

tool: D59: Kuvveti alinacak sayiyi giriniz: 

tool: D47: %d

tool: D18: Kuvveti giriniz: 

tool: D1: tabani %d kuvveti %d olan sayinin sonucu = %ld


tool: D4: Sayiyi veya Kuvveti negatif girdiniz!!

tool: D17: Baska sayi hesaplamak istiyormusunuz?(e veya h): 

tool: D77:  %c

tool: D54: Programdan ciktiniz.

assistant: ```c
int main() {
  char program_cikisi = 'e';
  while (program_cikisi != 'h') {
    int sayi = 0;
    printf("Kuvveti alinacak sayiyi giriniz: ");
    scanf("%d", &sayi);
    int kuvvet = 0;
    printf("Kuvveti giriniz: ");
    scanf("%d", &kuvvet);
    long int sonuc;
    if (sayi >= 0 && kuvvet >= 0) {
      sonuc = kuvvet_alma(sayi, kuvvet);
      printf("tabani %d kuvveti %d olan sayinin sonucu = %ld\n", sayi, kuvvet, sonuc);
    } else {
      printf("Sayiyi veya Kuvveti negatif girdiniz!!\n");
    }
    printf("Baska sayi hesaplamak istiyormusunuz?(e veya h): ");
    scanf(" %c", &program_cikisi);
  }
  printf("Programdan ciktiniz.");
  return 0;
}
```