user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    $0x1,%edx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  movabs $0x100000004,%rax
  lea    0x4(%rsp),%rbp
  movl   $0x1,0x8(%rsp)
  mov    %rbp,%rcx
  movl   $0x1,0xc(%rsp)
  mov    %rax,0x20(%rsp)
  movabs $0x3fffffffe,%rax
  mov    %rax,0x28(%rsp)
  movabs $0x200000001,%rax
  mov    %rax,0x10(%rsp)
  mov    %rax,0x18(%rsp)
  call   <gmshInitialize@plt>
  mov    %rbp,%rdx
  mov    $0x1,%esi
  lea    D21(%rip),%rdi
  call   <gmshOptionSetNumber@plt>
  mov    %rbp,%rsi
  lea    D48(%rip),%rdi
  call   <gmshModelAdd@plt>
  pxor   %xmm1,%xmm1
  xor    %edi,%edi
  mov    %rbp,%rdx
  movsd  D27(%rip),%xmm2
  movapd %xmm1,%xmm0
  mov    $0x1,%esi
  call   <gmshModelGeoAddPoint@plt>
  pxor   %xmm3,%xmm3
  xor    %edi,%edi
  mov    %rbp,%rdx
  mov    D27(%rip),%rax
  movapd %xmm3,%xmm1
  mov    $0x2,%esi
  movsd  D99(%rip),%xmm0
  movq   %rax,%xmm2
  call   <gmshModelGeoAddPoint@plt>
  xor    %edi,%edi
  mov    %rbp,%rdx
  mov    $0x3,%esi
  mov    D27(%rip),%rax
  movsd  D108(%rip),%xmm1
  movq   %rax,%xmm2
  mov    D99(%rip),%rax
  movq   %rax,%xmm0
  call   <gmshModelGeoAddPoint@plt>
  pxor   %xmm3,%xmm3
  xor    %edi,%edi
  mov    %rbp,%rdx
  mov    D27(%rip),%rax
  movapd %xmm3,%xmm0
  mov    $0x4,%esi
  movq   %rax,%xmm2
  mov    D108(%rip),%rax
  movq   %rax,%xmm1
  call   <gmshModelGeoAddPoint@plt>
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x2,%esi
  mov    $0x1,%edi
  call   <gmshModelGeoAddLine@plt>
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x2,%esi
  mov    $0x3,%edi
  call   <gmshModelGeoAddLine@plt>
  mov    %rbp,%rcx
  mov    $0x3,%edx
  mov    $0x4,%esi
  mov    $0x3,%edi
  call   <gmshModelGeoAddLine@plt>
  mov    %rbp,%rcx
  mov    $0x4,%edx
  mov    $0x1,%esi
  mov    $0x4,%edi
  call   <gmshModelGeoAddLine@plt>
  lea    0x20(%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x4,%esi
  call   <gmshModelGeoAddCurveLoop@plt>
  lea    0x8(%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <gmshModelGeoAddPlaneSurface@plt>
  xor    %edi,%edi
  lea    0x10(%rsp),%rsi
  mov    %rbp,%r8
  mov    $0x1,%ecx
  mov    $0x2,%edx
  call   <gmshModelAddPhysicalGroup@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%r8
  mov    $0x2,%ecx
  mov    $0x2,%edx
  mov    $0x1,%edi
  call   <gmshModelAddPhysicalGroup@plt>
  mov    %rbp,%r8
  lea    0xc(%rsp),%rsi
  mov    $0x6,%ecx
  mov    $0x1,%edx
  mov    $0x2,%edi
  call   <gmshModelAddPhysicalGroup@plt>
  mov    %rbp,%rcx
  mov    $0x6,%esi
  lea    D19(%rip),%rdx
  mov    $0x2,%edi
  call   <gmshModelSetPhysicalName@plt>
  mov    %rbp,%rdi
  call   <gmshModelGeoSynchronize@plt>
  mov    %rbp,%rsi
  mov    $0x2,%edi
  call   <gmshModelMeshGenerate@plt>
  lea    D2(%rip),%rdi
  mov    %rbp,%rsi
  call   <gmshWrite@plt>
  mov    %rbp,%rdi
  call   <gmshFinalize@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D21
data_type: string
name: extract_symbolic_data
arguments: tag: D48
data_type: string
name: extract_symbolic_data
arguments: tag: D27
data_type: byte[8]
name: extract_symbolic_data
arguments: tag: D99
data_type: byte[8]
name: extract_symbolic_data
arguments: tag: D108
data_type: byte[8]
name: extract_symbolic_data
arguments: tag: D19
data_type: string
name: extract_symbolic_data
arguments: tag: D2
data_type: string

tool: D21: General.Terminal

tool: D48: t1

tool: {"D27": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0x84,0x3f]}

tool: {"D99": [0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f]}

tool: {"D108": [0x33,0x33,0x33,0x33,0x33,0x33,0xd3,0x3f]}

tool: D19: My surface

tool: D2: t1.msh

assistant: ```c
int main(int argc, char **argv) {
  int ierr;
  double lc = 1e-2;
  int cl1[] = {4, 1, -2, 3}, ps1[] = {1};
  int pg1[] = {1, 2}, pg2[] = {1, 2}, pg6[] = {1};
  gmshInitialize(argc, argv, 1, &ierr);
  gmshOptionSetNumber("General.Terminal", 1, &ierr);
  gmshModelAdd("t1", &ierr);
  gmshModelGeoAddPoint(0, 0, 0, lc, 1, &ierr);
  gmshModelGeoAddPoint(.1, 0, 0, lc, 2, &ierr);
  gmshModelGeoAddPoint(.1, .3, 0, lc, 3, &ierr);
  gmshModelGeoAddPoint(0, .3, 0, lc, 4, &ierr);
  gmshModelGeoAddLine(1, 2, 1, &ierr);
  gmshModelGeoAddLine(3, 2, 2, &ierr);
  gmshModelGeoAddLine(3, 4, 3, &ierr);
  gmshModelGeoAddLine(4, 1, 4, &ierr);
  gmshModelGeoAddCurveLoop(cl1, sizeof(cl1) / sizeof(cl1[0]), 1, &ierr);
  gmshModelGeoAddPlaneSurface(ps1, sizeof(ps1) / sizeof(ps1[0]), 1, &ierr);
  gmshModelAddPhysicalGroup(0, pg1, sizeof(pg1) / sizeof(pg1[0]), 1, &ierr);
  gmshModelAddPhysicalGroup(1, pg2, sizeof(pg2) / sizeof(pg2[0]), 2, &ierr);
  gmshModelAddPhysicalGroup(2, pg6, sizeof(pg6) / sizeof(pg6[0]), 6, &ierr);
  gmshModelSetPhysicalName(2, 6, "My surface", &ierr);
  gmshModelGeoSynchronize(&ierr);
  gmshModelMeshGenerate(2, &ierr);
  gmshWrite("t1.msh", &ierr);
  gmshFinalize(&ierr);
  return 0;
}
```