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

```asm
<nunchuk_show_ext_x>:
  endbr64
  movsd  D313(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L60
  movsd  D339(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L14
  movsd  D144(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L196
  movsd  D308(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L124
  movsd  D238(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L107
  movsd  D379(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L127
  movsd  D373(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L185
  movsd  D65(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L41
  movsd  D58(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L85
  movsd  D132(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L38
  movsd  D188(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L87
  movsd  D119(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L78
  movsd  D222(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L56
  movsd  D283(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L88
  movsd  D187(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L48
  movsd  D55(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L169
  movsd  D354(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L140
  movsd  D80(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L4
  movsd  D115(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L162
  movsd  D382(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L117
  lea    D48(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  nopw   0x0(%rax,%rax,1)
L14:
  lea    D383(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  xchg   %ax,%ax
L60:
  lea    D106(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L107:
  lea    D28(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L196:
  lea    D409(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L124:
  lea    D256(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L41:
  lea    D247(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L127:
  lea    D154(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L185:
  lea    D327(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
  cs nopw 0x0(%rax,%rax,1)
L85:
  lea    D34(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L38:
  lea    D180(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L87:
  lea    D289(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L78:
  lea    D297(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L56:
  lea    D121(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L88:
  lea    D337(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L48:
  lea    D216(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L169:
  lea    D292(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L140:
  lea    D76(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L4:
  lea    D213(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L117:
  lea    D149(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
L162:
  lea    D402(%rip),%rdx
  mov    $0x2,%esi
  mov    $0x1e,%edi
  jmp    1050 <mvprintw@plt>
```

tool_calls: name: retrieve_data
arguments: label: D313
data_type: byte[8]
name: retrieve_data
arguments: label: D339
data_type: byte[8]
name: retrieve_data
arguments: label: D144
data_type: byte[8]
name: retrieve_data
arguments: label: D308
data_type: byte[8]
name: retrieve_data
arguments: label: D238
data_type: byte[8]
name: retrieve_data
arguments: label: D379
data_type: byte[8]
name: retrieve_data
arguments: label: D373
data_type: byte[8]
name: retrieve_data
arguments: label: D65
data_type: byte[8]
name: retrieve_data
arguments: label: D58
data_type: byte[8]
name: retrieve_data
arguments: label: D132
data_type: byte[8]
name: retrieve_data
arguments: label: D188
data_type: f64
name: retrieve_data
arguments: label: D119
data_type: byte[8]
name: retrieve_data
arguments: label: D222
data_type: byte[8]
name: retrieve_data
arguments: label: D283
data_type: byte[8]
name: retrieve_data
arguments: label: D187
data_type: byte[8]
name: retrieve_data
arguments: label: D55
data_type: byte[8]
name: retrieve_data
arguments: label: D354
data_type: byte[8]
name: retrieve_data
arguments: label: D80
data_type: byte[8]
name: retrieve_data
arguments: label: D115
data_type: byte[8]
name: retrieve_data
arguments: label: D382
data_type: byte[8]
name: retrieve_data
arguments: label: D48
data_type: string
name: retrieve_data
arguments: label: D383
data_type: string
name: retrieve_data
arguments: label: D106
data_type: string
name: retrieve_data
arguments: label: D28
data_type: string
name: retrieve_data
arguments: label: D409
data_type: string
name: retrieve_data
arguments: label: D256
data_type: string
name: retrieve_data
arguments: label: D247
data_type: string
name: retrieve_data
arguments: label: D154
data_type: string
name: retrieve_data
arguments: label: D327
data_type: string
name: retrieve_data
arguments: label: D34
data_type: string
name: retrieve_data
arguments: label: D180
data_type: string
name: retrieve_data
arguments: label: D289
data_type: string
name: retrieve_data
arguments: label: D297
data_type: string
name: retrieve_data
arguments: label: D121
data_type: string
name: retrieve_data
arguments: label: D337
data_type: string
name: retrieve_data
arguments: label: D216
data_type: string
name: retrieve_data
arguments: label: D292
data_type: string
name: retrieve_data
arguments: label: D76
data_type: string
name: retrieve_data
arguments: label: D213
data_type: string
name: retrieve_data
arguments: label: D149
data_type: string
name: retrieve_data
arguments: label: D402
data_type: string

tool: {"D313": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0xc0]}

tool: {"D339": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0xc0]}

tool: {"D144": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xc0]}

tool: {"D308": [0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0xc0]}

tool: {"D238": [0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xc0]}

tool: {"D379": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0xc0]}

tool: {"D373": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0xc0]}

tool: {"D65": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0xc0]}

tool: {"D58": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: {"D132": [0x33,0x33,0x33,0x33,0x33,0x33,0xd3,0xbf]}

tool: D188: 0.3

tool: {"D119": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D222": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D283": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: {"D187": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

tool: {"D55": [0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x40]}

tool: {"D354": [0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x40]}

tool: {"D80": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x40]}

tool: {"D115": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x40]}

tool: {"D382": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

tool: D48:           ##========> 

tool: D383:  <========##          

tool: D106: <=========##          

tool: D28:     <=====##          

tool: D409:   <=======##          

tool: D256:    <======##          

tool: D247:        <==##          

tool: D154:      <====##          

tool: D327:       <===##          

tool: D34:         <=##          

tool: D180:          <##          

tool: D289:           ##          

tool: D297:           ##>         

tool: D121:           ##=>        

tool: D337:           ##==>       

tool: D216:           ##===>      

tool: D292:           ##====>     

tool: D76:           ##=====>    

tool: D213:           ##======>   

tool: D149:           ##=========>

tool: D402:           ##=======>  

assistant: ```c
void nunchuk_show_ext_x(double val) {
  if (val < -10)
    mvprintw(30, 2, "<=========##          ");
  else if (val < -9)
    mvprintw(30, 2, " <========##          ");
  else if (val < -8)
    mvprintw(30, 2, "  <=======##          ");
  else if (val < -7)
    mvprintw(30, 2, "   <======##          ");
  else if (val < -6)
    mvprintw(30, 2, "    <=====##          ");
  else if (val < -5)
    mvprintw(30, 2, "     <====##          ");
  else if (val < -4)
    mvprintw(30, 2, "      <===##          ");
  else if (val < -3)
    mvprintw(30, 2, "       <==##          ");
  else if (val < -2)
    mvprintw(30, 2, "        <=##          ");
  else if (val < -0.3)
    mvprintw(30, 2, "         <##          ");
  else if (val < 0.3)
    mvprintw(30, 2, "          ##          ");
  else if (val < 2)
    mvprintw(30, 2, "          ##>         ");
  else if (val < 3)
    mvprintw(30, 2, "          ##=>        ");
  else if (val < 4)
    mvprintw(30, 2, "          ##==>       ");
  else if (val < 5)
    mvprintw(30, 2, "          ##===>      ");
  else if (val < 6)
    mvprintw(30, 2, "          ##====>     ");
  else if (val < 7)
    mvprintw(30, 2, "          ##=====>    ");
  else if (val < 8)
    mvprintw(30, 2, "          ##======>   ");
  else if (val < 9)
    mvprintw(30, 2, "          ##=======>  ");
  else if (val < 10)
    mvprintw(30, 2, "          ##========> ");
  else
    mvprintw(30, 2, "          ##=========>");
}
```