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

```asm
<TTWAIN_DumpCapabilities>:
  endbr64
  test   %rdi,%rdi
  je     L897
  push   %rbx
  xor    %eax,%eax
  mov    %rdi,%rbx
  lea    D794(%rip),%rdi
  call   *%rbx
  mov    $0x1,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L631
  lea    D271(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L631:
  mov    $0x100,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1080
  lea    D314(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1080:
  mov    $0x101,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L502
  lea    D786(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L502:
  mov    $0x102,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L115
  lea    D401(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L115:
  mov    $0x103,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L923
  lea    D388(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L923:
  mov    $0x1000,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1183
  lea    D470(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1183:
  mov    $0x1001,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L540
  lea    D354(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L540:
  mov    $0x1002,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L870
  lea    D1101(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L870:
  mov    $0x1003,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L272
  lea    D449(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L272:
  mov    $0x1004,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L822
  lea    D1217(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L822:
  mov    $0x1005,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1078
  lea    D681(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1078:
  mov    $0x1006,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L268
  lea    D755(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L268:
  mov    $0x1007,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L235
  lea    D140(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L235:
  mov    $0x1008,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L332
  lea    D155(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L332:
  mov    $0x1009,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L479
  lea    D361(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L479:
  mov    $0x100a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L445
  lea    D92(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L445:
  mov    $0x100b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L43
  lea    D1033(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L43:
  mov    $0x100c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L535
  lea    D640(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L535:
  mov    $0x100d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L640
  lea    D904(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L640:
  mov    $0x100e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L517
  lea    D1042(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L517:
  mov    $0x100f,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L503
  lea    D1137(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L503:
  mov    $0x1010,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L397
  lea    D1063(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L397:
  mov    $0x1011,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L179
  lea    D197(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L179:
  mov    $0x1012,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L415
  lea    D931(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L415:
  mov    $0x1013,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L249
  lea    D672(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L249:
  mov    $0x1014,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L382
  lea    D323(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L382:
  mov    $0x1015,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L298
  lea    D578(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L298:
  mov    $0x1016,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1163
  lea    D599(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1163:
  mov    $0x1017,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L112
  lea    D467(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L112:
  mov    $0x1018,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L594
  lea    D1148(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L594:
  mov    $0x1019,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L361
  lea    D1168(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L361:
  mov    $0x101a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L39
  lea    D389(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L39:
  mov    $0x101b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1214
  lea    D1026(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1214:
  mov    $0x101c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1173
  lea    D649(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1173:
  mov    $0x101d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L467
  lea    D620(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L467:
  mov    $0x101e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L962
  lea    D57(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L962:
  mov    $0x101f,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L624
  lea    D606(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L624:
  mov    $0x1020,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L131
  lea    D951(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L131:
  mov    $0x1021,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L772
  lea    D200(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L772:
  mov    $0x1022,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L239
  lea    D1077(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L239:
  mov    $0x1024,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1174
  lea    D962(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1174:
  mov    $0x1026,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L582
  lea    D903(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L582:
  mov    $0x1027,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L554
  lea    D1004(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L554:
  mov    $0x1028,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1131
  lea    D440(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1131:
  mov    $0x1029,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L286
  lea    D560(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L286:
  mov    $0x102a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L433
  lea    D345(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L433:
  mov    $0x102b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L550
  lea    D1047(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L550:
  mov    $0x102c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L695
  lea    D284(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L695:
  mov    $0x102d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L592
  lea    D393(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L592:
  mov    $0x102e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L427
  lea    D183(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L427:
  mov    $0x1030,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L311
  lea    D921(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L311:
  mov    $0x1032,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L720
  lea    D436(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L720:
  mov    $0x1033,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L172
  lea    D1172(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L172:
  mov    $0x1100,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L665
  lea    D929(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L665:
  mov    $0x1101,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1091
  lea    D908(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1091:
  mov    $0x1103,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L69
  lea    D146(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L69:
  mov    $0x1104,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L481
  lea    D374(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L481:
  mov    $0x1105,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L726
  lea    D1096(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L726:
  mov    $0x1106,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L34
  lea    D99(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L34:
  mov    $0x1107,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L3
  lea    D907(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L3:
  mov    $0x1108,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L103
  lea    D946(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L103:
  mov    $0x1109,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L581
  lea    D613(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L581:
  mov    $0x110a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L67
  lea    D327(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L67:
  mov    $0x110c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1196
  lea    D298(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1196:
  mov    $0x110d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L271
  lea    D462(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L271:
  mov    $0x110e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1185
  lea    D174(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1185:
  mov    $0x1110,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L199
  lea    D922(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L199:
  mov    $0x1111,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L164
  lea    D959(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L164:
  mov    $0x1112,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L106
  lea    D244(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L106:
  mov    $0x1113,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L871
  lea    D1055(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L871:
  mov    $0x1114,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L714
  lea    D305(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L714:
  mov    $0x1116,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1159
  lea    D588(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1159:
  mov    $0x1117,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L466
  lea    D386(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L466:
  mov    $0x1118,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L135
  lea    D854(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L135:
  mov    $0x1119,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L166
  lea    D204(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L166:
  mov    $0x111a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L664
  lea    D384(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L664:
  mov    $0x111b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L693
  lea    D712(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L693:
  mov    $0x111c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L526
  lea    D933(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L526:
  mov    $0x111d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L987
  lea    D993(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L987:
  mov    $0x111e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1157
  lea    D860(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1157:
  mov    $0x111f,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1015
  lea    D417(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1015:
  mov    $0x1120,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L798
  lea    D288(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L798:
  mov    $0x1121,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L939
  lea    D463(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L939:
  mov    $0x1122,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L600
  lea    D415(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L600:
  mov    $0x1123,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L892
  lea    D617(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L892:
  mov    $0x1124,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L295
  lea    D242(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L295:
  mov    $0x1125,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L290
  lea    D20(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L290:
  mov    $0x1126,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L680
  lea    D697(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L680:
  mov    $0x1127,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L220
  lea    D867(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L220:
  mov    $0x1128,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L473
  lea    D458(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L473:
  mov    $0x112a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L538
  lea    D926(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L538:
  mov    $0x112b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L229
  lea    D501(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L229:
  mov    $0x112c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L579
  lea    D733(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L579:
  mov    $0x112d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L542
  lea    D623(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L542:
  mov    $0x112e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L959
  lea    D1065(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L959:
  mov    $0x112f,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L289
  lea    D1197(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L289:
  mov    $0x1130,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L342
  lea    D254(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L342:
  mov    $0x1131,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L915
  lea    D241(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L915:
  mov    $0x1136,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1086
  lea    D790(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1086:
  mov    $0x1137,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L304
  lea    D716(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L304:
  mov    $0x1138,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L737
  lea    D407(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L737:
  mov    $0x1139,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L990
  lea    D285(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L990:
  mov    $0x113a,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1071
  lea    D487(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1071:
  mov    $0x113b,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L10
  lea    D1134(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L10:
  mov    $0x113c,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L153
  lea    D569(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L153:
  mov    $0x113d,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L394
  lea    D865(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L394:
  mov    $0x113e,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L963
  lea    D961(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L963:
  mov    $0x113f,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L786
  lea    D416(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L786:
  mov    $0x1140,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L849
  lea    D556(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L849:
  mov    $0x1141,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L993
  lea    D796(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L993:
  mov    $0x1142,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1084
  lea    D863(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1084:
  mov    $0x1143,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1213
  lea    D261(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1213:
  mov    $0x1144,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L750
  lea    D186(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L750:
  mov    $0x1145,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L85
  lea    D966(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L85:
  mov    $0x1146,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L567
  lea    D34(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L567:
  mov    $0x1147,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L696
  lea    D625(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L696:
  mov    $0x1148,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1007
  lea    D849(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1007:
  mov    $0x1149,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L553
  lea    D243(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L553:
  mov    $0x1150,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L378
  lea    D190(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L378:
  mov    $0x1151,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1036
  lea    D250(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1036:
  mov    $0x1152,%edi
  call   <TTWAIN_IsCapSupportedTW_INT16@plt>
  test   %rax,%rax
  je     L1085
  lea    D124(%rip),%rdi
  xor    %eax,%eax
  call   *%rbx
L1085:
  mov    %rbx,%rdx
  lea    D775(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  jmp    *%rdx
  nopl   (%rax)
L897:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D794
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D271
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D314
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D786
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D401
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D388
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D470
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D354
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1101
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D449
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1217
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D681
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D755
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D140
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D155
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D361
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D92
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1033
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D640
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D904
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1042
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1137
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1063
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D197
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D931
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D672
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D323
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D578
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D599
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D467
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1148
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1168
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D389
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1026
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D649
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D620
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D57
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D606
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D951
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D200
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1077
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D962
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D903
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1004
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D440
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D560
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D345
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1047
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D284
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D393
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D183
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D921
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D436
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1172
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D929
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D908
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D146
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D374
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1096
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D99
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D907
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D946
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D613
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D327
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D298
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D462
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D174
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D922
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D959
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D244
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1055
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D305
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D588
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D386
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D854
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D204
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D384
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D712
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D933
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D993
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D860
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D417
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D288
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D463
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D415
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D617
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D242
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D20
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D697
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D867
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D458
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D926
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D501
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D733
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D623
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1065
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1197
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D254
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D241
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D790
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D716
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D407
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D285
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D487
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1134
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D569
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D865
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D961
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D416
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D556
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D796
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D863
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D261
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D186
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D966
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D625
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D849
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D243
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D190
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D250
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D124
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D775
type_guessed: string

tool: D794: list of supported (exported) capabilities


tool: D271: CAP_XFERCOUNT

tool: D314: ICAP_COMPRESSION


tool: D786: ICAP_PIXELTYPE


tool: D401: ICAP_UNITS


tool: D388: ICAP_XFERMECH


tool: D470: CAP_AUTHOR


tool: D354: CAP_CAPTION


tool: D1101: CAP_FEEDERENABLED


tool: D449: CAP_FEEDERLOADED


tool: D1217: CAP_TIMEDATE


tool: D681: CAP_SUPPORTEDCAPS


tool: D755: CAP_EXTENDEDCAPS


tool: D140: CAP_AUTOFEED


tool: D155: CAP_CLEARPAGE


tool: D361: CAP_FEEDPAGE


tool: D92: CAP_REWINDPAGE


tool: D1033: CAP_INDICATORS


tool: D640: CAP_SUPPORTEDCAPSEXT


tool: D904: CAP_PAPERDETECTABLE


tool: D1042: CAP_UICONTROLLABLE


tool: D1137: CAP_DEVICEONLINE


tool: D1063: CAP_AUTOSCAN


tool: D197: CAP_THUMBNAILSENABLED


tool: D931: CAP_DUPLEX


tool: D672: CAP_DUPLEXENABLED


tool: D323: CAP_ENABLEDSUIONLY


tool: D578: CAP_CUSTOMDSDATA


tool: D599: CAP_ENDORSER


tool: D467: CAP_JOBCONTROL


tool: D1148: CAP_ALARMS


tool: D1168: CAP_ALARMVOLUME


tool: D389: CAP_AUTOMATICCAPTURE


tool: D1026: CAP_TIMEBEFOREFIRSTCAPTURE


tool: D649: CAP_TIMEBETWEENCAPTURES


tool: D620: CAP_CLEARBUFFERS


tool: D57: CAP_MAXBATCHBUFFERS


tool: D606: CAP_DEVICETIMEDATE


tool: D951: CAP_POWERSUPPLY


tool: D200: CAP_CAMERAPREVIEWUI


tool: D1077: CAP_DEVICEEVENT


tool: D962: CAP_SERIALNUMBER


tool: D903: CAP_PRINTER


tool: D1004: CAP_PRINTERENABLED


tool: D440: CAP_PRINTERINDEX


tool: D560: CAP_PRINTERMODE


tool: D345: CAP_PRINTERSTRING


tool: D1047: CAP_PRINTERSUFFIX


tool: D284: CAP_LANGUAGE


tool: D393: CAP_FEEDERALIGNMENT


tool: D183: CAP_FEEDERORDER


tool: D921: CAP_REACQUIREALLOWED


tool: D436: CAP_BATTERYMINUTES


tool: D1172: CAP_BATTERYPERCENTAGE


tool: D929: ICAP_AUTOBRIGHT


tool: D908: ICAP_BRIGHTNESS


tool: D146: ICAP_CONTRAST


tool: D374: ICAP_CUSTHALFTONE


tool: D1096: ICAP_EXPOSURETIME


tool: D99: ICAP_FILTER


tool: D907: ICAP_FLASHUSED


tool: D946: ICAP_GAMMA


tool: D613: ICAP_HALFTONES


tool: D327: ICAP_HIGHLIGHT


tool: D298: ICAP_IMAGEFILEFORMAT


tool: D462: ICAP_LAMPSTATE


tool: D174: ICAP_LIGHTSOURCE


tool: D922: ICAP_ORIENTATION


tool: D959: ICAP_PHYSICALWIDTH


tool: D244: ICAP_PHYSICALHEIGHT


tool: D1055: ICAP_SHADOW


tool: D305: ICAP_FRAMES


tool: D588: ICAP_XNATIVERESOLUTION


tool: D386: ICAP_YNATIVERESOLUTION


tool: D854: ICAP_XRESOLUTION


tool: D204: ICAP_YRESOLUTION


tool: D384: ICAP_MAXFRAMES


tool: D712: ICAP_TILES


tool: D933: ICAP_BITORDER


tool: D993: ICAP_CCITTKFACTOR


tool: D860: ICAP_LIGHTPATH


tool: D417: ICAP_PIXELFLAVOR


tool: D288: ICAP_PLANARCHUNKY


tool: D463: ICAP_ROTATION


tool: D415: ICAP_SUPPORTEDSIZES


tool: D617: ICAP_THRESHOLD


tool: D242: ICAP_XSCALING


tool: D20: ICAP_YSCALING


tool: D697: ICAP_BITORDERCODES


tool: D867: ICAP_PIXELFLAVORCODES


tool: D458: ICAP_JPEGPIXELTYPE


tool: D926: ICAP_TIMEFILL


tool: D501: ICAP_BITDEPTH


tool: D733: ICAP_BITDEPTHREDUCTION


tool: D623: ICAP_UNDEFINEDIMAGESIZE


tool: D1065: ICAP_IMAGEDATASET


tool: D1197: ICAP_EXTIMAGEINFO


tool: D254: ICAP_MINIMUMHEIGHT


tool: D241: ICAP_MINIMUMWIDTH


tool: D790: ICAP_FLIPROTATION


tool: D716: ICAP_BARCODEDETECTIONENABLED


tool: D407: ICAP_SUPPORTEDBARCODETYPES


tool: D285: ICAP_BARCODEMAXSEARCHPRIORITIES


tool: D487: ICAP_BARCODESEARCHPRIORITIES


tool: D1134: ICAP_BARCODESEARCHMODE


tool: D569: ICAP_BARCODEMAXRETRIES


tool: D865: ICAP_BARCODETIMEOUT


tool: D961: ICAP_ZOOMFACTOR


tool: D416: ICAP_PATCHCODEDETECTIONENABLED


tool: D556: ICAP_SUPPORTEDPATCHCODETYPES


tool: D796: ICAP_PATCHCODEMAXSEARCHPRIORITIES


tool: D863: ICAP_PATCHCODESEARCHPRIORITIES


tool: D261: ICAP_PATCHCODESEARCHMODE


tool: D186: ICAP_PATCHCODEMAXRETRIES


tool: D966: ICAP_PATCHCODETIMEOUT


tool: D34: ICAP_FLASHUSED2


tool: D625: ICAP_IMAGEFILTER


tool: D849: ICAP_NOISEFILTER


tool: D243: ICAP_OVERSCAN


tool: D190: ICAP_AUTOMATICBORDERDETECTION


tool: D250: ICAP_AUTOMATICDESKEW


tool: D124: ICAP_AUTOMATICROTATE


tool: D775: end-of-list


assistant: ```c
void TTWAIN_DumpCapabilities(void (*trace_fun)(const char *fmt, ...)) {
  if (!trace_fun)
    return;
  trace_fun("list of supported (exported) capabilities\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x0001))
    trace_fun("CAP_XFERCOUNT");
  if (TTWAIN_IsCapSupportedTW_INT16(0x0100))
    trace_fun("ICAP_COMPRESSION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x0101))
    trace_fun("ICAP_PIXELTYPE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x0102))
    trace_fun("ICAP_UNITS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x0103))
    trace_fun("ICAP_XFERMECH\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1000))
    trace_fun("CAP_AUTHOR\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1001))
    trace_fun("CAP_CAPTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1002))
    trace_fun("CAP_FEEDERENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1003))
    trace_fun("CAP_FEEDERLOADED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1004))
    trace_fun("CAP_TIMEDATE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1005))
    trace_fun("CAP_SUPPORTEDCAPS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1006))
    trace_fun("CAP_EXTENDEDCAPS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1007))
    trace_fun("CAP_AUTOFEED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1008))
    trace_fun("CAP_CLEARPAGE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1009))
    trace_fun("CAP_FEEDPAGE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100a))
    trace_fun("CAP_REWINDPAGE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100b))
    trace_fun("CAP_INDICATORS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100c))
    trace_fun("CAP_SUPPORTEDCAPSEXT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100d))
    trace_fun("CAP_PAPERDETECTABLE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100e))
    trace_fun("CAP_UICONTROLLABLE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x100f))
    trace_fun("CAP_DEVICEONLINE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1010))
    trace_fun("CAP_AUTOSCAN\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1011))
    trace_fun("CAP_THUMBNAILSENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1012))
    trace_fun("CAP_DUPLEX\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1013))
    trace_fun("CAP_DUPLEXENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1014))
    trace_fun("CAP_ENABLEDSUIONLY\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1015))
    trace_fun("CAP_CUSTOMDSDATA\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1016))
    trace_fun("CAP_ENDORSER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1017))
    trace_fun("CAP_JOBCONTROL\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1018))
    trace_fun("CAP_ALARMS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1019))
    trace_fun("CAP_ALARMVOLUME\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101a))
    trace_fun("CAP_AUTOMATICCAPTURE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101b))
    trace_fun("CAP_TIMEBEFOREFIRSTCAPTURE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101c))
    trace_fun("CAP_TIMEBETWEENCAPTURES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101d))
    trace_fun("CAP_CLEARBUFFERS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101e))
    trace_fun("CAP_MAXBATCHBUFFERS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x101f))
    trace_fun("CAP_DEVICETIMEDATE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1020))
    trace_fun("CAP_POWERSUPPLY\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1021))
    trace_fun("CAP_CAMERAPREVIEWUI\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1022))
    trace_fun("CAP_DEVICEEVENT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1024))
    trace_fun("CAP_SERIALNUMBER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1026))
    trace_fun("CAP_PRINTER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1027))
    trace_fun("CAP_PRINTERENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1028))
    trace_fun("CAP_PRINTERINDEX\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1029))
    trace_fun("CAP_PRINTERMODE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x102a))
    trace_fun("CAP_PRINTERSTRING\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x102b))
    trace_fun("CAP_PRINTERSUFFIX\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x102c))
    trace_fun("CAP_LANGUAGE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x102d))
    trace_fun("CAP_FEEDERALIGNMENT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x102e))
    trace_fun("CAP_FEEDERORDER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1030))
    trace_fun("CAP_REACQUIREALLOWED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1032))
    trace_fun("CAP_BATTERYMINUTES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1033))
    trace_fun("CAP_BATTERYPERCENTAGE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1100))
    trace_fun("ICAP_AUTOBRIGHT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1101))
    trace_fun("ICAP_BRIGHTNESS\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1103))
    trace_fun("ICAP_CONTRAST\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1104))
    trace_fun("ICAP_CUSTHALFTONE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1105))
    trace_fun("ICAP_EXPOSURETIME\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1106))
    trace_fun("ICAP_FILTER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1107))
    trace_fun("ICAP_FLASHUSED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1108))
    trace_fun("ICAP_GAMMA\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1109))
    trace_fun("ICAP_HALFTONES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x110a))
    trace_fun("ICAP_HIGHLIGHT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x110c))
    trace_fun("ICAP_IMAGEFILEFORMAT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x110d))
    trace_fun("ICAP_LAMPSTATE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x110e))
    trace_fun("ICAP_LIGHTSOURCE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1110))
    trace_fun("ICAP_ORIENTATION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1111))
    trace_fun("ICAP_PHYSICALWIDTH\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1112))
    trace_fun("ICAP_PHYSICALHEIGHT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1113))
    trace_fun("ICAP_SHADOW\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1114))
    trace_fun("ICAP_FRAMES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1116))
    trace_fun("ICAP_XNATIVERESOLUTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1117))
    trace_fun("ICAP_YNATIVERESOLUTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1118))
    trace_fun("ICAP_XRESOLUTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1119))
    trace_fun("ICAP_YRESOLUTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111a))
    trace_fun("ICAP_MAXFRAMES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111b))
    trace_fun("ICAP_TILES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111c))
    trace_fun("ICAP_BITORDER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111d))
    trace_fun("ICAP_CCITTKFACTOR\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111e))
    trace_fun("ICAP_LIGHTPATH\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x111f))
    trace_fun("ICAP_PIXELFLAVOR\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1120))
    trace_fun("ICAP_PLANARCHUNKY\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1121))
    trace_fun("ICAP_ROTATION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1122))
    trace_fun("ICAP_SUPPORTEDSIZES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1123))
    trace_fun("ICAP_THRESHOLD\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1124))
    trace_fun("ICAP_XSCALING\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1125))
    trace_fun("ICAP_YSCALING\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1126))
    trace_fun("ICAP_BITORDERCODES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1127))
    trace_fun("ICAP_PIXELFLAVORCODES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1128))
    trace_fun("ICAP_JPEGPIXELTYPE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112a))
    trace_fun("ICAP_TIMEFILL\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112b))
    trace_fun("ICAP_BITDEPTH\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112c))
    trace_fun("ICAP_BITDEPTHREDUCTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112d))
    trace_fun("ICAP_UNDEFINEDIMAGESIZE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112e))
    trace_fun("ICAP_IMAGEDATASET\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x112f))
    trace_fun("ICAP_EXTIMAGEINFO\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1130))
    trace_fun("ICAP_MINIMUMHEIGHT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1131))
    trace_fun("ICAP_MINIMUMWIDTH\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1136))
    trace_fun("ICAP_FLIPROTATION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1137))
    trace_fun("ICAP_BARCODEDETECTIONENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1138))
    trace_fun("ICAP_SUPPORTEDBARCODETYPES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1139))
    trace_fun("ICAP_BARCODEMAXSEARCHPRIORITIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113a))
    trace_fun("ICAP_BARCODESEARCHPRIORITIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113b))
    trace_fun("ICAP_BARCODESEARCHMODE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113c))
    trace_fun("ICAP_BARCODEMAXRETRIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113d))
    trace_fun("ICAP_BARCODETIMEOUT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113e))
    trace_fun("ICAP_ZOOMFACTOR\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x113f))
    trace_fun("ICAP_PATCHCODEDETECTIONENABLED\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1140))
    trace_fun("ICAP_SUPPORTEDPATCHCODETYPES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1141))
    trace_fun("ICAP_PATCHCODEMAXSEARCHPRIORITIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1142))
    trace_fun("ICAP_PATCHCODESEARCHPRIORITIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1143))
    trace_fun("ICAP_PATCHCODESEARCHMODE\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1144))
    trace_fun("ICAP_PATCHCODEMAXRETRIES\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1145))
    trace_fun("ICAP_PATCHCODETIMEOUT\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1146))
    trace_fun("ICAP_FLASHUSED2\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1147))
    trace_fun("ICAP_IMAGEFILTER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1148))
    trace_fun("ICAP_NOISEFILTER\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1149))
    trace_fun("ICAP_OVERSCAN\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1150))
    trace_fun("ICAP_AUTOMATICBORDERDETECTION\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1151))
    trace_fun("ICAP_AUTOMATICDESKEW\n");
  if (TTWAIN_IsCapSupportedTW_INT16(0x1152))
    trace_fun("ICAP_AUTOMATICROTATE\n");
  trace_fun("end-of-list\n");
}
```