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

```asm
<panel_utils_gate_time_to_str>:
  endbr64
  sub    $0x8,%rsp
  cmp    $0x2ff,%esi
  jg     L167
  cmp    $0x17f,%esi
  jg     L224
  cmp    $0x11f,%esi
  jg     L13
  cmp    $0xbf,%esi
  jg     L188
  cmp    $0x7f,%esi
  jg     L93
  cmp    $0x5f,%esi
  jg     L61
  cmp    $0x47,%esi
  jg     L119
  cmp    $0x2f,%esi
  jg     L134
  cmp    $0x23,%esi
  jg     L113
  cmp    $0x17,%esi
  jg     L23
  cmp    $0xf,%esi
  jg     L152
  cmp    $0xb,%esi
  jg     L117
  cmp    $0x7,%esi
  jg     L257
  lea    D51(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L167:
  lea    D88(%rip),%rsi
  call   <sprintf@plt>
L151:
  add    $0x8,%rsp
  ret
L224:
  lea    D9(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L13:
  lea    D117(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L188:
  lea    D48(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L93:
  lea    D33(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L61:
  lea    D38(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L119:
  lea    D42(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L134:
  lea    D64(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L113:
  lea    D126(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L23:
  lea    D18(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L152:
  lea    D41(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L117:
  lea    D57(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
L257:
  lea    D129(%rip),%rsi
  call   <sprintf@plt>
  jmp    L151
```

tool_calls: name: unpack_data
arguments: data_label: D51
data_type: string
name: unpack_data
arguments: data_label: D88
data_type: string
name: unpack_data
arguments: data_label: D9
data_type: string
name: unpack_data
arguments: data_label: D117
data_type: string
name: unpack_data
arguments: data_label: D48
data_type: string
name: unpack_data
arguments: data_label: D33
data_type: string
name: unpack_data
arguments: data_label: D38
data_type: string
name: unpack_data
arguments: data_label: D42
data_type: string
name: unpack_data
arguments: data_label: D64
data_type: string
name: unpack_data
arguments: data_label: D126
data_type: string
name: unpack_data
arguments: data_label: D18
data_type: string
name: unpack_data
arguments: data_label: D41
data_type: string
name: unpack_data
arguments: data_label: D57
data_type: string
name: unpack_data
arguments: data_label: D129
data_type: string

tool: D51: 64

tool: D88: w+

tool: D9: w

tool: D117: h.

tool: D48: h

tool: D33: q.

tool: D38: q

tool: D42: 8.

tool: D64: 8

tool: D126: 16.

tool: D18: 16

tool: D41: 32.

tool: D57: 32

tool: D129: 64.

assistant: ```c
void panel_utils_gate_time_to_str(char *tempstr, int time) {
  int tm = time / (96 / 24);
  if (tm >= 192) {
    sprintf(tempstr, "w+");
    return;
  } else if (tm >= 96) {
    sprintf(tempstr, "w");
    return;
  } else if (tm >= 72) {
    sprintf(tempstr, "h.");
    return;
  } else if (tm >= 48) {
    sprintf(tempstr, "h");
    return;
  } else if (tm >= 32) {
    sprintf(tempstr, "q.");
    return;
  } else if (tm >= 24) {
    sprintf(tempstr, "q");
    return;
  } else if (tm >= 18) {
    sprintf(tempstr, "8.");
    return;
  } else if (tm >= 12) {
    sprintf(tempstr, "8");
    return;
  } else if (tm >= 9) {
    sprintf(tempstr, "16.");
    return;
  } else if (tm >= 6) {
    sprintf(tempstr, "16");
    return;
  } else if (tm >= 4) {
    sprintf(tempstr, "32.");
    return;
  } else if (tm >= 3) {
    sprintf(tempstr, "32");
    return;
  } else if (tm >= 2) {
    sprintf(tempstr, "64.");
    return;
  }
  sprintf(tempstr, "64");
}
```