user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  xor    %edi,%edi
  lea    D23(%rip),%r15
  push   %r14
  push   %r13
  lea    D51(%rip),%r13
  push   %r12
  mov    $0x64,%r12d
  push   %rbp
  lea    D12(%rip),%rbp
  push   %rbx
  mov    $0xc8,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r14
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  lea    D98(%rip),%rdi
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  call   <puts@plt>
  lea    D59(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D21(%rip),%rdi
  call   <puts@plt>
  lea    0x14(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopw   0x0(%rax,%rax,1)
L68:
  mov    %r12d,%edx
  mov    %ebx,%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%edx
  mov    0x14(%rsp),%esi
  mov    %r12d,%ecx
  sar    %ecx
  lea    (%rdx,%rsi,1),%eax
  cmp    %ebx,%eax
  jg     L26
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  sub    %eax,%ebx
  cvtsi2ss %esi,%xmm1
  cvtsi2ss %r12d,%xmm2
  movaps %xmm1,%xmm0
  divss  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2ss %ecx,%xmm2
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r12d
  cmp    $0x9,%r12d
  jle    L32
  xor    %eax,%eax
  call   <rand@plt>
  imul   $0xcccccccd,%eax,%eax
  add    $0x19999999,%eax
  cmp    $0x33333332,%eax
  jbe    L47
  mov    0x10(%rsp),%eax
L97:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  D2(%rip),%xmm0
  cvtsi2sd %ebx,%xmm1
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%ebx
  cmp    $0x3e8,%r12d
  jle    L35
  cmp    $0x3e8,%ebx
  jg     L31
L35:
  lea    D60(%rip),%rdi
  call   <puts@plt>
  jmp    L68
  nopl   0x0(%rax)
L47:
  xor    %eax,%eax
  call   <act_of_god@plt>
  mov    %eax,0x10(%rsp)
  jmp    L97
  nopl   (%rax)
L26:
  lea    D33(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L68
L32:
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L33:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L31:
  mov    %ebx,%edx
  mov    %r12d,%esi
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L33
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D23
datatype: string
name: read_data
arguments: data_label: D51
datatype: string
name: read_data
arguments: data_label: D12
datatype: string
name: read_data
arguments: data_label: D98
datatype: string
name: read_data
arguments: data_label: D59
datatype: string
name: read_data
arguments: data_label: D21
datatype: string
name: read_data
arguments: data_label: D2
datatype: f64
name: read_data
arguments: data_label: D60
datatype: string
name: read_data
arguments: data_label: D33
datatype: string
name: read_data
arguments: data_label: D48
datatype: string
name: read_data
arguments: data_label: D64
datatype: string

tool: D23: %d lbs of food and %d people
Input food for sowing 

tool: D51: and the amount for our peoples table sire? 

tool: D12: %d

tool: D98: 







	Cymon's Games

	http://WWW.CYMONSGAMES.COM


   This game and its code is a 2008 Cymon's Games game.
   If you have enjoyed this game or would just like to have a new game
   each week please visit:
   http://WWW.CYMONSGAMES.COM for C/C++ programming resources and programs
   for everyone, beginners and advanced users alike.



tool: D59: 
	Press ENTER to continue...






tool: D21: 














RULER
-----



tool: D2: 3.5

tool: D60: 
A New Year Dawns

tool: D33: you can't put %d lbs on the tables and sow %d lbs this year,  sire


tool: D48: 
The few people that survived the hard winter have left for pastures new.
Your empire has crumbled like many before it andmany that will rise in
its ashes

tool: D64: 
Sire, your majesty is known throughout the world.
Statues are errected in your honour today because our nation is strong and
safe from harm, our nation is currently %d strong and we have supplies
of %d to feed us.  We now longer need your guidance in these matters you
can sit in state without vexation on our earthly matters.

ALL HAIL THE KING!

assistant: ```c
int main() {
  srand(time(NULL));
  int people = 100;
  int food = 200;
  int sow = 0;
  int tables = 0;
  int z;
  puts("\n\n\n\n\n\n\n\n\tCymon's Games\n\n\thttp://WWW.CYMONSGAMES.COM\n\n\n"
       "   This game and its code is a 2008 Cymon's Games game.\n"
       "   If you have enjoyed this game or would just like to have a new game\n"
       "   each week please visit:\n"
       "   http://WWW.CYMONSGAMES.COM for C/C++ programming resources and programs\n"
       "   for everyone, beginners and advanced users alike.\n\n");
  printf("\n\tPress ENTER to continue...\n\n\n\n\n\n");
  getchar();
  puts("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nRULER\n-----\n\n");
input:
  printf("%d lbs of food and %d people\nInput food for sowing ", food, people);
  scanf("%d", &sow);
  printf("and the amount for our peoples table sire? ");
  scanf("%d", &tables);
  if (sow + tables > food) {
    printf("you can't put %d lbs on the tables and sow %d lbs this "
           "year,  sire\n",
           tables, sow);
    goto input;
  }
  z = food - (sow + tables);
  people = ((float)tables / (float)people) * (people / 2) + tables;
  if (people < 10) {
    printf("\nThe few people that survived the hard winter have left "
           "for pastures new.\nYour empire has crumbled like many before it and"
           "many that will rise in\nits ashes");
    return 0;
  }
  if (rand() % 5 == 0)
    sow = act_of_god();
  food = z + (sow * 3.5);
  if (people > 1000 && food > 1000) {
    printf("\nSire, your majesty is known throughout the world.\n"
           "Statues are errected in your honour today because our nation is strong "
           "and\nsafe from harm, our nation is currently %d strong and we have "
           "supplies\nof %d to feed us.  We now longer need your guidance in "
           "these matters you\ncan sit in state without vexation on our earthly "
           "matters.\n\nALL HAIL THE KING!",
           people, food);
    return 0;
  }
  printf("\nA New Year Dawns\n");
  goto input;
}
```