user: 请将以下的汇编代码转换成C语言代码：

```asm
<lcd_start>:
  endbr64
  push   %rbx
  mov    $0x1,%esi
  mov    %edi,%ebx
  mov    $0x7000010,%edi
  call   <gpio_write@plt>
  xor    %eax,%eax
  call   <lcd_reset@plt>
  mov    $0x36,%edi
  call   <lcd_send_command@plt>
  test   %ebx,%ebx
  je     L3
  mov    $0x70,%edi
  call   <lcd_send_data@plt>
L17:
  mov    $0x3a,%edi
  call   <lcd_send_command@plt>
  mov    $0x5,%edi
  call   <lcd_send_data@plt>
  mov    $0xb2,%edi
  call   <lcd_send_command@plt>
  mov    $0xc,%edi
  call   <lcd_send_data@plt>
  mov    $0xc,%edi
  call   <lcd_send_data@plt>
  xor    %edi,%edi
  call   <lcd_send_data@plt>
  mov    $0x33,%edi
  call   <lcd_send_data@plt>
  mov    $0x33,%edi
  call   <lcd_send_data@plt>
  mov    $0xb7,%edi
  call   <lcd_send_command@plt>
  mov    $0x35,%edi
  call   <lcd_send_data@plt>
  mov    $0xbb,%edi
  call   <lcd_send_command@plt>
  mov    $0x19,%edi
  call   <lcd_send_data@plt>
  mov    $0xc0,%edi
  call   <lcd_send_command@plt>
  mov    $0x2c,%edi
  call   <lcd_send_data@plt>
  mov    $0xc2,%edi
  call   <lcd_send_command@plt>
  mov    $0x1,%edi
  call   <lcd_send_data@plt>
  mov    $0xc3,%edi
  call   <lcd_send_command@plt>
  mov    $0x12,%edi
  call   <lcd_send_data@plt>
  mov    $0xc4,%edi
  call   <lcd_send_command@plt>
  mov    $0x20,%edi
  call   <lcd_send_data@plt>
  mov    $0xc6,%edi
  call   <lcd_send_command@plt>
  mov    $0xf,%edi
  call   <lcd_send_data@plt>
  mov    $0xd0,%edi
  call   <lcd_send_command@plt>
  mov    $0xa4,%edi
  call   <lcd_send_data@plt>
  mov    $0xa1,%edi
  call   <lcd_send_data@plt>
  mov    $0xe0,%edi
  call   <lcd_send_command@plt>
  mov    $0xd0,%edi
  call   <lcd_send_data@plt>
  mov    $0x4,%edi
  call   <lcd_send_data@plt>
  mov    $0xd,%edi
  call   <lcd_send_data@plt>
  mov    $0x11,%edi
  call   <lcd_send_data@plt>
  mov    $0x13,%edi
  call   <lcd_send_data@plt>
  mov    $0x2b,%edi
  call   <lcd_send_data@plt>
  mov    $0x3f,%edi
  call   <lcd_send_data@plt>
  mov    $0x54,%edi
  call   <lcd_send_data@plt>
  mov    $0x4c,%edi
  call   <lcd_send_data@plt>
  mov    $0x18,%edi
  call   <lcd_send_data@plt>
  mov    $0xd,%edi
  call   <lcd_send_data@plt>
  mov    $0xb,%edi
  call   <lcd_send_data@plt>
  mov    $0x1f,%edi
  call   <lcd_send_data@plt>
  mov    $0x23,%edi
  call   <lcd_send_data@plt>
  mov    $0xe1,%edi
  call   <lcd_send_command@plt>
  mov    $0xd0,%edi
  call   <lcd_send_data@plt>
  mov    $0x4,%edi
  call   <lcd_send_data@plt>
  mov    $0xc,%edi
  call   <lcd_send_data@plt>
  mov    $0x11,%edi
  call   <lcd_send_data@plt>
  mov    $0x13,%edi
  call   <lcd_send_data@plt>
  mov    $0x2c,%edi
  call   <lcd_send_data@plt>
  mov    $0x3f,%edi
  call   <lcd_send_data@plt>
  mov    $0x44,%edi
  call   <lcd_send_data@plt>
  mov    $0x51,%edi
  call   <lcd_send_data@plt>
  mov    $0x2f,%edi
  call   <lcd_send_data@plt>
  mov    $0x1f,%edi
  call   <lcd_send_data@plt>
  mov    $0x1f,%edi
  call   <lcd_send_data@plt>
  mov    $0x20,%edi
  call   <lcd_send_data@plt>
  mov    $0x23,%edi
  call   <lcd_send_data@plt>
  mov    $0x21,%edi
  call   <lcd_send_command@plt>
  mov    $0x11,%edi
  call   <lcd_send_command@plt>
  mov    $0x29,%edi
  pop    %rbx
  jmp    1090 <lcd_send_command@plt>
  nopl   0x0(%rax,%rax,1)
L3:
  xor    %edi,%edi
  call   <lcd_send_data@plt>
  jmp    L17
```

assistant: ```c
void lcd_start(int horiz_flag) {
  gpio_write(((('H' == 'A' ? 0x000 : 'H' == 'B' ? 0x100 : 'H' == 'C' ? 0x200 : 'H' == 'D' ? 0x300 : 'H' == 'E' ? 0x400 : 'H' == 'F' ? 0x500 : 'H' == 'G' ? 0x600 : 'H' == 'H' ? 0x700 : 'H' == 'J' ? 0x800 : 0x900) << 16) | (1 << 4)), 1);
  lcd_reset();
  lcd_send_command(0x36);
  if (horiz_flag) {
    lcd_send_data(0x70);
  } else {
    lcd_send_data(0x00);
  }
  lcd_send_command(0x3A);
  lcd_send_data(0x05);
  lcd_send_command(0xB2);
  lcd_send_data(0x0C);
  lcd_send_data(0x0C);
  lcd_send_data(0x00);
  lcd_send_data(0x33);
  lcd_send_data(0x33);
  lcd_send_command(0xB7);
  lcd_send_data(0x35);
  lcd_send_command(0xBB);
  lcd_send_data(0x19);
  lcd_send_command(0xC0);
  lcd_send_data(0x2C);
  lcd_send_command(0xC2);
  lcd_send_data(0x01);
  lcd_send_command(0xC3);
  lcd_send_data(0x12);
  lcd_send_command(0xC4);
  lcd_send_data(0x20);
  lcd_send_command(0xC6);
  lcd_send_data(0x0F);
  lcd_send_command(0xD0);
  lcd_send_data(0xA4);
  lcd_send_data(0xA1);
  lcd_send_command(0xE0);
  lcd_send_data(0xD0);
  lcd_send_data(0x04);
  lcd_send_data(0x0D);
  lcd_send_data(0x11);
  lcd_send_data(0x13);
  lcd_send_data(0x2B);
  lcd_send_data(0x3F);
  lcd_send_data(0x54);
  lcd_send_data(0x4C);
  lcd_send_data(0x18);
  lcd_send_data(0x0D);
  lcd_send_data(0x0B);
  lcd_send_data(0x1F);
  lcd_send_data(0x23);
  lcd_send_command(0xE1);
  lcd_send_data(0xD0);
  lcd_send_data(0x04);
  lcd_send_data(0x0C);
  lcd_send_data(0x11);
  lcd_send_data(0x13);
  lcd_send_data(0x2C);
  lcd_send_data(0x3F);
  lcd_send_data(0x44);
  lcd_send_data(0x51);
  lcd_send_data(0x2F);
  lcd_send_data(0x1F);
  lcd_send_data(0x1F);
  lcd_send_data(0x20);
  lcd_send_data(0x23);
  lcd_send_command(0x21);
  lcd_send_command(0x11);
  lcd_send_command(0x29);
}
```