idax-sys 0.3.0

Raw FFI bindings to the idax C++ IDA SDK wrapper library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
/* automatically generated by rust-bindgen 0.71.1 */

pub const IDAX_ERROR_NONE: u32 = 0;
pub const IDAX_ERROR_VALIDATION: u32 = 1;
pub const IDAX_ERROR_NOT_FOUND: u32 = 2;
pub const IDAX_ERROR_CONFLICT: u32 = 3;
pub const IDAX_ERROR_UNSUPPORTED: u32 = 4;
pub const IDAX_ERROR_SDK_FAILURE: u32 = 5;
pub const IDAX_ERROR_INTERNAL: u32 = 6;
unsafe extern "C" {
    #[doc = " Get the error category from the last failed call (thread-local)."]
    pub fn idax_last_error_category() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " Get the error code from the last failed call (thread-local)."]
    pub fn idax_last_error_code() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    #[doc = " Get the error message from the last failed call (thread-local).\n  Returns a pointer to a thread-local buffer. Do NOT free."]
    pub fn idax_last_error_message() -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    #[doc = " Free a malloc'd string returned by an idax function."]
    pub fn idax_free_string(s: *mut ::std::os::raw::c_char);
}
unsafe extern "C" {
    #[doc = " Free a malloc'd byte array returned by an idax function."]
    pub fn idax_free_bytes(p: *mut u8);
}
unsafe extern "C" {
    #[doc = " Free a malloc'd uint64 array returned by an idax function."]
    pub fn idax_free_addresses(p: *mut u64);
}
unsafe extern "C" {
    pub fn idax_database_init(
        argc: ::std::os::raw::c_int,
        argv: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_open(
        path: *const ::std::os::raw::c_char,
        auto_analysis: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_open_binary(
        path: *const ::std::os::raw::c_char,
        mode: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_open_non_binary(
        path: *const ::std::os::raw::c_char,
        mode: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_save() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_close(save: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_file_to_database(
        file_path: *const ::std::os::raw::c_char,
        file_offset: i64,
        ea: u64,
        size: u64,
        patchable: ::std::os::raw::c_int,
        remote: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_memory_to_database(
        bytes: *const u8,
        len: usize,
        ea: u64,
        file_offset: i64,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDatabaseCompilerInfo {
    pub id: u32,
    pub uncertain: ::std::os::raw::c_int,
    pub name: *mut ::std::os::raw::c_char,
    pub abbreviation: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDatabaseCompilerInfo"]
        [::std::mem::size_of::<IdaxDatabaseCompilerInfo>() - 24usize];
    ["Alignment of IdaxDatabaseCompilerInfo"]
        [::std::mem::align_of::<IdaxDatabaseCompilerInfo>() - 8usize];
    ["Offset of field: IdaxDatabaseCompilerInfo::id"]
        [::std::mem::offset_of!(IdaxDatabaseCompilerInfo, id) - 0usize];
    ["Offset of field: IdaxDatabaseCompilerInfo::uncertain"]
        [::std::mem::offset_of!(IdaxDatabaseCompilerInfo, uncertain) - 4usize];
    ["Offset of field: IdaxDatabaseCompilerInfo::name"]
        [::std::mem::offset_of!(IdaxDatabaseCompilerInfo, name) - 8usize];
    ["Offset of field: IdaxDatabaseCompilerInfo::abbreviation"]
        [::std::mem::offset_of!(IdaxDatabaseCompilerInfo, abbreviation) - 16usize];
};
impl Default for IdaxDatabaseCompilerInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_database_compiler_info(out: *mut IdaxDatabaseCompilerInfo)
        -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_compiler_info_free(info: *mut IdaxDatabaseCompilerInfo);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDatabaseImportSymbol {
    pub address: u64,
    pub name: *mut ::std::os::raw::c_char,
    pub ordinal: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDatabaseImportSymbol"]
        [::std::mem::size_of::<IdaxDatabaseImportSymbol>() - 24usize];
    ["Alignment of IdaxDatabaseImportSymbol"]
        [::std::mem::align_of::<IdaxDatabaseImportSymbol>() - 8usize];
    ["Offset of field: IdaxDatabaseImportSymbol::address"]
        [::std::mem::offset_of!(IdaxDatabaseImportSymbol, address) - 0usize];
    ["Offset of field: IdaxDatabaseImportSymbol::name"]
        [::std::mem::offset_of!(IdaxDatabaseImportSymbol, name) - 8usize];
    ["Offset of field: IdaxDatabaseImportSymbol::ordinal"]
        [::std::mem::offset_of!(IdaxDatabaseImportSymbol, ordinal) - 16usize];
};
impl Default for IdaxDatabaseImportSymbol {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDatabaseImportModule {
    pub index: usize,
    pub name: *mut ::std::os::raw::c_char,
    pub symbols: *mut IdaxDatabaseImportSymbol,
    pub symbol_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDatabaseImportModule"]
        [::std::mem::size_of::<IdaxDatabaseImportModule>() - 32usize];
    ["Alignment of IdaxDatabaseImportModule"]
        [::std::mem::align_of::<IdaxDatabaseImportModule>() - 8usize];
    ["Offset of field: IdaxDatabaseImportModule::index"]
        [::std::mem::offset_of!(IdaxDatabaseImportModule, index) - 0usize];
    ["Offset of field: IdaxDatabaseImportModule::name"]
        [::std::mem::offset_of!(IdaxDatabaseImportModule, name) - 8usize];
    ["Offset of field: IdaxDatabaseImportModule::symbols"]
        [::std::mem::offset_of!(IdaxDatabaseImportModule, symbols) - 16usize];
    ["Offset of field: IdaxDatabaseImportModule::symbol_count"]
        [::std::mem::offset_of!(IdaxDatabaseImportModule, symbol_count) - 24usize];
};
impl Default for IdaxDatabaseImportModule {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_database_import_modules(
        out: *mut *mut IdaxDatabaseImportModule,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_import_modules_free(modules: *mut IdaxDatabaseImportModule, count: usize);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDatabaseSnapshot {
    pub id: i64,
    pub flags: u16,
    pub description: *mut ::std::os::raw::c_char,
    pub filename: *mut ::std::os::raw::c_char,
    pub children: *mut IdaxDatabaseSnapshot,
    pub child_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDatabaseSnapshot"][::std::mem::size_of::<IdaxDatabaseSnapshot>() - 48usize];
    ["Alignment of IdaxDatabaseSnapshot"][::std::mem::align_of::<IdaxDatabaseSnapshot>() - 8usize];
    ["Offset of field: IdaxDatabaseSnapshot::id"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, id) - 0usize];
    ["Offset of field: IdaxDatabaseSnapshot::flags"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, flags) - 8usize];
    ["Offset of field: IdaxDatabaseSnapshot::description"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, description) - 16usize];
    ["Offset of field: IdaxDatabaseSnapshot::filename"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, filename) - 24usize];
    ["Offset of field: IdaxDatabaseSnapshot::children"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, children) - 32usize];
    ["Offset of field: IdaxDatabaseSnapshot::child_count"]
        [::std::mem::offset_of!(IdaxDatabaseSnapshot, child_count) - 40usize];
};
impl Default for IdaxDatabaseSnapshot {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_database_snapshots(
        out: *mut *mut IdaxDatabaseSnapshot,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_snapshots_free(snapshots: *mut IdaxDatabaseSnapshot, count: usize);
}
unsafe extern "C" {
    pub fn idax_database_set_snapshot_description(
        description: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_is_snapshot_database(
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_input_file_path(
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_file_type_name(
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_loader_format_name(
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_input_md5(out: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_image_base(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_min_address(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_max_address(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_processor_id(out: *mut i32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_processor_name(
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_address_bitness(out: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_is_big_endian(out: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_abi_name(out: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_database_address_span(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_mapped(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_loaded(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_code(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_data(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_unknown(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_head(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_is_tail(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_item_start(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_item_end(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_item_size(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_next_head(ea: u64, limit: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_prev_head(ea: u64, limit: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_next_not_tail(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_prev_not_tail(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_next_mapped(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_prev_mapped(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_find_first(
        start: u64,
        end: u64,
        predicate: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_address_find_next(
        ea: u64,
        predicate: ::std::os::raw::c_int,
        end: u64,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Flat C representation of a segment snapshot."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxSegment {
    pub start: u64,
    pub end: u64,
    pub bitness: ::std::os::raw::c_int,
    #[doc = "< ida::segment::Type enum as int"]
    pub type_: ::std::os::raw::c_int,
    pub perm_read: ::std::os::raw::c_int,
    pub perm_write: ::std::os::raw::c_int,
    pub perm_exec: ::std::os::raw::c_int,
    #[doc = "< malloc'd, free with idax_free_string"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = "< malloc'd, free with idax_free_string"]
    pub class_name: *mut ::std::os::raw::c_char,
    pub visible: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxSegment"][::std::mem::size_of::<IdaxSegment>() - 64usize];
    ["Alignment of IdaxSegment"][::std::mem::align_of::<IdaxSegment>() - 8usize];
    ["Offset of field: IdaxSegment::start"][::std::mem::offset_of!(IdaxSegment, start) - 0usize];
    ["Offset of field: IdaxSegment::end"][::std::mem::offset_of!(IdaxSegment, end) - 8usize];
    ["Offset of field: IdaxSegment::bitness"]
        [::std::mem::offset_of!(IdaxSegment, bitness) - 16usize];
    ["Offset of field: IdaxSegment::type_"][::std::mem::offset_of!(IdaxSegment, type_) - 20usize];
    ["Offset of field: IdaxSegment::perm_read"]
        [::std::mem::offset_of!(IdaxSegment, perm_read) - 24usize];
    ["Offset of field: IdaxSegment::perm_write"]
        [::std::mem::offset_of!(IdaxSegment, perm_write) - 28usize];
    ["Offset of field: IdaxSegment::perm_exec"]
        [::std::mem::offset_of!(IdaxSegment, perm_exec) - 32usize];
    ["Offset of field: IdaxSegment::name"][::std::mem::offset_of!(IdaxSegment, name) - 40usize];
    ["Offset of field: IdaxSegment::class_name"]
        [::std::mem::offset_of!(IdaxSegment, class_name) - 48usize];
    ["Offset of field: IdaxSegment::visible"]
        [::std::mem::offset_of!(IdaxSegment, visible) - 56usize];
};
impl Default for IdaxSegment {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " Free strings inside an IdaxSegment (does NOT free the struct itself)."]
    pub fn idax_segment_free(seg: *mut IdaxSegment);
}
unsafe extern "C" {
    pub fn idax_segment_at(ea: u64, out: *mut IdaxSegment) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_by_name(
        name: *const ::std::os::raw::c_char,
        out: *mut IdaxSegment,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_by_index(index: usize, out: *mut IdaxSegment) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_count(out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_create(
        start: u64,
        end: u64,
        name: *const ::std::os::raw::c_char,
        class_name: *const ::std::os::raw::c_char,
        type_: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_remove(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_name(
        ea: u64,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_class(
        ea: u64,
        class_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_type(ea: u64, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_permissions(
        ea: u64,
        read: ::std::os::raw::c_int,
        write: ::std::os::raw::c_int,
        exec: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_bitness(ea: u64, bits: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_comment(
        ea: u64,
        repeatable: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_comment(
        ea: u64,
        text: *const ::std::os::raw::c_char,
        repeatable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_resize(ea: u64, new_start: u64, new_end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_move(ea: u64, new_start: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_next(ea: u64, out: *mut IdaxSegment) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_prev(ea: u64, out: *mut IdaxSegment) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_default_segment_register(
        ea: u64,
        register_index: ::std::os::raw::c_int,
        value: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_segment_set_default_segment_register_for_all(
        register_index: ::std::os::raw::c_int,
        value: u64,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Flat C representation of a function snapshot."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxFunction {
    pub start: u64,
    pub end: u64,
    #[doc = "< malloc'd, free with idax_free_string"]
    pub name: *mut ::std::os::raw::c_char,
    pub bitness: ::std::os::raw::c_int,
    pub returns: ::std::os::raw::c_int,
    pub is_library: ::std::os::raw::c_int,
    pub is_thunk: ::std::os::raw::c_int,
    pub is_visible: ::std::os::raw::c_int,
    pub frame_local_size: u64,
    pub frame_regs_size: u64,
    pub frame_args_size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxFunction"][::std::mem::size_of::<IdaxFunction>() - 72usize];
    ["Alignment of IdaxFunction"][::std::mem::align_of::<IdaxFunction>() - 8usize];
    ["Offset of field: IdaxFunction::start"][::std::mem::offset_of!(IdaxFunction, start) - 0usize];
    ["Offset of field: IdaxFunction::end"][::std::mem::offset_of!(IdaxFunction, end) - 8usize];
    ["Offset of field: IdaxFunction::name"][::std::mem::offset_of!(IdaxFunction, name) - 16usize];
    ["Offset of field: IdaxFunction::bitness"]
        [::std::mem::offset_of!(IdaxFunction, bitness) - 24usize];
    ["Offset of field: IdaxFunction::returns"]
        [::std::mem::offset_of!(IdaxFunction, returns) - 28usize];
    ["Offset of field: IdaxFunction::is_library"]
        [::std::mem::offset_of!(IdaxFunction, is_library) - 32usize];
    ["Offset of field: IdaxFunction::is_thunk"]
        [::std::mem::offset_of!(IdaxFunction, is_thunk) - 36usize];
    ["Offset of field: IdaxFunction::is_visible"]
        [::std::mem::offset_of!(IdaxFunction, is_visible) - 40usize];
    ["Offset of field: IdaxFunction::frame_local_size"]
        [::std::mem::offset_of!(IdaxFunction, frame_local_size) - 48usize];
    ["Offset of field: IdaxFunction::frame_regs_size"]
        [::std::mem::offset_of!(IdaxFunction, frame_regs_size) - 56usize];
    ["Offset of field: IdaxFunction::frame_args_size"]
        [::std::mem::offset_of!(IdaxFunction, frame_args_size) - 64usize];
};
impl Default for IdaxFunction {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " Free strings inside an IdaxFunction."]
    pub fn idax_function_free(func: *mut IdaxFunction);
}
unsafe extern "C" {
    pub fn idax_function_at(ea: u64, out: *mut IdaxFunction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_by_index(index: usize, out: *mut IdaxFunction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_count(out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_create(
        start: u64,
        end: u64,
        out: *mut IdaxFunction,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_remove(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_name_at(
        ea: u64,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_set_start(ea: u64, new_start: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_set_end(ea: u64, new_end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_update(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_reanalyze(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_comment(
        ea: u64,
        repeatable: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_set_comment(
        ea: u64,
        text: *const ::std::os::raw::c_char,
        repeatable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_callers(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_callees(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_is_outlined(
        ea: u64,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_set_outlined(
        ea: u64,
        outlined: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Chunk descriptor."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxChunk {
    pub start: u64,
    pub end: u64,
    pub is_tail: ::std::os::raw::c_int,
    pub owner: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxChunk"][::std::mem::size_of::<IdaxChunk>() - 32usize];
    ["Alignment of IdaxChunk"][::std::mem::align_of::<IdaxChunk>() - 8usize];
    ["Offset of field: IdaxChunk::start"][::std::mem::offset_of!(IdaxChunk, start) - 0usize];
    ["Offset of field: IdaxChunk::end"][::std::mem::offset_of!(IdaxChunk, end) - 8usize];
    ["Offset of field: IdaxChunk::is_tail"][::std::mem::offset_of!(IdaxChunk, is_tail) - 16usize];
    ["Offset of field: IdaxChunk::owner"][::std::mem::offset_of!(IdaxChunk, owner) - 24usize];
};
unsafe extern "C" {
    pub fn idax_function_chunks(
        ea: u64,
        out: *mut *mut IdaxChunk,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_chunk_count(ea: u64, out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_add_tail(
        func_ea: u64,
        tail_start: u64,
        tail_end: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_remove_tail(func_ea: u64, tail_ea: u64) -> ::std::os::raw::c_int;
}
#[doc = " Stack frame variable."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxFrameVariable {
    pub name: *mut ::std::os::raw::c_char,
    pub byte_offset: usize,
    pub byte_size: usize,
    pub comment: *mut ::std::os::raw::c_char,
    pub is_special: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxFrameVariable"][::std::mem::size_of::<IdaxFrameVariable>() - 40usize];
    ["Alignment of IdaxFrameVariable"][::std::mem::align_of::<IdaxFrameVariable>() - 8usize];
    ["Offset of field: IdaxFrameVariable::name"]
        [::std::mem::offset_of!(IdaxFrameVariable, name) - 0usize];
    ["Offset of field: IdaxFrameVariable::byte_offset"]
        [::std::mem::offset_of!(IdaxFrameVariable, byte_offset) - 8usize];
    ["Offset of field: IdaxFrameVariable::byte_size"]
        [::std::mem::offset_of!(IdaxFrameVariable, byte_size) - 16usize];
    ["Offset of field: IdaxFrameVariable::comment"]
        [::std::mem::offset_of!(IdaxFrameVariable, comment) - 24usize];
    ["Offset of field: IdaxFrameVariable::is_special"]
        [::std::mem::offset_of!(IdaxFrameVariable, is_special) - 32usize];
};
impl Default for IdaxFrameVariable {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_frame_variable_free(var: *mut IdaxFrameVariable);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxRegisterVariable {
    pub range_start: u64,
    pub range_end: u64,
    pub canonical_name: *mut ::std::os::raw::c_char,
    pub user_name: *mut ::std::os::raw::c_char,
    pub comment: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxRegisterVariable"][::std::mem::size_of::<IdaxRegisterVariable>() - 40usize];
    ["Alignment of IdaxRegisterVariable"][::std::mem::align_of::<IdaxRegisterVariable>() - 8usize];
    ["Offset of field: IdaxRegisterVariable::range_start"]
        [::std::mem::offset_of!(IdaxRegisterVariable, range_start) - 0usize];
    ["Offset of field: IdaxRegisterVariable::range_end"]
        [::std::mem::offset_of!(IdaxRegisterVariable, range_end) - 8usize];
    ["Offset of field: IdaxRegisterVariable::canonical_name"]
        [::std::mem::offset_of!(IdaxRegisterVariable, canonical_name) - 16usize];
    ["Offset of field: IdaxRegisterVariable::user_name"]
        [::std::mem::offset_of!(IdaxRegisterVariable, user_name) - 24usize];
    ["Offset of field: IdaxRegisterVariable::comment"]
        [::std::mem::offset_of!(IdaxRegisterVariable, comment) - 32usize];
};
impl Default for IdaxRegisterVariable {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_register_variable_free(var: *mut IdaxRegisterVariable);
}
unsafe extern "C" {
    pub fn idax_register_variables_free(vars: *mut IdaxRegisterVariable, count: usize);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxStackFrame {
    pub local_variables_size: u64,
    pub saved_registers_size: u64,
    pub arguments_size: u64,
    pub total_size: u64,
    pub variables: *mut IdaxFrameVariable,
    pub variable_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxStackFrame"][::std::mem::size_of::<IdaxStackFrame>() - 48usize];
    ["Alignment of IdaxStackFrame"][::std::mem::align_of::<IdaxStackFrame>() - 8usize];
    ["Offset of field: IdaxStackFrame::local_variables_size"]
        [::std::mem::offset_of!(IdaxStackFrame, local_variables_size) - 0usize];
    ["Offset of field: IdaxStackFrame::saved_registers_size"]
        [::std::mem::offset_of!(IdaxStackFrame, saved_registers_size) - 8usize];
    ["Offset of field: IdaxStackFrame::arguments_size"]
        [::std::mem::offset_of!(IdaxStackFrame, arguments_size) - 16usize];
    ["Offset of field: IdaxStackFrame::total_size"]
        [::std::mem::offset_of!(IdaxStackFrame, total_size) - 24usize];
    ["Offset of field: IdaxStackFrame::variables"]
        [::std::mem::offset_of!(IdaxStackFrame, variables) - 32usize];
    ["Offset of field: IdaxStackFrame::variable_count"]
        [::std::mem::offset_of!(IdaxStackFrame, variable_count) - 40usize];
};
impl Default for IdaxStackFrame {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_stack_frame_free(frame: *mut IdaxStackFrame);
}
unsafe extern "C" {
    pub fn idax_function_frame(ea: u64, out: *mut IdaxStackFrame) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_sp_delta_at(ea: u64, out: *mut i64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_frame_variable_by_name(
        ea: u64,
        name: *const ::std::os::raw::c_char,
        out: *mut IdaxFrameVariable,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_frame_variable_by_offset(
        ea: u64,
        byte_offset: usize,
        out: *mut IdaxFrameVariable,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_define_stack_variable(
        function_ea: u64,
        name: *const ::std::os::raw::c_char,
        frame_offset: i32,
        type_: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_add_register_variable(
        function_ea: u64,
        range_start: u64,
        range_end: u64,
        register_name: *const ::std::os::raw::c_char,
        user_name: *const ::std::os::raw::c_char,
        comment: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_find_register_variable(
        function_ea: u64,
        ea: u64,
        register_name: *const ::std::os::raw::c_char,
        out: *mut IdaxRegisterVariable,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_remove_register_variable(
        function_ea: u64,
        range_start: u64,
        range_end: u64,
        register_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_rename_register_variable(
        function_ea: u64,
        ea: u64,
        register_name: *const ::std::os::raw::c_char,
        new_user_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_has_register_variables(
        function_ea: u64,
        ea: u64,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_register_variables(
        function_ea: u64,
        out: *mut *mut IdaxRegisterVariable,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_item_addresses(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_function_code_addresses(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Flat C representation of an instruction operand."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxOperand {
    pub index: ::std::os::raw::c_int,
    #[doc = "< ida::instruction::OperandType as int"]
    pub type_: ::std::os::raw::c_int,
    pub register_id: u16,
    pub value: u64,
    pub target_address: u64,
    pub byte_width: ::std::os::raw::c_int,
    #[doc = "< malloc'd"]
    pub register_name: *mut ::std::os::raw::c_char,
    #[doc = "< ida::instruction::RegisterClass as int"]
    pub register_class: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxOperand"][::std::mem::size_of::<IdaxOperand>() - 56usize];
    ["Alignment of IdaxOperand"][::std::mem::align_of::<IdaxOperand>() - 8usize];
    ["Offset of field: IdaxOperand::index"][::std::mem::offset_of!(IdaxOperand, index) - 0usize];
    ["Offset of field: IdaxOperand::type_"][::std::mem::offset_of!(IdaxOperand, type_) - 4usize];
    ["Offset of field: IdaxOperand::register_id"]
        [::std::mem::offset_of!(IdaxOperand, register_id) - 8usize];
    ["Offset of field: IdaxOperand::value"][::std::mem::offset_of!(IdaxOperand, value) - 16usize];
    ["Offset of field: IdaxOperand::target_address"]
        [::std::mem::offset_of!(IdaxOperand, target_address) - 24usize];
    ["Offset of field: IdaxOperand::byte_width"]
        [::std::mem::offset_of!(IdaxOperand, byte_width) - 32usize];
    ["Offset of field: IdaxOperand::register_name"]
        [::std::mem::offset_of!(IdaxOperand, register_name) - 40usize];
    ["Offset of field: IdaxOperand::register_class"]
        [::std::mem::offset_of!(IdaxOperand, register_class) - 48usize];
};
impl Default for IdaxOperand {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Flat C representation of a decoded instruction."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxInstruction {
    pub address: u64,
    pub size: u64,
    pub opcode: u16,
    #[doc = "< malloc'd"]
    pub mnemonic: *mut ::std::os::raw::c_char,
    #[doc = "< malloc'd array"]
    pub operands: *mut IdaxOperand,
    pub operand_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxInstruction"][::std::mem::size_of::<IdaxInstruction>() - 48usize];
    ["Alignment of IdaxInstruction"][::std::mem::align_of::<IdaxInstruction>() - 8usize];
    ["Offset of field: IdaxInstruction::address"]
        [::std::mem::offset_of!(IdaxInstruction, address) - 0usize];
    ["Offset of field: IdaxInstruction::size"]
        [::std::mem::offset_of!(IdaxInstruction, size) - 8usize];
    ["Offset of field: IdaxInstruction::opcode"]
        [::std::mem::offset_of!(IdaxInstruction, opcode) - 16usize];
    ["Offset of field: IdaxInstruction::mnemonic"]
        [::std::mem::offset_of!(IdaxInstruction, mnemonic) - 24usize];
    ["Offset of field: IdaxInstruction::operands"]
        [::std::mem::offset_of!(IdaxInstruction, operands) - 32usize];
    ["Offset of field: IdaxInstruction::operand_count"]
        [::std::mem::offset_of!(IdaxInstruction, operand_count) - 40usize];
};
impl Default for IdaxInstruction {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " Free all malloc'd fields inside an IdaxInstruction."]
    pub fn idax_instruction_free(insn: *mut IdaxInstruction);
}
unsafe extern "C" {
    pub fn idax_instruction_decode(ea: u64, out: *mut IdaxInstruction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_create(ea: u64, out: *mut IdaxInstruction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_text(
        ea: u64,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_hex(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_decimal(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_octal(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_binary(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_character(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_float(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_format(
        ea: u64,
        n: ::std::os::raw::c_int,
        format: ::std::os::raw::c_int,
        base: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_offset(
        ea: u64,
        n: ::std::os::raw::c_int,
        base: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_struct_offset_by_name(
        ea: u64,
        n: ::std::os::raw::c_int,
        structure_name: *const ::std::os::raw::c_char,
        delta: i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_struct_offset_by_id(
        ea: u64,
        n: ::std::os::raw::c_int,
        structure_id: u64,
        delta: i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_based_struct_offset(
        ea: u64,
        n: ::std::os::raw::c_int,
        operand_value: u64,
        base: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_struct_offset_path(
        ea: u64,
        n: ::std::os::raw::c_int,
        out_ids: *mut *mut u64,
        out_count: *mut usize,
        out_delta: *mut i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_struct_offset_path_names(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_string_array_free(
        values: *mut *mut ::std::os::raw::c_char,
        count: usize,
    );
}
unsafe extern "C" {
    pub fn idax_instruction_set_operand_stack_variable(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_clear_operand_representation(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_set_forced_operand(
        ea: u64,
        n: ::std::os::raw::c_int,
        text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_get_forced_operand(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_text(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_byte_width(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_register_name(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_operand_register_class(
        ea: u64,
        n: ::std::os::raw::c_int,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_toggle_operand_sign(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_toggle_operand_negate(
        ea: u64,
        n: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_code_refs_from(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_data_refs_from(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_call_targets(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_jump_targets(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_has_fall_through(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_is_call(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_is_return(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_is_jump(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_is_conditional_jump(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_next(ea: u64, out: *mut IdaxInstruction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_instruction_prev(ea: u64, out: *mut IdaxInstruction) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_byte(ea: u64, out: *mut u8) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_word(ea: u64, out: *mut u16) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_dword(ea: u64, out: *mut u32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_qword(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_bytes(
        ea: u64,
        count: u64,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_read_string(
        ea: u64,
        max_len: u64,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_UNSIGNED_INTEGER: IdaxDataTypedValueKind = 0;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_SIGNED_INTEGER: IdaxDataTypedValueKind = 1;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_FLOATING_POINT: IdaxDataTypedValueKind = 2;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_POINTER: IdaxDataTypedValueKind = 3;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_STRING: IdaxDataTypedValueKind = 4;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_BYTES: IdaxDataTypedValueKind = 5;
pub const IdaxDataTypedValueKind_IDAX_DATA_TYPED_ARRAY: IdaxDataTypedValueKind = 6;
pub type IdaxDataTypedValueKind = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDataTypedValue {
    pub kind: ::std::os::raw::c_int,
    pub unsigned_value: u64,
    pub signed_value: i64,
    pub floating_value: f64,
    pub pointer_value: u64,
    pub string_value: *mut ::std::os::raw::c_char,
    pub bytes: *mut u8,
    pub byte_count: usize,
    pub elements: *mut IdaxDataTypedValue,
    pub element_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDataTypedValue"][::std::mem::size_of::<IdaxDataTypedValue>() - 80usize];
    ["Alignment of IdaxDataTypedValue"][::std::mem::align_of::<IdaxDataTypedValue>() - 8usize];
    ["Offset of field: IdaxDataTypedValue::kind"]
        [::std::mem::offset_of!(IdaxDataTypedValue, kind) - 0usize];
    ["Offset of field: IdaxDataTypedValue::unsigned_value"]
        [::std::mem::offset_of!(IdaxDataTypedValue, unsigned_value) - 8usize];
    ["Offset of field: IdaxDataTypedValue::signed_value"]
        [::std::mem::offset_of!(IdaxDataTypedValue, signed_value) - 16usize];
    ["Offset of field: IdaxDataTypedValue::floating_value"]
        [::std::mem::offset_of!(IdaxDataTypedValue, floating_value) - 24usize];
    ["Offset of field: IdaxDataTypedValue::pointer_value"]
        [::std::mem::offset_of!(IdaxDataTypedValue, pointer_value) - 32usize];
    ["Offset of field: IdaxDataTypedValue::string_value"]
        [::std::mem::offset_of!(IdaxDataTypedValue, string_value) - 40usize];
    ["Offset of field: IdaxDataTypedValue::bytes"]
        [::std::mem::offset_of!(IdaxDataTypedValue, bytes) - 48usize];
    ["Offset of field: IdaxDataTypedValue::byte_count"]
        [::std::mem::offset_of!(IdaxDataTypedValue, byte_count) - 56usize];
    ["Offset of field: IdaxDataTypedValue::elements"]
        [::std::mem::offset_of!(IdaxDataTypedValue, elements) - 64usize];
    ["Offset of field: IdaxDataTypedValue::element_count"]
        [::std::mem::offset_of!(IdaxDataTypedValue, element_count) - 72usize];
};
impl Default for IdaxDataTypedValue {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_data_read_typed(
        ea: u64,
        type_: *mut ::std::os::raw::c_void,
        out: *mut IdaxDataTypedValue,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_write_typed(
        ea: u64,
        type_: *mut ::std::os::raw::c_void,
        value: *const IdaxDataTypedValue,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_typed_value_free(value: *mut IdaxDataTypedValue);
}
unsafe extern "C" {
    pub fn idax_data_write_byte(ea: u64, value: u8) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_write_word(ea: u64, value: u16) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_write_dword(ea: u64, value: u32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_write_qword(ea: u64, value: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_write_bytes(ea: u64, data: *const u8, len: usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_patch_byte(ea: u64, value: u8) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_patch_word(ea: u64, value: u16) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_patch_dword(ea: u64, value: u32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_patch_qword(ea: u64, value: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_patch_bytes(ea: u64, data: *const u8, len: usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_revert_patch(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_revert_patches(
        ea: u64,
        count: u64,
        reverted: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_original_byte(ea: u64, out: *mut u8) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_original_word(ea: u64, out: *mut u16) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_original_dword(ea: u64, out: *mut u32) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_original_qword(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_byte(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_word(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_dword(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_qword(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_oword(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_tbyte(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_float(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_double(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_string(ea: u64, length: u64, string_type: i32)
        -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_define_struct(
        ea: u64,
        length: u64,
        structure_id: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_undefine(ea: u64, count: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_data_find_binary_pattern(
        start: u64,
        end: u64,
        pattern: *const ::std::os::raw::c_char,
        forward: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_get(ea: u64, out: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_set(ea: u64, name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_force_set(
        ea: u64,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_remove(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_demangled(
        ea: u64,
        form: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_resolve(
        name: *const ::std::os::raw::c_char,
        context: u64,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxNameEntry {
    pub address: u64,
    pub name: *mut ::std::os::raw::c_char,
    pub user_defined: ::std::os::raw::c_int,
    pub auto_generated: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxNameEntry"][::std::mem::size_of::<IdaxNameEntry>() - 24usize];
    ["Alignment of IdaxNameEntry"][::std::mem::align_of::<IdaxNameEntry>() - 8usize];
    ["Offset of field: IdaxNameEntry::address"]
        [::std::mem::offset_of!(IdaxNameEntry, address) - 0usize];
    ["Offset of field: IdaxNameEntry::name"][::std::mem::offset_of!(IdaxNameEntry, name) - 8usize];
    ["Offset of field: IdaxNameEntry::user_defined"]
        [::std::mem::offset_of!(IdaxNameEntry, user_defined) - 16usize];
    ["Offset of field: IdaxNameEntry::auto_generated"]
        [::std::mem::offset_of!(IdaxNameEntry, auto_generated) - 20usize];
};
impl Default for IdaxNameEntry {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_name_all_user_defined(
        start: u64,
        end: u64,
        out: *mut *mut IdaxNameEntry,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_entries_free(entries: *mut IdaxNameEntry, count: usize);
}
unsafe extern "C" {
    pub fn idax_name_is_public(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_is_weak(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_is_user_defined(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_is_auto_generated(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_is_valid_identifier(
        text: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_sanitize_identifier(
        text: *const ::std::os::raw::c_char,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_set_public(ea: u64, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_name_set_weak(ea: u64, value: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
#[doc = " Flat C representation of a cross-reference."]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxXref {
    pub from: u64,
    pub to: u64,
    pub is_code: ::std::os::raw::c_int,
    #[doc = "< ida::xref::ReferenceType as int"]
    pub type_: ::std::os::raw::c_int,
    pub user_defined: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxXref"][::std::mem::size_of::<IdaxXref>() - 32usize];
    ["Alignment of IdaxXref"][::std::mem::align_of::<IdaxXref>() - 8usize];
    ["Offset of field: IdaxXref::from"][::std::mem::offset_of!(IdaxXref, from) - 0usize];
    ["Offset of field: IdaxXref::to"][::std::mem::offset_of!(IdaxXref, to) - 8usize];
    ["Offset of field: IdaxXref::is_code"][::std::mem::offset_of!(IdaxXref, is_code) - 16usize];
    ["Offset of field: IdaxXref::type_"][::std::mem::offset_of!(IdaxXref, type_) - 20usize];
    ["Offset of field: IdaxXref::user_defined"]
        [::std::mem::offset_of!(IdaxXref, user_defined) - 24usize];
};
unsafe extern "C" {
    pub fn idax_xref_refs_from(
        ea: u64,
        out: *mut *mut IdaxXref,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_refs_to(
        ea: u64,
        out: *mut *mut IdaxXref,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_code_refs_from(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_code_refs_to(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_data_refs_from(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_data_refs_to(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_refs_from_range(
        ea: u64,
        out: *mut *mut IdaxXref,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_refs_to_range(
        ea: u64,
        out: *mut *mut IdaxXref,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_code_refs_from_range(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_code_refs_to_range(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_data_refs_from_range(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_data_refs_to_range(
        ea: u64,
        out: *mut *mut u64,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_add_code(
        from: u64,
        to: u64,
        type_: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_add_data(
        from: u64,
        to: u64,
        type_: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_remove_code(from: u64, to: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_xref_remove_data(from: u64, to: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_get(
        ea: u64,
        repeatable: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_set(
        ea: u64,
        text: *const ::std::os::raw::c_char,
        repeatable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_append(
        ea: u64,
        text: *const ::std::os::raw::c_char,
        repeatable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_remove(ea: u64, repeatable: ::std::os::raw::c_int)
        -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_add_anterior(
        ea: u64,
        text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_add_posterior(
        ea: u64,
        text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_get_anterior(
        ea: u64,
        line_index: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_get_posterior(
        ea: u64,
        line_index: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_set_anterior(
        ea: u64,
        line_index: ::std::os::raw::c_int,
        text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_set_posterior(
        ea: u64,
        line_index: ::std::os::raw::c_int,
        text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_clear_anterior(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_clear_posterior(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_remove_anterior_line(
        ea: u64,
        line_index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_remove_posterior_line(
        ea: u64,
        line_index: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_set_anterior_lines(
        ea: u64,
        lines: *const *const ::std::os::raw::c_char,
        count: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_set_posterior_lines(
        ea: u64,
        lines: *const *const ::std::os::raw::c_char,
        count: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_anterior_lines(
        ea: u64,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_posterior_lines(
        ea: u64,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_comment_lines_free(lines: *mut *mut ::std::os::raw::c_char, count: usize);
}
unsafe extern "C" {
    pub fn idax_comment_render(
        ea: u64,
        include_repeatable: ::std::os::raw::c_int,
        include_extra_lines: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_text(
        query: *const ::std::os::raw::c_char,
        start: u64,
        forward: ::std::os::raw::c_int,
        case_sensitive: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_binary_pattern(
        hex: *const ::std::os::raw::c_char,
        start: u64,
        forward: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_immediate(
        value: u64,
        start: u64,
        forward: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_next_code(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_next_data(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_next_unknown(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_next_error(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_search_next_defined(ea: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_is_enabled() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_set_enabled(enabled: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_is_idle() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_wait() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_wait_range(start: u64, end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule_range(start: u64, end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule_code(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule_function(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule_reanalysis(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_schedule_reanalysis_range(start: u64, end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_cancel(start: u64, end: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_analysis_revert_decisions(start: u64, end: u64) -> ::std::os::raw::c_int;
}
#[doc = " Opaque type handle. Must be freed with idax_type_free()."]
pub type IdaxTypeHandle = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxTypeEnumMemberInput {
    pub name: *const ::std::os::raw::c_char,
    pub value: u64,
    pub comment: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxTypeEnumMemberInput"][::std::mem::size_of::<IdaxTypeEnumMemberInput>() - 24usize];
    ["Alignment of IdaxTypeEnumMemberInput"]
        [::std::mem::align_of::<IdaxTypeEnumMemberInput>() - 8usize];
    ["Offset of field: IdaxTypeEnumMemberInput::name"]
        [::std::mem::offset_of!(IdaxTypeEnumMemberInput, name) - 0usize];
    ["Offset of field: IdaxTypeEnumMemberInput::value"]
        [::std::mem::offset_of!(IdaxTypeEnumMemberInput, value) - 8usize];
    ["Offset of field: IdaxTypeEnumMemberInput::comment"]
        [::std::mem::offset_of!(IdaxTypeEnumMemberInput, comment) - 16usize];
};
impl Default for IdaxTypeEnumMemberInput {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxTypeEnumMember {
    pub name: *mut ::std::os::raw::c_char,
    pub value: u64,
    pub comment: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxTypeEnumMember"][::std::mem::size_of::<IdaxTypeEnumMember>() - 24usize];
    ["Alignment of IdaxTypeEnumMember"][::std::mem::align_of::<IdaxTypeEnumMember>() - 8usize];
    ["Offset of field: IdaxTypeEnumMember::name"]
        [::std::mem::offset_of!(IdaxTypeEnumMember, name) - 0usize];
    ["Offset of field: IdaxTypeEnumMember::value"]
        [::std::mem::offset_of!(IdaxTypeEnumMember, value) - 8usize];
    ["Offset of field: IdaxTypeEnumMember::comment"]
        [::std::mem::offset_of!(IdaxTypeEnumMember, comment) - 16usize];
};
impl Default for IdaxTypeEnumMember {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxTypeMember {
    pub name: *mut ::std::os::raw::c_char,
    pub type_: IdaxTypeHandle,
    pub byte_offset: usize,
    pub bit_size: usize,
    pub comment: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxTypeMember"][::std::mem::size_of::<IdaxTypeMember>() - 40usize];
    ["Alignment of IdaxTypeMember"][::std::mem::align_of::<IdaxTypeMember>() - 8usize];
    ["Offset of field: IdaxTypeMember::name"]
        [::std::mem::offset_of!(IdaxTypeMember, name) - 0usize];
    ["Offset of field: IdaxTypeMember::type_"]
        [::std::mem::offset_of!(IdaxTypeMember, type_) - 8usize];
    ["Offset of field: IdaxTypeMember::byte_offset"]
        [::std::mem::offset_of!(IdaxTypeMember, byte_offset) - 16usize];
    ["Offset of field: IdaxTypeMember::bit_size"]
        [::std::mem::offset_of!(IdaxTypeMember, bit_size) - 24usize];
    ["Offset of field: IdaxTypeMember::comment"]
        [::std::mem::offset_of!(IdaxTypeMember, comment) - 32usize];
};
impl Default for IdaxTypeMember {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_type_void() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_int8() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_int16() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_int32() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_int64() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_uint8() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_uint16() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_uint32() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_uint64() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_float32() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_float64() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_pointer_to(target: IdaxTypeHandle) -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_array_of(element: IdaxTypeHandle, count: usize) -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_create_struct() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_create_union() -> IdaxTypeHandle;
}
unsafe extern "C" {
    pub fn idax_type_free(ti: IdaxTypeHandle);
}
unsafe extern "C" {
    pub fn idax_type_clone(ti: IdaxTypeHandle, out: *mut IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_function_type(
        return_type: IdaxTypeHandle,
        argument_types: *const IdaxTypeHandle,
        argument_count: usize,
        calling_convention: ::std::os::raw::c_int,
        has_varargs: ::std::os::raw::c_int,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_enum_type(
        members: *const IdaxTypeEnumMemberInput,
        member_count: usize,
        byte_width: usize,
        bitmask: ::std::os::raw::c_int,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_void(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_integer(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_floating_point(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_pointer(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_array(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_function(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_struct(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_union(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_enum(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_typedef(ti: IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_size(ti: IdaxTypeHandle, out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_to_string(
        ti: IdaxTypeHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_pointee_type(
        ti: IdaxTypeHandle,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_array_element_type(
        ti: IdaxTypeHandle,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_array_length(ti: IdaxTypeHandle, out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_resolve_typedef(
        ti: IdaxTypeHandle,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_function_return_type(
        ti: IdaxTypeHandle,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_function_argument_types(
        ti: IdaxTypeHandle,
        out: *mut *mut IdaxTypeHandle,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_calling_convention(
        ti: IdaxTypeHandle,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_is_variadic_function(
        ti: IdaxTypeHandle,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_enum_members(
        ti: IdaxTypeHandle,
        out: *mut *mut IdaxTypeEnumMember,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_by_name(
        name: *const ::std::os::raw::c_char,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_from_declaration(
        c_decl: *const ::std::os::raw::c_char,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_apply(ti: IdaxTypeHandle, ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_save_as(
        ti: IdaxTypeHandle,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_retrieve(ea: u64, out: *mut IdaxTypeHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_retrieve_operand(
        ea: u64,
        operand_index: ::std::os::raw::c_int,
        out: *mut IdaxTypeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_remove(ea: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_member_count(ti: IdaxTypeHandle, out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_members(
        ti: IdaxTypeHandle,
        out: *mut *mut IdaxTypeMember,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_member_by_name(
        ti: IdaxTypeHandle,
        name: *const ::std::os::raw::c_char,
        out: *mut IdaxTypeMember,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_member_by_offset(
        ti: IdaxTypeHandle,
        byte_offset: usize,
        out: *mut IdaxTypeMember,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_add_member(
        ti: IdaxTypeHandle,
        name: *const ::std::os::raw::c_char,
        member_type: IdaxTypeHandle,
        byte_offset: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_load_library(
        til_name: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_unload_library(
        til_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_local_type_count(out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_local_type_name(
        ordinal: usize,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_import(
        source_til_name: *const ::std::os::raw::c_char,
        type_name: *const ::std::os::raw::c_char,
        out: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_apply_named(
        ea: u64,
        type_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_type_handle_array_free(handles: *mut IdaxTypeHandle, count: usize);
}
unsafe extern "C" {
    pub fn idax_type_enum_members_free(members: *mut IdaxTypeEnumMember, count: usize);
}
unsafe extern "C" {
    pub fn idax_type_member_free(member: *mut IdaxTypeMember);
}
unsafe extern "C" {
    pub fn idax_type_members_free(members: *mut IdaxTypeMember, count: usize);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxEntryPoint {
    pub ordinal: u64,
    pub address: u64,
    #[doc = "< malloc'd"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = "< malloc'd"]
    pub forwarder: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxEntryPoint"][::std::mem::size_of::<IdaxEntryPoint>() - 32usize];
    ["Alignment of IdaxEntryPoint"][::std::mem::align_of::<IdaxEntryPoint>() - 8usize];
    ["Offset of field: IdaxEntryPoint::ordinal"]
        [::std::mem::offset_of!(IdaxEntryPoint, ordinal) - 0usize];
    ["Offset of field: IdaxEntryPoint::address"]
        [::std::mem::offset_of!(IdaxEntryPoint, address) - 8usize];
    ["Offset of field: IdaxEntryPoint::name"]
        [::std::mem::offset_of!(IdaxEntryPoint, name) - 16usize];
    ["Offset of field: IdaxEntryPoint::forwarder"]
        [::std::mem::offset_of!(IdaxEntryPoint, forwarder) - 24usize];
};
impl Default for IdaxEntryPoint {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_entry_free(entry: *mut IdaxEntryPoint);
}
unsafe extern "C" {
    pub fn idax_entry_count(out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_by_index(index: usize, out: *mut IdaxEntryPoint) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_by_ordinal(ordinal: u64, out: *mut IdaxEntryPoint) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_add(
        ordinal: u64,
        address: u64,
        name: *const ::std::os::raw::c_char,
        make_code: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_rename(
        ordinal: u64,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_forwarder(
        ordinal: u64,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_set_forwarder(
        ordinal: u64,
        target: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_entry_clear_forwarder(ordinal: u64) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxFixup {
    pub source: u64,
    pub type_: ::std::os::raw::c_int,
    pub flags: u32,
    pub base: u64,
    pub target: u64,
    pub selector: u16,
    pub offset: u64,
    pub displacement: i64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxFixup"][::std::mem::size_of::<IdaxFixup>() - 56usize];
    ["Alignment of IdaxFixup"][::std::mem::align_of::<IdaxFixup>() - 8usize];
    ["Offset of field: IdaxFixup::source"][::std::mem::offset_of!(IdaxFixup, source) - 0usize];
    ["Offset of field: IdaxFixup::type_"][::std::mem::offset_of!(IdaxFixup, type_) - 8usize];
    ["Offset of field: IdaxFixup::flags"][::std::mem::offset_of!(IdaxFixup, flags) - 12usize];
    ["Offset of field: IdaxFixup::base"][::std::mem::offset_of!(IdaxFixup, base) - 16usize];
    ["Offset of field: IdaxFixup::target"][::std::mem::offset_of!(IdaxFixup, target) - 24usize];
    ["Offset of field: IdaxFixup::selector"][::std::mem::offset_of!(IdaxFixup, selector) - 32usize];
    ["Offset of field: IdaxFixup::offset"][::std::mem::offset_of!(IdaxFixup, offset) - 40usize];
    ["Offset of field: IdaxFixup::displacement"]
        [::std::mem::offset_of!(IdaxFixup, displacement) - 48usize];
};
unsafe extern "C" {
    pub fn idax_fixup_at(source: u64, out: *mut IdaxFixup) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_set(source: u64, fixup: *const IdaxFixup) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_remove(source: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_exists(source: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_contains(start: u64, size: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_in_range(
        start: u64,
        end: u64,
        out: *mut *mut IdaxFixup,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_first(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_next(address: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_prev(address: u64, out: *mut u64) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxFixupCustomHandler {
    pub name: *const ::std::os::raw::c_char,
    pub properties: u32,
    pub size: u8,
    pub width: u8,
    pub shift: u8,
    pub reference_type: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxFixupCustomHandler"][::std::mem::size_of::<IdaxFixupCustomHandler>() - 24usize];
    ["Alignment of IdaxFixupCustomHandler"]
        [::std::mem::align_of::<IdaxFixupCustomHandler>() - 8usize];
    ["Offset of field: IdaxFixupCustomHandler::name"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, name) - 0usize];
    ["Offset of field: IdaxFixupCustomHandler::properties"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, properties) - 8usize];
    ["Offset of field: IdaxFixupCustomHandler::size"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, size) - 12usize];
    ["Offset of field: IdaxFixupCustomHandler::width"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, width) - 13usize];
    ["Offset of field: IdaxFixupCustomHandler::shift"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, shift) - 14usize];
    ["Offset of field: IdaxFixupCustomHandler::reference_type"]
        [::std::mem::offset_of!(IdaxFixupCustomHandler, reference_type) - 16usize];
};
impl Default for IdaxFixupCustomHandler {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_fixup_register_custom(
        handler: *const IdaxFixupCustomHandler,
        out: *mut u16,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_unregister_custom(custom_type: u16) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_fixup_find_custom(
        name: *const ::std::os::raw::c_char,
        out: *mut u16,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Flat C transfer model for ida::event::Event."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxEvent {
    pub kind: ::std::os::raw::c_int,
    pub address: u64,
    pub secondary_address: u64,
    pub new_name: *const ::std::os::raw::c_char,
    pub old_name: *const ::std::os::raw::c_char,
    pub old_value: u32,
    pub repeatable: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxEvent"][::std::mem::size_of::<IdaxEvent>() - 48usize];
    ["Alignment of IdaxEvent"][::std::mem::align_of::<IdaxEvent>() - 8usize];
    ["Offset of field: IdaxEvent::kind"][::std::mem::offset_of!(IdaxEvent, kind) - 0usize];
    ["Offset of field: IdaxEvent::address"][::std::mem::offset_of!(IdaxEvent, address) - 8usize];
    ["Offset of field: IdaxEvent::secondary_address"]
        [::std::mem::offset_of!(IdaxEvent, secondary_address) - 16usize];
    ["Offset of field: IdaxEvent::new_name"][::std::mem::offset_of!(IdaxEvent, new_name) - 24usize];
    ["Offset of field: IdaxEvent::old_name"][::std::mem::offset_of!(IdaxEvent, old_name) - 32usize];
    ["Offset of field: IdaxEvent::old_value"]
        [::std::mem::offset_of!(IdaxEvent, old_value) - 40usize];
    ["Offset of field: IdaxEvent::repeatable"]
        [::std::mem::offset_of!(IdaxEvent, repeatable) - 44usize];
};
impl Default for IdaxEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Legacy generic event callback.\n Kept for backwards compatibility."]
pub type IdaxEventCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event_kind: ::std::os::raw::c_int,
        address: u64,
        secondary: u64,
    ),
>;
pub type IdaxEventSegmentAddedCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, start: u64)>;
pub type IdaxEventSegmentDeletedCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, start: u64, end: u64),
>;
pub type IdaxEventFunctionAddedCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, entry: u64)>;
pub type IdaxEventFunctionDeletedCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, entry: u64)>;
pub type IdaxEventRenamedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        address: u64,
        new_name: *const ::std::os::raw::c_char,
        old_name: *const ::std::os::raw::c_char,
    ),
>;
pub type IdaxEventBytePatchedCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, address: u64, old_value: u32),
>;
pub type IdaxEventCommentChangedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        address: u64,
        repeatable: ::std::os::raw::c_int,
    ),
>;
pub type IdaxEventExCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, event: *const IdaxEvent),
>;
pub type IdaxEventFilterCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxEvent,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn idax_event_subscribe(
        event_kind: ::std::os::raw::c_int,
        callback: IdaxEventCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_segment_added(
        callback: IdaxEventSegmentAddedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_segment_deleted(
        callback: IdaxEventSegmentDeletedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_function_added(
        callback: IdaxEventFunctionAddedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_function_deleted(
        callback: IdaxEventFunctionDeletedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_renamed(
        callback: IdaxEventRenamedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_byte_patched(
        callback: IdaxEventBytePatchedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_comment_changed(
        callback: IdaxEventCommentChangedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_event(
        callback: IdaxEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_on_event_filtered(
        filter: IdaxEventFilterCallback,
        callback: IdaxEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_event_unsubscribe(token: u64) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxPluginActionContext {
    pub action_id: *const ::std::os::raw::c_char,
    pub widget_title: *const ::std::os::raw::c_char,
    pub widget_type: ::std::os::raw::c_int,
    pub current_address: u64,
    pub current_value: u64,
    pub has_selection: ::std::os::raw::c_int,
    pub is_external_address: ::std::os::raw::c_int,
    pub register_name: *const ::std::os::raw::c_char,
    pub widget_handle: *mut ::std::os::raw::c_void,
    pub focused_widget_handle: *mut ::std::os::raw::c_void,
    pub decompiler_view_handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxPluginActionContext"][::std::mem::size_of::<IdaxPluginActionContext>() - 80usize];
    ["Alignment of IdaxPluginActionContext"]
        [::std::mem::align_of::<IdaxPluginActionContext>() - 8usize];
    ["Offset of field: IdaxPluginActionContext::action_id"]
        [::std::mem::offset_of!(IdaxPluginActionContext, action_id) - 0usize];
    ["Offset of field: IdaxPluginActionContext::widget_title"]
        [::std::mem::offset_of!(IdaxPluginActionContext, widget_title) - 8usize];
    ["Offset of field: IdaxPluginActionContext::widget_type"]
        [::std::mem::offset_of!(IdaxPluginActionContext, widget_type) - 16usize];
    ["Offset of field: IdaxPluginActionContext::current_address"]
        [::std::mem::offset_of!(IdaxPluginActionContext, current_address) - 24usize];
    ["Offset of field: IdaxPluginActionContext::current_value"]
        [::std::mem::offset_of!(IdaxPluginActionContext, current_value) - 32usize];
    ["Offset of field: IdaxPluginActionContext::has_selection"]
        [::std::mem::offset_of!(IdaxPluginActionContext, has_selection) - 40usize];
    ["Offset of field: IdaxPluginActionContext::is_external_address"]
        [::std::mem::offset_of!(IdaxPluginActionContext, is_external_address) - 44usize];
    ["Offset of field: IdaxPluginActionContext::register_name"]
        [::std::mem::offset_of!(IdaxPluginActionContext, register_name) - 48usize];
    ["Offset of field: IdaxPluginActionContext::widget_handle"]
        [::std::mem::offset_of!(IdaxPluginActionContext, widget_handle) - 56usize];
    ["Offset of field: IdaxPluginActionContext::focused_widget_handle"]
        [::std::mem::offset_of!(IdaxPluginActionContext, focused_widget_handle) - 64usize];
    ["Offset of field: IdaxPluginActionContext::decompiler_view_handle"]
        [::std::mem::offset_of!(IdaxPluginActionContext, decompiler_view_handle) - 72usize];
};
impl Default for IdaxPluginActionContext {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type IdaxActionHandler =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void)>;
pub type IdaxActionHandlerEx = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        action_context: *const IdaxPluginActionContext,
    ),
>;
pub type IdaxActionEnabledCheck = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
pub type IdaxActionEnabledCheckEx = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        action_context: *const IdaxPluginActionContext,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxPluginHostCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        host: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn idax_plugin_register_action(
        id: *const ::std::os::raw::c_char,
        label: *const ::std::os::raw::c_char,
        hotkey: *const ::std::os::raw::c_char,
        tooltip: *const ::std::os::raw::c_char,
        icon: ::std::os::raw::c_int,
        handler: IdaxActionHandler,
        handler_context: *mut ::std::os::raw::c_void,
        enabled_check: IdaxActionEnabledCheck,
        enabled_context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_register_action_ex(
        id: *const ::std::os::raw::c_char,
        label: *const ::std::os::raw::c_char,
        hotkey: *const ::std::os::raw::c_char,
        tooltip: *const ::std::os::raw::c_char,
        icon: ::std::os::raw::c_int,
        handler: IdaxActionHandler,
        handler_ex: IdaxActionHandlerEx,
        handler_context: *mut ::std::os::raw::c_void,
        enabled_check: IdaxActionEnabledCheck,
        enabled_check_ex: IdaxActionEnabledCheckEx,
        enabled_context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_unregister_action(
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_attach_to_menu(
        menu_path: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_attach_to_toolbar(
        toolbar: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_attach_to_popup(
        widget_title: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_detach_from_menu(
        menu_path: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_detach_from_toolbar(
        toolbar: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_detach_from_popup(
        widget_title: *const ::std::os::raw::c_char,
        action_id: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_action_context_widget_host(
        action_context: *const IdaxPluginActionContext,
        out: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_action_context_with_widget_host(
        action_context: *const IdaxPluginActionContext,
        callback: IdaxPluginHostCallback,
        callback_context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_action_context_decompiler_view_host(
        action_context: *const IdaxPluginActionContext,
        out: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_plugin_action_context_with_decompiler_view_host(
        action_context: *const IdaxPluginActionContext,
        callback: IdaxPluginHostCallback,
        callback_context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxLoaderLoadFlags {
    pub create_segments: ::std::os::raw::c_int,
    pub load_resources: ::std::os::raw::c_int,
    pub rename_entries: ::std::os::raw::c_int,
    pub manual_load: ::std::os::raw::c_int,
    pub fill_gaps: ::std::os::raw::c_int,
    pub create_import_segment: ::std::os::raw::c_int,
    pub first_file: ::std::os::raw::c_int,
    pub binary_code_segment: ::std::os::raw::c_int,
    pub reload: ::std::os::raw::c_int,
    pub auto_flat_group: ::std::os::raw::c_int,
    pub mini_database: ::std::os::raw::c_int,
    pub loader_options_dialog: ::std::os::raw::c_int,
    pub load_all_segments: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxLoaderLoadFlags"][::std::mem::size_of::<IdaxLoaderLoadFlags>() - 52usize];
    ["Alignment of IdaxLoaderLoadFlags"][::std::mem::align_of::<IdaxLoaderLoadFlags>() - 4usize];
    ["Offset of field: IdaxLoaderLoadFlags::create_segments"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, create_segments) - 0usize];
    ["Offset of field: IdaxLoaderLoadFlags::load_resources"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, load_resources) - 4usize];
    ["Offset of field: IdaxLoaderLoadFlags::rename_entries"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, rename_entries) - 8usize];
    ["Offset of field: IdaxLoaderLoadFlags::manual_load"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, manual_load) - 12usize];
    ["Offset of field: IdaxLoaderLoadFlags::fill_gaps"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, fill_gaps) - 16usize];
    ["Offset of field: IdaxLoaderLoadFlags::create_import_segment"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, create_import_segment) - 20usize];
    ["Offset of field: IdaxLoaderLoadFlags::first_file"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, first_file) - 24usize];
    ["Offset of field: IdaxLoaderLoadFlags::binary_code_segment"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, binary_code_segment) - 28usize];
    ["Offset of field: IdaxLoaderLoadFlags::reload"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, reload) - 32usize];
    ["Offset of field: IdaxLoaderLoadFlags::auto_flat_group"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, auto_flat_group) - 36usize];
    ["Offset of field: IdaxLoaderLoadFlags::mini_database"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, mini_database) - 40usize];
    ["Offset of field: IdaxLoaderLoadFlags::loader_options_dialog"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, loader_options_dialog) - 44usize];
    ["Offset of field: IdaxLoaderLoadFlags::load_all_segments"]
        [::std::mem::offset_of!(IdaxLoaderLoadFlags, load_all_segments) - 48usize];
};
unsafe extern "C" {
    pub fn idax_loader_decode_load_flags(
        raw_flags: u16,
        out: *mut IdaxLoaderLoadFlags,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_encode_load_flags(
        flags: *const IdaxLoaderLoadFlags,
        out_raw_flags: *mut u16,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_file_to_database(
        li_handle: *mut ::std::os::raw::c_void,
        file_offset: i64,
        ea: u64,
        size: u64,
        patchable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_memory_to_database(
        data: *const u8,
        ea: u64,
        size: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_abort_load(message: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn idax_loader_input_size(
        li_handle: *mut ::std::os::raw::c_void,
        out: *mut i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_tell(
        li_handle: *mut ::std::os::raw::c_void,
        out: *mut i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_seek(
        li_handle: *mut ::std::os::raw::c_void,
        offset: i64,
        out: *mut i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_read_bytes(
        li_handle: *mut ::std::os::raw::c_void,
        count: usize,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_read_bytes_at(
        li_handle: *mut ::std::os::raw::c_void,
        offset: i64,
        count: usize,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_read_string(
        li_handle: *mut ::std::os::raw::c_void,
        offset: i64,
        max_len: usize,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_input_filename(
        li_handle: *mut ::std::os::raw::c_void,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_set_processor(
        processor_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_loader_create_filename_comment() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxThreadInfo {
    pub id: ::std::os::raw::c_int,
    #[doc = "< malloc'd"]
    pub name: *mut ::std::os::raw::c_char,
    pub is_current: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxThreadInfo"][::std::mem::size_of::<IdaxThreadInfo>() - 24usize];
    ["Alignment of IdaxThreadInfo"][::std::mem::align_of::<IdaxThreadInfo>() - 8usize];
    ["Offset of field: IdaxThreadInfo::id"][::std::mem::offset_of!(IdaxThreadInfo, id) - 0usize];
    ["Offset of field: IdaxThreadInfo::name"]
        [::std::mem::offset_of!(IdaxThreadInfo, name) - 8usize];
    ["Offset of field: IdaxThreadInfo::is_current"]
        [::std::mem::offset_of!(IdaxThreadInfo, is_current) - 16usize];
};
impl Default for IdaxThreadInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxBackendInfo {
    #[doc = "< malloc'd"]
    pub name: *mut ::std::os::raw::c_char,
    #[doc = "< malloc'd"]
    pub display_name: *mut ::std::os::raw::c_char,
    pub remote: ::std::os::raw::c_int,
    pub supports_appcall: ::std::os::raw::c_int,
    pub supports_attach: ::std::os::raw::c_int,
    pub loaded: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxBackendInfo"][::std::mem::size_of::<IdaxBackendInfo>() - 32usize];
    ["Alignment of IdaxBackendInfo"][::std::mem::align_of::<IdaxBackendInfo>() - 8usize];
    ["Offset of field: IdaxBackendInfo::name"]
        [::std::mem::offset_of!(IdaxBackendInfo, name) - 0usize];
    ["Offset of field: IdaxBackendInfo::display_name"]
        [::std::mem::offset_of!(IdaxBackendInfo, display_name) - 8usize];
    ["Offset of field: IdaxBackendInfo::remote"]
        [::std::mem::offset_of!(IdaxBackendInfo, remote) - 16usize];
    ["Offset of field: IdaxBackendInfo::supports_appcall"]
        [::std::mem::offset_of!(IdaxBackendInfo, supports_appcall) - 20usize];
    ["Offset of field: IdaxBackendInfo::supports_attach"]
        [::std::mem::offset_of!(IdaxBackendInfo, supports_attach) - 24usize];
    ["Offset of field: IdaxBackendInfo::loaded"]
        [::std::mem::offset_of!(IdaxBackendInfo, loaded) - 28usize];
};
impl Default for IdaxBackendInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerRegisterInfo {
    #[doc = "< malloc'd"]
    pub name: *mut ::std::os::raw::c_char,
    pub read_only: ::std::os::raw::c_int,
    pub instruction_pointer: ::std::os::raw::c_int,
    pub stack_pointer: ::std::os::raw::c_int,
    pub frame_pointer: ::std::os::raw::c_int,
    pub may_contain_address: ::std::os::raw::c_int,
    pub custom_format: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerRegisterInfo"]
        [::std::mem::size_of::<IdaxDebuggerRegisterInfo>() - 32usize];
    ["Alignment of IdaxDebuggerRegisterInfo"]
        [::std::mem::align_of::<IdaxDebuggerRegisterInfo>() - 8usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::name"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, name) - 0usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::read_only"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, read_only) - 8usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::instruction_pointer"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, instruction_pointer) - 12usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::stack_pointer"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, stack_pointer) - 16usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::frame_pointer"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, frame_pointer) - 20usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::may_contain_address"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, may_contain_address) - 24usize];
    ["Offset of field: IdaxDebuggerRegisterInfo::custom_format"]
        [::std::mem::offset_of!(IdaxDebuggerRegisterInfo, custom_format) - 28usize];
};
impl Default for IdaxDebuggerRegisterInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_SIGNED_INTEGER:
    IdaxDebuggerAppcallValueKind = 0;
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_UNSIGNED_INTEGER:
    IdaxDebuggerAppcallValueKind = 1;
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_FLOATING_POINT:
    IdaxDebuggerAppcallValueKind = 2;
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_STRING: IdaxDebuggerAppcallValueKind =
    3;
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_ADDRESS: IdaxDebuggerAppcallValueKind =
    4;
pub const IdaxDebuggerAppcallValueKind_IDAX_DEBUGGER_APPCALL_BOOLEAN: IdaxDebuggerAppcallValueKind =
    5;
pub type IdaxDebuggerAppcallValueKind = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerAppcallValue {
    pub kind: ::std::os::raw::c_int,
    pub signed_value: i64,
    pub unsigned_value: u64,
    pub floating_value: f64,
    #[doc = "< malloc'd for output, nullable"]
    pub string_value: *mut ::std::os::raw::c_char,
    pub address_value: u64,
    pub boolean_value: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerAppcallValue"]
        [::std::mem::size_of::<IdaxDebuggerAppcallValue>() - 56usize];
    ["Alignment of IdaxDebuggerAppcallValue"]
        [::std::mem::align_of::<IdaxDebuggerAppcallValue>() - 8usize];
    ["Offset of field: IdaxDebuggerAppcallValue::kind"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, kind) - 0usize];
    ["Offset of field: IdaxDebuggerAppcallValue::signed_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, signed_value) - 8usize];
    ["Offset of field: IdaxDebuggerAppcallValue::unsigned_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, unsigned_value) - 16usize];
    ["Offset of field: IdaxDebuggerAppcallValue::floating_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, floating_value) - 24usize];
    ["Offset of field: IdaxDebuggerAppcallValue::string_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, string_value) - 32usize];
    ["Offset of field: IdaxDebuggerAppcallValue::address_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, address_value) - 40usize];
    ["Offset of field: IdaxDebuggerAppcallValue::boolean_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallValue, boolean_value) - 48usize];
};
impl Default for IdaxDebuggerAppcallValue {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxDebuggerAppcallOptions {
    pub has_thread_id: ::std::os::raw::c_int,
    pub thread_id: ::std::os::raw::c_int,
    pub manual: ::std::os::raw::c_int,
    pub include_debug_event: ::std::os::raw::c_int,
    pub has_timeout_milliseconds: ::std::os::raw::c_int,
    pub timeout_milliseconds: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerAppcallOptions"]
        [::std::mem::size_of::<IdaxDebuggerAppcallOptions>() - 24usize];
    ["Alignment of IdaxDebuggerAppcallOptions"]
        [::std::mem::align_of::<IdaxDebuggerAppcallOptions>() - 4usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::has_thread_id"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, has_thread_id) - 0usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::thread_id"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, thread_id) - 4usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::manual"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, manual) - 8usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::include_debug_event"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, include_debug_event) - 12usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::has_timeout_milliseconds"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, has_timeout_milliseconds) - 16usize];
    ["Offset of field: IdaxDebuggerAppcallOptions::timeout_milliseconds"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallOptions, timeout_milliseconds) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerAppcallRequest {
    pub function_address: u64,
    #[doc = "< IdaxTypeHandle"]
    pub function_type: *mut ::std::os::raw::c_void,
    pub arguments: *mut IdaxDebuggerAppcallValue,
    pub argument_count: usize,
    pub options: IdaxDebuggerAppcallOptions,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerAppcallRequest"]
        [::std::mem::size_of::<IdaxDebuggerAppcallRequest>() - 56usize];
    ["Alignment of IdaxDebuggerAppcallRequest"]
        [::std::mem::align_of::<IdaxDebuggerAppcallRequest>() - 8usize];
    ["Offset of field: IdaxDebuggerAppcallRequest::function_address"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallRequest, function_address) - 0usize];
    ["Offset of field: IdaxDebuggerAppcallRequest::function_type"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallRequest, function_type) - 8usize];
    ["Offset of field: IdaxDebuggerAppcallRequest::arguments"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallRequest, arguments) - 16usize];
    ["Offset of field: IdaxDebuggerAppcallRequest::argument_count"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallRequest, argument_count) - 24usize];
    ["Offset of field: IdaxDebuggerAppcallRequest::options"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallRequest, options) - 32usize];
};
impl Default for IdaxDebuggerAppcallRequest {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerAppcallResult {
    pub return_value: IdaxDebuggerAppcallValue,
    #[doc = "< malloc'd"]
    pub diagnostics: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerAppcallResult"]
        [::std::mem::size_of::<IdaxDebuggerAppcallResult>() - 64usize];
    ["Alignment of IdaxDebuggerAppcallResult"]
        [::std::mem::align_of::<IdaxDebuggerAppcallResult>() - 8usize];
    ["Offset of field: IdaxDebuggerAppcallResult::return_value"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallResult, return_value) - 0usize];
    ["Offset of field: IdaxDebuggerAppcallResult::diagnostics"]
        [::std::mem::offset_of!(IdaxDebuggerAppcallResult, diagnostics) - 56usize];
};
impl Default for IdaxDebuggerAppcallResult {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerModuleInfo {
    pub name: *const ::std::os::raw::c_char,
    pub base: u64,
    pub size: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerModuleInfo"][::std::mem::size_of::<IdaxDebuggerModuleInfo>() - 24usize];
    ["Alignment of IdaxDebuggerModuleInfo"]
        [::std::mem::align_of::<IdaxDebuggerModuleInfo>() - 8usize];
    ["Offset of field: IdaxDebuggerModuleInfo::name"]
        [::std::mem::offset_of!(IdaxDebuggerModuleInfo, name) - 0usize];
    ["Offset of field: IdaxDebuggerModuleInfo::base"]
        [::std::mem::offset_of!(IdaxDebuggerModuleInfo, base) - 8usize];
    ["Offset of field: IdaxDebuggerModuleInfo::size"]
        [::std::mem::offset_of!(IdaxDebuggerModuleInfo, size) - 16usize];
};
impl Default for IdaxDebuggerModuleInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDebuggerExceptionInfo {
    pub ea: u64,
    pub code: u32,
    pub can_continue: ::std::os::raw::c_int,
    pub message: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDebuggerExceptionInfo"]
        [::std::mem::size_of::<IdaxDebuggerExceptionInfo>() - 24usize];
    ["Alignment of IdaxDebuggerExceptionInfo"]
        [::std::mem::align_of::<IdaxDebuggerExceptionInfo>() - 8usize];
    ["Offset of field: IdaxDebuggerExceptionInfo::ea"]
        [::std::mem::offset_of!(IdaxDebuggerExceptionInfo, ea) - 0usize];
    ["Offset of field: IdaxDebuggerExceptionInfo::code"]
        [::std::mem::offset_of!(IdaxDebuggerExceptionInfo, code) - 8usize];
    ["Offset of field: IdaxDebuggerExceptionInfo::can_continue"]
        [::std::mem::offset_of!(IdaxDebuggerExceptionInfo, can_continue) - 12usize];
    ["Offset of field: IdaxDebuggerExceptionInfo::message"]
        [::std::mem::offset_of!(IdaxDebuggerExceptionInfo, message) - 16usize];
};
impl Default for IdaxDebuggerExceptionInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub const IdaxDebuggerBreakpointChange_IDAX_DEBUGGER_BREAKPOINT_ADDED:
    IdaxDebuggerBreakpointChange = 0;
pub const IdaxDebuggerBreakpointChange_IDAX_DEBUGGER_BREAKPOINT_REMOVED:
    IdaxDebuggerBreakpointChange = 1;
pub const IdaxDebuggerBreakpointChange_IDAX_DEBUGGER_BREAKPOINT_CHANGED:
    IdaxDebuggerBreakpointChange = 2;
pub type IdaxDebuggerBreakpointChange = ::std::os::raw::c_uint;
pub type IdaxDebuggerProcessStartedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        module_info: *const IdaxDebuggerModuleInfo,
    ),
>;
pub type IdaxDebuggerProcessExitedCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, exit_code: ::std::os::raw::c_int),
>;
pub type IdaxDebuggerProcessSuspendedCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, address: u64)>;
pub type IdaxDebuggerBreakpointHitCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        thread_id: ::std::os::raw::c_int,
        address: u64,
    ),
>;
pub type IdaxDebuggerTraceCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        thread_id: ::std::os::raw::c_int,
        ip: u64,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxDebuggerExceptionCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        exception_info: *const IdaxDebuggerExceptionInfo,
    ),
>;
pub type IdaxDebuggerThreadStartedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        thread_id: ::std::os::raw::c_int,
        thread_name: *const ::std::os::raw::c_char,
    ),
>;
pub type IdaxDebuggerThreadExitedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        thread_id: ::std::os::raw::c_int,
        exit_code: ::std::os::raw::c_int,
    ),
>;
pub type IdaxDebuggerLibraryLoadedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        module_info: *const IdaxDebuggerModuleInfo,
    ),
>;
pub type IdaxDebuggerLibraryUnloadedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        library_name: *const ::std::os::raw::c_char,
    ),
>;
pub type IdaxDebuggerBreakpointChangedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        change: ::std::os::raw::c_int,
        address: u64,
    ),
>;
pub type IdaxDebuggerAppcallExecutorCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        request: *const IdaxDebuggerAppcallRequest,
        out_result: *mut IdaxDebuggerAppcallResult,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxDebuggerAppcallExecutorCleanupCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void)>;
unsafe extern "C" {
    pub fn idax_thread_info_free(info: *mut IdaxThreadInfo);
}
unsafe extern "C" {
    pub fn idax_backend_info_free(info: *mut IdaxBackendInfo);
}
unsafe extern "C" {
    pub fn idax_debugger_register_info_free(info: *mut IdaxDebuggerRegisterInfo);
}
unsafe extern "C" {
    pub fn idax_debugger_appcall_value_free(value: *mut IdaxDebuggerAppcallValue);
}
unsafe extern "C" {
    pub fn idax_debugger_appcall_result_free(result: *mut IdaxDebuggerAppcallResult);
}
unsafe extern "C" {
    pub fn idax_debugger_available_backends(
        out: *mut *mut IdaxBackendInfo,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_current_backend(out: *mut IdaxBackendInfo) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_load_backend(
        name: *const ::std::os::raw::c_char,
        use_remote: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_start(
        path: *const ::std::os::raw::c_char,
        args: *const ::std::os::raw::c_char,
        working_dir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_start(
        path: *const ::std::os::raw::c_char,
        args: *const ::std::os::raw::c_char,
        working_dir: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_attach(pid: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_attach(
        pid: ::std::os::raw::c_int,
        event_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_detach() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_terminate() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_suspend() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_resume() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_step_into() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_step_over() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_step_out() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_run_to(address: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_state(out: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_instruction_pointer(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_stack_pointer(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_register_value(
        reg_name: *const ::std::os::raw::c_char,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_set_register(
        reg_name: *const ::std::os::raw::c_char,
        value: u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_add_breakpoint(address: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_remove_breakpoint(address: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_has_breakpoint(
        address: u64,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_read_memory(
        address: u64,
        size: u64,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_write_memory(
        address: u64,
        data: *const u8,
        len: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_is_request_running() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_run_requests() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_suspend() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_resume() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_step_into() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_step_over() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_step_out() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_run_to(address: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_thread_count(out: *mut usize) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_thread_id_at(
        index: usize,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_thread_name_at(
        index: usize,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_current_thread_id(
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_threads(
        out: *mut *mut IdaxThreadInfo,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_select_thread(thread_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_select_thread(
        thread_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_suspend_thread(thread_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_suspend_thread(
        thread_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_resume_thread(thread_id: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_request_resume_thread(
        thread_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_register_info(
        register_name: *const ::std::os::raw::c_char,
        out: *mut IdaxDebuggerRegisterInfo,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_is_integer_register(
        register_name: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_is_floating_register(
        register_name: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_is_custom_register(
        register_name: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_appcall(
        request: *const IdaxDebuggerAppcallRequest,
        out: *mut IdaxDebuggerAppcallResult,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_cleanup_appcall(
        has_thread_id: ::std::os::raw::c_int,
        thread_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_register_executor(
        name: *const ::std::os::raw::c_char,
        callback: IdaxDebuggerAppcallExecutorCallback,
        cleanup: IdaxDebuggerAppcallExecutorCleanupCallback,
        context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_unregister_executor(
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_appcall_with_executor(
        name: *const ::std::os::raw::c_char,
        request: *const IdaxDebuggerAppcallRequest,
        out: *mut IdaxDebuggerAppcallResult,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_process_started(
        callback: IdaxDebuggerProcessStartedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_process_exited(
        callback: IdaxDebuggerProcessExitedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_process_suspended(
        callback: IdaxDebuggerProcessSuspendedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_breakpoint_hit(
        callback: IdaxDebuggerBreakpointHitCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_trace(
        callback: IdaxDebuggerTraceCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_exception(
        callback: IdaxDebuggerExceptionCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_thread_started(
        callback: IdaxDebuggerThreadStartedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_thread_exited(
        callback: IdaxDebuggerThreadExitedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_library_loaded(
        callback: IdaxDebuggerLibraryLoadedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_library_unloaded(
        callback: IdaxDebuggerLibraryUnloadedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_on_breakpoint_changed(
        callback: IdaxDebuggerBreakpointChangedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_debugger_unsubscribe(token: u64) -> ::std::os::raw::c_int;
}
#[doc = " Opaque handle to a decompiled function. Must be freed with idax_decompiled_free()."]
pub type IdaxDecompiledHandle = *mut ::std::os::raw::c_void;
pub type IdaxDecompilerToken = u64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxDecompilerMaturityEvent {
    pub function_address: u64,
    pub new_maturity: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerMaturityEvent"]
        [::std::mem::size_of::<IdaxDecompilerMaturityEvent>() - 16usize];
    ["Alignment of IdaxDecompilerMaturityEvent"]
        [::std::mem::align_of::<IdaxDecompilerMaturityEvent>() - 8usize];
    ["Offset of field: IdaxDecompilerMaturityEvent::function_address"]
        [::std::mem::offset_of!(IdaxDecompilerMaturityEvent, function_address) - 0usize];
    ["Offset of field: IdaxDecompilerMaturityEvent::new_maturity"]
        [::std::mem::offset_of!(IdaxDecompilerMaturityEvent, new_maturity) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDecompilerPseudocodeEvent {
    pub function_address: u64,
    pub cfunc_handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerPseudocodeEvent"]
        [::std::mem::size_of::<IdaxDecompilerPseudocodeEvent>() - 16usize];
    ["Alignment of IdaxDecompilerPseudocodeEvent"]
        [::std::mem::align_of::<IdaxDecompilerPseudocodeEvent>() - 8usize];
    ["Offset of field: IdaxDecompilerPseudocodeEvent::function_address"]
        [::std::mem::offset_of!(IdaxDecompilerPseudocodeEvent, function_address) - 0usize];
    ["Offset of field: IdaxDecompilerPseudocodeEvent::cfunc_handle"]
        [::std::mem::offset_of!(IdaxDecompilerPseudocodeEvent, cfunc_handle) - 8usize];
};
impl Default for IdaxDecompilerPseudocodeEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDecompilerCursorPositionEvent {
    pub function_address: u64,
    pub cursor_address: u64,
    pub view_handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerCursorPositionEvent"]
        [::std::mem::size_of::<IdaxDecompilerCursorPositionEvent>() - 24usize];
    ["Alignment of IdaxDecompilerCursorPositionEvent"]
        [::std::mem::align_of::<IdaxDecompilerCursorPositionEvent>() - 8usize];
    ["Offset of field: IdaxDecompilerCursorPositionEvent::function_address"]
        [::std::mem::offset_of!(IdaxDecompilerCursorPositionEvent, function_address) - 0usize];
    ["Offset of field: IdaxDecompilerCursorPositionEvent::cursor_address"]
        [::std::mem::offset_of!(IdaxDecompilerCursorPositionEvent, cursor_address) - 8usize];
    ["Offset of field: IdaxDecompilerCursorPositionEvent::view_handle"]
        [::std::mem::offset_of!(IdaxDecompilerCursorPositionEvent, view_handle) - 16usize];
};
impl Default for IdaxDecompilerCursorPositionEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxDecompilerHintRequestEvent {
    pub function_address: u64,
    pub item_address: u64,
    pub view_handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerHintRequestEvent"]
        [::std::mem::size_of::<IdaxDecompilerHintRequestEvent>() - 24usize];
    ["Alignment of IdaxDecompilerHintRequestEvent"]
        [::std::mem::align_of::<IdaxDecompilerHintRequestEvent>() - 8usize];
    ["Offset of field: IdaxDecompilerHintRequestEvent::function_address"]
        [::std::mem::offset_of!(IdaxDecompilerHintRequestEvent, function_address) - 0usize];
    ["Offset of field: IdaxDecompilerHintRequestEvent::item_address"]
        [::std::mem::offset_of!(IdaxDecompilerHintRequestEvent, item_address) - 8usize];
    ["Offset of field: IdaxDecompilerHintRequestEvent::view_handle"]
        [::std::mem::offset_of!(IdaxDecompilerHintRequestEvent, view_handle) - 16usize];
};
impl Default for IdaxDecompilerHintRequestEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type IdaxDecompilerMaturityChangedCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxDecompilerMaturityEvent,
    ),
>;
pub type IdaxDecompilerPseudocodeCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxDecompilerPseudocodeEvent,
    ),
>;
pub type IdaxDecompilerCursorPositionCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxDecompilerCursorPositionEvent,
    ),
>;
pub type IdaxDecompilerCreateHintCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxDecompilerHintRequestEvent,
        out_text: *mut *const ::std::os::raw::c_char,
        out_lines: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxDecompilerItemAtPosition {
    pub type_: ::std::os::raw::c_int,
    pub address: u64,
    pub item_index: ::std::os::raw::c_int,
    pub is_expression: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerItemAtPosition"]
        [::std::mem::size_of::<IdaxDecompilerItemAtPosition>() - 24usize];
    ["Alignment of IdaxDecompilerItemAtPosition"]
        [::std::mem::align_of::<IdaxDecompilerItemAtPosition>() - 8usize];
    ["Offset of field: IdaxDecompilerItemAtPosition::type_"]
        [::std::mem::offset_of!(IdaxDecompilerItemAtPosition, type_) - 0usize];
    ["Offset of field: IdaxDecompilerItemAtPosition::address"]
        [::std::mem::offset_of!(IdaxDecompilerItemAtPosition, address) - 8usize];
    ["Offset of field: IdaxDecompilerItemAtPosition::item_index"]
        [::std::mem::offset_of!(IdaxDecompilerItemAtPosition, item_index) - 16usize];
    ["Offset of field: IdaxDecompilerItemAtPosition::is_expression"]
        [::std::mem::offset_of!(IdaxDecompilerItemAtPosition, is_expression) - 20usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxDecompilerExpressionInfo {
    pub type_: ::std::os::raw::c_int,
    pub address: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerExpressionInfo"]
        [::std::mem::size_of::<IdaxDecompilerExpressionInfo>() - 16usize];
    ["Alignment of IdaxDecompilerExpressionInfo"]
        [::std::mem::align_of::<IdaxDecompilerExpressionInfo>() - 8usize];
    ["Offset of field: IdaxDecompilerExpressionInfo::type_"]
        [::std::mem::offset_of!(IdaxDecompilerExpressionInfo, type_) - 0usize];
    ["Offset of field: IdaxDecompilerExpressionInfo::address"]
        [::std::mem::offset_of!(IdaxDecompilerExpressionInfo, address) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxDecompilerStatementInfo {
    pub type_: ::std::os::raw::c_int,
    pub address: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxDecompilerStatementInfo"]
        [::std::mem::size_of::<IdaxDecompilerStatementInfo>() - 16usize];
    ["Alignment of IdaxDecompilerStatementInfo"]
        [::std::mem::align_of::<IdaxDecompilerStatementInfo>() - 8usize];
    ["Offset of field: IdaxDecompilerStatementInfo::type_"]
        [::std::mem::offset_of!(IdaxDecompilerStatementInfo, type_) - 0usize];
    ["Offset of field: IdaxDecompilerStatementInfo::address"]
        [::std::mem::offset_of!(IdaxDecompilerStatementInfo, address) - 8usize];
};
pub type IdaxDecompilerExpressionVisitor = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        expression: *const IdaxDecompilerExpressionInfo,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxDecompilerStatementVisitor = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        statement: *const IdaxDecompilerStatementInfo,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn idax_decompiler_available(out: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_decompile(
        ea: u64,
        out: *mut IdaxDecompiledHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_free(handle: IdaxDecompiledHandle);
}
unsafe extern "C" {
    pub fn idax_decompiler_on_maturity_changed(
        callback: IdaxDecompilerMaturityChangedCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut IdaxDecompilerToken,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_on_func_printed(
        callback: IdaxDecompilerPseudocodeCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut IdaxDecompilerToken,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_on_refresh_pseudocode(
        callback: IdaxDecompilerPseudocodeCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut IdaxDecompilerToken,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_on_curpos_changed(
        callback: IdaxDecompilerCursorPositionCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut IdaxDecompilerToken,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_on_create_hint(
        callback: IdaxDecompilerCreateHintCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut IdaxDecompilerToken,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_unsubscribe(token: IdaxDecompilerToken) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_pseudocode(
        handle: IdaxDecompiledHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_microcode(
        handle: IdaxDecompiledHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_lines(
        handle: IdaxDecompiledHandle,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_lines_free(lines: *mut *mut ::std::os::raw::c_char, count: usize);
}
unsafe extern "C" {
    pub fn idax_decompiled_raw_lines(
        handle: IdaxDecompiledHandle,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_set_raw_line(
        handle: IdaxDecompiledHandle,
        line_index: usize,
        tagged_text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_header_line_count(
        handle: IdaxDecompiledHandle,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_declaration(
        handle: IdaxDecompiledHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_entry_address(
        handle: IdaxDecompiledHandle,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxLocalVariable {
    pub name: *mut ::std::os::raw::c_char,
    pub type_name: *mut ::std::os::raw::c_char,
    pub is_argument: ::std::os::raw::c_int,
    pub width: ::std::os::raw::c_int,
    pub has_user_name: ::std::os::raw::c_int,
    #[doc = "< 0=unknown, 1=register, 2=stack"]
    pub storage: ::std::os::raw::c_int,
    pub comment: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxLocalVariable"][::std::mem::size_of::<IdaxLocalVariable>() - 40usize];
    ["Alignment of IdaxLocalVariable"][::std::mem::align_of::<IdaxLocalVariable>() - 8usize];
    ["Offset of field: IdaxLocalVariable::name"]
        [::std::mem::offset_of!(IdaxLocalVariable, name) - 0usize];
    ["Offset of field: IdaxLocalVariable::type_name"]
        [::std::mem::offset_of!(IdaxLocalVariable, type_name) - 8usize];
    ["Offset of field: IdaxLocalVariable::is_argument"]
        [::std::mem::offset_of!(IdaxLocalVariable, is_argument) - 16usize];
    ["Offset of field: IdaxLocalVariable::width"]
        [::std::mem::offset_of!(IdaxLocalVariable, width) - 20usize];
    ["Offset of field: IdaxLocalVariable::has_user_name"]
        [::std::mem::offset_of!(IdaxLocalVariable, has_user_name) - 24usize];
    ["Offset of field: IdaxLocalVariable::storage"]
        [::std::mem::offset_of!(IdaxLocalVariable, storage) - 28usize];
    ["Offset of field: IdaxLocalVariable::comment"]
        [::std::mem::offset_of!(IdaxLocalVariable, comment) - 32usize];
};
impl Default for IdaxLocalVariable {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_local_variable_free(var: *mut IdaxLocalVariable);
}
unsafe extern "C" {
    pub fn idax_decompiled_variables_free(vars: *mut IdaxLocalVariable, count: usize);
}
unsafe extern "C" {
    pub fn idax_decompiled_variable_count(
        handle: IdaxDecompiledHandle,
        out: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_variables(
        handle: IdaxDecompiledHandle,
        out: *mut *mut IdaxLocalVariable,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_rename_variable(
        handle: IdaxDecompiledHandle,
        old_name: *const ::std::os::raw::c_char,
        new_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_set_comment(
        handle: IdaxDecompiledHandle,
        ea: u64,
        text: *const ::std::os::raw::c_char,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_get_comment(
        handle: IdaxDecompiledHandle,
        ea: u64,
        position: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_save_comments(handle: IdaxDecompiledHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiled_line_to_address(
        handle: IdaxDecompiledHandle,
        line_number: ::std::os::raw::c_int,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_mark_dirty(
        func_ea: u64,
        close_views: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_mark_dirty_with_callers(
        func_ea: u64,
        close_views: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_view_from_host(
        view_host: *mut ::std::os::raw::c_void,
        out_function_ea: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_view_for_function(
        address: u64,
        out_function_ea: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_current_view(out_function_ea: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_raw_pseudocode_lines(
        cfunc_handle: *mut ::std::os::raw::c_void,
        out: *mut *mut *mut ::std::os::raw::c_char,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_pseudocode_lines_free(
        lines: *mut *mut ::std::os::raw::c_char,
        count: usize,
    );
}
unsafe extern "C" {
    pub fn idax_decompiler_set_pseudocode_line(
        cfunc_handle: *mut ::std::os::raw::c_void,
        line_index: usize,
        tagged_text: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_pseudocode_header_line_count(
        cfunc_handle: *mut ::std::os::raw::c_void,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_item_at_position(
        cfunc_handle: *mut ::std::os::raw::c_void,
        tagged_line: *const ::std::os::raw::c_char,
        char_index: ::std::os::raw::c_int,
        out: *mut IdaxDecompilerItemAtPosition,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_item_type_name(
        item_type: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_for_each_expression(
        handle: IdaxDecompiledHandle,
        callback: IdaxDecompilerExpressionVisitor,
        context: *mut ::std::os::raw::c_void,
        out_visited: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_for_each_item(
        handle: IdaxDecompiledHandle,
        expression_callback: IdaxDecompilerExpressionVisitor,
        statement_callback: IdaxDecompilerStatementVisitor,
        context: *mut ::std::os::raw::c_void,
        out_visited: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
pub type IdaxMicrocodeMatchCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        address: u64,
        itype: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxMicrocodeApplyCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        mctx: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn idax_decompiler_register_microcode_filter(
        match_cb: IdaxMicrocodeMatchCallback,
        apply_cb: IdaxMicrocodeApplyCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_decompiler_unregister_microcode_filter(token: u64) -> ::std::os::raw::c_int;
}
#[doc = " Opaque handle to a storage node. Must be freed with idax_storage_node_free()."]
pub type IdaxNodeHandle = *mut ::std::os::raw::c_void;
unsafe extern "C" {
    pub fn idax_storage_node_open(
        name: *const ::std::os::raw::c_char,
        create: ::std::os::raw::c_int,
        out: *mut IdaxNodeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_open_by_id(
        node_id: u64,
        out: *mut IdaxNodeHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_free(node: IdaxNodeHandle);
}
unsafe extern "C" {
    pub fn idax_storage_node_id(node: IdaxNodeHandle, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_name(
        node: IdaxNodeHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_alt_get(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_alt_set(
        node: IdaxNodeHandle,
        index: u64,
        value: u64,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_alt_remove(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_sup_get(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_sup_set(
        node: IdaxNodeHandle,
        index: u64,
        data: *const u8,
        len: usize,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_hash_get(
        node: IdaxNodeHandle,
        key: *const ::std::os::raw::c_char,
        tag: u8,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_hash_set(
        node: IdaxNodeHandle,
        key: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_blob_get(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
        out: *mut *mut u8,
        out_len: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_blob_set(
        node: IdaxNodeHandle,
        index: u64,
        data: *const u8,
        len: usize,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_blob_remove(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_blob_size(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
        out: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_storage_node_blob_string(
        node: IdaxNodeHandle,
        index: u64,
        tag: u8,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
#[doc = " Opaque handle to a graph. Must be freed with idax_graph_free()."]
pub type IdaxGraphHandle = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxGraphNodeInfo {
    pub background_color: u32,
    pub frame_color: u32,
    pub address: u64,
    #[doc = "< malloc'd, free with idax_free_string"]
    pub text: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxGraphNodeInfo"][::std::mem::size_of::<IdaxGraphNodeInfo>() - 24usize];
    ["Alignment of IdaxGraphNodeInfo"][::std::mem::align_of::<IdaxGraphNodeInfo>() - 8usize];
    ["Offset of field: IdaxGraphNodeInfo::background_color"]
        [::std::mem::offset_of!(IdaxGraphNodeInfo, background_color) - 0usize];
    ["Offset of field: IdaxGraphNodeInfo::frame_color"]
        [::std::mem::offset_of!(IdaxGraphNodeInfo, frame_color) - 4usize];
    ["Offset of field: IdaxGraphNodeInfo::address"]
        [::std::mem::offset_of!(IdaxGraphNodeInfo, address) - 8usize];
    ["Offset of field: IdaxGraphNodeInfo::text"]
        [::std::mem::offset_of!(IdaxGraphNodeInfo, text) - 16usize];
};
impl Default for IdaxGraphNodeInfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxGraphEdgeInfo {
    pub color: u32,
    pub width: ::std::os::raw::c_int,
    pub source_port: ::std::os::raw::c_int,
    pub target_port: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxGraphEdgeInfo"][::std::mem::size_of::<IdaxGraphEdgeInfo>() - 16usize];
    ["Alignment of IdaxGraphEdgeInfo"][::std::mem::align_of::<IdaxGraphEdgeInfo>() - 4usize];
    ["Offset of field: IdaxGraphEdgeInfo::color"]
        [::std::mem::offset_of!(IdaxGraphEdgeInfo, color) - 0usize];
    ["Offset of field: IdaxGraphEdgeInfo::width"]
        [::std::mem::offset_of!(IdaxGraphEdgeInfo, width) - 4usize];
    ["Offset of field: IdaxGraphEdgeInfo::source_port"]
        [::std::mem::offset_of!(IdaxGraphEdgeInfo, source_port) - 8usize];
    ["Offset of field: IdaxGraphEdgeInfo::target_port"]
        [::std::mem::offset_of!(IdaxGraphEdgeInfo, target_port) - 12usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxGraphEdge {
    pub source: ::std::os::raw::c_int,
    pub target: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxGraphEdge"][::std::mem::size_of::<IdaxGraphEdge>() - 8usize];
    ["Alignment of IdaxGraphEdge"][::std::mem::align_of::<IdaxGraphEdge>() - 4usize];
    ["Offset of field: IdaxGraphEdge::source"]
        [::std::mem::offset_of!(IdaxGraphEdge, source) - 0usize];
    ["Offset of field: IdaxGraphEdge::target"]
        [::std::mem::offset_of!(IdaxGraphEdge, target) - 4usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxAddressRange {
    pub start: u64,
    pub end: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxAddressRange"][::std::mem::size_of::<IdaxAddressRange>() - 16usize];
    ["Alignment of IdaxAddressRange"][::std::mem::align_of::<IdaxAddressRange>() - 8usize];
    ["Offset of field: IdaxAddressRange::start"]
        [::std::mem::offset_of!(IdaxAddressRange, start) - 0usize];
    ["Offset of field: IdaxAddressRange::end"]
        [::std::mem::offset_of!(IdaxAddressRange, end) - 8usize];
};
pub type IdaxGraphOnRefresh = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        graph: IdaxGraphHandle,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnNodeText = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        node: ::std::os::raw::c_int,
        out_text: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnNodeColor = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, node: ::std::os::raw::c_int) -> u32,
>;
pub type IdaxGraphOnClicked = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        node: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnDoubleClicked = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        node: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnHint = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        node: ::std::os::raw::c_int,
        out_hint: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnCreatingGroup = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        nodes: *const ::std::os::raw::c_int,
        count: usize,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxGraphOnDestroyed =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxGraphCallbacks {
    pub context: *mut ::std::os::raw::c_void,
    pub on_refresh: IdaxGraphOnRefresh,
    pub on_node_text: IdaxGraphOnNodeText,
    pub on_node_color: IdaxGraphOnNodeColor,
    pub on_clicked: IdaxGraphOnClicked,
    pub on_double_clicked: IdaxGraphOnDoubleClicked,
    pub on_hint: IdaxGraphOnHint,
    pub on_creating_group: IdaxGraphOnCreatingGroup,
    pub on_destroyed: IdaxGraphOnDestroyed,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxGraphCallbacks"][::std::mem::size_of::<IdaxGraphCallbacks>() - 72usize];
    ["Alignment of IdaxGraphCallbacks"][::std::mem::align_of::<IdaxGraphCallbacks>() - 8usize];
    ["Offset of field: IdaxGraphCallbacks::context"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, context) - 0usize];
    ["Offset of field: IdaxGraphCallbacks::on_refresh"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_refresh) - 8usize];
    ["Offset of field: IdaxGraphCallbacks::on_node_text"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_node_text) - 16usize];
    ["Offset of field: IdaxGraphCallbacks::on_node_color"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_node_color) - 24usize];
    ["Offset of field: IdaxGraphCallbacks::on_clicked"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_clicked) - 32usize];
    ["Offset of field: IdaxGraphCallbacks::on_double_clicked"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_double_clicked) - 40usize];
    ["Offset of field: IdaxGraphCallbacks::on_hint"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_hint) - 48usize];
    ["Offset of field: IdaxGraphCallbacks::on_creating_group"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_creating_group) - 56usize];
    ["Offset of field: IdaxGraphCallbacks::on_destroyed"]
        [::std::mem::offset_of!(IdaxGraphCallbacks, on_destroyed) - 64usize];
};
impl Default for IdaxGraphCallbacks {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_graph_create() -> IdaxGraphHandle;
}
unsafe extern "C" {
    pub fn idax_graph_free(graph: IdaxGraphHandle);
}
unsafe extern "C" {
    pub fn idax_graph_add_node(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_remove_node(
        graph: IdaxGraphHandle,
        node: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_total_node_count(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_visible_node_count(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_node_exists(
        graph: IdaxGraphHandle,
        node: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_add_edge(
        graph: IdaxGraphHandle,
        source: ::std::os::raw::c_int,
        target: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_add_edge_with_info(
        graph: IdaxGraphHandle,
        source: ::std::os::raw::c_int,
        target: ::std::os::raw::c_int,
        info: *const IdaxGraphEdgeInfo,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_remove_edge(
        graph: IdaxGraphHandle,
        source: ::std::os::raw::c_int,
        target: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_replace_edge(
        graph: IdaxGraphHandle,
        from: ::std::os::raw::c_int,
        to: ::std::os::raw::c_int,
        new_from: ::std::os::raw::c_int,
        new_to: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_clear(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_successors(
        graph: IdaxGraphHandle,
        node: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_int,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_predecessors(
        graph: IdaxGraphHandle,
        node: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_int,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_visible_nodes(
        graph: IdaxGraphHandle,
        out: *mut *mut ::std::os::raw::c_int,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_edges(
        graph: IdaxGraphHandle,
        out: *mut *mut IdaxGraphEdge,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_path_exists(
        graph: IdaxGraphHandle,
        source: ::std::os::raw::c_int,
        target: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_create_group(
        graph: IdaxGraphHandle,
        nodes: *const ::std::os::raw::c_int,
        count: usize,
        out_group: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_delete_group(
        graph: IdaxGraphHandle,
        group: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_set_group_expanded(
        graph: IdaxGraphHandle,
        group: ::std::os::raw::c_int,
        expanded: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_is_group(
        graph: IdaxGraphHandle,
        node: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_is_collapsed(
        graph: IdaxGraphHandle,
        group: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_group_members(
        graph: IdaxGraphHandle,
        group: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_int,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_set_layout(
        graph: IdaxGraphHandle,
        layout: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_current_layout(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_redo_layout(graph: IdaxGraphHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_show_graph(
        title: *const ::std::os::raw::c_char,
        graph: IdaxGraphHandle,
        callbacks: *const IdaxGraphCallbacks,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_refresh_graph(title: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_has_graph_viewer(
        title: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_is_graph_viewer_visible(
        title: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_activate_graph_viewer(
        title: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_close_graph_viewer(
        title: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_free_node_ids(p: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn idax_graph_free_edges(p: *mut IdaxGraphEdge);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxBasicBlock {
    pub start: u64,
    pub end: u64,
    pub type_: ::std::os::raw::c_int,
    pub successors: *mut ::std::os::raw::c_int,
    pub successor_count: usize,
    pub predecessors: *mut ::std::os::raw::c_int,
    pub predecessor_count: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxBasicBlock"][::std::mem::size_of::<IdaxBasicBlock>() - 56usize];
    ["Alignment of IdaxBasicBlock"][::std::mem::align_of::<IdaxBasicBlock>() - 8usize];
    ["Offset of field: IdaxBasicBlock::start"]
        [::std::mem::offset_of!(IdaxBasicBlock, start) - 0usize];
    ["Offset of field: IdaxBasicBlock::end"][::std::mem::offset_of!(IdaxBasicBlock, end) - 8usize];
    ["Offset of field: IdaxBasicBlock::type_"]
        [::std::mem::offset_of!(IdaxBasicBlock, type_) - 16usize];
    ["Offset of field: IdaxBasicBlock::successors"]
        [::std::mem::offset_of!(IdaxBasicBlock, successors) - 24usize];
    ["Offset of field: IdaxBasicBlock::successor_count"]
        [::std::mem::offset_of!(IdaxBasicBlock, successor_count) - 32usize];
    ["Offset of field: IdaxBasicBlock::predecessors"]
        [::std::mem::offset_of!(IdaxBasicBlock, predecessors) - 40usize];
    ["Offset of field: IdaxBasicBlock::predecessor_count"]
        [::std::mem::offset_of!(IdaxBasicBlock, predecessor_count) - 48usize];
};
impl Default for IdaxBasicBlock {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn idax_basic_block_free(block: *mut IdaxBasicBlock);
}
unsafe extern "C" {
    pub fn idax_graph_flowchart(
        function_address: u64,
        out: *mut *mut IdaxBasicBlock,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_flowchart_for_ranges(
        ranges: *const IdaxAddressRange,
        range_count: usize,
        out: *mut *mut IdaxBasicBlock,
        count: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_graph_flowchart_free(blocks: *mut IdaxBasicBlock, count: usize);
}
unsafe extern "C" {
    pub fn idax_ui_message(text: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn idax_ui_warning(text: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn idax_ui_info(text: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn idax_ui_ask_yn(
        question: *const ::std::os::raw::c_char,
        default_yes: ::std::os::raw::c_int,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_ask_string(
        prompt: *const ::std::os::raw::c_char,
        default_value: *const ::std::os::raw::c_char,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_ask_file(
        for_saving: ::std::os::raw::c_int,
        default_path: *const ::std::os::raw::c_char,
        prompt: *const ::std::os::raw::c_char,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_ask_address(
        prompt: *const ::std::os::raw::c_char,
        default_value: u64,
        out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_ask_long(
        prompt: *const ::std::os::raw::c_char,
        default_value: i64,
        out: *mut i64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_jump_to(address: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_screen_address(out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_selection(start_out: *mut u64, end_out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_refresh_all_views();
}
unsafe extern "C" {
    pub fn idax_ui_user_directory(out: *mut *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
#[doc = " Opaque widget handle."]
pub type IdaxWidgetHandle = *mut ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxShowWidgetOptions {
    pub position: ::std::os::raw::c_int,
    pub restore_previous: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxShowWidgetOptions"][::std::mem::size_of::<IdaxShowWidgetOptions>() - 8usize];
    ["Alignment of IdaxShowWidgetOptions"]
        [::std::mem::align_of::<IdaxShowWidgetOptions>() - 4usize];
    ["Offset of field: IdaxShowWidgetOptions::position"]
        [::std::mem::offset_of!(IdaxShowWidgetOptions, position) - 0usize];
    ["Offset of field: IdaxShowWidgetOptions::restore_previous"]
        [::std::mem::offset_of!(IdaxShowWidgetOptions, restore_previous) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxUIEvent {
    pub kind: ::std::os::raw::c_int,
    pub address: u64,
    pub previous_address: u64,
    pub widget: *mut ::std::os::raw::c_void,
    pub previous_widget: *mut ::std::os::raw::c_void,
    pub widget_id: u64,
    pub previous_widget_id: u64,
    pub is_new_database: ::std::os::raw::c_int,
    pub startup_script: *const ::std::os::raw::c_char,
    pub widget_title: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxUIEvent"][::std::mem::size_of::<IdaxUIEvent>() - 80usize];
    ["Alignment of IdaxUIEvent"][::std::mem::align_of::<IdaxUIEvent>() - 8usize];
    ["Offset of field: IdaxUIEvent::kind"][::std::mem::offset_of!(IdaxUIEvent, kind) - 0usize];
    ["Offset of field: IdaxUIEvent::address"]
        [::std::mem::offset_of!(IdaxUIEvent, address) - 8usize];
    ["Offset of field: IdaxUIEvent::previous_address"]
        [::std::mem::offset_of!(IdaxUIEvent, previous_address) - 16usize];
    ["Offset of field: IdaxUIEvent::widget"][::std::mem::offset_of!(IdaxUIEvent, widget) - 24usize];
    ["Offset of field: IdaxUIEvent::previous_widget"]
        [::std::mem::offset_of!(IdaxUIEvent, previous_widget) - 32usize];
    ["Offset of field: IdaxUIEvent::widget_id"]
        [::std::mem::offset_of!(IdaxUIEvent, widget_id) - 40usize];
    ["Offset of field: IdaxUIEvent::previous_widget_id"]
        [::std::mem::offset_of!(IdaxUIEvent, previous_widget_id) - 48usize];
    ["Offset of field: IdaxUIEvent::is_new_database"]
        [::std::mem::offset_of!(IdaxUIEvent, is_new_database) - 56usize];
    ["Offset of field: IdaxUIEvent::startup_script"]
        [::std::mem::offset_of!(IdaxUIEvent, startup_script) - 64usize];
    ["Offset of field: IdaxUIEvent::widget_title"]
        [::std::mem::offset_of!(IdaxUIEvent, widget_title) - 72usize];
};
impl Default for IdaxUIEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxPopupEvent {
    pub widget: *mut ::std::os::raw::c_void,
    pub widget_id: u64,
    pub widget_title: *const ::std::os::raw::c_char,
    pub popup: *mut ::std::os::raw::c_void,
    pub widget_type: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxPopupEvent"][::std::mem::size_of::<IdaxPopupEvent>() - 40usize];
    ["Alignment of IdaxPopupEvent"][::std::mem::align_of::<IdaxPopupEvent>() - 8usize];
    ["Offset of field: IdaxPopupEvent::widget"]
        [::std::mem::offset_of!(IdaxPopupEvent, widget) - 0usize];
    ["Offset of field: IdaxPopupEvent::widget_id"]
        [::std::mem::offset_of!(IdaxPopupEvent, widget_id) - 8usize];
    ["Offset of field: IdaxPopupEvent::widget_title"]
        [::std::mem::offset_of!(IdaxPopupEvent, widget_title) - 16usize];
    ["Offset of field: IdaxPopupEvent::popup"]
        [::std::mem::offset_of!(IdaxPopupEvent, popup) - 24usize];
    ["Offset of field: IdaxPopupEvent::widget_type"]
        [::std::mem::offset_of!(IdaxPopupEvent, widget_type) - 32usize];
};
impl Default for IdaxPopupEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxLineRenderEntry {
    pub line_number: ::std::os::raw::c_int,
    pub bg_color: u32,
    pub start_column: ::std::os::raw::c_int,
    pub length: ::std::os::raw::c_int,
    pub character_range: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxLineRenderEntry"][::std::mem::size_of::<IdaxLineRenderEntry>() - 20usize];
    ["Alignment of IdaxLineRenderEntry"][::std::mem::align_of::<IdaxLineRenderEntry>() - 4usize];
    ["Offset of field: IdaxLineRenderEntry::line_number"]
        [::std::mem::offset_of!(IdaxLineRenderEntry, line_number) - 0usize];
    ["Offset of field: IdaxLineRenderEntry::bg_color"]
        [::std::mem::offset_of!(IdaxLineRenderEntry, bg_color) - 4usize];
    ["Offset of field: IdaxLineRenderEntry::start_column"]
        [::std::mem::offset_of!(IdaxLineRenderEntry, start_column) - 8usize];
    ["Offset of field: IdaxLineRenderEntry::length"]
        [::std::mem::offset_of!(IdaxLineRenderEntry, length) - 12usize];
    ["Offset of field: IdaxLineRenderEntry::character_range"]
        [::std::mem::offset_of!(IdaxLineRenderEntry, character_range) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IdaxRenderingEvent {
    pub widget: *mut ::std::os::raw::c_void,
    pub widget_id: u64,
    pub widget_type: ::std::os::raw::c_int,
    pub opaque: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxRenderingEvent"][::std::mem::size_of::<IdaxRenderingEvent>() - 32usize];
    ["Alignment of IdaxRenderingEvent"][::std::mem::align_of::<IdaxRenderingEvent>() - 8usize];
    ["Offset of field: IdaxRenderingEvent::widget"]
        [::std::mem::offset_of!(IdaxRenderingEvent, widget) - 0usize];
    ["Offset of field: IdaxRenderingEvent::widget_id"]
        [::std::mem::offset_of!(IdaxRenderingEvent, widget_id) - 8usize];
    ["Offset of field: IdaxRenderingEvent::widget_type"]
        [::std::mem::offset_of!(IdaxRenderingEvent, widget_type) - 16usize];
    ["Offset of field: IdaxRenderingEvent::opaque"]
        [::std::mem::offset_of!(IdaxRenderingEvent, opaque) - 24usize];
};
impl Default for IdaxRenderingEvent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type IdaxUITimerCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
pub type IdaxUIEventExCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, event: *const IdaxUIEvent),
>;
pub type IdaxUIEventFilterCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event: *const IdaxUIEvent,
    ) -> ::std::os::raw::c_int,
>;
pub type IdaxUIPopupCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, event: *const IdaxPopupEvent),
>;
pub type IdaxUIActionCallback =
    ::std::option::Option<unsafe extern "C" fn(context: *mut ::std::os::raw::c_void)>;
pub type IdaxUIRenderingCallback = ::std::option::Option<
    unsafe extern "C" fn(context: *mut ::std::os::raw::c_void, event: *mut IdaxRenderingEvent),
>;
pub type IdaxWidgetHostCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        host: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
unsafe extern "C" {
    pub fn idax_ui_create_widget(
        title: *const ::std::os::raw::c_char,
        out: *mut IdaxWidgetHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_show_widget(
        widget: IdaxWidgetHandle,
        position: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_show_widget_ex(
        widget: IdaxWidgetHandle,
        options: *const IdaxShowWidgetOptions,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_activate_widget(widget: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_close_widget(widget: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_find_widget(
        title: *const ::std::os::raw::c_char,
        out: *mut IdaxWidgetHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_is_widget_visible(widget: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_widget_type(widget: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_widget_title(
        widget: IdaxWidgetHandle,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_widget_id(widget: IdaxWidgetHandle, out: *mut u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_widget_host(
        widget: IdaxWidgetHandle,
        out: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_with_widget_host(
        widget: IdaxWidgetHandle,
        callback: IdaxWidgetHostCallback,
        context: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_ask_form(
        markup: *const ::std::os::raw::c_char,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_create_custom_viewer(
        title: *const ::std::os::raw::c_char,
        lines: *const *const ::std::os::raw::c_char,
        line_count: usize,
        out: *mut IdaxWidgetHandle,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_set_custom_viewer_lines(
        viewer: IdaxWidgetHandle,
        lines: *const *const ::std::os::raw::c_char,
        line_count: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_custom_viewer_line_count(
        viewer: IdaxWidgetHandle,
        out: *mut usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_custom_viewer_jump_to_line(
        viewer: IdaxWidgetHandle,
        line_index: usize,
        x: ::std::os::raw::c_int,
        y: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_custom_viewer_current_line(
        viewer: IdaxWidgetHandle,
        mouse: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_refresh_custom_viewer(viewer: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_close_custom_viewer(viewer: IdaxWidgetHandle) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_register_timer(
        interval_ms: ::std::os::raw::c_int,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_register_timer_with_callback(
        interval_ms: ::std::os::raw::c_int,
        callback: IdaxUITimerCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_unregister_timer(token: u64) -> ::std::os::raw::c_int;
}
pub type IdaxUIEventCallback = ::std::option::Option<
    unsafe extern "C" fn(
        context: *mut ::std::os::raw::c_void,
        event_kind: ::std::os::raw::c_int,
        address: u64,
    ),
>;
unsafe extern "C" {
    pub fn idax_ui_subscribe(
        event_kind: ::std::os::raw::c_int,
        callback: IdaxUIEventCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_database_closed(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_database_inited(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_ready_to_run(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_screen_ea_changed(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_current_widget_changed(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_visible(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_invisible(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_closing(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_visible_for_widget(
        widget: IdaxWidgetHandle,
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_invisible_for_widget(
        widget: IdaxWidgetHandle,
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_widget_closing_for_widget(
        widget: IdaxWidgetHandle,
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_cursor_changed(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_view_activated(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_view_deactivated(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_view_created(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_view_closed(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_event(
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_event_filtered(
        filter: IdaxUIEventFilterCallback,
        callback: IdaxUIEventExCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_on_popup_ready(
        callback: IdaxUIPopupCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_attach_dynamic_action(
        popup: *mut ::std::os::raw::c_void,
        widget: IdaxWidgetHandle,
        action_id: *const ::std::os::raw::c_char,
        label: *const ::std::os::raw::c_char,
        callback: IdaxUIActionCallback,
        context: *mut ::std::os::raw::c_void,
        menu_path: *const ::std::os::raw::c_char,
        icon: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_rendering_event_add_entry(
        event: *mut IdaxRenderingEvent,
        entry: *const IdaxLineRenderEntry,
    );
}
unsafe extern "C" {
    pub fn idax_ui_on_rendering_info(
        callback: IdaxUIRenderingCallback,
        context: *mut ::std::os::raw::c_void,
        token_out: *mut u64,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_ui_unsubscribe(token: u64) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lines_colstr(
        text: *const ::std::os::raw::c_char,
        color: u8,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lines_tag_remove(
        tagged_text: *const ::std::os::raw::c_char,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lines_tag_advance(
        tagged_text: *const ::std::os::raw::c_char,
        pos: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lines_tag_strlen(tagged_text: *const ::std::os::raw::c_char) -> usize;
}
unsafe extern "C" {
    pub fn idax_lines_make_addr_tag(
        item_index: ::std::os::raw::c_int,
        out: *mut *mut ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lines_decode_addr_tag(
        tagged_text: *const ::std::os::raw::c_char,
        pos: usize,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_diagnostics_set_log_level(level: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_diagnostics_log_level() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_diagnostics_log(
        level: ::std::os::raw::c_int,
        domain: *const ::std::os::raw::c_char,
        message: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    pub fn idax_diagnostics_reset_performance_counters();
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxPerformanceCounters {
    pub log_messages: u64,
    pub invariant_failures: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxPerformanceCounters"][::std::mem::size_of::<IdaxPerformanceCounters>() - 16usize];
    ["Alignment of IdaxPerformanceCounters"]
        [::std::mem::align_of::<IdaxPerformanceCounters>() - 8usize];
    ["Offset of field: IdaxPerformanceCounters::log_messages"]
        [::std::mem::offset_of!(IdaxPerformanceCounters, log_messages) - 0usize];
    ["Offset of field: IdaxPerformanceCounters::invariant_failures"]
        [::std::mem::offset_of!(IdaxPerformanceCounters, invariant_failures) - 8usize];
};
unsafe extern "C" {
    pub fn idax_diagnostics_performance_counters(
        out: *mut IdaxPerformanceCounters,
    ) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct IdaxLuminaBatchResult {
    pub requested: usize,
    pub completed: usize,
    pub succeeded: usize,
    pub failed: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of IdaxLuminaBatchResult"][::std::mem::size_of::<IdaxLuminaBatchResult>() - 32usize];
    ["Alignment of IdaxLuminaBatchResult"]
        [::std::mem::align_of::<IdaxLuminaBatchResult>() - 8usize];
    ["Offset of field: IdaxLuminaBatchResult::requested"]
        [::std::mem::offset_of!(IdaxLuminaBatchResult, requested) - 0usize];
    ["Offset of field: IdaxLuminaBatchResult::completed"]
        [::std::mem::offset_of!(IdaxLuminaBatchResult, completed) - 8usize];
    ["Offset of field: IdaxLuminaBatchResult::succeeded"]
        [::std::mem::offset_of!(IdaxLuminaBatchResult, succeeded) - 16usize];
    ["Offset of field: IdaxLuminaBatchResult::failed"]
        [::std::mem::offset_of!(IdaxLuminaBatchResult, failed) - 24usize];
};
unsafe extern "C" {
    pub fn idax_lumina_has_connection(
        feature: ::std::os::raw::c_int,
        out: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lumina_close_connection(feature: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lumina_close_all_connections() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lumina_pull(
        addresses: *const u64,
        count: usize,
        auto_apply: ::std::os::raw::c_int,
        feature: ::std::os::raw::c_int,
        out: *mut IdaxLuminaBatchResult,
    ) -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn idax_lumina_push(
        addresses: *const u64,
        count: usize,
        push_mode: ::std::os::raw::c_int,
        feature: ::std::os::raw::c_int,
        out: *mut IdaxLuminaBatchResult,
    ) -> ::std::os::raw::c_int;
}