gneiss-sys 0.1.1

Raw PebbleOS app syscall bindings for gneiss
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
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
//! SPDX-License-Identifier: Apache-2.0
//! This module is generated from `pebble.h` by bindgen + a shim-mapping step in the `regen-sys` xtask. Do not hand-edit
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
	storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
	#[inline]
	pub const fn new(storage: Storage) -> Self {
		Self { storage }
	}
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
	Storage: AsRef<[u8]> + AsMut<[u8]>,
{
	#[inline]
	fn extract_bit(byte: u8, index: usize) -> bool {
		let bit_index = if cfg!(target_endian = "big") {
			7 - (index % 8)
		} else {
			index % 8
		};
		let mask = 1 << bit_index;
		byte & mask == mask
	}

	#[inline]
	pub fn get_bit(&self, index: usize) -> bool {
		debug_assert!(index / 8 < self.storage.as_ref().len());
		let byte_index = index / 8;
		let byte = self.storage.as_ref()[byte_index];
		Self::extract_bit(byte, index)
	}

	#[inline]
	pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
		debug_assert!(index / 8 < core::mem::size_of::<Storage>());
		let byte_index = index / 8;
		let byte = unsafe {
			*(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
		};
		Self::extract_bit(byte, index)
	}

	#[inline]
	fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
		let bit_index = if cfg!(target_endian = "big") {
			7 - (index % 8)
		} else {
			index % 8
		};
		let mask = 1 << bit_index;
		if val { byte | mask } else { byte & !mask }
	}

	#[inline]
	pub fn set_bit(&mut self, index: usize, val: bool) {
		debug_assert!(index / 8 < self.storage.as_ref().len());
		let byte_index = index / 8;
		let byte = &mut self.storage.as_mut()[byte_index];
		*byte = Self::change_bit(*byte, index, val);
	}

	#[inline]
	pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
		debug_assert!(index / 8 < core::mem::size_of::<Storage>());
		let byte_index = index / 8;
		let byte = unsafe {
			(core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
		};
		unsafe { *byte = Self::change_bit(*byte, index, val) };
	}

	#[inline]
	pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
		debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len(),);
		if bit_width == 0 {
			return 0;
		}
		let mut val = 0u64;
		let storage = self.storage.as_ref();
		let start_byte = bit_offset / 8;
		let bit_shift = bit_offset % 8;
		let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
		if cfg!(target_endian = "big") {
			for i in 0..bytes_needed {
				val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8);
			}
		} else {
			for i in 0..bytes_needed {
				val |= (storage[start_byte + i] as u64) << (i * 8);
			}
		}
		val >>= bit_shift;
		if bit_width < 64 {
			val &= (1u64 << bit_width) - 1;
		}
		if cfg!(target_endian = "big") {
			val = val.reverse_bits() >> (64 - bit_width as usize);
		}
		val
	}

	#[inline]
	pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
		debug_assert!(
			(bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>(),
		);
		if bit_width == 0 {
			return 0;
		}
		let mut val = 0u64;
		let start_byte = bit_offset / 8;
		let bit_shift = bit_offset % 8;
		let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
		let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
		if cfg!(target_endian = "big") {
			for i in 0..bytes_needed {
				let byte = unsafe { *storage_ptr.add(start_byte + i) };
				val |= (byte.reverse_bits() as u64) << (i * 8);
			}
		} else {
			for i in 0..bytes_needed {
				let byte = unsafe { *storage_ptr.add(start_byte + i) };
				val |= (byte as u64) << (i * 8);
			}
		}
		val >>= bit_shift;
		if bit_width < 64 {
			val &= (1u64 << bit_width) - 1;
		}
		if cfg!(target_endian = "big") {
			val = val.reverse_bits() >> (64 - bit_width as usize);
		}
		val
	}

	#[inline]
	pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
		debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len(),);
		if bit_width == 0 {
			return;
		}
		let mut val = val;
		if bit_width < 64 {
			val &= (1u64 << bit_width) - 1;
		}
		if cfg!(target_endian = "big") {
			val = val.reverse_bits() >> (64 - bit_width as usize);
		}
		let storage = self.storage.as_mut();
		let start_byte = bit_offset / 8;
		let bit_shift = bit_offset % 8;
		let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
		val <<= bit_shift;
		let field_mask = if bit_width as usize + bit_shift >= 64 {
			!0u64 << bit_shift
		} else {
			((1u64 << bit_width) - 1) << bit_shift
		};
		for i in 0..bytes_needed {
			let byte_val = (val >> (i * 8)) as u8;
			let byte_mask = (field_mask >> (i * 8)) as u8;
			if cfg!(target_endian = "big") {
				let byte = storage[start_byte + i].reverse_bits();
				let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
				storage[start_byte + i] = new_byte.reverse_bits();
			} else {
				storage[start_byte + i] =
					(storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
			}
		}
	}

	#[inline]
	pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
		debug_assert!(bit_width <= 64);
		debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
		debug_assert!(
			(bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>(),
		);
		if bit_width == 0 {
			return;
		}
		let mut val = val;
		if bit_width < 64 {
			val &= (1u64 << bit_width) - 1;
		}
		if cfg!(target_endian = "big") {
			val = val.reverse_bits() >> (64 - bit_width as usize);
		}
		let start_byte = bit_offset / 8;
		let bit_shift = bit_offset % 8;
		let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
		val <<= bit_shift;
		let field_mask = if bit_width as usize + bit_shift >= 64 {
			!0u64 << bit_shift
		} else {
			((1u64 << bit_width) - 1) << bit_shift
		};
		let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 };
		for i in 0..bytes_needed {
			let byte_val = (val >> (i * 8)) as u8;
			let byte_mask = (field_mask >> (i * 8)) as u8;
			let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
			if cfg!(target_endian = "big") {
				let byte = unsafe { (*byte_ptr).reverse_bits() };
				let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
				unsafe { *byte_ptr = new_byte.reverse_bits() };
			} else {
				unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
			}
		}
	}
}
/// Const-generic methods for efficient bitfield access when offset and width
/// are known at compile time.
impl<const N: usize> __BindgenBitfieldUnit<[u8; N]> {
	/// Get a field using const generics for compile-time optimization.
	/// Uses native word size operations when the field fits in usize.
	#[inline]
	pub const fn get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&self) -> u64 {
		debug_assert!(BIT_WIDTH <= 64);
		debug_assert!(BIT_OFFSET / 8 < N);
		debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
		if BIT_WIDTH == 0 {
			return 0;
		}
		let start_byte = BIT_OFFSET / 8;
		let bit_shift = BIT_OFFSET % 8;
		let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
		if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
			let mut val = 0usize;
			if cfg!(target_endian = "big") {
				let mut i = 0;
				while i < bytes_needed {
					val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8);
					i += 1;
				}
			} else {
				let mut i = 0;
				while i < bytes_needed {
					val |= (self.storage[start_byte + i] as usize) << (i * 8);
					i += 1;
				}
			}
			val >>= bit_shift;
			if (BIT_WIDTH as u32) < usize::BITS {
				val &= (1usize << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
			}
			val as u64
		} else {
			let mut val = 0u64;
			if cfg!(target_endian = "big") {
				let mut i = 0;
				while i < bytes_needed {
					val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8);
					i += 1;
				}
			} else {
				let mut i = 0;
				while i < bytes_needed {
					val |= (self.storage[start_byte + i] as u64) << (i * 8);
					i += 1;
				}
			}
			val >>= bit_shift;
			if BIT_WIDTH < 64 {
				val &= (1u64 << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
			}
			val
		}
	}

	/// Set a field using const generics for compile-time optimization.
	/// Uses native word size operations when the field fits in usize.
	#[inline]
	pub fn set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&mut self, val: u64) {
		debug_assert!(BIT_WIDTH <= 64);
		debug_assert!(BIT_OFFSET / 8 < N);
		debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
		if BIT_WIDTH == 0 {
			return;
		}
		let start_byte = BIT_OFFSET / 8;
		let bit_shift = BIT_OFFSET % 8;
		let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
		if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
			let mut val = val as usize;
			if (BIT_WIDTH as u32) < usize::BITS {
				val &= (1usize << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
			}
			val <<= bit_shift;
			let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
				!0usize << bit_shift
			} else {
				((1usize << BIT_WIDTH) - 1) << bit_shift
			};
			let mut i = 0;
			while i < bytes_needed {
				let byte_val = (val >> (i * 8)) as u8;
				let byte_mask = (field_mask >> (i * 8)) as u8;
				if cfg!(target_endian = "big") {
					let byte = self.storage[start_byte + i].reverse_bits();
					let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
					self.storage[start_byte + i] = new_byte.reverse_bits();
				} else {
					self.storage[start_byte + i] =
						(self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
				}
				i += 1;
			}
		} else {
			let mut val = val;
			if BIT_WIDTH < 64 {
				val &= (1u64 << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
			}
			val <<= bit_shift;
			let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
				!0u64 << bit_shift
			} else {
				((1u64 << BIT_WIDTH) - 1) << bit_shift
			};
			let mut i = 0;
			while i < bytes_needed {
				let byte_val = (val >> (i * 8)) as u8;
				let byte_mask = (field_mask >> (i * 8)) as u8;
				if cfg!(target_endian = "big") {
					let byte = self.storage[start_byte + i].reverse_bits();
					let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
					self.storage[start_byte + i] = new_byte.reverse_bits();
				} else {
					self.storage[start_byte + i] =
						(self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
				}
				i += 1;
			}
		}
	}

	/// Raw pointer get using const generics for compile-time optimization.
	/// Uses native word size operations when the field fits in usize.
	#[inline]
	pub const unsafe fn raw_get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
		this: *const Self,
	) -> u64 {
		debug_assert!(BIT_WIDTH <= 64);
		debug_assert!(BIT_OFFSET / 8 < N);
		debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
		if BIT_WIDTH == 0 {
			return 0;
		}
		let start_byte = BIT_OFFSET / 8;
		let bit_shift = BIT_OFFSET % 8;
		let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
		let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
		if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
			let mut val = 0usize;
			if cfg!(target_endian = "big") {
				let mut i = 0;
				while i < bytes_needed {
					let byte = unsafe { *storage_ptr.add(start_byte + i) };
					val |= (byte.reverse_bits() as usize) << (i * 8);
					i += 1;
				}
			} else {
				let mut i = 0;
				while i < bytes_needed {
					let byte = unsafe { *storage_ptr.add(start_byte + i) };
					val |= (byte as usize) << (i * 8);
					i += 1;
				}
			}
			val >>= bit_shift;
			if (BIT_WIDTH as u32) < usize::BITS {
				val &= (1usize << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
			}
			val as u64
		} else {
			let mut val = 0u64;
			if cfg!(target_endian = "big") {
				let mut i = 0;
				while i < bytes_needed {
					let byte = unsafe { *storage_ptr.add(start_byte + i) };
					val |= (byte.reverse_bits() as u64) << (i * 8);
					i += 1;
				}
			} else {
				let mut i = 0;
				while i < bytes_needed {
					let byte = unsafe { *storage_ptr.add(start_byte + i) };
					val |= (byte as u64) << (i * 8);
					i += 1;
				}
			}
			val >>= bit_shift;
			if BIT_WIDTH < 64 {
				val &= (1u64 << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
			}
			val
		}
	}

	/// Raw pointer set using const generics for compile-time optimization.
	/// Uses native word size operations when the field fits in usize.
	#[inline]
	pub unsafe fn raw_set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
		this: *mut Self,
		val: u64,
	) {
		debug_assert!(BIT_WIDTH <= 64);
		debug_assert!(BIT_OFFSET / 8 < N);
		debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
		if BIT_WIDTH == 0 {
			return;
		}
		let start_byte = BIT_OFFSET / 8;
		let bit_shift = BIT_OFFSET % 8;
		let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
		let storage_ptr = this.cast::<[u8; N]>().cast::<u8>();
		if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
			let mut val = val as usize;
			if (BIT_WIDTH as u32) < usize::BITS {
				val &= (1usize << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
			}
			val <<= bit_shift;
			let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
				!0usize << bit_shift
			} else {
				((1usize << BIT_WIDTH) - 1) << bit_shift
			};
			let mut i = 0;
			while i < bytes_needed {
				let byte_val = (val >> (i * 8)) as u8;
				let byte_mask = (field_mask >> (i * 8)) as u8;
				let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
				if cfg!(target_endian = "big") {
					let byte = unsafe { (*byte_ptr).reverse_bits() };
					let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
					unsafe { *byte_ptr = new_byte.reverse_bits() };
				} else {
					unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
				}
				i += 1;
			}
		} else {
			let mut val = val;
			if BIT_WIDTH < 64 {
				val &= (1u64 << BIT_WIDTH) - 1;
			}
			if cfg!(target_endian = "big") {
				val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
			}
			val <<= bit_shift;
			let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
				!0u64 << bit_shift
			} else {
				((1u64 << BIT_WIDTH) - 1) << bit_shift
			};
			let mut i = 0;
			while i < bytes_needed {
				let byte_val = (val >> (i * 8)) as u8;
				let byte_mask = (field_mask >> (i * 8)) as u8;
				let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
				if cfg!(target_endian = "big") {
					let byte = unsafe { (*byte_ptr).reverse_bits() };
					let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
					unsafe { *byte_ptr = new_byte.reverse_bits() };
				} else {
					unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
				}
				i += 1;
			}
		}
	}
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
	#[inline]
	pub const fn new() -> Self {
		__IncompleteArrayField(::core::marker::PhantomData, [])
	}

	#[inline]
	pub fn as_ptr(&self) -> *const T {
		self as *const _ as *const T
	}

	#[inline]
	pub fn as_mut_ptr(&mut self) -> *mut T {
		self as *mut _ as *mut T
	}

	#[inline]
	pub unsafe fn as_slice(&self, len: usize) -> &[T] {
		::core::slice::from_raw_parts(self.as_ptr(), len)
	}

	#[inline]
	pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
		::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
	}
}
impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
	fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
		fmt.write_str("__IncompleteArrayField")
	}
}
#[repr(C)]
pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>);
impl<T> __BindgenUnionField<T> {
	#[inline]
	pub const fn new() -> Self {
		__BindgenUnionField(::core::marker::PhantomData)
	}

	#[inline]
	pub const unsafe fn as_ref(&self) -> &T {
		unsafe { ::core::mem::transmute(self) }
	}

	#[inline]
	pub const unsafe fn as_mut(&mut self) -> &mut T {
		unsafe { ::core::mem::transmute(self) }
	}
}
impl<T> ::core::default::Default for __BindgenUnionField<T> {
	#[inline]
	fn default() -> Self {
		Self::new()
	}
}
impl<T> ::core::clone::Clone for __BindgenUnionField<T> {
	#[inline]
	fn clone(&self) -> Self {
		*self
	}
}
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {}
impl<T> ::core::fmt::Debug for __BindgenUnionField<T> {
	fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
		fmt.write_str("__BindgenUnionField")
	}
}
impl<T> ::core::hash::Hash for __BindgenUnionField<T> {
	fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {}
}
impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> {
	fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
		true
	}
}
impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {}
pub const FONT_KEY_FONT_FALLBACK_INTERNAL: &::core::ffi::CStr =
	c"RESOURCE_ID_FONT_FALLBACK_INTERNAL";
pub const FONT_KEY_GOTHIC_18_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_18_BOLD";
pub const FONT_KEY_GOTHIC_24: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_24";
pub const FONT_KEY_GOTHIC_09: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_09";
pub const FONT_KEY_GOTHIC_14: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_14";
pub const FONT_KEY_GOTHIC_14_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_14_BOLD";
pub const FONT_KEY_GOTHIC_18: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_18";
pub const FONT_KEY_GOTHIC_24_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_24_BOLD";
pub const FONT_KEY_GOTHIC_28: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_28";
pub const FONT_KEY_GOTHIC_28_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_GOTHIC_28_BOLD";
pub const FONT_KEY_BITHAM_30_BLACK: &::core::ffi::CStr = c"RESOURCE_ID_BITHAM_30_BLACK";
pub const FONT_KEY_BITHAM_42_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_BITHAM_42_BOLD";
pub const FONT_KEY_BITHAM_42_LIGHT: &::core::ffi::CStr = c"RESOURCE_ID_BITHAM_42_LIGHT";
pub const FONT_KEY_BITHAM_42_MEDIUM_NUMBERS: &::core::ffi::CStr =
	c"RESOURCE_ID_BITHAM_42_MEDIUM_NUMBERS";
pub const FONT_KEY_BITHAM_34_MEDIUM_NUMBERS: &::core::ffi::CStr =
	c"RESOURCE_ID_BITHAM_34_MEDIUM_NUMBERS";
pub const FONT_KEY_BITHAM_34_LIGHT_SUBSET: &::core::ffi::CStr =
	c"RESOURCE_ID_BITHAM_34_LIGHT_SUBSET";
pub const FONT_KEY_BITHAM_18_LIGHT_SUBSET: &::core::ffi::CStr =
	c"RESOURCE_ID_BITHAM_18_LIGHT_SUBSET";
pub const FONT_KEY_ROBOTO_CONDENSED_21: &::core::ffi::CStr = c"RESOURCE_ID_ROBOTO_CONDENSED_21";
pub const FONT_KEY_ROBOTO_BOLD_SUBSET_49: &::core::ffi::CStr = c"RESOURCE_ID_ROBOTO_BOLD_SUBSET_49";
pub const FONT_KEY_DROID_SERIF_28_BOLD: &::core::ffi::CStr = c"RESOURCE_ID_DROID_SERIF_28_BOLD";
pub const FONT_KEY_LECO_20_BOLD_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_20_BOLD_NUMBERS";
pub const FONT_KEY_LECO_26_BOLD_NUMBERS_AM_PM: &::core::ffi::CStr =
	c"RESOURCE_ID_LECO_26_BOLD_NUMBERS_AM_PM";
pub const FONT_KEY_LECO_32_BOLD_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_32_BOLD_NUMBERS";
pub const FONT_KEY_LECO_36_BOLD_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_36_BOLD_NUMBERS";
pub const FONT_KEY_LECO_38_BOLD_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_38_BOLD_NUMBERS";
pub const FONT_KEY_LECO_42_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_42_NUMBERS";
pub const FONT_KEY_LECO_28_LIGHT_NUMBERS: &::core::ffi::CStr = c"RESOURCE_ID_LECO_28_LIGHT_NUMBERS";
pub const FONT_KEY_LECO_60_NUMBERS_AM_PM: &::core::ffi::CStr = c"RESOURCE_ID_LECO_60_NUMBERS_AM_PM";
pub const FONT_KEY_LECO_60_BOLD_NUMBERS_AM_PM: &::core::ffi::CStr =
	c"RESOURCE_ID_LECO_60_BOLD_NUMBERS_AM_PM";
pub const FONT_KEY_FONT_FALLBACK: &::core::ffi::CStr = c"RESOURCE_ID_FONT_FALLBACK";
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const TRIG_MAX_RATIO: u32 = 65535;
pub const TRIG_MAX_ANGLE: u32 = 65536;
pub const TIMEZONE_NAME_LENGTH: u32 = 32;
pub const UUID_SIZE: u32 = 16;
pub const UUID_STRING_BUFFER_LENGTH: u32 = 39;
pub const APP_MESSAGE_INBOX_SIZE_MINIMUM: u32 = 124;
pub const APP_MESSAGE_OUTBOX_SIZE_MINIMUM: u32 = 636;
pub const kModdableCreationFlagLogInstrumentation: u32 = 1;
pub const kModdableCreationFlagDebug: u32 = 2;
pub const PERSIST_DATA_MAX_LENGTH: u32 = 256;
pub const PERSIST_STRING_MAX_LENGTH: u32 = 256;
pub const SMARTSTRAP_TIMEOUT_DEFAULT: u32 = 250;
pub const SMARTSTRAP_RAW_DATA_SERVICE_ID: u32 = 0;
pub const SMARTSTRAP_RAW_DATA_ATTRIBUTE_ID: u32 = 0;
pub const ANIMATION_NORMALIZED_MIN: u32 = 0;
pub const ANIMATION_NORMALIZED_MAX: u32 = 65535;
pub const NUM_ACTION_BAR_ITEMS: u32 = 3;
pub const SPEAKER_MAX_NOTES: u32 = 256;
pub const SPEAKER_MAX_TRACKS: u32 = 4;
pub const SPEAKER_MAX_SAMPLE_BYTES_TOTAL: u32 = 16384;
pub const TZ_LEN: u32 = 6;
pub const SECONDS_PER_MINUTE: u32 = 60;
pub const MINUTES_PER_HOUR: u32 = 60;
pub const SECONDS_PER_HOUR: u32 = 3600;
pub const HOURS_PER_DAY: u32 = 24;
pub const MINUTES_PER_DAY: u32 = 1440;
pub const SECONDS_PER_DAY: u32 = 86400;
pub type wchar_t = ::core::ffi::c_uint;
pub type int_least64_t = i64;
pub type uint_least64_t = u64;
pub type int_fast64_t = i64;
pub type uint_fast64_t = u64;
pub type int_least32_t = i32;
pub type uint_least32_t = u32;
pub type int_fast32_t = i32;
pub type uint_fast32_t = u32;
pub type int_least16_t = i16;
pub type uint_least16_t = u16;
pub type int_fast16_t = i16;
pub type uint_fast16_t = u16;
pub type int_least8_t = i8;
pub type uint_least8_t = u8;
pub type int_fast8_t = i8;
pub type uint_fast8_t = u8;
pub type intmax_t = ::core::ffi::c_longlong;
pub type uintmax_t = ::core::ffi::c_ulonglong;
/** malloc
  -> Added in 0
gneiss: Vtable Slot 161, Offset 644*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.malloc")]
pub unsafe extern "C" fn malloc(arg1: ::core::ffi::c_uint) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =644", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** free
  -> Added in 0
gneiss: Vtable Slot 99, Offset 396*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.free")]
pub unsafe extern "C" fn free(arg1: *mut ::core::ffi::c_void) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =396", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** realloc
  -> Added in 12
gneiss: Vtable Slot 323, Offset 1292*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.realloc")]
pub unsafe extern "C" fn realloc(
	arg1: *mut ::core::ffi::c_void,
	arg2: ::core::ffi::c_uint,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1292", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** memcpy
  -> Added in 0
gneiss: Vtable Slot 162, Offset 648*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.memcpy")]
pub unsafe extern "C" fn memcpy(
	arg1: *mut ::core::ffi::c_void,
	arg2: *const ::core::ffi::c_void,
	arg3: ::core::ffi::c_uint,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =648", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** memmove
  -> Added in 0
gneiss: Vtable Slot 163, Offset 652*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.memmove")]
pub unsafe extern "C" fn memmove(
	arg1: *mut ::core::ffi::c_void,
	arg2: *const ::core::ffi::c_void,
	arg3: ::core::ffi::c_uint,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =652", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** memset
  -> Added in 0
gneiss: Vtable Slot 164, Offset 656*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.memset")]
pub unsafe extern "C" fn memset(
	arg1: *mut ::core::ffi::c_void,
	arg2: ::core::ffi::c_int,
	arg3: ::core::ffi::c_uint,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =656", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub type time_t = ::core::ffi::c_long;
/// Back button
pub const ButtonId_BUTTON_ID_BACK: ButtonId = 0;
/// Up button
pub const ButtonId_BUTTON_ID_UP: ButtonId = 1;
/// Select (middle) button
pub const ButtonId_BUTTON_ID_SELECT: ButtonId = 2;
/// Down button
pub const ButtonId_BUTTON_ID_DOWN: ButtonId = 3;
/// Total number of buttons
pub const ButtonId_NUM_BUTTONS: ButtonId = 4;
/** Button ID values

See `click_recognizer_get_button_id()`*/
pub type ButtonId = ::core::ffi::c_uchar;
/** Get the ISO locale name for the language currently set on the watch

 Returns A string containing the ISO locale name (e.g. "fr", "en_US", ...)

 Note: It is possible for the locale to change while your app is running.
 And thus, two calls to i18n_get_system_locale may return different values.*/
/** i18n_get_system_locale
  -> Added in 26
gneiss: Vtable Slot 360, Offset 1440*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.i18n_get_system_locale")]
pub unsafe extern "C" fn i18n_get_system_locale() -> *const ::core::ffi::c_char {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1440", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// < Unknown model
pub const WatchInfoModel_WATCH_INFO_MODEL_UNKNOWN: WatchInfoModel = 0;
/// < Original Pebble
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_ORIGINAL: WatchInfoModel = 1;
/// < Pebble Steel
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_STEEL: WatchInfoModel = 2;
/// < Pebble Time
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_TIME: WatchInfoModel = 3;
/// < Pebble Time Steel
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_TIME_STEEL: WatchInfoModel = 4;
/// < Pebble Time Round, 14mm lug size
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_TIME_ROUND_14: WatchInfoModel = 5;
/// < Pebble Time Round, 20mm lug size
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_TIME_ROUND_20: WatchInfoModel = 6;
/// < Pebble 2 HR
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_2_HR: WatchInfoModel = 7;
/// < Pebble 2 SE
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_2_SE: WatchInfoModel = 8;
/// < Pebble Time 2
pub const WatchInfoModel_WATCH_INFO_MODEL_PEBBLE_TIME_2: WatchInfoModel = 9;
/// < CoreDevices P2D (Pebble 2 Duo)
pub const WatchInfoModel_WATCH_INFO_MODEL_COREDEVICES_P2D: WatchInfoModel = 10;
/// < CoreDevices PT2 (Pebble Time 2)
pub const WatchInfoModel_WATCH_INFO_MODEL_COREDEVICES_PT2: WatchInfoModel = 11;
/// < CoreDevices PR2 (Pebble Round 2)
pub const WatchInfoModel_WATCH_INFO_MODEL_COREDEVICES_PR2: WatchInfoModel = 12;
pub const WatchInfoModel_WATCH_INFO_MODEL__MAX: WatchInfoModel = 13;
/// The different watch models.
pub type WatchInfoModel = ::core::ffi::c_uchar;
/// < Unknown color
pub const WatchInfoColor_WATCH_INFO_COLOR_UNKNOWN: WatchInfoColor = 0;
/// < Black
pub const WatchInfoColor_WATCH_INFO_COLOR_BLACK: WatchInfoColor = 1;
/// < White
pub const WatchInfoColor_WATCH_INFO_COLOR_WHITE: WatchInfoColor = 2;
/// < Red
pub const WatchInfoColor_WATCH_INFO_COLOR_RED: WatchInfoColor = 3;
/// < Orange
pub const WatchInfoColor_WATCH_INFO_COLOR_ORANGE: WatchInfoColor = 4;
/// < Gray
pub const WatchInfoColor_WATCH_INFO_COLOR_GRAY: WatchInfoColor = 5;
/// < Stainless Steel
pub const WatchInfoColor_WATCH_INFO_COLOR_STAINLESS_STEEL: WatchInfoColor = 6;
/// < Matte Black
pub const WatchInfoColor_WATCH_INFO_COLOR_MATTE_BLACK: WatchInfoColor = 7;
/// < Blue
pub const WatchInfoColor_WATCH_INFO_COLOR_BLUE: WatchInfoColor = 8;
/// < Green
pub const WatchInfoColor_WATCH_INFO_COLOR_GREEN: WatchInfoColor = 9;
/// < Pink
pub const WatchInfoColor_WATCH_INFO_COLOR_PINK: WatchInfoColor = 10;
/// < Time White
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_WHITE: WatchInfoColor = 11;
/// < Time Black
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_BLACK: WatchInfoColor = 12;
/// < Time Red
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_RED: WatchInfoColor = 13;
/// < Time Steel Silver
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_STEEL_SILVER: WatchInfoColor = 14;
/// < Time Steel Black
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_STEEL_BLACK: WatchInfoColor = 15;
/// < Time Steel Gold
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_STEEL_GOLD: WatchInfoColor = 16;
/// < Time Round 14mm lug size, Silver
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_ROUND_SILVER_14: WatchInfoColor = 17;
/// < Time Round 14mm lug size, Black
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_ROUND_BLACK_14: WatchInfoColor = 18;
/// < Time Round 20mm lug size, Silver
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_ROUND_SILVER_20: WatchInfoColor = 19;
/// < Time Round 20mm lug size, Black
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_ROUND_BLACK_20: WatchInfoColor = 20;
/// < Time Round 14mm lug size, Rose Gold
pub const WatchInfoColor_WATCH_INFO_COLOR_TIME_ROUND_ROSE_GOLD_14: WatchInfoColor = 21;
/// < Pebble 2 HR, Black / Charcoal
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_HR_BLACK: WatchInfoColor = 25;
/// < Pebble 2 HR, Charcoal / Sorbet Green
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_HR_LIME: WatchInfoColor = 27;
/// < Pebble 2 HR, Charcoal / Red
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_HR_FLAME: WatchInfoColor = 28;
/// < Pebble 2 HR, White / Gray
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_HR_WHITE: WatchInfoColor = 29;
/// < Pebble 2 HR, White / Turquoise
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_HR_AQUA: WatchInfoColor = 30;
/// < Pebble 2 SE, Black / Charcoal
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_SE_BLACK: WatchInfoColor = 24;
/// < Pebble 2 SE, White / Gray
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_2_SE_WHITE: WatchInfoColor = 26;
/// < Pebble Time 2, Black
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_TIME_2_BLACK: WatchInfoColor = 31;
/// < Pebble Time 2, Silver
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_TIME_2_SILVER: WatchInfoColor = 32;
/// < Pebble Time 2, Gold
pub const WatchInfoColor_WATCH_INFO_COLOR_PEBBLE_TIME_2_GOLD: WatchInfoColor = 33;
/// < CoreDevices P2D, Black
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_P2D_BLACK: WatchInfoColor = 34;
/// < CoreDevices P2D, White
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_P2D_WHITE: WatchInfoColor = 35;
/// < CoreDevices PT2, Black/Grey
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PT2_BLACK_GREY: WatchInfoColor = 36;
/// < CoreDevices PT2, Black/Red
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PT2_BLACK_RED: WatchInfoColor = 37;
/// < CoreDevices PT2, Silver/Blue
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PT2_SILVER_BLUE: WatchInfoColor = 38;
/// < CoreDevices PT2, Silver/Grey
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PT2_SILVER_GREY: WatchInfoColor = 39;
/// < CoreDevices PR2, Black (20mm)
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PR2_BLACK_20: WatchInfoColor = 40;
/// < CoreDevices PR2, Silver (20mm)
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PR2_SILVER_20: WatchInfoColor = 41;
/// < CoreDevices PR2, Gold (14mm)
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PR2_GOLD_14: WatchInfoColor = 42;
/// < CoreDevices PR2, Silver (14mm)
pub const WatchInfoColor_WATCH_INFO_COLOR_COREDEVICES_PR2_SILVER_14: WatchInfoColor = 43;
pub const WatchInfoColor_WATCH_INFO_COLOR__MAX: WatchInfoColor = 44;
/// The different watch colors.
pub type WatchInfoColor = ::core::ffi::c_uchar;
/** Data structure containing the version of the firmware running on the watch.
The version of the firmware has the form X.[X.[X]]. If a version number is not present it will be 0.
For example: the version numbers of 2.4.1 are 2, 4, and 1. The version numbers of 2.4 are 2, 4, and 0.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WatchInfoVersion {
	/// < Major version number
	pub major: u8,
	/// < Minor version number
	pub minor: u8,
	/// < Patch version number
	pub patch: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of WatchInfoVersion"][::core::mem::size_of::<WatchInfoVersion>() - 3usize];
	["Alignment of WatchInfoVersion"][::core::mem::align_of::<WatchInfoVersion>() - 1usize];
	["Offset of field: WatchInfoVersion::major"]
		[::core::mem::offset_of!(WatchInfoVersion, major) - 0usize];
	["Offset of field: WatchInfoVersion::minor"]
		[::core::mem::offset_of!(WatchInfoVersion, minor) - 1usize];
	["Offset of field: WatchInfoVersion::patch"]
		[::core::mem::offset_of!(WatchInfoVersion, patch) - 2usize];
};
/** Provides the model of the watch.

 Returns `WatchInfoModel` representing the model of the watch.*/
/** watch_info_get_model
  -> Added in 22
gneiss: Vtable Slot 347, Offset 1388*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.watch_info_get_model")]
pub unsafe extern "C" fn watch_info_get_model() -> WatchInfoModel {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1388", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Provides the version of the firmware running on the watch.

 Returns `WatchInfoVersion` representing the version of the firmware running on the watch.*/
/** watch_info_get_firmware_version
  -> Added in 22
gneiss: Vtable Slot 346, Offset 1384*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.watch_info_get_firmware_version")]
pub unsafe extern "C" fn watch_info_get_firmware_version() -> WatchInfoVersion {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1384", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** watch_info_get_color
  -> Added in 22
gneiss: Vtable Slot 345, Offset 1380*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.watch_info_get_color")]
pub unsafe extern "C" fn watch_info_get_color() -> WatchInfoColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1380", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Look-up the sine of the given angle from a pre-computed table.

 * `angle`: The angle for which to compute the cosine.
 The angle value is scaled linearly, such that a value of 0x10000 corresponds to 360 degrees or 2 PI radians.*/
/** sin_lookup
  -> Added in 0
gneiss: Vtable Slot 238, Offset 952*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.sin_lookup")]
pub unsafe extern "C" fn sin_lookup(angle: i32) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =952", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Look-up the cosine of the given angle from a pre-computed table.
 This is equivalent to calling `sin_lookup(angle + TRIG_MAX_ANGLE / 4)`.

 * `angle`: The angle for which to compute the cosine.
 The angle value is scaled linearly, such that a value of 0x10000 corresponds to 360 degrees or 2 PI radians.*/
/** cos_lookup
  -> Added in 0
gneiss: Vtable Slot 70, Offset 280*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.cos_lookup")]
pub unsafe extern "C" fn cos_lookup(angle: i32) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =280", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Look-up the arctangent of a given x, y pair
 The angle value is scaled linearly, such that a value of 0x10000 corresponds to 360 degrees or 2 PI radians.*/
/** atan2_lookup
  -> Added in 0
gneiss: Vtable Slot 50, Offset 200*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.atan2_lookup")]
pub unsafe extern "C" fn atan2_lookup(y: i16, x: i16) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =200", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// < Today
pub const WeekDay_TODAY: WeekDay = 0;
/// < Sunday
pub const WeekDay_SUNDAY: WeekDay = 1;
/// < Monday
pub const WeekDay_MONDAY: WeekDay = 2;
/// < Tuesday
pub const WeekDay_TUESDAY: WeekDay = 3;
/// < Wednesday
pub const WeekDay_WEDNESDAY: WeekDay = 4;
/// < Thursday
pub const WeekDay_THURSDAY: WeekDay = 5;
/// < Friday
pub const WeekDay_FRIDAY: WeekDay = 6;
/// < Saturday
pub const WeekDay_SATURDAY: WeekDay = 7;
/// Weekday values
pub type WeekDay = ::core::ffi::c_uchar;
/** Copies a time string into the buffer, formatted according to the user's time display preferences (such as 12h/24h
 time).
 Example results: "7:30" or "15:00".

 Note: AM/PM are also outputted with the time if the user's preference is 12h time.

 * `buffer`: A pointer to the buffer to copy the time string into
 * `size`: The maximum size of buffer*/
/** clock_copy_time_string
  -> Added in 0
gneiss: Vtable Slot 68, Offset 272*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.clock_copy_time_string")]
pub unsafe extern "C" fn clock_copy_time_string(buffer: *mut ::core::ffi::c_char, size: u8) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =272", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the user's 12/24h clock style preference.

 Returns `true` if the user prefers 24h-style time display or `false` if the
 user prefers 12h-style time display.*/
/** clock_is_24h_style
  -> Added in 0
gneiss: Vtable Slot 69, Offset 276*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.clock_is_24h_style")]
pub unsafe extern "C" fn clock_is_24h_style() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =276", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Converts a (day, hour, minute) specification to a UTC timestamp occurring in the future
 Always returns a timestamp for the next occurring instance,
 example: specifying TODAY@14:30 when it is 14:40 will return a timestamp for 7 days from
 now at 14:30

 * `day`: WeekDay day of week including support for specifying TODAY
 * `hour`: hour specified in 24-hour format [0-23]
 * `minute`: minute [0-59]*/
/** clock_to_timestamp
  -> Added in 24
gneiss: Vtable Slot 351, Offset 1404*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.clock_to_timestamp")]
pub unsafe extern "C" fn clock_to_timestamp(
	day: WeekDay,
	hour: ::core::ffi::c_int,
	minute: ::core::ffi::c_int,
) -> time_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1404", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Checks if timezone is currently set, otherwise gmtime == localtime.

 Returns `true` if timezone has been set, false otherwise*/
/** clock_is_timezone_set
  -> Added in 25
gneiss: Vtable Slot 359, Offset 1436*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.clock_is_timezone_set")]
pub unsafe extern "C" fn clock_is_timezone_set() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1436", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** If timezone is set, copies the current timezone long name (e.g. America/Chicago)
 to user-provided buffer.

 * `timezone`: A pointer to the buffer to copy the timezone long name into
 * `buffer_size`: Size of the allocated buffer to copy the timezone long name into

 Note: timezone buffer should be at least TIMEZONE_NAME_LENGTH bytes*/
/** clock_get_timezone
  -> Added in 31
gneiss: Vtable Slot 378, Offset 1512*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.clock_get_timezone")]
pub unsafe extern "C" fn clock_get_timezone(
	timezone: *mut ::core::ffi::c_char,
	buffer_size: usize,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1512", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const PlatformType_PlatformTypeAplite: PlatformType = 0;
pub const PlatformType_PlatformTypeBasalt: PlatformType = 1;
pub const PlatformType_PlatformTypeChalk: PlatformType = 2;
pub const PlatformType_PlatformTypeDiorite: PlatformType = 3;
pub const PlatformType_PlatformTypeEmery: PlatformType = 4;
pub const PlatformType_PlatformTypeFlint: PlatformType = 5;
pub const PlatformType_PlatformTypeGabbro: PlatformType = 6;
pub type PlatformType = ::core::ffi::c_uchar;
/** Peek at the next scheduled, enabled alarm.

 * `timestamp_out`: Must point to a valid `time_t`. If an enabled alarm
 exists, it is set to the UTC time at which that alarm fires.

 Returns true if at least one enabled alarm is scheduled, false otherwise.*/
/** alarm_service_peek_next
  -> Added in 105
gneiss: Vtable Slot 657, Offset 2628*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.alarm_service_peek_next")]
pub unsafe extern "C" fn alarm_service_peek_next(timestamp_out: *mut time_t) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2628", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Determine what the Pebble watch is connected to

The ConnectionService allows your app to learn about the apps the Pebble
watch is connected to. You can ask the system for this information at a
given time or you can register to receive events every time connection or
disconnection events occur.

It allows you to determine whether the watch is connected to the Pebble
mobile app by subscribing to the pebble_app_connection_handler or by calling
the connection_service_peek_pebble_app_connection function. Note that when
the Pebble app is connected, you can assume PebbleKit JS apps will also be
running correctly.

The service also allows you to determine if the Pebble watch can establish
a connection to a PebbleKit companion app by subscribing to the
pebblekit_connection_handler or by calling the
connection_service_peek_pebblekit_connection function. Today, due to
architectural differences between iOS and Android, this will return true
for Android anytime a connection with the Pebble mobile app is established
(since PebbleKit messages are routed through the Android app). For iOS,
this will return true when any PebbleKit companion app has established a
connection with the Pebble watch (since companion app messages are routed
directly to the watch)*/
pub type ConnectionHandler = ::core::option::Option<unsafe extern "C" fn(connected: bool)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ConnectionHandlers {
	/** callback to be executed when the connection state between the watch and
	the phone app has changed. Note, if the phone App is connected, PebbleKit JS apps
	will also be working correctly*/
	pub pebble_app_connection_handler: ConnectionHandler,
	/// ID for callback to be executed on PebbleKit connection event
	pub pebblekit_connection_handler:  ConnectionHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ConnectionHandlers"][::core::mem::size_of::<ConnectionHandlers>() - 8usize];
	["Alignment of ConnectionHandlers"][::core::mem::align_of::<ConnectionHandlers>() - 4usize];
	["Offset of field: ConnectionHandlers::pebble_app_connection_handler"]
		[::core::mem::offset_of!(ConnectionHandlers, pebble_app_connection_handler) - 0usize];
	["Offset of field: ConnectionHandlers::pebblekit_connection_handler"]
		[::core::mem::offset_of!(ConnectionHandlers, pebblekit_connection_handler) - 4usize];
};
/** Query the bluetooth connection service for the current Pebble app connection status

 Returns true if the Pebble app is connected, false otherwise*/
/** connection_service_peek_pebble_app_connection
  -> Added in 66
gneiss: Vtable Slot 566, Offset 2264*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.connection_service_peek_pebble_app_connection")]
pub unsafe extern "C" fn connection_service_peek_pebble_app_connection() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2264", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Query the bluetooth connection service for the current PebbleKit connection status

 Returns true if a PebbleKit companion app is connected, false otherwise*/
/** connection_service_peek_pebblekit_connection
  -> Added in 66
gneiss: Vtable Slot 567, Offset 2268*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.connection_service_peek_pebblekit_connection")]
pub unsafe extern "C" fn connection_service_peek_pebblekit_connection() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2268", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the connection event service. Once subscribed, the appropriate
 handler gets called based on the type of connection event and user provided
 handlers

 * `conn_handlers`: A struct populated with the handlers to
 be called when the specified connection event occurs. If a given handler is
 NULL, no function will be called.*/
/** connection_service_subscribe
  -> Added in 66
gneiss: Vtable Slot 568, Offset 2272*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.connection_service_subscribe")]
pub unsafe extern "C" fn connection_service_subscribe(conn_handlers: ConnectionHandlers) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2272", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the bluetooth event service. Once unsubscribed, the previously registered
 handler will no longer be called.*/
/** connection_service_unsubscribe
  -> Added in 66
gneiss: Vtable Slot 569, Offset 2276*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.connection_service_unsubscribe")]
pub unsafe extern "C" fn connection_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2276", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deprecated: Backwards compatibility typedef for ConnectionHandler. New code
should use ConnectionHandler directly. This will be removed in a future
version of the Pebble SDK.*/
pub type BluetoothConnectionHandler = ConnectionHandler;
/** Deprecated: Backward compatibility function for
 connection_service_peek_pebble_app_connection. New code should use
 connection_service_peek_pebble_app_connection directly. This will be
 removed in a future version of the Pebble SDK*/
/** bluetooth_connection_service_peek
  -> Added in 0
gneiss: Vtable Slot 63, Offset 252*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bluetooth_connection_service_peek")]
pub unsafe extern "C" fn bluetooth_connection_service_peek() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =252", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deprecated: Backward compatibility function for
 connection_service_subscribe. New code should use
 connection_service_subscribe directly. This will be removed in a future
 version of the Pebble SDK*/
/** bluetooth_connection_service_subscribe
  -> Added in 0
gneiss: Vtable Slot 64, Offset 256*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bluetooth_connection_service_subscribe")]
pub unsafe extern "C" fn bluetooth_connection_service_subscribe(handler: ConnectionHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =256", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deprecated: Backward compatibility function for
 connection_service_unsubscribe. New code should use
 connection_service_unsubscribe directly. This will be removed in a future
 version of the Pebble SDK*/
/** bluetooth_connection_service_unsubscribe
  -> Added in 0
gneiss: Vtable Slot 65, Offset 260*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bluetooth_connection_service_unsubscribe")]
pub unsafe extern "C" fn bluetooth_connection_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =260", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Callback type for focus events

* `in_focus`: True if the app is gaining focus, false otherwise.*/
pub type AppFocusHandler = ::core::option::Option<unsafe extern "C" fn(in_focus: bool)>;
/** There are two different focus events which take place when transitioning to and from an app
being in focus. Below is an example of when these events will occur:
1) The app is launched. Once the system animation to the app has completed and the app is
completely in focus, the did_focus handler is called with in_focus set to true.
2) A notification comes in and the animation to show the notification starts. The will_focus
handler is called with in_focus set to false.
3) The animation completes and the notification is in focus, with the app being completely
covered. The did_focus hander is called with in_focus set to false.
4) The notification is dismissed and the animation to return to the app starts. The will_focus
handler is called with in_focus set to true.
5) The animation completes and the app is in focus. The did_focus handler is called with
in_focus set to true.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AppFocusHandlers {
	/** Handler which will be called right before an app will lose or gain focus.

	Note: This will be called with in_focus set to true when a window which is covering the app is
	about to close and return focus to the app.

	Note: This will be called with in_focus set to false when a window which will cover the app is
	about to open, causing the app to lose focus.*/
	pub will_focus: AppFocusHandler,
	/** Handler which will be called when an animation finished which has put the app into focus or
	taken the app out of focus.

	Note: This will be called with in_focus set to true when a window which was covering the app
	has closed and the app has gained focus.

	Note: This will be called with in_focus set to false when a window has opened which is now
	covering the app, causing the app to lose focus.*/
	pub did_focus:  AppFocusHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppFocusHandlers"][::core::mem::size_of::<AppFocusHandlers>() - 8usize];
	["Alignment of AppFocusHandlers"][::core::mem::align_of::<AppFocusHandlers>() - 4usize];
	["Offset of field: AppFocusHandlers::will_focus"]
		[::core::mem::offset_of!(AppFocusHandlers, will_focus) - 0usize];
	["Offset of field: AppFocusHandlers::did_focus"]
		[::core::mem::offset_of!(AppFocusHandlers, did_focus) - 4usize];
};
/** Subscribe to the focus event service. Once subscribed, the handlers get called every time the
 app gains or loses focus.

 * `handlers`: Handlers which will be called on will-focus and did-focus events.

 See AppFocusHandlers*/
/** app_focus_service_subscribe_handlers
  -> Added in 62
gneiss: Vtable Slot 535, Offset 2140*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_focus_service_subscribe_handlers")]
pub unsafe extern "C" fn app_focus_service_subscribe_handlers(handlers: AppFocusHandlers) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2140", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the focus event service. Once subscribed, the handler
 gets called every time the app focus changes.

 Note: Calling this function is equivalent to
 ```c
 app_focus_service_subscribe_handlers((AppFocusHandlers){
   .will_focus = handler,
 });
 ```

 Note: Out focus events are triggered when a modal window is about to open and cover the app.

 Note: In focus events are triggered when a modal window which is covering the app is about to
 close.

 * `handler`: A callback to be called on will-focus events.*/
/** app_focus_service_subscribe
  -> Added in 1
gneiss: Vtable Slot 289, Offset 1156*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_focus_service_subscribe")]
pub unsafe extern "C" fn app_focus_service_subscribe(handler: AppFocusHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1156", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the focus event service. Once unsubscribed, the previously
 registered handlers will no longer be called.*/
/** app_focus_service_unsubscribe
  -> Added in 1
gneiss: Vtable Slot 290, Offset 1160*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_focus_service_unsubscribe")]
pub unsafe extern "C" fn app_focus_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1160", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Structure for retrieval of the battery charge state
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct BatteryChargeState {
	/// A percentage (0-100) of how full the battery is
	pub charge_percent: u8,
	/// True if the battery is currently being charged. False if not.
	pub is_charging:    bool,
	/// True if the charger cable is connected. False if not.
	pub is_plugged:     bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of BatteryChargeState"][::core::mem::size_of::<BatteryChargeState>() - 3usize];
	["Alignment of BatteryChargeState"][::core::mem::align_of::<BatteryChargeState>() - 1usize];
	["Offset of field: BatteryChargeState::charge_percent"]
		[::core::mem::offset_of!(BatteryChargeState, charge_percent) - 0usize];
	["Offset of field: BatteryChargeState::is_charging"]
		[::core::mem::offset_of!(BatteryChargeState, is_charging) - 1usize];
	["Offset of field: BatteryChargeState::is_plugged"]
		[::core::mem::offset_of!(BatteryChargeState, is_plugged) - 2usize];
};
/** Callback type for battery state change events

* `charge`: the state of the battery `BatteryChargeState`*/
pub type BatteryStateHandler =
	::core::option::Option<unsafe extern "C" fn(charge: BatteryChargeState)>;
/** Subscribe to the battery state event service. Once subscribed, the handler gets called
 on every battery state change

 * `handler`: A callback to be executed on battery state change event*/
/** battery_state_service_subscribe
  -> Added in 0
gneiss: Vtable Slot 54, Offset 216*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.battery_state_service_subscribe")]
pub unsafe extern "C" fn battery_state_service_subscribe(handler: BatteryStateHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =216", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the battery state event service. Once unsubscribed, the previously registered
 handler will no longer be called.*/
/** battery_state_service_unsubscribe
  -> Added in 0
gneiss: Vtable Slot 55, Offset 220*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.battery_state_service_unsubscribe")]
pub unsafe extern "C" fn battery_state_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =220", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Peek at the last known battery state.

 Returns a `BatteryChargeState` containing the last known data*/
/** battery_state_service_peek
  -> Added in 0
gneiss: Vtable Slot 53, Offset 212*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.battery_state_service_peek")]
pub unsafe extern "C" fn battery_state_service_peek() -> BatteryChargeState {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =212", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Callback type for backlight on/off events.

* `on`: true when the backlight has just turned on, false when it has
just turned fully off.*/
pub type BacklightHandler = ::core::option::Option<unsafe extern "C" fn(on: bool)>;
/** Subscribe to the backlight event service. Once subscribed, the handler is
 called every time the backlight transitions between off and on.

 * `handler`: A callback to be executed on backlight on/off events.*/
/** backlight_service_subscribe
  -> Added in 101
gneiss: Vtable Slot 653, Offset 2612*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.backlight_service_subscribe")]
pub unsafe extern "C" fn backlight_service_subscribe(handler: BacklightHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2612", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the backlight event service. Once unsubscribed, the
 previously registered handler will no longer be called.

 To read the current backlight state at any time, use `light_is_on()`.*/
/** backlight_service_unsubscribe
  -> Added in 101
gneiss: Vtable Slot 654, Offset 2616*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.backlight_service_unsubscribe")]
pub unsafe extern "C" fn backlight_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2616", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** A single accelerometer sample for all three axes including timestamp and
vibration rumble status.*/
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct AccelData {
	/// acceleration along the x axis
	pub x:           i16,
	/// acceleration along the y axis
	pub y:           i16,
	/// acceleration along the z axis
	pub z:           i16,
	/// true if the watch vibrated when this sample was collected
	pub did_vibrate: bool,
	/// timestamp, in milliseconds
	pub timestamp:   u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AccelData"][::core::mem::size_of::<AccelData>() - 15usize];
	["Alignment of AccelData"][::core::mem::align_of::<AccelData>() - 1usize];
	["Offset of field: AccelData::x"][::core::mem::offset_of!(AccelData, x) - 0usize];
	["Offset of field: AccelData::y"][::core::mem::offset_of!(AccelData, y) - 2usize];
	["Offset of field: AccelData::z"][::core::mem::offset_of!(AccelData, z) - 4usize];
	["Offset of field: AccelData::did_vibrate"]
		[::core::mem::offset_of!(AccelData, did_vibrate) - 6usize];
	["Offset of field: AccelData::timestamp"]
		[::core::mem::offset_of!(AccelData, timestamp) - 7usize];
};
/// A single accelerometer sample for all three axes
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct AccelRawData {
	/// acceleration along the x axis
	pub x: i16,
	/// acceleration along the y axis
	pub y: i16,
	/// acceleration along the z axis
	pub z: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AccelRawData"][::core::mem::size_of::<AccelRawData>() - 6usize];
	["Alignment of AccelRawData"][::core::mem::align_of::<AccelRawData>() - 1usize];
	["Offset of field: AccelRawData::x"][::core::mem::offset_of!(AccelRawData, x) - 0usize];
	["Offset of field: AccelRawData::y"][::core::mem::offset_of!(AccelRawData, y) - 2usize];
	["Offset of field: AccelRawData::z"][::core::mem::offset_of!(AccelRawData, z) - 4usize];
};
/** Accelerometer's X axis. The positive direction along the X axis goes
toward the right of the watch.*/
pub const AccelAxisType_ACCEL_AXIS_X: AccelAxisType = 0;
/** Accelerometer's Y axis. The positive direction along the Y axis goes
toward the top of the watch.*/
pub const AccelAxisType_ACCEL_AXIS_Y: AccelAxisType = 1;
/** Accelerometer's Z axis. The positive direction along the Z axis goes
vertically out of the watchface.*/
pub const AccelAxisType_ACCEL_AXIS_Z: AccelAxisType = 2;
/// Enumerated values defining the three accelerometer axes.
pub type AccelAxisType = ::core::ffi::c_uchar;
/** Callback type for accelerometer data events

* `data`: Pointer to the collected accelerometer samples.
* `num_samples`: the number of samples stored in data.*/
pub type AccelDataHandler =
	::core::option::Option<unsafe extern "C" fn(data: *mut AccelData, num_samples: u32)>;
/** Callback type for accelerometer raw data events

* `data`: Pointer to the collected accelerometer samples.
* `num_samples`: the number of samples stored in data.
* `timestamp`: the timestamp, in ms, of the first sample.*/
pub type AccelRawDataHandler = ::core::option::Option<
	unsafe extern "C" fn(data: *mut AccelRawData, num_samples: u32, timestamp: u64),
>;
/** Callback type for accelerometer tap events

* `axis`: the axis on which a tap was registered (x, y, or z)
* `direction`: the direction (-1 or +1) of the tap*/
pub type AccelTapHandler =
	::core::option::Option<unsafe extern "C" fn(axis: AccelAxisType, direction: i32)>;
/// 10 HZ sampling rate
pub const AccelSamplingRate_ACCEL_SAMPLING_10HZ: AccelSamplingRate = 10;
/// 25 HZ sampling rate [Default]
pub const AccelSamplingRate_ACCEL_SAMPLING_25HZ: AccelSamplingRate = 25;
/// 50 HZ sampling rate
pub const AccelSamplingRate_ACCEL_SAMPLING_50HZ: AccelSamplingRate = 50;
/// 100 HZ sampling rate
pub const AccelSamplingRate_ACCEL_SAMPLING_100HZ: AccelSamplingRate = 100;
/// Valid accelerometer sampling rates, in Hz
pub type AccelSamplingRate = ::core::ffi::c_uchar;
/** Peek at the last recorded reading.

 * `data`: a pointer to a pre-allocated AccelData item

 Note: Cannot be used when subscribed to accelerometer data events.

 Returns -1 if the accel is not running

 Returns -2 if subscribed to accelerometer events.*/
/** accel_service_peek
  -> Added in 0
gneiss: Vtable Slot 2, Offset 8*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_service_peek")]
pub unsafe extern "C" fn accel_service_peek(data: *mut AccelData) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =8", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Change the accelerometer sampling rate.

 * `rate`: The sampling rate in Hz (10Hz, 25Hz, 50Hz, and 100Hz possible)*/
/** accel_service_set_sampling_rate
  -> Added in 0
gneiss: Vtable Slot 4, Offset 16*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_service_set_sampling_rate")]
pub unsafe extern "C" fn accel_service_set_sampling_rate(
	rate: AccelSamplingRate,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =16", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Change the number of samples buffered between each accelerometer data event

 * `num_samples`: the number of samples to buffer, between 0 and 25.*/
/** accel_service_set_samples_per_update
  -> Added in 0
gneiss: Vtable Slot 3, Offset 12*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_service_set_samples_per_update")]
pub unsafe extern "C" fn accel_service_set_samples_per_update(
	num_samples: u32,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =12", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the accelerometer data event service. Once subscribed, the handler
 gets called every time there are new accelerometer samples available.

 Note: Cannot use `accel_service_peek()` when subscribed to accelerometer data events.

 * `handler`: A callback to be executed on accelerometer data events
 * `samples_per_update`: the number of samples to buffer, between 0 and 25.*/
/** accel_data_service_subscribe
  -> Added in 9
gneiss: Vtable Slot 317, Offset 1268*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_data_service_subscribe")]
pub unsafe extern "C" fn accel_data_service_subscribe(
	samples_per_update: u32,
	handler: AccelDataHandler,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1268", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the accelerometer data event service. Once unsubscribed,
 the previously registered handler will no longer be called.*/
/** accel_data_service_unsubscribe
  -> Added in 0
gneiss: Vtable Slot 1, Offset 4*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_data_service_unsubscribe")]
pub unsafe extern "C" fn accel_data_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =4", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the accelerometer tap event service. Once subscribed, the handler
 gets called on every tap event emitted by the accelerometer.

 * `handler`: A callback to be executed on tap event*/
/** accel_tap_service_subscribe
  -> Added in 0
gneiss: Vtable Slot 5, Offset 20*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_tap_service_subscribe")]
pub unsafe extern "C" fn accel_tap_service_subscribe(handler: AccelTapHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =20", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the accelerometer tap event service. Once unsubscribed,
 the previously registered handler will no longer be called.*/
/** accel_tap_service_unsubscribe
  -> Added in 0
gneiss: Vtable Slot 6, Offset 24*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_tap_service_unsubscribe")]
pub unsafe extern "C" fn accel_tap_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =24", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the accelerometer raw data event service. Once subscribed, the handler
 gets called every time there are new accelerometer samples available.

 Note: Cannot use `accel_service_peek()` when subscribed to accelerometer data events.

 * `handler`: A callback to be executed on accelerometer data events
 * `samples_per_update`: the number of samples to buffer, between 0 and 25.*/
/** accel_raw_data_service_subscribe
  -> Added in 15
gneiss: Vtable Slot 326, Offset 1304*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.accel_raw_data_service_subscribe")]
pub unsafe extern "C" fn accel_raw_data_service_subscribe(
	samples_per_update: u32,
	handler: AccelRawDataHandler,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1304", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// The Compass Service is unavailable.
pub const CompassStatus_CompassStatusUnavailable: CompassStatus = -1;
/** Compass is calibrating: data is invalid and should not be used
Data will become valid once calibration is complete*/
pub const CompassStatus_CompassStatusDataInvalid: CompassStatus = 0;
/// Compass is calibrating: the data is valid but the calibration is still being refined
pub const CompassStatus_CompassStatusCalibrating: CompassStatus = 1;
/// Compass data is valid and the calibration has completed
pub const CompassStatus_CompassStatusCalibrated: CompassStatus = 2;
/// Enum describing the current state of the Compass Service
pub type CompassStatus = ::core::ffi::c_schar;
/** Represents an angle relative to get to a reference direction, e.g. (magnetic) north.
The angle value is scaled linearly, such that a value of TRIG_MAX_ANGLE
corresponds to 360 degrees or 2 PI radians.
Thus, if heading towards north, north is 0, west is TRIG_MAX_ANGLE/4,
south is TRIG_MAX_ANGLE/2, and so on.*/
pub type CompassHeading = i32;
/// Structure containing a single heading towards magnetic and true north.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CompassHeadingData {
	/** Measured angle that increases counter-clockwise from magnetic north
	(use `int clockwise_heading = TRIG_MAX_ANGLE - heading_data.magnetic_heading;`
	for example to find your heading clockwise from magnetic north).*/
	pub magnetic_heading:     CompassHeading,
	/// Currently same value as magnetic_heading (reserved for future implementation).
	pub true_heading:         CompassHeading,
	/// Indicates the current state of the Compass Service calibration.
	pub compass_status:       CompassStatus,
	/// Currently always false (reserved for future implementation).
	pub is_declination_valid: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of CompassHeadingData"][::core::mem::size_of::<CompassHeadingData>() - 12usize];
	["Alignment of CompassHeadingData"][::core::mem::align_of::<CompassHeadingData>() - 4usize];
	["Offset of field: CompassHeadingData::magnetic_heading"]
		[::core::mem::offset_of!(CompassHeadingData, magnetic_heading) - 0usize];
	["Offset of field: CompassHeadingData::true_heading"]
		[::core::mem::offset_of!(CompassHeadingData, true_heading) - 4usize];
	["Offset of field: CompassHeadingData::compass_status"]
		[::core::mem::offset_of!(CompassHeadingData, compass_status) - 8usize];
	["Offset of field: CompassHeadingData::is_declination_valid"]
		[::core::mem::offset_of!(CompassHeadingData, is_declination_valid) - 9usize];
};
/** Callback type for compass heading events

* `heading`: copy of last recorded heading*/
pub type CompassHeadingHandler =
	::core::option::Option<unsafe extern "C" fn(heading: CompassHeadingData)>;
/** Set the minimum angular change required to generate new compass heading events.
 The angular distance is measured relative to the last delivered heading event.
 Use 0 to be notified of all movements.
 Negative values and values > TRIG_MAX_ANGLE / 2 are not valid.
 The default value of this property is TRIG_MAX_ANGLE / 360.

 Returns 0, success.

 Returns Non-Zero, if filter is invalid.

 See compass_service_subscribe*/
/** compass_service_set_heading_filter
  -> Added in 18
gneiss: Vtable Slot 338, Offset 1352*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.compass_service_set_heading_filter")]
pub unsafe extern "C" fn compass_service_set_heading_filter(
	filter: CompassHeading,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1352", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to the compass heading event service. Once subscribed, the handler
 gets called every time the angular distance relative to the previous value
 exceeds the configured filter.

 * `handler`: A callback to be executed on heading events

 See compass_service_set_heading_filter

 See compass_service_unsubscribe*/
/** compass_service_subscribe
  -> Added in 18
gneiss: Vtable Slot 339, Offset 1356*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.compass_service_subscribe")]
pub unsafe extern "C" fn compass_service_subscribe(handler: CompassHeadingHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1356", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the compass heading event service. Once unsubscribed,
 the previously registered handler will no longer be called.

 See compass_service_subscribe*/
/** compass_service_unsubscribe
  -> Added in 18
gneiss: Vtable Slot 340, Offset 1360*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.compass_service_unsubscribe")]
pub unsafe extern "C" fn compass_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1360", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Peek at the last recorded reading.

 * `data`: a pointer to a pre-allocated CompassHeadingData

 Returns Always returns 0 to indicate success.*/
/** compass_service_peek
  -> Added in 18
gneiss: Vtable Slot 337, Offset 1348*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.compass_service_peek")]
pub unsafe extern "C" fn compass_service_peek(data: *mut CompassHeadingData) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1348", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Flag to represent the "seconds" time unit
pub const TimeUnits_SECOND_UNIT: TimeUnits = 1;
/// Flag to represent the "minutes" time unit
pub const TimeUnits_MINUTE_UNIT: TimeUnits = 2;
/// Flag to represent the "hours" time unit
pub const TimeUnits_HOUR_UNIT: TimeUnits = 4;
/// Flag to represent the "days" time unit
pub const TimeUnits_DAY_UNIT: TimeUnits = 8;
/// Flag to represent the "months" time unit
pub const TimeUnits_MONTH_UNIT: TimeUnits = 16;
/// Flag to represent the "years" time unit
pub const TimeUnits_YEAR_UNIT: TimeUnits = 32;
/** Time unit flags that can be used to create a bitmask for use in `tick_timer_service_subscribe()`.
This will also be passed to `TickHandler`.*/
pub type TimeUnits = ::core::ffi::c_uchar;
/** Callback type for tick timer events

* `tick_time`: the time at which the tick event was triggered
* `units_changed`: which unit change triggered this tick event*/
pub type TickHandler =
	::core::option::Option<unsafe extern "C" fn(tick_time: *mut tm, units_changed: TimeUnits)>;
/** Subscribe to the tick timer event service. Once subscribed, the handler gets called
 on every requested unit change.
 Calling this function multiple times will override the units and handler (i.e., only
 the last tick_units and handler passed will be used).

 * `handler`: The callback to be executed on tick events
 * `tick_units`: a bitmask of all the units that have changed*/
/** tick_timer_service_subscribe
  -> Added in 0
gneiss: Vtable Slot 262, Offset 1048*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.tick_timer_service_subscribe")]
pub unsafe extern "C" fn tick_timer_service_subscribe(tick_units: TimeUnits, handler: TickHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1048", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from the tick timer event service. Once unsubscribed, the previously registered
 handler will no longer be called.*/
/** tick_timer_service_unsubscribe
  -> Added in 0
gneiss: Vtable Slot 263, Offset 1052*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.tick_timer_service_unsubscribe")]
pub unsafe extern "C" fn tick_timer_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1052", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const TouchEventType_TouchEvent_Touchdown: TouchEventType = 0;
pub const TouchEventType_TouchEvent_Liftoff: TouchEventType = 1;
pub const TouchEventType_TouchEvent_PositionUpdate: TouchEventType = 2;
/// Touch event type
pub type TouchEventType = ::core::ffi::c_uchar;
/// Touch event data, carried directly in PebbleTouchEvent
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TouchEvent {
	pub _bitfield_1:      __BindgenBitfieldUnit<[u8; 1usize]>,
	/** true when the touch must not drive navigation: the interaction session
	was inactive at Touchdown (unarmed contact on the idle watchface).
	Latched on Touchdown and carried across the whole gesture.*/
	pub non_navigational: bool,
	pub x:                i16,
	pub y:                i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of TouchEvent"][::core::mem::size_of::<TouchEvent>() - 6usize];
	["Alignment of TouchEvent"][::core::mem::align_of::<TouchEvent>() - 2usize];
	["Offset of field: TouchEvent::non_navigational"]
		[::core::mem::offset_of!(TouchEvent, non_navigational) - 1usize];
	["Offset of field: TouchEvent::x"][::core::mem::offset_of!(TouchEvent, x) - 2usize];
	["Offset of field: TouchEvent::y"][::core::mem::offset_of!(TouchEvent, y) - 4usize];
};
impl TouchEvent {
	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn type_(&self) -> TouchEventType {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_type(&mut self, val: TouchEventType) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn type__raw(this: *const Self) -> TouchEventType {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_type_raw(this: *mut Self, val: TouchEventType) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn new_bitfield_1(type_: TouchEventType) -> __BindgenBitfieldUnit<[u8; 1usize]> {
		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
		__bindgen_bitfield_unit.set_const::<0usize, 8u8>({
			let type_: u8 = unsafe { ::core::mem::transmute(type_) };
			type_ as u64
		});
		__bindgen_bitfield_unit
	}
}
/** Callback for touch events.

* `event`: The touch event data
* `context`: User-provided context*/
pub type TouchServiceHandler = ::core::option::Option<
	unsafe extern "C" fn(event: *const TouchEvent, context: *mut ::core::ffi::c_void),
>;
/** Subscribe to touch events. The touch sensor is enabled while subscribed.

 * `handler`: Callback invoked for each touch event
 * `context`: User context passed to the callback*/
/** touch_service_subscribe
  -> Added in 95
gneiss: Vtable Slot 638, Offset 2552*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.touch_service_subscribe")]
pub unsafe extern "C" fn touch_service_subscribe(
	handler: TouchServiceHandler,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2552", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Unsubscribe from touch events. The touch sensor is disabled if no other subscribers remain.
/** touch_service_unsubscribe
  -> Added in 95
gneiss: Vtable Slot 639, Offset 2556*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.touch_service_unsubscribe")]
pub unsafe extern "C" fn touch_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2556", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns true if touch input is currently being delivered to apps.
 Returns false on platforms without a touchscreen, or when touch has been
 disabled system-wide (future feature). Apps can poll this (for example on
 window appear) to avoid looking broken when touch is unavailable.*/
/** touch_service_is_enabled
  -> Added in 95
gneiss: Vtable Slot 637, Offset 2548*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.touch_service_is_enabled")]
pub unsafe extern "C" fn touch_service_is_enabled() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2548", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Opt this app into (or out of) touch navigation: the system gesture bridge that maps
 swipes/taps on a MenuLayer/ScrollLayer to button presses. Third-party apps are opt-out by
 default and receive no touch navigation even when the user has enabled it system-wide; call
 this with *enable* true to participate. Takes effect immediately when touch navigation is
 enabled system-wide, otherwise once the user enables it.

 * `enable`: true to participate in touch navigation, false to stop participating.*/
/** app_touch_navigation_enable
  -> Added in 108
gneiss: Vtable Slot 674, Offset 2696*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_touch_navigation_enable")]
pub unsafe extern "C" fn app_touch_navigation_enable(enable: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2696", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// The number of steps counted.
pub const HealthMetric_HealthMetricStepCount: HealthMetric = 0;
/// The number of seconds spent active (i.e. not resting).
pub const HealthMetric_HealthMetricActiveSeconds: HealthMetric = 1;
/// The distance walked, in meters.
pub const HealthMetric_HealthMetricWalkedDistanceMeters: HealthMetric = 2;
/// The number of seconds spent sleeping.
pub const HealthMetric_HealthMetricSleepSeconds: HealthMetric = 3;
/// The number of sleep seconds in the 'restful' or deep sleep state.
pub const HealthMetric_HealthMetricSleepRestfulSeconds: HealthMetric = 4;
/// The number of kcal (Calories) burned while resting due to resting metabolism.
pub const HealthMetric_HealthMetricRestingKCalories: HealthMetric = 5;
/// The number of kcal (Calories) burned while active.
pub const HealthMetric_HealthMetricActiveKCalories: HealthMetric = 6;
/// The heart rate, in beats per minute. This is a filtered value that is at most 15 minutes old.
pub const HealthMetric_HealthMetricHeartRateBPM: HealthMetric = 7;
/// The raw heart rate value of the most recent sample, in beats per minute.
pub const HealthMetric_HealthMetricHeartRateRawBPM: HealthMetric = 8;
/** Health metric values used to retrieve health data.
For example, using `health_service_sum()`.*/
pub type HealthMetric = ::core::ffi::c_uchar;
/// Type used to represent HealthMetric values
pub type HealthValue = i32;
/** Type used as a handle to a registered metric alert (returned by
`health_service_register_metric_alert`)*/
#[repr(C)]
#[derive(Debug)]
pub struct HealthMetricAlert {
	_unused: [u8; 0],
}
/** Return the sum of a `HealthMetric's` values over a time range.
 The `time_start` and `time_end` parameters define the range of time you want the sum for.

 Note: The value returned will be based on daily totals, weighted for the length of the
 specified time range. This may change in the future.

 * `metric`: The metric to query for data.
 * `time_start`: UTC time of the earliest data item to incorporate into the sum.
 * `time_end`: UTC time of the most recent data item to incorporate into the sum.

 Returns The sum of that metric over the given time range, if available.*/
/** health_service_sum
  -> Added in 77
gneiss: Vtable Slot 606, Offset 2424*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_sum")]
pub unsafe extern "C" fn health_service_sum(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
) -> HealthValue {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2424", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience wrapper for `health_service_sum()` that returns the sum for today.

 * `metric`: The metric to query.

 Returns The sum of that metric's data for today, if available.*/
/** health_service_sum_today
  -> Added in 77
gneiss: Vtable Slot 607, Offset 2428*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_sum_today")]
pub unsafe extern "C" fn health_service_sum_today(metric: HealthMetric) -> HealthValue {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2428", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function for peeking at the current value of a metric. This is useful for metrics
 like `HealthMetricHeartRateBPM` that represent instantaneous values. It is NOT applicable for
 metrics like `HealthMetricStepCount` that must be accumulated over time (it will return 0 if
 passed that type of metric). This call is equivalent to calling
 `health_service_aggregate_averaged(metric, time(NULL), time(NULL), HealthAggregationAvg,
 HealthServiceTimeScopeOnce)`

 * `metric`: The metric to query.

 Returns The current value of that metric, if available.*/
/** health_service_peek_current_value
  -> Added in 83
gneiss: Vtable Slot 620, Offset 2480*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_peek_current_value")]
pub unsafe extern "C" fn health_service_peek_current_value(metric: HealthMetric) -> HealthValue {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2480", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// No average computed. The result is the same as calling `health_service_sum()`.
pub const HealthServiceTimeScope_HealthServiceTimeScopeOnce: HealthServiceTimeScope = 0;
/** Compute average using the same day from each week. For example, every Monday if the passed
in time range falls on a Monday.*/
pub const HealthServiceTimeScope_HealthServiceTimeScopeWeekly: HealthServiceTimeScope = 1;
/** Compute average using either weekdays (Monday to Friday) or weekends (Saturday and Sunday),
depending on which day the passed in time range falls.*/
pub const HealthServiceTimeScope_HealthServiceTimeScopeDailyWeekdayOrWeekend:
	HealthServiceTimeScope = 2;
/// Compute average across all days of the week.
pub const HealthServiceTimeScope_HealthServiceTimeScopeDaily: HealthServiceTimeScope = 3;
/// Used by `health_service_sum_averaged()` to specify how the average is computed.
pub type HealthServiceTimeScope = ::core::ffi::c_uchar;
/** Return the value of a metric's sum over a given time range between `time_start`
 and `time_end`. Using this call you can specify the time range that you are interested in
 getting the average for, as well as a `scope` specifier on how to compute an average of the sum.
 For example, if you want to get the average number of steps taken from 12 AM (midnight) to 9 AM
 across all days you would specify:
 ```c
 time_t time_start = time_start_of_today();
 time_t time_end = time_start + (9 * SECONDS_PER_HOUR);
 HealthValue value = health_service_sum_averaged(HealthMetricStepCount, time_start,
	time_end, HealthServiceTimeScopeDaily);
 ```
 If you want the average number of steps taken on a weekday (Monday to Friday) and today is a
 Monday (in the local timezone) you would specify:
 ```c
 time_start = time_start_of_today();
 time_end = time_start + SECONDS_PER_DAY;
 HealthValue value = health_service_sum_averaged(HealthMetricStepCount, time_start,
	time_end, HealthServiceTimeScopeDailyWeekdayOrWeekend);
 ```

 Note that this call is the same as calling `health_service_aggregate_averaged(metric,
 time_start, time_end, HealthAggregationSum, scope)`

 * `metric`: Which `HealthMetric` to query.
 * `time_start`: UTC time of the start of the query interval.
 * `time_end`: UTC time of the end of the query interval.
 * `scope`: `HealthServiceTimeScope` value describing how the average should be computed.

 Returns The average of the sum of the given metric over the given time range, if available.*/
/** health_service_sum_averaged
  -> Added in 79
gneiss: Vtable Slot 610, Offset 2440*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_sum_averaged")]
pub unsafe extern "C" fn health_service_sum_averaged(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
	scope: HealthServiceTimeScope,
) -> HealthValue {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2440", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sum the metric. The result is the same as calling `health_service_sum_averaged()`. This
operation is only applicable for metrics that accumulate, like HealthMetricStepCount,
HealthMetricActiveSeconds, etc.*/
pub const HealthAggregation_HealthAggregationSum: HealthAggregation = 0;
/** Use the average of the metric. This is only applicable for metrics that measure instantaneous
values, like HealthMetricHeartRateBPM*/
pub const HealthAggregation_HealthAggregationAvg: HealthAggregation = 1;
/** Use the minimum value of the metric. This is only applicable for metrics that measure
instantaneous values, like HealthMetricHeartRateBPM*/
pub const HealthAggregation_HealthAggregationMin: HealthAggregation = 2;
/** Use the maximum value of the metric. This is only applicable for metrics that measure
instantaneous values, like HealthMetricHeartRateBPM*/
pub const HealthAggregation_HealthAggregationMax: HealthAggregation = 3;
/** Used by `health_service_aggregate_averaged()` to specify what type of aggregation to perform.
This aggregation is applied to the metric before the average is computed.*/
pub type HealthAggregation = ::core::ffi::c_uchar;
/** Return the value of an aggregated metric over a given time range. This call is more
 flexible than health_service_sum_averaged because it lets you specify which aggregation function
 to perform.

 The aggregation function `aggregation` is applied to the metric `metric` over the given time
 range `time_start` to `time_end` first, and then an average is computed based on the passed in
 `scope`.

 For example, if you want to get the average number of steps taken from 12 AM (midnight) to 9 AM
 across all days you would specify:
 ```c
 time_t time_start = time_start_of_today();
 time_t time_end = time_start + (9 * SECONDS_PER_HOUR);
 HealthValue value = health_service_aggregate_averaged(HealthMetricStepCount, time_start,
	time_end, HealthAggregationSum, HealthServiceTimeScopeDaily);
 ```

 If you want to compute the average heart rate on Mondays and today is a Monday, you would
 specify:
 ```c
 time_t time_start = time_start_of_today(),
 time_t time_end = time_start + SECONDS_PER_DAY,
 HealthValue value = health_service_aggregate_averaged(HealthMetricHeartRateBPM, time_start,
	time_end, HealthAggregationAvg, HealthServiceTimeScopeWeekly);
 ```

 To get the average of the minimum heart rate seen on Mondays for example, you would instead
 pass in `HealthAggregationMin`

 Certain HealthAggregation operations are only applicable to certain types of metrics. See the
 notes above on `HealthAggregation` for details. Use
 `health_service_metric_aggregate_averaged_accessible` to check for applicability at run
 time.

 * `metric`: Which `HealthMetric` to query.
 * `time_start`: UTC time of the start of the query interval.
 * `time_end`: UTC time of the end of the query interval.
 * `aggregation`: the aggregation function to perform on the metric. This operation is
 performed across the passed in time range `time_start` to `time_end`.

 * `scope`: `HealthServiceTimeScope` value describing how the average should be computed.
 Use `HealthServiceTimeScopeOnce` to not compute an average.

 Returns The average of the aggregation performed on the given metric over the given time range,
 if available.*/
/** health_service_aggregate_averaged
  -> Added in 83
gneiss: Vtable Slot 617, Offset 2468*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_aggregate_averaged")]
pub unsafe extern "C" fn health_service_aggregate_averaged(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
	aggregation: HealthAggregation,
	scope: HealthServiceTimeScope,
) -> HealthValue {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2468", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Expresses a set of `HealthActivity` values as a bitmask.
pub type HealthActivityMask = u32;
/// No special activity.
pub const HealthActivity_HealthActivityNone: HealthActivity = 0;
/// The 'sleeping' activity.
pub const HealthActivity_HealthActivitySleep: HealthActivity = 1;
/// The 'restful sleeping' activity.
pub const HealthActivity_HealthActivityRestfulSleep: HealthActivity = 2;
/// The 'walk' activity.
pub const HealthActivity_HealthActivityWalk: HealthActivity = 4;
/// The 'run' activity.
pub const HealthActivity_HealthActivityRun: HealthActivity = 8;
/// The 'generic' activity.
pub const HealthActivity_HealthActivityOpenWorkout: HealthActivity = 16;
/// Health-related activities that can be accessed using
pub type HealthActivity = ::core::ffi::c_uchar;
/** Return a `HealthActivityMask` containing a set of bits, one set for each
 activity that is currently active.

 Returns A bitmask with zero or more `HealthActivityMask` bits set as appropriate.*/
/** health_service_peek_current_activities
  -> Added in 77
gneiss: Vtable Slot 605, Offset 2420*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_peek_current_activities")]
pub unsafe extern "C" fn health_service_peek_current_activities() -> HealthActivityMask {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2420", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Callback used by `health_service_activities_iterate()`.

* `activity`: Which activity the caller is being informed about.
* `time_start`: Start UTC time of the activity.
* `time_end`: End UTC time of the activity.
* `context`: The `context` parameter initially passed
to `health_service_activities_iterate()`.

Returns `true` if you are interested in more activities, or `false` to stop iterating.*/
pub type HealthActivityIteratorCB = ::core::option::Option<
	unsafe extern "C" fn(
		activity: HealthActivity,
		time_start: time_t,
		time_end: time_t,
		context: *mut ::core::ffi::c_void,
	) -> bool,
>;
/// Iterate into the past.
pub const HealthIterationDirection_HealthIterationDirectionPast: HealthIterationDirection = 0;
/// Iterate into the future.
pub const HealthIterationDirection_HealthIterationDirectionFuture: HealthIterationDirection = 1;
/** Iteration direction, passed to `health_service_activities_iterate()`.
When iterating backwards (`HealthIterationDirectionPast`), activities that have a greater value
for `time_end` come first.
When iterating forward (`HealthIterationDirectionFuture`), activities that have a smaller value
for `time_start` come first.*/
pub type HealthIterationDirection = ::core::ffi::c_uchar;
/** Iterates backwards or forward within a given time span to list all recorded activities.
 For example, this can be used to find the last recorded sleep phase or all deep sleep phases in
 a given time range. Any activity that overlaps with `time_start` and `time_end` will be
 included, even if the start time starts before `time_start` or end time ends after `time_end`.

 * `activity_mask`: A bitmask containing set of activities you are interested in.
 * `time_start`: UTC time of the earliest time you are interested in.
 * `time_end`: UTC time of the latest time you are interested in.
 * `direction`: The direction in which to iterate.
 * `callback`: Developer-supplied callback that is called for each activity iterated over.
 * `context`: Developer-supplied context pointer that is passed to the callback.*/
/** health_service_activities_iterate
  -> Added in 77
gneiss: Vtable Slot 599, Offset 2396*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_activities_iterate")]
pub unsafe extern "C" fn health_service_activities_iterate(
	activity_mask: HealthActivityMask,
	time_start: time_t,
	time_end: time_t,
	direction: HealthIterationDirection,
	callback: HealthActivityIteratorCB,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2396", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Return values are available and represent the collected health information.
pub const HealthServiceAccessibilityMask_HealthServiceAccessibilityMaskAvailable:
	HealthServiceAccessibilityMask = 1;
/// The user hasn't granted permission.
pub const HealthServiceAccessibilityMask_HealthServiceAccessibilityMaskNoPermission:
	HealthServiceAccessibilityMask = 2;
/** The queried combination of time span and `HealthMetric` or `HealthActivityMask`
is currently unsupported.*/
pub const HealthServiceAccessibilityMask_HealthServiceAccessibilityMaskNotSupported:
	HealthServiceAccessibilityMask = 4;
/// No samples were recorded for the given time span.
pub const HealthServiceAccessibilityMask_HealthServiceAccessibilityMaskNotAvailable:
	HealthServiceAccessibilityMask = 8;
/** Possible values returned by `health_service_metric_accessible()`.
The values are used in combination as a bitmask.
For example, to check if any data is available for a given request use:
bool any_data_available = value & HealthServiceAccessibilityMaskAvailable;*/
pub type HealthServiceAccessibilityMask = ::core::ffi::c_uchar;
/** Check if a certain combination of metric and time span is accessible using
 `health_service_sum` by returning a value of `HealthServiceAccessibilityMask`. Developers
 should check if the return value is `HealthServiceAccessibilityMaskAvailable` before calling
 `health_service_sum`.

 Note that this call is the same as calling `health_service_metric_averaged_accessible(metric,
 time_start, time_end, HealthServiceTimeScopeOnce)`

 * `metric`: The metric to query for data.
 * `time_start`: Earliest UTC time you are interested in.
 * `time_end`: Latest UTC time you are interested in.

 Returns A `HealthServiceAccessibilityMask` representing the accessible metrics
 in this time range.*/
/** health_service_metric_accessible
  -> Added in 77
gneiss: Vtable Slot 604, Offset 2416*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_metric_accessible")]
pub unsafe extern "C" fn health_service_metric_accessible(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
) -> HealthServiceAccessibilityMask {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2416", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Check if a certain combination of metric, time span, and scope is accessible for calculating
 summed, averaged data by returning a value of `HealthServiceAccessibilityMask`. Developers
 should check if the return value is `HealthServiceAccessibilityMaskAvailable` before calling
 `health_service_sum_averaged`.

 Note that this call is the same as calling
 `health_service_metric_aggregate_averaged_accessible(metric, time_start, time_end,
 HealthAggregationSum, HealthServiceTimeScopeOnce)`

 * `metric`: The metric to query for averaged data.
 * `time_start`: Earliest UTC time you are interested in.
 * `time_end`: Latest UTC time you are interested in.
 * `scope`: `HealthServiceTimeScope` value describing how the average should be computed.

 Returns A `HealthServiceAccessibilityMask` value decribing whether averaged data is available.*/
/** health_service_metric_averaged_accessible
  -> Added in 79
gneiss: Vtable Slot 609, Offset 2436*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_metric_averaged_accessible")]
pub unsafe extern "C" fn health_service_metric_averaged_accessible(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
	scope: HealthServiceTimeScope,
) -> HealthServiceAccessibilityMask {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2436", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Check if a certain combination of metric, time span, aggregation operation, and scope is
 accessible for calculating aggregated, averaged data by returning a value of
 `HealthServiceAccessibilityMask`. Developers should check if the return value is
 `HealthServiceAccessibilityMaskAvailable` before calling
 `health_service_aggregate_averaged`.

 * `metric`: The metric to query for averaged data.
 * `time_start`: Earliest UTC time you are interested in.
 * `time_end`: Latest UTC time you are interested in.
 * `aggregation`: The aggregation to perform
 * `scope`: `HealthServiceTimeScope` value describing how the average should be computed.

 Returns A `HealthServiceAccessibilityMask` value decribing whether averaged data is available.*/
/** health_service_metric_aggregate_averaged_accessible
  -> Added in 83
gneiss: Vtable Slot 619, Offset 2476*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_metric_aggregate_averaged_accessible")]
pub unsafe extern "C" fn health_service_metric_aggregate_averaged_accessible(
	metric: HealthMetric,
	time_start: time_t,
	time_end: time_t,
	aggregation: HealthAggregation,
	scope: HealthServiceTimeScope,
) -> HealthServiceAccessibilityMask {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2476", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Check if a certain combination of metric, `HealthActivityMask` and time span is
 accessible. Developers should check if the return value is
 `HealthServiceAccessibilityMaskAvailable` before calling any other HealthService APIs that
 involve the given activities.

 * `activity_mask`: A bitmask of activities you are interested in.
 * `time_start`: Earliest UTC time you are interested in.
 * `time_end`: Latest UTC time you are interested in.

 Returns A `HealthServiceAccessibilityMask` representing which of the
 passed `HealthActivityMask` values are available under the given constraints.*/
/** health_service_any_activity_accessible
  -> Added in 77
gneiss: Vtable Slot 600, Offset 2400*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_any_activity_accessible")]
pub unsafe extern "C" fn health_service_any_activity_accessible(
	activity_mask: HealthActivityMask,
	time_start: time_t,
	time_end: time_t,
) -> HealthServiceAccessibilityMask {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2400", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** All data is considered as outdated and apps should re-read all health data.
This happens after an app is subscribed via `health_service_events_subscribe()`,
on a change of the day, or in other cases that significantly change the underlying data.*/
pub const HealthEventType_HealthEventSignificantUpdate: HealthEventType = 0;
/** Recent values around `HealthMetricStepCount`, `HealthMetricActiveSeconds`,
or `HealthMetricWalkedDistanceMeters` have changed.*/
pub const HealthEventType_HealthEventMovementUpdate: HealthEventType = 1;
/** Recent values around `HealthMetricSleepSeconds`, `HealthMetricSleepRestfulSeconds`,
`HealthActivitySleep`, and `HealthActivityRestfulSleep` changed.*/
pub const HealthEventType_HealthEventSleepUpdate: HealthEventType = 2;
/// A metric has crossed the threshold set by `health_service_register_metric_alert`.
pub const HealthEventType_HealthEventMetricAlert: HealthEventType = 3;
/// Value of `HealthMetricHeartRateBPM` or `HealthMetricHeartRateRawBPM` has changed.
pub const HealthEventType_HealthEventHeartRateUpdate: HealthEventType = 4;
/// A new HRV peak-to-peak interval reading is available.
pub const HealthEventType_HealthEventHRVUpdate: HealthEventType = 5;
/// Health event enum. Passed into the `HealthEventHandler`.
pub type HealthEventType = ::core::ffi::c_uchar;
/** Developer-supplied event handler, called when a health-related event occurs after subscribing
via `health_service_events_subscribe()`;

* `event`: The type of health-related event that occured.
* `context`: The developer-supplied context pointer.*/
pub type HealthEventHandler = ::core::option::Option<
	unsafe extern "C" fn(event: HealthEventType, context: *mut ::core::ffi::c_void),
>;
/** Subscribe to HealthService events. This allocates a cache on the application's heap of up
 to 2048 bytes that will be de-allocated if you call `health_service_events_unsubscribe()`.
 If there's not enough heap available, this function will return `false` and will not
 subscribe to any events.

 * `handler`: Developer-supplied event handler function.
 * `context`: Developer-supplied context pointer.

 Returns `true` on success, `false` on failure.*/
/** health_service_events_subscribe
  -> Added in 77
gneiss: Vtable Slot 601, Offset 2404*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_events_subscribe")]
pub unsafe extern "C" fn health_service_events_subscribe(
	handler: HealthEventHandler,
	context: *mut ::core::ffi::c_void,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2404", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from HealthService events.

 Returns `true` on success, `false` on failure.*/
/** health_service_events_unsubscribe
  -> Added in 77
gneiss: Vtable Slot 602, Offset 2408*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_events_unsubscribe")]
pub unsafe extern "C" fn health_service_events_unsubscribe() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2408", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the desired sampling period for heart rate readings. Normally, the system will sample the
 heart rate using a sampling period that is automatically chosen to provide useful information
 without undue battery drain (it automatically samples more often during periods of intense
 activity, and less often when the user is idle). If desired though, an application can request a
 specific sampling period using this call. The system will use this as a suggestion, but does not
 guarantee that the requested period will be used. The actual sampling period may be greater or
 less due to system needs or heart rate sensor reading quality issues.

 Each time a new heart rate reading becomes available, a `HealthEventHeartRateUpdate` event will
 be sent to the application's `HealthEventHandler`. The sample period request will remain in
 effect the entire time the app is running unless it is explicitly cancelled (by calling this
 method again with 0 as the desired interval). If the app exits without first cancelling the
 request, it will remain in effect even for a limited time afterwards. To determine how long it
 will remain active after the app exits, use
 `health_service_get_heart_rate_sample_period_expiration_sec`.

 Unless the app explicitly needs to access to historical high-resolution heart rate data, it is
 best practice to always cancel the sample period request before exiting in order to maximize
 battery life. Historical heart rate data can be accessed using the
 `health_service_get_minute_history` call.

 * `interval_sec`: desired interval between heart rate reading updates. Pass 0 to
 go back to automatically chosen intervals.

 Returns `true` on success, `false` on failure*/
/** health_service_set_heart_rate_sample_period
  -> Added in 86
gneiss: Vtable Slot 629, Offset 2516*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_set_heart_rate_sample_period")]
pub unsafe extern "C" fn health_service_set_heart_rate_sample_period(interval_sec: u16) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2516", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Return how long a heart rate sample period request (sent via
 `health_service_set_heart_rate_sample_period`) will remain active after the app exits. If
 there is no current request by this app, this call will return 0.

 Returns The number of seconds the heart rate sample period request will remain active after
 the app exits, or 0 if there is no active request by this app.*/
/** health_service_get_heart_rate_sample_period_expiration_sec
  -> Added in 86
gneiss: Vtable Slot 628, Offset 2512*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_get_heart_rate_sample_period_expiration_sec")]
pub unsafe extern "C" fn health_service_get_heart_rate_sample_period_expiration_sec() -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2512", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Register for an alert when a metric crosses the given threshold. When the metric crosses this
 threshold (either goes above or below it), a `HealthEventMetricAlert` event will be
 generated. To cancel this registration, pass the returned `HealthMetricAlert` value to
 `health_service_cancel_metric_alert`. The only metric currently supported by this call is
 `HealthMetricHeartRateBPM`, but future versions may support additional metrics. To see if a
 specific metric is supported by this call, use:
 ```c
 time_t now = time(NULL);
 HealthServiceAccessibilityMask accessible =
	 health_service_metric_aggregate_averaged_accessible(metric, now, now, HealthAggregationAvg,
	 HealthServiceTimeScopeOnce);
 bool alert_supported = (accessible & HealthServiceAccessibilityMaskAvailable);
 ```

 In the current implementation, only one alert per metric can be registered at a time. Future
 implementations may support two or more simulataneous alert registrations per metric. To change
 the alert threshold in the current implementation, cancel the original registration
 using `health_service_cancel_metric_alert` before registering the new threshold.

 * `metric`: Which `HealthMetric` to query.
 * `threshold`: The threshold value.

 Returns handle to the alert registration on success, NULL on failure*/
/** health_service_register_metric_alert
  -> Added in 83
gneiss: Vtable Slot 621, Offset 2484*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_register_metric_alert")]
pub unsafe extern "C" fn health_service_register_metric_alert(
	metric: HealthMetric,
	threshold: HealthValue,
) -> *mut HealthMetricAlert {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2484", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Cancel an metric alert previously created with `health_service_register_metric_alert`.

 * `alert`: the `HealthMetricAlert` previously returned by
 `health_service_register_metric_alert`

 Returns `true` on success, `false` on failure*/
/** health_service_cancel_metric_alert
  -> Added in 83
gneiss: Vtable Slot 618, Offset 2472*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_cancel_metric_alert")]
pub unsafe extern "C" fn health_service_cancel_metric_alert(alert: *mut HealthMetricAlert) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2472", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const AmbientLightLevel_AmbientLightLevelUnknown: AmbientLightLevel = 0;
pub const AmbientLightLevel_AmbientLightLevelVeryDark: AmbientLightLevel = 1;
pub const AmbientLightLevel_AmbientLightLevelDark: AmbientLightLevel = 2;
pub const AmbientLightLevel_AmbientLightLevelLight: AmbientLightLevel = 3;
pub const AmbientLightLevel_AmbientLightLevelVeryLight: AmbientLightLevel = 4;
/// Light level enum
pub type AmbientLightLevel = ::core::ffi::c_uchar;
/** Structure representing a single minute data record returned
by `health_service_get_minute_history()`.
The `orientation` field encodes the angle of the watch in the x-y plane (the "yaw") in the
lower 4 bits (360 degrees linearly mapped to 1 of 16 different values) and the angle to the
z axis (the "pitch") in the upper 4 bits.
The `vmc` value is a measure of the total amount of movement seen by the watch. More vigorous
movement yields higher VMC values.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct HealthMinuteData {
	/// < Number of steps taken in this minute.
	pub steps:          u8,
	/// < Quantized average orientation.
	pub orientation:    u8,
	/// < Vector Magnitude Counts (vmc).
	pub vmc:            u16,
	pub _bitfield_1:    __BindgenBitfieldUnit<[u8; 1usize]>,
	/// < heart rate in beats per minute
	pub heart_rate_bpm: u8,
	/// < Reserved for future use.
	pub reserved:       [u8; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of HealthMinuteData"][::core::mem::size_of::<HealthMinuteData>() - 12usize];
	["Alignment of HealthMinuteData"][::core::mem::align_of::<HealthMinuteData>() - 2usize];
	["Offset of field: HealthMinuteData::steps"]
		[::core::mem::offset_of!(HealthMinuteData, steps) - 0usize];
	["Offset of field: HealthMinuteData::orientation"]
		[::core::mem::offset_of!(HealthMinuteData, orientation) - 1usize];
	["Offset of field: HealthMinuteData::vmc"]
		[::core::mem::offset_of!(HealthMinuteData, vmc) - 2usize];
	["Offset of field: HealthMinuteData::heart_rate_bpm"]
		[::core::mem::offset_of!(HealthMinuteData, heart_rate_bpm) - 5usize];
	["Offset of field: HealthMinuteData::reserved"]
		[::core::mem::offset_of!(HealthMinuteData, reserved) - 6usize];
};
impl HealthMinuteData {
	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn is_invalid(&self) -> bool {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_is_invalid(&mut self, val: bool) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn is_invalid_raw(this: *const Self) -> bool {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_is_invalid_raw(this: *mut Self, val: bool) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn light(&self) -> AmbientLightLevel {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_light(&mut self, val: AmbientLightLevel) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<1usize, 3u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn light_raw(this: *const Self) -> AmbientLightLevel {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 3u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_light_raw(this: *mut Self, val: AmbientLightLevel) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 3u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn padding(&self) -> u8 {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_padding(&mut self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<4usize, 4u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn padding_raw(this: *const Self) -> u8 {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_padding_raw(this: *mut Self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn new_bitfield_1(
		is_invalid: bool,
		light: AmbientLightLevel,
		padding: u8,
	) -> __BindgenBitfieldUnit<[u8; 1usize]> {
		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
		__bindgen_bitfield_unit.set_const::<0usize, 1u8>({
			let is_invalid: u8 = unsafe { ::core::mem::transmute(is_invalid) };
			is_invalid as u64
		});
		__bindgen_bitfield_unit.set_const::<1usize, 3u8>({
			let light: u8 = unsafe { ::core::mem::transmute(light) };
			light as u64
		});
		__bindgen_bitfield_unit.set_const::<4usize, 4u8>({
			let padding: u8 = unsafe { ::core::mem::transmute(padding) };
			padding as u64
		});
		__bindgen_bitfield_unit
	}
}
/** Return historical minute data records. This fills in the `minute_data` array parameter with
 minute by minute statistics of the user's steps, average watch orientation, etc. The data is
 returned in time order, with the oldest minute data returned at `minute_data[0]`.

 * `minute_data`: Pointer to an array of `HealthMinuteData` records that will be filled
 in with the historical minute data.

 * `max_records`: The maximum number of records the `minute_data` array can hold.
 * `time_start`: On entry, the UTC time of the first requested record. On exit,
 the UTC time of the first second of the first record actually returned.
 If `time_start` on entry is somewhere in the middle of a minute interval, this function
 behaves as if the caller passed in the start of that minute.

 * `time_end`: On entry, the UTC time of the end of the requested range of records. On
 exit, the UTC time of the end of the last record actually returned (i.e. start time of last
 record + 60). If `time_end` on entry is somewhere in the middle of a minute interval, this
 function behaves as if the caller passed in the end of that minute.

 Returns Actual number of records returned. May be less then the maximum requested.

 Note: If the return value is zero, `time_start` and `time_end` are meaningless.
 It's not guaranteed that all records contain valid data, even if the return value is
 greater than zero. Check `HealthMinuteData.is_invalid` to see if a given record contains
 valid data.*/
/** health_service_get_minute_history
  -> Added in 77
gneiss: Vtable Slot 603, Offset 2412*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_get_minute_history")]
pub unsafe extern "C" fn health_service_get_minute_history(
	minute_data: *mut HealthMinuteData,
	max_records: u32,
	time_start: *mut time_t,
	time_end: *mut time_t,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2412", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// The measurement system is unknown, or does not apply to the chosen metric.
pub const MeasurementSystem_MeasurementSystemUnknown: MeasurementSystem = 0;
/// The metric measurement system.
pub const MeasurementSystem_MeasurementSystemMetric: MeasurementSystem = 1;
/// The imperial measurement system.
pub const MeasurementSystem_MeasurementSystemImperial: MeasurementSystem = 2;
/// Types of measurement system a `HealthMetric` may be measured in.
pub type MeasurementSystem = ::core::ffi::c_uchar;
/** Get the preferred measurement system for a given `HealthMetric`, if the user has chosen
 a preferred system and it is applicable to that metric.

 * `metric`: A metric value chosen from `HealthMetric`.

 Returns A value from `MeasurementSystem` if applicable, else `MeasurementSystemUnknown`.*/
/** health_service_get_measurement_system_for_display
  -> Added in 80
gneiss: Vtable Slot 611, Offset 2444*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_get_measurement_system_for_display")]
pub unsafe extern "C" fn health_service_get_measurement_system_for_display(
	metric: HealthMetric,
) -> MeasurementSystem {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2444", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enables logging data asynchronously to a mobile app

In Pebble OS, data logging is a data storage and transfer subsystem that allows watchapps to
save data on non-volatile storage devices when the phone is not available to process it. The
API provides your watchapp with a mechanism for short-term data buffering for asynchronous data
transmission to a mobile app.

Using this API, your Pebble watchapp can create an arbitrary number of logs, but you’re
limited in the amount of storage space you can use. Note that approximately 640K is available
for data logging, which is shared among all watchapps that use it. This value is subject to
change in the future. When the data spool is full, an app will start overwriting its own data.
An app cannot overwrite another apps's data. However, the other app might have 0 bytes for data
logging.

Your app can log data to a session. Every new block of data is appended to the session.
The data is then sent to the associated phone application at the earliest convenience.
If a phone is available, the data is sent directly to the phone. Otherwise, it is saved to the
watch storage until the watch is connected to a phone.


For example:

To create a data logging session for 4-byte unsigned integers with a tag of 0x1234, you would
do this:
```c

DataLoggingSessionRef logging_session = data_logging_create(0x1234, DATA_LOGGING_UINT, 4,
															false);

// Fake creating some data and logging it to the session.
uint32_t data[] = { 1, 2, 3};
data_logging_log(logging_session, &data, 3);

// Fake creating more data and logging that as well.
uint32_t data2[] = { 1, 2 };
data_logging_log(logging_session, &data, 2);

// When we don't need to log anything else, we can close off the session.
data_logging_finish(logging_session);
```*/
pub type DataLoggingSessionRef = *mut ::core::ffi::c_void;
/** Array of bytes. Remember that this is the type of a single item in the logging session, so
using this type means you'll be logging multiple byte arrays (each a fixed length described
by item_length) for the duration of the session.*/
pub const DataLoggingItemType_DATA_LOGGING_BYTE_ARRAY: DataLoggingItemType = 0;
/// Unsigned integer. This may be a 1, 2, or 4 byte integer depending on the item_length parameter
pub const DataLoggingItemType_DATA_LOGGING_UINT: DataLoggingItemType = 2;
/// Signed integer. This may be a 1, 2, or 4 byte integer depending on the item_length parameter
pub const DataLoggingItemType_DATA_LOGGING_INT: DataLoggingItemType = 3;
/** The different types of session data that Pebble supports. This type describes the type of a
singular item in the data session. Every item in a given session is the same type and size.*/
pub type DataLoggingItemType = ::core::ffi::c_uchar;
/// < Successful operation
pub const DataLoggingResult_DATA_LOGGING_SUCCESS: DataLoggingResult = 0;
/// < Someone else is writing to this logging session
pub const DataLoggingResult_DATA_LOGGING_BUSY: DataLoggingResult = 1;
/// < No more space to save data
pub const DataLoggingResult_DATA_LOGGING_FULL: DataLoggingResult = 2;
/// < The logging session does not exist
pub const DataLoggingResult_DATA_LOGGING_NOT_FOUND: DataLoggingResult = 3;
/// < The logging session was made inactive
pub const DataLoggingResult_DATA_LOGGING_CLOSED: DataLoggingResult = 4;
/// < An invalid parameter was passed to one of the functions
pub const DataLoggingResult_DATA_LOGGING_INVALID_PARAMS: DataLoggingResult = 5;
/// < An internal error occurred
pub const DataLoggingResult_DATA_LOGGING_INTERNAL_ERR: DataLoggingResult = 6;
/// Enumerated values describing the possible outcomes of data logging operations
pub type DataLoggingResult = ::core::ffi::c_uchar;
/** Create a new data logging session.

 * `tag`: A tag associated with the logging session.
 * `item_type`: The type of data stored in this logging session
 * `item_length`: The size of a single data item in bytes
 * `resume`: True if we want to look for a logging session of the same tag and
 resume logging to it. If this is false and a session with the specified tag exists, that
 session will be closed and a new session will be opened.

 Returns An opaque reference to the data logging session*/
/** data_logging_create
  -> Added in 0
gneiss: Vtable Slot 71, Offset 284*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.data_logging_create")]
pub unsafe extern "C" fn data_logging_create(
	tag: u32,
	item_type: DataLoggingItemType,
	item_length: u16,
	resume: bool,
) -> DataLoggingSessionRef {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =284", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Finish up a data logging_session. Logging data is kept until it has successfully been
 transferred over to the phone, but no data may be added to the session after this function is
 called.

 * `logging_session`: a reference to the data logging session previously allocated using
 data_logging_create*/
/** data_logging_finish
  -> Added in 0
gneiss: Vtable Slot 72, Offset 288*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.data_logging_finish")]
pub unsafe extern "C" fn data_logging_finish(logging_session: DataLoggingSessionRef) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =288", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Add data to the data logging session. If a phone is available, the data is sent directly
 to the phone. Otherwise, it is saved to the watch storage until the watch is connected to a
 phone.

 * `logging_session`: a reference to the data logging session you want to add the data to
 * `data`: a pointer to the data buffer that contains multiple items
 * `num_items`: the number of items to log. This means data must be at least
 (num_items * item_length) long in bytes

 Returns
 DATA_LOGGING_SUCCESS on success

 Returns
 DATA_LOGGING_NOT_FOUND if the logging session is invalid

 Returns
 DATA_LOGGING_CLOSED if the sesion is not active

 Returns
 DATA_LOGGING_BUSY if the sesion is not available for writing

 Returns
 DATA_LOGGING_INVALID_PARAMS if num_items is 0 or data is NULL*/
/** data_logging_log
  -> Added in 0
gneiss: Vtable Slot 73, Offset 292*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.data_logging_log")]
pub unsafe extern "C" fn data_logging_log(
	logging_session: DataLoggingSessionRef,
	data: *const ::core::ffi::c_void,
	num_items: u32,
) -> DataLoggingResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =292", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C, packed)]
#[derive(Debug, Copy, Clone)]
pub struct Uuid {
	pub byte0:  u8,
	pub byte1:  u8,
	pub byte2:  u8,
	pub byte3:  u8,
	pub byte4:  u8,
	pub byte5:  u8,
	pub byte6:  u8,
	pub byte7:  u8,
	pub byte8:  u8,
	pub byte9:  u8,
	pub byte10: u8,
	pub byte11: u8,
	pub byte12: u8,
	pub byte13: u8,
	pub byte14: u8,
	pub byte15: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Uuid"][::core::mem::size_of::<Uuid>() - 16usize];
	["Alignment of Uuid"][::core::mem::align_of::<Uuid>() - 1usize];
	["Offset of field: Uuid::byte0"][::core::mem::offset_of!(Uuid, byte0) - 0usize];
	["Offset of field: Uuid::byte1"][::core::mem::offset_of!(Uuid, byte1) - 1usize];
	["Offset of field: Uuid::byte2"][::core::mem::offset_of!(Uuid, byte2) - 2usize];
	["Offset of field: Uuid::byte3"][::core::mem::offset_of!(Uuid, byte3) - 3usize];
	["Offset of field: Uuid::byte4"][::core::mem::offset_of!(Uuid, byte4) - 4usize];
	["Offset of field: Uuid::byte5"][::core::mem::offset_of!(Uuid, byte5) - 5usize];
	["Offset of field: Uuid::byte6"][::core::mem::offset_of!(Uuid, byte6) - 6usize];
	["Offset of field: Uuid::byte7"][::core::mem::offset_of!(Uuid, byte7) - 7usize];
	["Offset of field: Uuid::byte8"][::core::mem::offset_of!(Uuid, byte8) - 8usize];
	["Offset of field: Uuid::byte9"][::core::mem::offset_of!(Uuid, byte9) - 9usize];
	["Offset of field: Uuid::byte10"][::core::mem::offset_of!(Uuid, byte10) - 10usize];
	["Offset of field: Uuid::byte11"][::core::mem::offset_of!(Uuid, byte11) - 11usize];
	["Offset of field: Uuid::byte12"][::core::mem::offset_of!(Uuid, byte12) - 12usize];
	["Offset of field: Uuid::byte13"][::core::mem::offset_of!(Uuid, byte13) - 13usize];
	["Offset of field: Uuid::byte14"][::core::mem::offset_of!(Uuid, byte14) - 14usize];
	["Offset of field: Uuid::byte15"][::core::mem::offset_of!(Uuid, byte15) - 15usize];
};
/** Compares two UUIDs.

 Returns True if the two UUIDs are equal, false if they are not.*/
/** uuid_equal
  -> Added in 19
gneiss: Vtable Slot 341, Offset 1364*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.uuid_equal")]
pub unsafe extern "C" fn uuid_equal(uu1: *const Uuid, uu2: *const Uuid) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1364", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Writes UUID in a string form into buffer that looks like the following...
 {12345678-1234-5678-1234-567812345678} or {NULL UUID} if NULL was passed.

 * `uuid`: The Uuid to write into the buffer as human-readable string
 * `buffer`: Memory to write the string to. Must be at least `UUID_STRING_BUFFER_LENGTH` bytes long.*/
/** uuid_to_string
  -> Added in 19
gneiss: Vtable Slot 342, Offset 1368*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.uuid_to_string")]
pub unsafe extern "C" fn uuid_to_string(uuid: *const Uuid, buffer: *mut ::core::ffi::c_char) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1368", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Functions related to logging from apps.

 This module contains the functions necessary to log messages through
 Bluetooth.

 Note: It is no longer necessary to enable app logging output from the "settings->about" menu on the Pebble for
 them to be transmitted! Instead use the "pebble logs" command included with the SDK to activate logs. The logs
 will appear right in your console. Logging
 over Bluetooth is a fairly power hungry operation that non-developers will
 not need when your apps are distributed.*/
/** app_log
  -> Added in 0
gneiss: Vtable Slot 34, Offset 136*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_log")]
pub unsafe extern "C" fn app_log(
	log_level: u8,
	src_filename: *const ::core::ffi::c_char,
	src_line_number: ::core::ffi::c_int,
	fmt: *const ::core::ffi::c_char,
	args: ...
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =136", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Error level log message
pub const AppLogLevel_APP_LOG_LEVEL_ERROR: AppLogLevel = 1;
/// Warning level log message
pub const AppLogLevel_APP_LOG_LEVEL_WARNING: AppLogLevel = 50;
/// Info level log message
pub const AppLogLevel_APP_LOG_LEVEL_INFO: AppLogLevel = 100;
/// Debug level log message
pub const AppLogLevel_APP_LOG_LEVEL_DEBUG: AppLogLevel = 200;
/// Verbose Debug level log message
pub const AppLogLevel_APP_LOG_LEVEL_DEBUG_VERBOSE: AppLogLevel = 255;
/// Suggested log level values
pub type AppLogLevel = ::core::ffi::c_uchar;
/// The operation returned successfully
pub const DictionaryResult_DICT_OK: DictionaryResult = 0;
/// There was not enough backing storage to complete the operation
pub const DictionaryResult_DICT_NOT_ENOUGH_STORAGE: DictionaryResult = 2;
/// One or more arguments were invalid or uninitialized
pub const DictionaryResult_DICT_INVALID_ARGS: DictionaryResult = 4;
/// The lengths and/or count of the dictionary its tuples are inconsistent
pub const DictionaryResult_DICT_INTERNAL_INCONSISTENCY: DictionaryResult = 8;
/** A requested operation required additional memory to be allocated, but
the allocation failed, likely due to insufficient remaining heap memory.*/
pub const DictionaryResult_DICT_MALLOC_FAILED: DictionaryResult = 16;
/// Return values for dictionary write/conversion functions.
pub type DictionaryResult = ::core::ffi::c_uchar;
/// The value is an array of bytes
pub const TupleType_TUPLE_BYTE_ARRAY: TupleType = 0;
/// The value is a zero-terminated, UTF-8 C-string
pub const TupleType_TUPLE_CSTRING: TupleType = 1;
/** The value is an unsigned integer. The tuple's `.length` field is used to
determine the size of the integer (1, 2, or 4 bytes).*/
pub const TupleType_TUPLE_UINT: TupleType = 2;
/** The value is a signed integer. The tuple's `.length` field is used to
determine the size of the integer (1, 2, or 4 bytes).*/
pub const TupleType_TUPLE_INT: TupleType = 3;
/// Values representing the type of data that the `value` field of a Tuple contains
pub type TupleType = ::core::ffi::c_uchar;
/** Data structure for one serialized key/value tuple

Note: The structure is variable length! The length depends on the value data that the tuple
contains.*/
#[repr(C, packed)]
pub struct Tuple {
	/// The key
	pub key:         u32,
	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
	/// The length of `.value` in bytes
	pub length:      u16,
	pub value:       __IncompleteArrayField<Tuple__bindgen_ty_1>,
}
/** The value itself.

The different union fields are provided for convenience, avoiding the need for manual casts.

Note: The array length is of incomplete length on purpose, to facilitate
variable length data and because a data length of zero is valid.

Note: __Important: The integers are little endian!__*/
#[repr(C)]
pub struct Tuple__bindgen_ty_1 {
	/// The byte array value. Valid when `.type` is `TUPLE_BYTE_ARRAY`.
	pub data:                __BindgenUnionField<[u8; 0usize]>,
	/// The C-string value. Valid when `.type` is `TUPLE_CSTRING`.
	pub cstring:             __BindgenUnionField<[::core::ffi::c_char; 0usize]>,
	/** The 8-bit unsigned integer value. Valid when `.type` is `TUPLE_UINT`
	and `.length` is 1 byte.*/
	pub uint8:               __BindgenUnionField<u8>,
	/** The 16-bit unsigned integer value. Valid when `.type` is `TUPLE_UINT`
	and `.length` is 2 byte.*/
	pub uint16:              __BindgenUnionField<u16>,
	/** The 32-bit unsigned integer value. Valid when `.type` is `TUPLE_UINT`
	and `.length` is 4 byte.*/
	pub uint32:              __BindgenUnionField<u32>,
	/** The 8-bit signed integer value. Valid when `.type` is `TUPLE_INT`
	and `.length` is 1 byte.*/
	pub int8:                __BindgenUnionField<i8>,
	/** The 16-bit signed integer value. Valid when `.type` is `TUPLE_INT`
	and `.length` is 2 byte.*/
	pub int16:               __BindgenUnionField<i16>,
	/** The 32-bit signed integer value. Valid when `.type` is `TUPLE_INT`
	and `.length` is 4 byte.*/
	pub int32:               __BindgenUnionField<i32>,
	pub bindgen_union_field: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuple__bindgen_ty_1"][::core::mem::size_of::<Tuple__bindgen_ty_1>() - 4usize];
	["Alignment of Tuple__bindgen_ty_1"][::core::mem::align_of::<Tuple__bindgen_ty_1>() - 4usize];
	["Offset of field: Tuple__bindgen_ty_1::data"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, data) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::cstring"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, cstring) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::uint8"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, uint8) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::uint16"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, uint16) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::uint32"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, uint32) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::int8"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, int8) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::int16"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, int16) - 0usize];
	["Offset of field: Tuple__bindgen_ty_1::int32"]
		[::core::mem::offset_of!(Tuple__bindgen_ty_1, int32) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuple"][::core::mem::size_of::<Tuple>() - 7usize];
	["Alignment of Tuple"][::core::mem::align_of::<Tuple>() - 1usize];
	["Offset of field: Tuple::key"][::core::mem::offset_of!(Tuple, key) - 0usize];
	["Offset of field: Tuple::length"][::core::mem::offset_of!(Tuple, length) - 5usize];
	["Offset of field: Tuple::value"][::core::mem::offset_of!(Tuple, value) - 7usize];
};
impl Tuple {
	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn type_(&self) -> TupleType {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_type(&mut self, val: TupleType) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn type__raw(this: *const Self) -> TupleType {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_type_raw(this: *mut Self, val: TupleType) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn new_bitfield_1(type_: TupleType) -> __BindgenBitfieldUnit<[u8; 1usize]> {
		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
		__bindgen_bitfield_unit.set_const::<0usize, 8u8>({
			let type_: u8 = unsafe { ::core::mem::transmute(type_) };
			type_ as u64
		});
		__bindgen_bitfield_unit
	}
}
#[repr(C)]
#[derive(Debug)]
pub struct Dictionary {
	_unused: [u8; 0],
}
/** An iterator can be used to iterate over the key/value
tuples in an existing dictionary, using `dict_read_begin_from_buffer()`,
`dict_read_first()` and `dict_read_next()`.
An iterator can also be used to append key/value tuples to a dictionary,
for example using `dict_write_data()` or `dict_write_cstring()`.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DictionaryIterator {
	/// < The dictionary being iterated
	pub dictionary: *mut Dictionary,
	/// < Points to the first memory address after the last byte of the dictionary
	pub end:        *const ::core::ffi::c_void,
	/** Points to the next Tuple in the dictionary. Given the end of the
	Dictionary has not yet been reached: when writing, the next key/value
	pair will be written at the cursor. When reading, the next call
	to `dict_read_next()` will return the cursor.*/
	pub cursor:     *mut Tuple,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of DictionaryIterator"][::core::mem::size_of::<DictionaryIterator>() - 12usize];
	["Alignment of DictionaryIterator"][::core::mem::align_of::<DictionaryIterator>() - 4usize];
	["Offset of field: DictionaryIterator::dictionary"]
		[::core::mem::offset_of!(DictionaryIterator, dictionary) - 0usize];
	["Offset of field: DictionaryIterator::end"]
		[::core::mem::offset_of!(DictionaryIterator, end) - 4usize];
	["Offset of field: DictionaryIterator::cursor"]
		[::core::mem::offset_of!(DictionaryIterator, cursor) - 8usize];
};
/** Calculates the number of bytes that a dictionary will occupy, given
 one or more value lengths that need to be stored in the dictionary.

 Note: The formula to calculate the size of a Dictionary in bytes is:
 <pre>1 + (n * 7) + D1 + ... + Dn</pre>
 Where `n` is the number of Tuples in the Dictionary and `Dx` are the sizes
 of the values in the Tuples. The size of the Dictionary header is 1 byte.
 The size of the header for each Tuple is 7 bytes.

 * `tuple_count`: The total number of key/value pairs in the dictionary.
 * `...`: The sizes of each of the values that need to be
 stored in the dictionary.

 Returns The total number of bytes of storage needed.*/
/** dict_calc_buffer_size
  -> Added in 0
gneiss: Vtable Slot 74, Offset 296*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_calc_buffer_size")]
pub unsafe extern "C" fn dict_calc_buffer_size(tuple_count: u8, args: ...) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =296", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates the size of data that has been written to the dictionary.
 AKA, the "dictionary size". Note that this is most likely different
 than the size of the backing storage/backing buffer.

 * `iter`: The dictionary iterator

 Returns The total number of bytes which have been written to the dictionary.*/
/** dict_size
  -> Added in 6
gneiss: Vtable Slot 314, Offset 1256*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_size")]
pub unsafe extern "C" fn dict_size(iter: *mut DictionaryIterator) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1256", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Initializes the dictionary iterator with a given buffer and size,
 resets and empties it, in preparation of writing key/value tuples.

 * `iter`: The dictionary iterator
 * `buffer`: The storage of the dictionary
 * `size`: The storage size of the dictionary

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`

 See dict_calc_buffer_size

 See dict_write_end*/
/** dict_write_begin
  -> Added in 0
gneiss: Vtable Slot 84, Offset 336*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_begin")]
pub unsafe extern "C" fn dict_write_begin(
	iter: *mut DictionaryIterator,
	buffer: *mut u8,
	size: u16,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =336", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds a key with a byte array value pair to the dictionary.

 * `iter`: The dictionary iterator
 * `key`: The key
 * `data`: Pointer to the byte array
 * `size`: Length of the byte array

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`

 Note: The data will be copied into the backing storage of the dictionary.

 Note: There is _no_ checking for duplicate keys.*/
/** dict_write_data
  -> Added in 0
gneiss: Vtable Slot 86, Offset 344*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_data")]
pub unsafe extern "C" fn dict_write_data(
	iter: *mut DictionaryIterator,
	key: u32,
	data: *const u8,
	size: u16,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =344", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds a key with a C string value pair to the dictionary.

 * `iter`: The dictionary iterator
 * `key`: The key
 * `cstring`: Pointer to the zero-terminated C string

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`

 Note: The string will be copied into the backing storage of the dictionary.

 Note: There is _no_ checking for duplicate keys.*/
/** dict_write_cstring
  -> Added in 0
gneiss: Vtable Slot 85, Offset 340*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_cstring")]
pub unsafe extern "C" fn dict_write_cstring(
	iter: *mut DictionaryIterator,
	key: u32,
	cstring: *const ::core::ffi::c_char,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =340", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds a key with an integer value pair to the dictionary.

 * `iter`: The dictionary iterator
 * `key`: The key
 * `integer`: Pointer to the integer value
 * `width_bytes`: The width of the integer value
 * `is_signed`: Whether the integer's type is signed or not

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`

 Note: There is _no_ checking for duplicate keys. dict_write_int() is only for serializing a single
 integer. width_bytes can only be 1, 2, or 4.*/
/** dict_write_int
  -> Added in 0
gneiss: Vtable Slot 88, Offset 352*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_int")]
pub unsafe extern "C" fn dict_write_int(
	iter: *mut DictionaryIterator,
	key: u32,
	integer: *const ::core::ffi::c_void,
	width_bytes: u8,
	is_signed: bool,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =352", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds a key with an unsigned, 8-bit integer value pair to the dictionary.

 * `iter`: The dictionary iterator
 * `key`: The key
 * `value`: The unsigned, 8-bit integer value

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`

 Note: There is _no_ checking for duplicate keys.

 Note: There are counterpart functions for different signedness and widths,
 `dict_write_uint16()`, `dict_write_uint32()`, `dict_write_int8()`,
 `dict_write_int16()` and `dict_write_int32()`. The documentation is not
 repeated for brevity's sake.*/
/** dict_write_uint8
  -> Added in 0
gneiss: Vtable Slot 95, Offset 380*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_uint8")]
pub unsafe extern "C" fn dict_write_uint8(
	iter: *mut DictionaryIterator,
	key: u32,
	value: u8,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =380", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** dict_write_uint16
  -> Added in 0
gneiss: Vtable Slot 93, Offset 372*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_uint16")]
pub unsafe extern "C" fn dict_write_uint16(
	iter: *mut DictionaryIterator,
	key: u32,
	value: u16,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =372", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** dict_write_uint32
  -> Added in 0
gneiss: Vtable Slot 94, Offset 376*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_uint32")]
pub unsafe extern "C" fn dict_write_uint32(
	iter: *mut DictionaryIterator,
	key: u32,
	value: u32,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =376", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** dict_write_int8
  -> Added in 0
gneiss: Vtable Slot 91, Offset 364*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_int8")]
pub unsafe extern "C" fn dict_write_int8(
	iter: *mut DictionaryIterator,
	key: u32,
	value: i8,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =364", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** dict_write_int16
  -> Added in 0
gneiss: Vtable Slot 89, Offset 356*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_int16")]
pub unsafe extern "C" fn dict_write_int16(
	iter: *mut DictionaryIterator,
	key: u32,
	value: i16,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =356", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** dict_write_int32
  -> Added in 0
gneiss: Vtable Slot 90, Offset 360*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_int32")]
pub unsafe extern "C" fn dict_write_int32(
	iter: *mut DictionaryIterator,
	key: u32,
	value: i32,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =360", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** End a series of writing operations to a dictionary.
 This must be called before reading back from the dictionary.

 * `iter`: The dictionary iterator

 Returns The size in bytes of the finalized dictionary, or 0 if the parameters were invalid.*/
/** dict_write_end
  -> Added in 0
gneiss: Vtable Slot 87, Offset 348*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_end")]
pub unsafe extern "C" fn dict_write_end(iter: *mut DictionaryIterator) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =348", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Initializes the dictionary iterator with a given buffer and size,
 in preparation of reading key/value tuples.

 * `iter`: The dictionary iterator
 * `buffer`: The storage of the dictionary
 * `size`: The storage size of the dictionary

 Returns The first tuple in the dictionary, or NULL in case the dictionary was empty or if there was a parsing error.*/
/** dict_read_begin_from_buffer
  -> Added in 0
gneiss: Vtable Slot 78, Offset 312*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_read_begin_from_buffer")]
pub unsafe extern "C" fn dict_read_begin_from_buffer(
	iter: *mut DictionaryIterator,
	buffer: *const u8,
	size: u16,
) -> *mut Tuple {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =312", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Progresses the iterator to the next key/value pair.

 * `iter`: The dictionary iterator

 Returns The next tuple in the dictionary, or NULL in case the end has been reached or if there was a parsing error.*/
/** dict_read_next
  -> Added in 0
gneiss: Vtable Slot 80, Offset 320*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_read_next")]
pub unsafe extern "C" fn dict_read_next(iter: *mut DictionaryIterator) -> *mut Tuple {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =320", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Resets the iterator back to the same state as a call to `dict_read_begin_from_buffer()` would do.

 * `iter`: The dictionary iterator

 Returns The first tuple in the dictionary, or NULL in case the dictionary was empty or if there was a parsing error.*/
/** dict_read_first
  -> Added in 0
gneiss: Vtable Slot 79, Offset 316*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_read_first")]
pub unsafe extern "C" fn dict_read_first(iter: *mut DictionaryIterator) -> *mut Tuple {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =316", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Non-serialized, template data structure for a key/value pair.
For strings and byte arrays, it only has a pointer to the actual data.
For integers, it provides storage for integers up to 32-bits wide.
The Tuplet data structure is useful when creating dictionaries from values
that are already stored in arbitrary buffers.
See also `Tuple`, with is the header of a serialized key/value pair.*/
#[repr(C)]
#[derive(Copy, Clone)]
pub struct Tuplet {
	/** The type of the Tuplet. This determines which of the struct fields in the
	anonymomous union are valid.*/
	pub type_:            TupleType,
	/// The key.
	pub key:              u32,
	pub __bindgen_anon_1: Tuplet__bindgen_ty_1,
}
/** Anonymous union containing the reference to the Tuplet's value, being
either a byte array, c-string or integer. See documentation of `.bytes`,
`.cstring` and `.integer` fields.*/
#[repr(C)]
#[derive(Copy, Clone)]
pub union Tuplet__bindgen_ty_1 {
	pub bytes:   Tuplet__bindgen_ty_1__bindgen_ty_1,
	pub cstring: Tuplet__bindgen_ty_1__bindgen_ty_2,
	pub integer: Tuplet__bindgen_ty_1__bindgen_ty_3,
}
/// Valid when `.type.` is `TUPLE_BYTE_ARRAY`
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Tuplet__bindgen_ty_1__bindgen_ty_1 {
	/// Pointer to the data
	pub data:   *const u8,
	/// Length of the data
	pub length: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuplet__bindgen_ty_1__bindgen_ty_1"]
		[::core::mem::size_of::<Tuplet__bindgen_ty_1__bindgen_ty_1>() - 8usize];
	["Alignment of Tuplet__bindgen_ty_1__bindgen_ty_1"]
		[::core::mem::align_of::<Tuplet__bindgen_ty_1__bindgen_ty_1>() - 4usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_1::data"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_1, data) - 0usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_1::length"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_1, length) - 4usize];
};
/// Valid when `.type.` is `TUPLE_CSTRING`
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Tuplet__bindgen_ty_1__bindgen_ty_2 {
	/// Pointer to the c-string data
	pub data:   *const ::core::ffi::c_char,
	/// Length of the c-string, including terminating zero.
	pub length: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuplet__bindgen_ty_1__bindgen_ty_2"]
		[::core::mem::size_of::<Tuplet__bindgen_ty_1__bindgen_ty_2>() - 8usize];
	["Alignment of Tuplet__bindgen_ty_1__bindgen_ty_2"]
		[::core::mem::align_of::<Tuplet__bindgen_ty_1__bindgen_ty_2>() - 4usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_2::data"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_2, data) - 0usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_2::length"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_2, length) - 4usize];
};
/// Valid when `.type.` is `TUPLE_INT` or `TUPLE_UINT`
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Tuplet__bindgen_ty_1__bindgen_ty_3 {
	/** Actual storage of the integer.
	The signedness can be derived from the `.type` value.*/
	pub storage: u32,
	/// Width of the integer.
	pub width:   u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuplet__bindgen_ty_1__bindgen_ty_3"]
		[::core::mem::size_of::<Tuplet__bindgen_ty_1__bindgen_ty_3>() - 8usize];
	["Alignment of Tuplet__bindgen_ty_1__bindgen_ty_3"]
		[::core::mem::align_of::<Tuplet__bindgen_ty_1__bindgen_ty_3>() - 4usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_3::storage"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_3, storage) - 0usize];
	["Offset of field: Tuplet__bindgen_ty_1__bindgen_ty_3::width"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1__bindgen_ty_3, width) - 4usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuplet__bindgen_ty_1"][::core::mem::size_of::<Tuplet__bindgen_ty_1>() - 8usize];
	["Alignment of Tuplet__bindgen_ty_1"][::core::mem::align_of::<Tuplet__bindgen_ty_1>() - 4usize];
	["Offset of field: Tuplet__bindgen_ty_1::bytes"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1, bytes) - 0usize];
	["Offset of field: Tuplet__bindgen_ty_1::cstring"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1, cstring) - 0usize];
	["Offset of field: Tuplet__bindgen_ty_1::integer"]
		[::core::mem::offset_of!(Tuplet__bindgen_ty_1, integer) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of Tuplet"][::core::mem::size_of::<Tuplet>() - 16usize];
	["Alignment of Tuplet"][::core::mem::align_of::<Tuplet>() - 4usize];
	["Offset of field: Tuplet::type_"][::core::mem::offset_of!(Tuplet, type_) - 0usize];
	["Offset of field: Tuplet::key"][::core::mem::offset_of!(Tuplet, key) - 4usize];
};
/** Callback for `dict_serialize_tuplets()` utility.

* `data`: The data of the serialized dictionary
* `size`: The size of data
* `context`: The context pointer as passed in to `dict_serialize_tuplets()`

See dict_serialize_tuplets*/
pub type DictionarySerializeCallback = ::core::option::Option<
	unsafe extern "C" fn(data: *const u8, size: u16, context: *mut ::core::ffi::c_void),
>;
/** Utility function that takes a list of Tuplets from which a dictionary
 will be serialized, ready to transmit or store.

 Note: The callback will be called before the function returns, so the data that
 that `context` points to, can be stack allocated.

 * `callback`: The callback that will be called with the serialized data of the generated dictionary.
 * `context`: Pointer to any application specific data that gets passed into the callback.
 * `tuplets`: An array of Tuplets that need to be serialized into the dictionary.
 * `tuplets_count`: The number of tuplets that follow.

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`*/
/** dict_serialize_tuplets
  -> Added in 0
gneiss: Vtable Slot 81, Offset 324*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_serialize_tuplets")]
pub unsafe extern "C" fn dict_serialize_tuplets(
	callback: DictionarySerializeCallback,
	context: *mut ::core::ffi::c_void,
	tuplets: *const Tuplet,
	tuplets_count: u8,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =324", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Utility function that takes an array of Tuplets and serializes them into
 a dictionary with a given buffer and size.

 * `tuplets`: The array of tuplets
 * `tuplets_count`: The number of tuplets in the array
 * `buffer`: The buffer in which to write the serialized dictionary
 * `[in,out]`: size_in_out In: the available buffer size in bytes. Out: the number of bytes written.

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`*/
/** dict_serialize_tuplets_to_buffer
  -> Added in 5
gneiss: Vtable Slot 310, Offset 1240*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_serialize_tuplets_to_buffer")]
pub unsafe extern "C" fn dict_serialize_tuplets_to_buffer(
	tuplets: *const Tuplet,
	tuplets_count: u8,
	buffer: *mut u8,
	size_in_out: *mut u32,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1240", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Serializes an array of Tuplets into a dictionary with a given buffer and size.

 * `iter`: The dictionary iterator
 * `tuplets`: The array of tuplets
 * `tuplets_count`: The number of tuplets in the array
 * `buffer`: The buffer in which to write the serialized dictionary
 * `[in,out]`: size_in_out In: the available buffer size in bytes. Out: the number of bytes written.

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`*/
/** dict_serialize_tuplets_to_buffer_with_iter
  -> Added in 0
gneiss: Vtable Slot 83, Offset 332*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_serialize_tuplets_to_buffer_with_iter")]
pub unsafe extern "C" fn dict_serialize_tuplets_to_buffer_with_iter(
	iter: *mut DictionaryIterator,
	tuplets: *const Tuplet,
	tuplets_count: u8,
	buffer: *mut u8,
	size_in_out: *mut u32,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =332", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Serializes a Tuplet and writes the resulting Tuple into a dictionary.

 * `iter`: The dictionary iterator
 * `tuplet`: The Tuplet describing the key/value pair to write

 Returns `DICT_OK`, `DICT_NOT_ENOUGH_STORAGE` or `DICT_INVALID_ARGS`*/
/** dict_write_tuplet
  -> Added in 0
gneiss: Vtable Slot 92, Offset 368*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_write_tuplet")]
pub unsafe extern "C" fn dict_write_tuplet(
	iter: *mut DictionaryIterator,
	tuplet: *const Tuplet,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =368", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates the number of bytes that a dictionary will occupy, given
 one or more Tuplets that need to be stored in the dictionary.

 Note: See `dict_calc_buffer_size()` for the formula for the calculation.

 * `tuplets`: An array of Tuplets that need to be stored in the dictionary.
 * `tuplets_count`: The total number of Tuplets that follow.

 Returns The total number of bytes of storage needed.

 See Tuplet*/
/** dict_calc_buffer_size_from_tuplets
  -> Added in 0
gneiss: Vtable Slot 75, Offset 300*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_calc_buffer_size_from_tuplets")]
pub unsafe extern "C" fn dict_calc_buffer_size_from_tuplets(
	tuplets: *const Tuplet,
	tuplets_count: u8,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =300", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Type of the callback used in `dict_merge()`

* `key`: The key that is being updated.
* `new_tuple`: The new tuple. The tuple points to the actual, updated destination dictionary or NULL_TUPLE
in case there was an error (e.g. backing buffer was too small).
Therefore the Tuple can be used after the callback returns, until the destination dictionary
storage is free'd (by the application itself).

* `old_tuple`: The values that will be replaced with `new_tuple`. The key, value and type will be
equal to the previous tuple in the old destination dictionary, however the `old_tuple` points
to a stack-allocated copy of the old data.

* `context`: Pointer to application specific data
The storage backing `old_tuple` can only be used during the callback and
will no longer be valid after the callback returns.

See dict_merge*/
pub type DictionaryKeyUpdatedCallback = ::core::option::Option<
	unsafe extern "C" fn(
		key: u32,
		new_tuple: *const Tuple,
		old_tuple: *const Tuple,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Merges entries from another "source" dictionary into a "destination" dictionary.
 All Tuples from the source are written into the destination dictionary, while
 updating the exsting Tuples with matching keys.

 * `dest`: The destination dictionary to update
 * `[in,out]`: dest_max_size_in_out In: the maximum size of buffer backing `dest`. Out: the final size of the updated dictionary.
 * `source`: The source dictionary of which its Tuples will be used to update dest.
 * `update_existing_keys_only`: Specify True if only the existing keys in `dest` should be updated.
 * `key_callback`: The callback that will be called for each Tuple in the merged destination dictionary.
 * `context`: Pointer to app specific data that will get passed in when `update_key_callback` is called.

 Returns `DICT_OK`, `DICT_INVALID_ARGS`, `DICT_NOT_ENOUGH_STORAGE`*/
/** dict_merge
  -> Added in 0
gneiss: Vtable Slot 77, Offset 308*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_merge")]
pub unsafe extern "C" fn dict_merge(
	dest: *mut DictionaryIterator,
	dest_max_size_in_out: *mut u32,
	source: *mut DictionaryIterator,
	update_existing_keys_only: bool,
	key_callback: DictionaryKeyUpdatedCallback,
	context: *mut ::core::ffi::c_void,
) -> DictionaryResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =308", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tries to find a Tuple with specified key in a dictionary

 * `iter`: Iterator to the dictionary to search in.
 * `key`: The key for which to find a Tuple

 Returns Pointer to a found Tuple, or NULL if there was no Tuple with the specified key.*/
/** dict_find
  -> Added in 0
gneiss: Vtable Slot 76, Offset 304*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dict_find")]
pub unsafe extern "C" fn dict_find(iter: *const DictionaryIterator, key: u32) -> *mut Tuple {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =304", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug)]
pub struct DictationSession {
	_unused: [u8; 0],
}
/// Transcription successful, with a valid result
pub const DictationSessionStatus_DictationSessionStatusSuccess: DictationSessionStatus = 0;
/// User rejected transcription and exited UI
pub const DictationSessionStatus_DictationSessionStatusFailureTranscriptionRejected:
	DictationSessionStatus = 1;
/// User exited UI after transcription error
pub const DictationSessionStatus_DictationSessionStatusFailureTranscriptionRejectedWithError:
	DictationSessionStatus = 2;
/// Too many errors occurred during transcription and the UI exited
pub const DictationSessionStatus_DictationSessionStatusFailureSystemAborted:
	DictationSessionStatus = 3;
/// No speech was detected and UI exited
pub const DictationSessionStatus_DictationSessionStatusFailureNoSpeechDetected:
	DictationSessionStatus = 4;
/// No BT or internet connection
pub const DictationSessionStatus_DictationSessionStatusFailureConnectivityError:
	DictationSessionStatus = 5;
/// Voice transcription disabled for this user
pub const DictationSessionStatus_DictationSessionStatusFailureDisabled: DictationSessionStatus = 6;
/// Voice transcription failed due to internal error
pub const DictationSessionStatus_DictationSessionStatusFailureInternalError:
	DictationSessionStatus = 7;
/// Cloud recognizer failed to transcribe speech (only possible if error dialogs disabled)
pub const DictationSessionStatus_DictationSessionStatusFailureRecognizerError:
	DictationSessionStatus = 8;
pub type DictationSessionStatus = ::core::ffi::c_uchar;
/** Dictation status callback. Indicates success or failure of the dictation session and, if
successful, passes the transcribed string to the user of the dictation session. The transcribed
string will be freed after this call returns, so the string should be copied if it needs to be
retained afterwards.

* `session`: dictation session from which the status was received
* `status`: dictation status
* `transcription`: transcribed string
* `context`: callback context specified when starting the session*/
pub type DictationSessionStatusCallback = ::core::option::Option<
	unsafe extern "C" fn(
		session: *mut DictationSession,
		status: DictationSessionStatus,
		transcription: *mut ::core::ffi::c_char,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Create a dictation session. The session object can be used more than once to get a
 transcription. When a transcription is received a buffer will be allocated to store the text in
 with a maximum size specified by `buffer_size`. When a transcription is accepted by the user
 or a failure of some sort occurs, the callback specified will be called with the status and the
 transcription if one was accepted.

 * `buffer_size`: size of buffer to allocate for the transcription text; text will be
 truncated if it is longer than the maximum size specified; a size of 0
 will allow the session to allocate as much as it needs and text will
 not be truncated

 * `callback`: dictation session status handler (must be valid)
 * `callback_context`: context pointer for status handler

 Returns handle to the dictation session or NULL if the phone app is not connected or does not
 support voice dictation, if this is called on a platform that doesn't support voice dictation,
 or if an internal error occurs.*/
/** dictation_session_create
  -> Added in 63
gneiss: Vtable Slot 550, Offset 2200*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_create")]
pub unsafe extern "C" fn dictation_session_create(
	buffer_size: u32,
	callback: DictationSessionStatusCallback,
	callback_context: *mut ::core::ffi::c_void,
) -> *mut DictationSession {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2200", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroy the dictation session and free its memory. Will terminate a session in progress.

 * `session`: dictation session to be destroyed*/
/** dictation_session_destroy
  -> Added in 63
gneiss: Vtable Slot 551, Offset 2204*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_destroy")]
pub unsafe extern "C" fn dictation_session_destroy(session: *mut DictationSession) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2204", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Start the dictation session. The dictation UI will be shown. When the user accepts a
 transcription or exits the UI, or, when the confirmation dialog is disabled and a status is
 received, the status callback will be called. Can only be called when no session is in progress.
 The session can be restarted multiple times after the UI is exited or the session is stopped.

 * `session`: dictation session to start or restart

 Returns true if session was started, false if session is already in progress or is invalid.*/
/** dictation_session_start
  -> Added in 63
gneiss: Vtable Slot 553, Offset 2212*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_start")]
pub unsafe extern "C" fn dictation_session_start(
	session: *mut DictationSession,
) -> DictationSessionStatus {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2212", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Stop the current dictation session. The UI will be hidden and no status callbacks will be
 received after the session is stopped.

 * `session`: dictation session to stop

 Returns true if session was stopped, false if session was not started or is invalid*/
/** dictation_session_stop
  -> Added in 63
gneiss: Vtable Slot 554, Offset 2216*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_stop")]
pub unsafe extern "C" fn dictation_session_stop(
	session: *mut DictationSession,
) -> DictationSessionStatus {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2216", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enable or disable user confirmation of transcribed text, which allows the user to accept or
 reject (and restart) the transcription. Must be called before the session is started.

 * `session`: dictation session to modify
 * `is_enabled`: set to true to enable user confirmation of transcriptions (default), false
 to disable*/
/** dictation_session_enable_confirmation
  -> Added in 63
gneiss: Vtable Slot 552, Offset 2208*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_enable_confirmation")]
pub unsafe extern "C" fn dictation_session_enable_confirmation(
	session: *mut DictationSession,
	is_enabled: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2208", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enable or disable error dialogs when transcription fails. Must be called before the session
 is started. Disabling error dialogs will also disable automatic retries if transcription fails.

 * `session`: dictation session to modify
 * `is_enabled`: set to true to enable error dialogs (default), false to disable*/
/** dictation_session_enable_error_dialogs
  -> Added in 69
gneiss: Vtable Slot 570, Offset 2280*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.dictation_session_enable_error_dialogs")]
pub unsafe extern "C" fn dictation_session_enable_error_dialogs(
	session: *mut DictationSession,
	is_enabled: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2280", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// (0) All good, operation was successful.
pub const AppMessageResult_APP_MSG_OK: AppMessageResult = 0;
/// (2) The other end did not confirm receiving the sent data with an (n)ack in time.
pub const AppMessageResult_APP_MSG_SEND_TIMEOUT: AppMessageResult = 2;
/// (4) The other end rejected the sent data, with a "nack" reply.
pub const AppMessageResult_APP_MSG_SEND_REJECTED: AppMessageResult = 4;
/// (8) The other end was not connected.
pub const AppMessageResult_APP_MSG_NOT_CONNECTED: AppMessageResult = 8;
/// (16) The local application was not running.
pub const AppMessageResult_APP_MSG_APP_NOT_RUNNING: AppMessageResult = 16;
/// (32) The function was called with invalid arguments.
pub const AppMessageResult_APP_MSG_INVALID_ARGS: AppMessageResult = 32;
/** (64) There are pending (in or outbound) messages that need to be processed first before
new ones can be received or sent.*/
pub const AppMessageResult_APP_MSG_BUSY: AppMessageResult = 64;
/// (128) The buffer was too small to contain the incoming message.
pub const AppMessageResult_APP_MSG_BUFFER_OVERFLOW: AppMessageResult = 128;
/// (512) The resource had already been released.
pub const AppMessageResult_APP_MSG_ALREADY_RELEASED: AppMessageResult = 512;
/// (1024) The callback was already registered.
pub const AppMessageResult_APP_MSG_CALLBACK_ALREADY_REGISTERED: AppMessageResult = 1024;
/// (2048) The callback could not be deregistered, because it had not been registered before.
pub const AppMessageResult_APP_MSG_CALLBACK_NOT_REGISTERED: AppMessageResult = 2048;
/** (4096) The system did not have sufficient application memory to
perform the requested operation.*/
pub const AppMessageResult_APP_MSG_OUT_OF_MEMORY: AppMessageResult = 4096;
/// (8192) App message was closed.
pub const AppMessageResult_APP_MSG_CLOSED: AppMessageResult = 8192;
/// (16384) An internal OS error prevented AppMessage from completing an operation.
pub const AppMessageResult_APP_MSG_INTERNAL_ERROR: AppMessageResult = 16384;
/// (32768) The function was called while App Message was not in the appropriate state.
pub const AppMessageResult_APP_MSG_INVALID_STATE: AppMessageResult = 32768;
/// AppMessage result codes.
pub type AppMessageResult = ::core::ffi::c_ushort;
/** Open AppMessage to transfers.

 Use `dict_calc_buffer_size_from_tuplets()` or `dict_calc_buffer_size()` to estimate the size you need.

 * `size_inbound`: The required size for the Inbox buffer
 * `size_outbound`: The required size for the Outbox buffer

 Returns A result code such as `APP_MSG_OK` or `APP_MSG_OUT_OF_MEMORY`.

 Note: It is recommended that if the Inbox will be used, that at least the Inbox callbacks should be registered
 before this call. Otherwise it is possible for an Inbox message to be NACK'ed without being seen by the
 application.*/
/** app_message_open
  -> Added in 0
gneiss: Vtable Slot 36, Offset 144*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_open")]
pub unsafe extern "C" fn app_message_open(
	size_inbound: u32,
	size_outbound: u32,
) -> AppMessageResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =144", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Deregisters all callbacks and their context.
/** app_message_deregister_callbacks
  -> Added in 0
gneiss: Vtable Slot 35, Offset 140*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_deregister_callbacks")]
pub unsafe extern "C" fn app_message_deregister_callbacks() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =140", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Called after an incoming message is received.

* `iterator`:
The dictionary iterator to the received message. Never NULL. Note that the iterator cannot be modified or
saved off. The library may need to re-use the buffered space where this message is supplied. Returning from
the callback indicates to the library that the received message contents are no longer needed or have already
been externalized outside its buffering space and iterator.

* `context`:
Pointer to application data as specified when registering the callback.*/
pub type AppMessageInboxReceived = ::core::option::Option<
	unsafe extern "C" fn(iterator: *mut DictionaryIterator, context: *mut ::core::ffi::c_void),
>;
/** Called after an incoming message is dropped.

* `reason`:
The reason why the message was dropped. Some possibilities include `APP_MSG_BUSY` and
`APP_MSG_BUFFER_OVERFLOW`.

* `context`:
Pointer to application data as specified when registering the callback.

Note that you can call app_message_outbox_begin() from this handler to prepare a new message.
This will invalidate the previous dictionary iterator; do not use it after calling app_message_outbox_begin().*/
pub type AppMessageInboxDropped = ::core::option::Option<
	unsafe extern "C" fn(reason: AppMessageResult, context: *mut ::core::ffi::c_void),
>;
/** Called after an outbound message has been sent and the reply has been received.

* `iterator`:
The dictionary iterator to the sent message. The iterator will be in the final state that was sent. Note that
the iterator cannot be modified or saved off as the library will re-open the dictionary with dict_begin() after
this callback returns.

* `context`:
Pointer to application data as specified when registering the callback.*/
pub type AppMessageOutboxSent = ::core::option::Option<
	unsafe extern "C" fn(iterator: *mut DictionaryIterator, context: *mut ::core::ffi::c_void),
>;
/** Called after an outbound message has not been sent successfully.

* `iterator`:
The dictionary iterator to the sent message. The iterator will be in the final state that was sent. Note that
the iterator cannot be modified or saved off as the library will re-open the dictionary with dict_begin() after
this callback returns.

* `reason`:
The result of the operation. Some possibilities for the value include `APP_MSG_SEND_TIMEOUT`,
`APP_MSG_SEND_REJECTED`, `APP_MSG_NOT_CONNECTED`, `APP_MSG_APP_NOT_RUNNING`, and the combination
`(APP_MSG_NOT_CONNECTED | APP_MSG_APP_NOT_RUNNING)`.

* `context`:
Pointer to application data as specified when registering the callback.

Note that you can call app_message_outbox_begin() from this handler to prepare a new message.
This will invalidate the previous dictionary iterator; do not use it after calling app_message_outbox_begin().*/
pub type AppMessageOutboxFailed = ::core::option::Option<
	unsafe extern "C" fn(
		iterator: *mut DictionaryIterator,
		reason: AppMessageResult,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Gets the context that will be passed to all AppMessage callbacks.

 Returns The current context on record.*/
/** app_message_get_context
  -> Added in 3
gneiss: Vtable Slot 293, Offset 1172*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_get_context")]
pub unsafe extern "C" fn app_message_get_context() -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1172", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the context that will be passed to all AppMessage callbacks.

 * `context`: The context that will be passed to all AppMessage callbacks.

 Returns The previous context that was on record.*/
/** app_message_set_context
  -> Added in 3
gneiss: Vtable Slot 302, Offset 1208*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_set_context")]
pub unsafe extern "C" fn app_message_set_context(
	context: *mut ::core::ffi::c_void,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1208", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Registers a function that will be called after any Inbox message is received successfully.

 Only one callback may be registered at a time. Each subsequent call to this function will replace the previous
 callback. The callback is optional; setting it to NULL will deregister the current callback and no function will
 be called anymore.

 * `received_callback`: The callback that will be called going forward; NULL to not have a callback.

 Returns The previous callback (or NULL) that was on record.*/
/** app_message_register_inbox_received
  -> Added in 3
gneiss: Vtable Slot 299, Offset 1196*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_register_inbox_received")]
pub unsafe extern "C" fn app_message_register_inbox_received(
	received_callback: AppMessageInboxReceived,
) -> AppMessageInboxReceived {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1196", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Registers a function that will be called after any Inbox message is received but dropped by the system.

 Only one callback may be registered at a time. Each subsequent call to this function will replace the previous
 callback. The callback is optional; setting it to NULL will deregister the current callback and no function will
 be called anymore.

 * `dropped_callback`: The callback that will be called going forward; NULL to not have a callback.

 Returns The previous callback (or NULL) that was on record.*/
/** app_message_register_inbox_dropped
  -> Added in 3
gneiss: Vtable Slot 298, Offset 1192*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_register_inbox_dropped")]
pub unsafe extern "C" fn app_message_register_inbox_dropped(
	dropped_callback: AppMessageInboxDropped,
) -> AppMessageInboxDropped {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1192", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Registers a function that will be called after any Outbox message is sent and an ACK reply occurs in a timely
 fashion.

 Only one callback may be registered at a time. Each subsequent call to this function will replace the previous
 callback. The callback is optional; setting it to NULL will deregister the current callback and no function will
 be called anymore.

 * `sent_callback`: The callback that will be called going forward; NULL to not have a callback.

 Returns The previous callback (or NULL) that was on record.*/
/** app_message_register_outbox_sent
  -> Added in 3
gneiss: Vtable Slot 301, Offset 1204*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_register_outbox_sent")]
pub unsafe extern "C" fn app_message_register_outbox_sent(
	sent_callback: AppMessageOutboxSent,
) -> AppMessageOutboxSent {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1204", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Registers a function that will be called after any Outbox message is not sent with a timely ACK reply.
 The call to `app_message_outbox_send()` must have succeeded.

 Only one callback may be registered at a time. Each subsequent call to this function will replace the previous
 callback. The callback is optional; setting it to NULL will deregister the current callback and no function will
 be called anymore.

 * `failed_callback`: The callback that will be called going forward; NULL to not have a callback.

 Returns The previous callback (or NULL) that was on record.*/
/** app_message_register_outbox_failed
  -> Added in 3
gneiss: Vtable Slot 300, Offset 1200*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_register_outbox_failed")]
pub unsafe extern "C" fn app_message_register_outbox_failed(
	failed_callback: AppMessageOutboxFailed,
) -> AppMessageOutboxFailed {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1200", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Programatically determine the inbox size maximum in the current configuration.

 Returns The inbox size maximum on this firmware.

 See APP_MESSAGE_INBOX_SIZE_MINIMUM

 See app_message_outbox_size_maximum()*/
/** app_message_inbox_size_maximum
  -> Added in 3
gneiss: Vtable Slot 294, Offset 1176*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_inbox_size_maximum")]
pub unsafe extern "C" fn app_message_inbox_size_maximum() -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1176", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Programatically determine the outbox size maximum in the current configuration.

 Returns The outbox size maximum on this firmware.

 See APP_MESSAGE_OUTBOX_SIZE_MINIMUM

 See app_message_inbox_size_maximum()*/
/** app_message_outbox_size_maximum
  -> Added in 3
gneiss: Vtable Slot 297, Offset 1188*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_outbox_size_maximum")]
pub unsafe extern "C" fn app_message_outbox_size_maximum() -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1188", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Begin writing to the Outbox's Dictionary buffer.

 * `iterator`: Location to write the DictionaryIterator pointer. This will be NULL on failure.

 Returns A result code, including but not limited to `APP_MSG_OK`, `APP_MSG_INVALID_ARGS` or
 `APP_MSG_BUSY`.

 Note: After a successful call, one can add values to the dictionary using functions like `dict_write_data()`
 and friends.

 See Dictionary*/
/** app_message_outbox_begin
  -> Added in 3
gneiss: Vtable Slot 295, Offset 1180*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_outbox_begin")]
pub unsafe extern "C" fn app_message_outbox_begin(
	iterator: *mut *mut DictionaryIterator,
) -> AppMessageResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1180", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sends the outbound dictionary.

 Returns A result code, including but not limited to `APP_MSG_OK` or `APP_MSG_BUSY`. The APP_MSG_OK code does
 not mean that the message was sent successfully, but only that the start of processing was successful.
 Since this call is asynchronous, callbacks provide the final result instead.

 See AppMessageOutboxSent

 See AppMessageOutboxFailed*/
/** app_message_outbox_send
  -> Added in 3
gneiss: Vtable Slot 296, Offset 1184*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_message_outbox_send")]
pub unsafe extern "C" fn app_message_outbox_send() -> AppMessageResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1184", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Called whenever a Tuple changes. This does not necessarily mean the value in
the Tuple has changed. When the internal "current" dictionary gets updated,
existing Tuples might get shuffled around in the backing buffer, even though
the values stay the same. In this callback, the client code gets the chance
to remove the old reference and start using the new one.
In this callback, your application MUST clean up any references to the
`old_tuple` of a PREVIOUS call to this callback (and replace it with the
`new_tuple` that is passed in with the current call).

* `key`: The key for which the Tuple was changed.
* `new_tuple`: The new tuple. The tuple points to the actual, updated
"current" dictionary, as backed by the buffer internal to the AppSync
struct. Therefore the Tuple can be used after the callback returns, until
the AppSync is deinited. In case there was an error (e.g. storage shortage),
this `new_tuple` can be `NULL_TUPLE`.

* `old_tuple`: The values that will be replaced with `new_tuple`. The key,
value and type will be equal to the previous tuple in the old destination
dictionary; however, the `old_tuple` points to a stack-allocated copy of the
old data. This value will be `NULL_TUPLE` when the initial values are
being set.

* `context`: Pointer to application specific data, as set using
`app_sync_init()`

See `app_sync_init()`*/
pub type AppSyncTupleChangedCallback = ::core::option::Option<
	unsafe extern "C" fn(
		key: u32,
		new_tuple: *const Tuple,
		old_tuple: *const Tuple,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Called whenever there was an error.

* `dict_error`: The dictionary result error code, if the error was
dictionary related.

* `app_message_error`: The app_message result error code, if the error
was app_message related.

* `context`: Pointer to application specific data, as set using
`app_sync_init()`

See `app_sync_init()`*/
pub type AppSyncErrorCallback = ::core::option::Option<
	unsafe extern "C" fn(
		dict_error: DictionaryResult,
		app_message_error: AppMessageResult,
		context: *mut ::core::ffi::c_void,
	),
>;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct AppSync {
	pub current_iter:     DictionaryIterator,
	pub __bindgen_anon_1: AppSync__bindgen_ty_1,
	pub buffer_size:      u16,
	pub callback:         AppSync__bindgen_ty_2,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union AppSync__bindgen_ty_1 {
	pub current: *mut Dictionary,
	pub buffer:  *mut u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppSync__bindgen_ty_1"][::core::mem::size_of::<AppSync__bindgen_ty_1>() - 4usize];
	["Alignment of AppSync__bindgen_ty_1"]
		[::core::mem::align_of::<AppSync__bindgen_ty_1>() - 4usize];
	["Offset of field: AppSync__bindgen_ty_1::current"]
		[::core::mem::offset_of!(AppSync__bindgen_ty_1, current) - 0usize];
	["Offset of field: AppSync__bindgen_ty_1::buffer"]
		[::core::mem::offset_of!(AppSync__bindgen_ty_1, buffer) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AppSync__bindgen_ty_2 {
	pub value_changed: AppSyncTupleChangedCallback,
	pub error:         AppSyncErrorCallback,
	pub context:       *mut ::core::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppSync__bindgen_ty_2"][::core::mem::size_of::<AppSync__bindgen_ty_2>() - 12usize];
	["Alignment of AppSync__bindgen_ty_2"]
		[::core::mem::align_of::<AppSync__bindgen_ty_2>() - 4usize];
	["Offset of field: AppSync__bindgen_ty_2::value_changed"]
		[::core::mem::offset_of!(AppSync__bindgen_ty_2, value_changed) - 0usize];
	["Offset of field: AppSync__bindgen_ty_2::error"]
		[::core::mem::offset_of!(AppSync__bindgen_ty_2, error) - 4usize];
	["Offset of field: AppSync__bindgen_ty_2::context"]
		[::core::mem::offset_of!(AppSync__bindgen_ty_2, context) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppSync"][::core::mem::size_of::<AppSync>() - 32usize];
	["Alignment of AppSync"][::core::mem::align_of::<AppSync>() - 4usize];
	["Offset of field: AppSync::current_iter"]
		[::core::mem::offset_of!(AppSync, current_iter) - 0usize];
	["Offset of field: AppSync::buffer_size"]
		[::core::mem::offset_of!(AppSync, buffer_size) - 16usize];
	["Offset of field: AppSync::callback"][::core::mem::offset_of!(AppSync, callback) - 20usize];
};
/** Initialized an AppSync system with specific buffer size and initial keys and
 values. The `callback.value_changed` callback will be called
 __asynchronously__ with the initial keys and values, as to avoid duplicating
 code to update your app's UI.

 * `s`: The AppSync context to initialize
 * `buffer`: The buffer that AppSync should use
 * `buffer_size`: The size of the backing storage of the "current"
 dictionary. Use `dict_calc_buffer_size_from_tuplets()` to estimate the
 size you need.

 * `keys_and_initial_values`: An array of Tuplets with the initial keys and
 values.

 * `count`: The number of Tuplets in the `keys_and_initial_values` array.
 * `tuple_changed_callback`: The callback that will handle changed
 key/value pairs

 * `error_callback`: The callback that will handle errors
 * `context`: Pointer to app specific data that will get passed into calls
 to the callbacks

 Note: Only updates for the keys specified in this initial array will be
 accepted by AppSync, updates for other keys that might come in will just be
 ignored.*/
/** app_sync_init
  -> Added in 0
gneiss: Vtable Slot 45, Offset 180*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_sync_init")]
pub unsafe extern "C" fn app_sync_init(
	s: *mut AppSync,
	buffer: *mut u8,
	buffer_size: u16,
	keys_and_initial_values: *const Tuplet,
	count: u8,
	tuple_changed_callback: AppSyncTupleChangedCallback,
	error_callback: AppSyncErrorCallback,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =180", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Cleans up an AppSync system.
 It frees the buffer allocated by an `app_sync_init()` call and
 deregisters itself from the `AppMessage` subsystem.

 * `s`: The AppSync context to deinit.*/
/** app_sync_deinit
  -> Added in 0
gneiss: Vtable Slot 43, Offset 172*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_sync_deinit")]
pub unsafe extern "C" fn app_sync_deinit(s: *mut AppSync) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =172", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Updates key/value pairs using an array of Tuplets.

 Note: The call will attempt to send the updated keys and values to the
 application on the other end.
 Only after the other end has acknowledged the update, the `.value_changed`
 callback will be called to confirm the update has completed and your
 application code can update its user interface.

 * `s`: The AppSync context
 * `keys_and_values_to_update`: An array of Tuplets with the keys and
 values to update. The data in the Tuplets are copied during the call, so the
 array can be stack-allocated.

 * `count`: The number of Tuplets in the `keys_and_values_to_update` array.

 Returns The result code from the `AppMessage` subsystem.
 Can be `APP_MSG_OK`, `APP_MSG_BUSY` or `APP_MSG_INVALID_ARGS`*/
/** app_sync_set
  -> Added in 0
gneiss: Vtable Slot 46, Offset 184*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_sync_set")]
pub unsafe extern "C" fn app_sync_set(
	s: *mut AppSync,
	keys_and_values_to_update: *const Tuplet,
	count: u8,
) -> AppMessageResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =184", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Finds and gets a tuple in the "current" dictionary.

 * `s`: The AppSync context
 * `key`: The key for which to find a Tuple

 Returns Pointer to a found Tuple, or NULL if there was no Tuple with the
 specified key.*/
/** app_sync_get
  -> Added in 0
gneiss: Vtable Slot 44, Offset 176*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_sync_get")]
pub unsafe extern "C" fn app_sync_get(s: *const AppSync, key: u32) -> *const Tuple {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =176", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Opaque reference to a resource.

See `resource_get_handle()`*/
pub type ResHandle = *mut ::core::ffi::c_void;
/** Gets the resource handle for a file identifier.

 * `resource_id`: The resource ID

 The resource IDs are auto-generated by the Pebble build process, based
 on the `appinfo.json`. The "name" field of each resource is prefixed
 by `RESOURCE_ID_` and made visible to the application (through the
 `build/src/resource_ids.auto.h` header which is automatically included).

 For example, given the following fragment of `appinfo.json`:
 ```c
   ...
   "resources" : {
	 "media": [
		{
		   "name": "MY_ICON",
		   "file": "img/icon.png",
		   "type": "png",
		},
	...
 ```
 The generated file identifier for this resource is `RESOURCE_ID_MY_ICON`.
 To get a resource handle for that resource write:
 ```c
 ResHandle rh = resource_get_handle(RESOURCE_ID_MY_ICON);
 ```*/
/** resource_get_handle
  -> Added in 0
gneiss: Vtable Slot 206, Offset 824*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.resource_get_handle")]
pub unsafe extern "C" fn resource_get_handle(resource_id: u32) -> ResHandle {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =824", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the size of the resource given a resource handle.

 * `h`: The handle to the resource

 Returns The size of the resource in bytes*/
/** resource_size
  -> Added in 0
gneiss: Vtable Slot 209, Offset 836*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.resource_size")]
pub unsafe extern "C" fn resource_size(h: ResHandle) -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =836", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Copies the bytes for the resource with a given handle from flash storage into a given buffer.

 * `h`: The handle to the resource
 * `buffer`: The buffer to load the resource data into
 * `max_length`: The maximum number of bytes to copy

 Returns The number of bytes actually copied*/
/** resource_load
  -> Added in 0
gneiss: Vtable Slot 207, Offset 828*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.resource_load")]
pub unsafe extern "C" fn resource_load(h: ResHandle, buffer: *mut u8, max_length: usize) -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =828", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Copies a range of bytes from a resource with a given handle into a given buffer.

 * `h`: The handle to the resource
 * `start_offset`: The offset in bytes at which to start reading from the resource
 * `buffer`: The buffer to load the resource data into
 * `num_bytes`: The maximum number of bytes to copy

 Returns The number of bytes actually copied*/
/** resource_load_byte_range
  -> Added in 0
gneiss: Vtable Slot 208, Offset 832*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.resource_load_byte_range")]
pub unsafe extern "C" fn resource_load_byte_range(
	h: ResHandle,
	start_offset: u32,
	buffer: *mut u8,
	num_bytes: usize,
) -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =832", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The event loop for C apps, to be used in app's main().
 Will block until the app is ready to exit.*/
/** app_event_loop
  -> Added in 0
gneiss: Vtable Slot 31, Offset 124*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_event_loop")]
pub unsafe extern "C" fn app_event_loop() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =124", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Configuration record for creating a Moddable XS virtual machine.
Used with moddable_createMachine() to customize the JS runtime.
Set recordSize to sizeof(ModdableCreationRecord) for version compatibility.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ModdableCreationRecord {
	/// < Size of this struct in bytes (for versioning)
	pub recordSize: u32,
	/// < Stack size in bytes (0 for default)
	pub stack:      u32,
	/// < Slot heap size in bytes (0 for default)
	pub slot:       u32,
	/// < Chunk heap size in bytes (0 for default)
	pub chunk:      u32,
	/// < Combination of kModdableCreationFlag* values
	pub flags:      u32,
	/// < Optional pointer to an fxBuildFFI function for custom native bindings
	pub fxBuildFFI: *mut ::core::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ModdableCreationRecord"][::core::mem::size_of::<ModdableCreationRecord>() - 24usize];
	["Alignment of ModdableCreationRecord"]
		[::core::mem::align_of::<ModdableCreationRecord>() - 4usize];
	["Offset of field: ModdableCreationRecord::recordSize"]
		[::core::mem::offset_of!(ModdableCreationRecord, recordSize) - 0usize];
	["Offset of field: ModdableCreationRecord::stack"]
		[::core::mem::offset_of!(ModdableCreationRecord, stack) - 4usize];
	["Offset of field: ModdableCreationRecord::slot"]
		[::core::mem::offset_of!(ModdableCreationRecord, slot) - 8usize];
	["Offset of field: ModdableCreationRecord::chunk"]
		[::core::mem::offset_of!(ModdableCreationRecord, chunk) - 12usize];
	["Offset of field: ModdableCreationRecord::flags"]
		[::core::mem::offset_of!(ModdableCreationRecord, flags) - 16usize];
	["Offset of field: ModdableCreationRecord::fxBuildFFI"]
		[::core::mem::offset_of!(ModdableCreationRecord, fxBuildFFI) - 20usize];
};
/** Create and start a Moddable XS virtual machine for an Alloy app.

 * `creation`: Configuration record, or NULL for default settings.

 See ModdableCreationRecord*/
/** moddable_createMachine
  -> Added in 90
gneiss: Vtable Slot 632, Offset 2528*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.moddable_createMachine")]
pub unsafe extern "C" fn moddable_createMachine(creation: *mut ModdableCreationRecord) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2528", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Success
pub const AppWorkerResult_APP_WORKER_RESULT_SUCCESS: AppWorkerResult = 0;
/// No worker found for the current app
pub const AppWorkerResult_APP_WORKER_RESULT_NO_WORKER: AppWorkerResult = 1;
/// A worker for a different app is already running
pub const AppWorkerResult_APP_WORKER_RESULT_DIFFERENT_APP: AppWorkerResult = 2;
/// The worker is not running
pub const AppWorkerResult_APP_WORKER_RESULT_NOT_RUNNING: AppWorkerResult = 3;
/// The worker is already running
pub const AppWorkerResult_APP_WORKER_RESULT_ALREADY_RUNNING: AppWorkerResult = 4;
/// The user will be asked for confirmation
pub const AppWorkerResult_APP_WORKER_RESULT_ASKING_CONFIRMATION: AppWorkerResult = 5;
/// Possible error codes from app_worker_launch, app_worker_kill
pub type AppWorkerResult = ::core::ffi::c_uchar;
/// Generic structure of a worker message that can be sent between an app and its worker
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AppWorkerMessage {
	pub data0: u16,
	pub data1: u16,
	pub data2: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppWorkerMessage"][::core::mem::size_of::<AppWorkerMessage>() - 6usize];
	["Alignment of AppWorkerMessage"][::core::mem::align_of::<AppWorkerMessage>() - 2usize];
	["Offset of field: AppWorkerMessage::data0"]
		[::core::mem::offset_of!(AppWorkerMessage, data0) - 0usize];
	["Offset of field: AppWorkerMessage::data1"]
		[::core::mem::offset_of!(AppWorkerMessage, data1) - 2usize];
	["Offset of field: AppWorkerMessage::data2"]
		[::core::mem::offset_of!(AppWorkerMessage, data2) - 4usize];
};
/** Determine if the worker for the current app is running

 Returns true if running*/
/** app_worker_is_running
  -> Added in 16
gneiss: Vtable Slot 327, Offset 1308*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_is_running")]
pub unsafe extern "C" fn app_worker_is_running() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1308", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Launch the worker for the current app. Note that this is an asynchronous operation, a result code
 of APP_WORKER_RESULT_SUCCESS merely means that the request was successfully queued up.

 Returns result code*/
/** app_worker_launch
  -> Added in 16
gneiss: Vtable Slot 329, Offset 1316*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_launch")]
pub unsafe extern "C" fn app_worker_launch() -> AppWorkerResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1316", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Kill the worker for the current app. Note that this is an asynchronous operation, a result code
 of APP_WORKER_RESULT_SUCCESS merely means that the request was successfully queued up.

 Returns result code*/
/** app_worker_kill
  -> Added in 16
gneiss: Vtable Slot 328, Offset 1312*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_kill")]
pub unsafe extern "C" fn app_worker_kill() -> AppWorkerResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1312", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Callback type for worker messages. Messages can be sent from worker to app or vice versa.

* `type`: An application defined message type
* `data`: pointer to message data. The receiver must know the structure of the data provided by the sender.*/
pub type AppWorkerMessageHandler =
	::core::option::Option<unsafe extern "C" fn(type_: u16, data: *mut AppWorkerMessage)>;
/** Subscribe to worker messages. Once subscribed, the handler gets called on every message emitted by the other task
 (either worker or app).

 * `handler`: A callback to be executed when the event is received

 Returns true on success*/
/** app_worker_message_subscribe
  -> Added in 16
gneiss: Vtable Slot 330, Offset 1320*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_message_subscribe")]
pub unsafe extern "C" fn app_worker_message_subscribe(handler: AppWorkerMessageHandler) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1320", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribe from worker messages. Once unsubscribed, the previously registered handler will no longer be called.

 Returns true on success*/
/** app_worker_message_unsubscribe
  -> Added in 16
gneiss: Vtable Slot 331, Offset 1324*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_message_unsubscribe")]
pub unsafe extern "C" fn app_worker_message_unsubscribe() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1324", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Send a message to the other task (either worker or app).

 * `type`: An application defined message type
 * `data`: the message data structure*/
/** app_worker_send_message
  -> Added in 16
gneiss: Vtable Slot 332, Offset 1328*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_worker_send_message")]
pub unsafe extern "C" fn app_worker_send_message(type_: u8, data: *mut AppWorkerMessage) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1328", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Set the sniff interval to normal (power-saving) mode
pub const SniffInterval_SNIFF_INTERVAL_NORMAL: SniffInterval = 0;
/** Reduce the sniff interval to increase the responsiveness of the radio at
the expense of increasing Bluetooth energy consumption by a multiple of 2-5
(very significant)*/
pub const SniffInterval_SNIFF_INTERVAL_REDUCED: SniffInterval = 1;
/** Intervals during which the Bluetooth module may enter a low power mode.
The sniff interval defines the period during which the Bluetooth module may
not exchange (ACL) packets. The longer the sniff interval, the more time the
Bluetooth module may spend in a low power mode.
It may be necessary to reduce the sniff interval if an app requires reduced
latency when sending messages.

Note: These settings have a dramatic effect on the Pebble's energy
consumption. Use the normal sniff interval whenever possible.
Note, however, that switching between modes increases power consumption
during the process. Frequent switching between modes is thus
discouraged. Ensure you do not drop to normal frequently. The Bluetooth module
is a major consumer of the Pebble's energy.*/
pub type SniffInterval = ::core::ffi::c_uchar;
/** Set the Bluetooth module's sniff interval.
 The sniff interval will be restored to normal by the OS after the app's
 de-init handler is called. Set the sniff interval to normal whenever
 possible.*/
/** app_comm_set_sniff_interval
  -> Added in 0
gneiss: Vtable Slot 30, Offset 120*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_comm_set_sniff_interval")]
pub unsafe extern "C" fn app_comm_set_sniff_interval(interval: SniffInterval) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =120", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the Bluetooth module's sniff interval

 Returns The SniffInterval value corresponding to the current interval*/
/** app_comm_get_sniff_interval
  -> Added in 0
gneiss: Vtable Slot 29, Offset 116*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_comm_get_sniff_interval")]
pub unsafe extern "C" fn app_comm_get_sniff_interval() -> SniffInterval {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =116", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Waits for a certain amount of milliseconds

 * `millis`: The number of milliseconds to wait for*/
/** psleep
  -> Added in 0
gneiss: Vtable Slot 204, Offset 816*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.psleep")]
pub unsafe extern "C" fn psleep(millis: ::core::ffi::c_int) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =816", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug)]
pub struct AppTimer {
	_unused: [u8; 0],
}
/** The type of function which can be called when a timer fires. The argument will be the `callback_data` passed to
`app_timer_register()`.*/
pub type AppTimerCallback =
	::core::option::Option<unsafe extern "C" fn(data: *mut ::core::ffi::c_void)>;
/** Registers a timer that ends up in callback being called some specified time in the future.

 * `timeout_ms`: The expiry time in milliseconds from the current time
 * `callback`: The callback that gets called at expiry time
 * `callback_data`: The data that will be passed to callback

 Returns A pointer to an `AppTimer` that can be used to later reschedule or cancel this timer*/
/** app_timer_register
  -> Added in 0
gneiss: Vtable Slot 48, Offset 192*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_timer_register")]
pub unsafe extern "C" fn app_timer_register(
	timeout_ms: u32,
	callback: AppTimerCallback,
	callback_data: *mut ::core::ffi::c_void,
) -> *mut AppTimer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =192", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reschedules an already running timer for some point in the future.
 Elapsed timers cannot be rescheduled.

 * `timer_handle`: The timer to reschedule
 * `new_timeout_ms`: The new expiry time in milliseconds from the current time

 Returns true if the timer was rescheduled, false if the timer has already elapsed*/
/** app_timer_reschedule
  -> Added in 0
gneiss: Vtable Slot 49, Offset 196*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_timer_reschedule")]
pub unsafe extern "C" fn app_timer_reschedule(
	timer_handle: *mut AppTimer,
	new_timeout_ms: u32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =196", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Cancels an already registered timer.
 Once cancelled the handle may no longer be used for any purpose.
 Elapsed timers do not need to be cancelled.*/
/** app_timer_cancel
  -> Added in 0
gneiss: Vtable Slot 47, Offset 188*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_timer_cancel")]
pub unsafe extern "C" fn app_timer_cancel(timer_handle: *mut AppTimer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =188", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates the number of bytes of heap memory *not* currently being used by the application.

 Returns The number of bytes on the heap not currently being used.*/
/** heap_bytes_free
  -> Added in 17
gneiss: Vtable Slot 335, Offset 1340*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.heap_bytes_free")]
pub unsafe extern "C" fn heap_bytes_free() -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1340", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates the number of bytes of heap memory currently being used by the application.

 Returns The number of bytes on the heap currently being used.*/
/** heap_bytes_used
  -> Added in 17
gneiss: Vtable Slot 336, Offset 1344*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.heap_bytes_used")]
pub unsafe extern "C" fn heap_bytes_used() -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1344", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Flushes the data cache and invalidates the instruction cache for the given region of memory,
 if necessary. This is only required when your app is loading or modifying code in memory and
 intends to execute it. On some platforms, code executed may be cached internally to improve
 performance. After writing to memory, but before executing, this function must be called in
 order to avoid undefined behavior. On platforms without caching, this performs no operation.

 * `start`: The beginning of the buffer to flush
 * `size`: How many bytes to flush*/
/** memory_cache_flush
  -> Added in 84
gneiss: Vtable Slot 626, Offset 2504*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.memory_cache_flush")]
pub unsafe extern "C" fn memory_cache_flush(start: *mut ::core::ffi::c_void, size: usize) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2504", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Operation completed successfully.
pub const StatusCode_S_SUCCESS: StatusCode = 0;
/// An error occurred (no description).
pub const StatusCode_E_ERROR: StatusCode = -1;
/// No idea what went wrong.
pub const StatusCode_E_UNKNOWN: StatusCode = -2;
/// There was a generic internal logic error.
pub const StatusCode_E_INTERNAL: StatusCode = -3;
/// The function was not called correctly.
pub const StatusCode_E_INVALID_ARGUMENT: StatusCode = -4;
/// Insufficient allocatable memory available.
pub const StatusCode_E_OUT_OF_MEMORY: StatusCode = -5;
/// Insufficient long-term storage available.
pub const StatusCode_E_OUT_OF_STORAGE: StatusCode = -6;
/// Insufficient resources available.
pub const StatusCode_E_OUT_OF_RESOURCES: StatusCode = -7;
/// Argument out of range (may be dynamic).
pub const StatusCode_E_RANGE: StatusCode = -8;
/// Target of operation does not exist.
pub const StatusCode_E_DOES_NOT_EXIST: StatusCode = -9;
/// Operation not allowed (may depend on state).
pub const StatusCode_E_INVALID_OPERATION: StatusCode = -10;
/// Another operation prevented this one.
pub const StatusCode_E_BUSY: StatusCode = -11;
/// Operation not completed; try again.
pub const StatusCode_E_AGAIN: StatusCode = -12;
/// Equivalent of boolean true.
pub const StatusCode_S_TRUE: StatusCode = 1;
/// Equivalent of boolean false.
pub const StatusCode_S_FALSE: StatusCode = 0;
/// For list-style requests. At end of list.
pub const StatusCode_S_NO_MORE_ITEMS: StatusCode = 2;
/// No action was taken as none was required.
pub const StatusCode_S_NO_ACTION_REQUIRED: StatusCode = 3;
/// Status codes. See `status_t`
pub type StatusCode = ::core::ffi::c_schar;
/// Return value for system operations. See `StatusCode` for possible values.
pub type status_t = i32;
/** Checks whether a value has been set for a given key in persistent storage.

 * `key`: The key of the field to check.

 Returns true if a value exists, otherwise false.*/
/** persist_exists
  -> Added in 0
gneiss: Vtable Slot 188, Offset 752*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_exists")]
pub unsafe extern "C" fn persist_exists(key: u32) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =752", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the maximum total size in bytes of all persisted values for the
 current app on this firmware. Apps targeting older SDKs that don't have
 this function should assume a 4 KB limit.

 Returns The per-app persistent storage capacity in bytes.*/
/** persist_get_max_size
  -> Added in 99
gneiss: Vtable Slot 651, Offset 2604*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_get_max_size")]
pub unsafe extern "C" fn persist_get_max_size() -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2604", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the size of a value for a given key in persistent storage.

 * `key`: The key of the field to lookup the data size.

 Returns The size of the value in bytes or `E_DOES_NOT_EXIST`
 if there is no field matching the given key.*/
/** persist_get_size
  -> Added in 0
gneiss: Vtable Slot 189, Offset 756*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_get_size")]
pub unsafe extern "C" fn persist_get_size(key: u32) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =756", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reads a bool value for a given key from persistent storage.
 If the value has not yet been set, this will return false.

 * `key`: The key of the field to read from.

 Returns The bool value of the key to read from.*/
/** persist_read_bool
  -> Added in 0
gneiss: Vtable Slot 190, Offset 760*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_read_bool")]
pub unsafe extern "C" fn persist_read_bool(key: u32) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =760", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reads an int value for a given key from persistent storage.

 Note: The int is a signed 32-bit integer.
 If the value has not yet been set, this will return 0.

 * `key`: The key of the field to read from.

 Returns The int value of the key to read from.*/
/** persist_read_int
  -> Added in 0
gneiss: Vtable Slot 192, Offset 768*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_read_int")]
pub unsafe extern "C" fn persist_read_int(key: u32) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =768", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reads a blob of data for a given key from persistent storage into a given buffer.
 If the value has not yet been set, the given buffer is left unchanged.

 * `key`: The key of the field to read from.
 * `buffer`: The pointer to a buffer to be written to.
 * `buffer_size`: The maximum size of the given buffer.

 Returns The number of bytes written into the buffer or `E_DOES_NOT_EXIST`
 if there is no field matching the given key.*/
/** persist_read_data
  -> Added in 5
gneiss: Vtable Slot 311, Offset 1244*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_read_data")]
pub unsafe extern "C" fn persist_read_data(
	key: u32,
	buffer: *mut ::core::ffi::c_void,
	buffer_size: usize,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1244", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reads a string for a given key from persistent storage into a given buffer.
 The string will be null terminated.
 If the value has not yet been set, the given buffer is left unchanged.

 * `key`: The key of the field to read from.
 * `buffer`: The pointer to a buffer to be written to.
 * `buffer_size`: The maximum size of the given buffer. This includes the null character.

 Returns The number of bytes written into the buffer or `E_DOES_NOT_EXIST`
 if there is no field matching the given key.*/
/** persist_read_string
  -> Added in 5
gneiss: Vtable Slot 312, Offset 1248*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_read_string")]
pub unsafe extern "C" fn persist_read_string(
	key: u32,
	buffer: *mut ::core::ffi::c_char,
	buffer_size: usize,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1248", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Writes a bool value flag for a given key into persistent storage.

 * `key`: The key of the field to write to.
 * `value`: The boolean value to write.

 Returns The number of bytes written if successful, a value from `StatusCode` otherwise.*/
/** persist_write_bool
  -> Added in 0
gneiss: Vtable Slot 194, Offset 776*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_write_bool")]
pub unsafe extern "C" fn persist_write_bool(key: u32, value: bool) -> status_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =776", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Writes an int value for a given key into persistent storage.

 Note: The int is a signed 32-bit integer.

 * `key`: The key of the field to write to.
 * `value`: The int value to write.

 Returns The number of bytes written if successful, a value from `StatusCode` otherwise.*/
/** persist_write_int
  -> Added in 0
gneiss: Vtable Slot 196, Offset 784*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_write_int")]
pub unsafe extern "C" fn persist_write_int(key: u32, value: i32) -> status_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =784", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Writes a blob of data of a specified size in bytes for a given key into persistent storage.
 The maximum size is `PERSIST_DATA_MAX_LENGTH`

 * `key`: The key of the field to write to.
 * `data`: The pointer to the blob of data.
 * `size`: The size in bytes.

 Returns The number of bytes written if successful, a value from `StatusCode` otherwise.*/
/** persist_write_data
  -> Added in 5
gneiss: Vtable Slot 313, Offset 1252*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_write_data")]
pub unsafe extern "C" fn persist_write_data(
	key: u32,
	data: *const ::core::ffi::c_void,
	size: usize,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1252", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Writes a string a given key into persistent storage.
 The maximum size is `PERSIST_STRING_MAX_LENGTH` including the null terminator.

 * `key`: The key of the field to write to.
 * `cstring`: The pointer to null terminated string.

 Returns The number of bytes written if successful, a value from `StatusCode` otherwise.*/
/** persist_write_string
  -> Added in 0
gneiss: Vtable Slot 197, Offset 788*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_write_string")]
pub unsafe extern "C" fn persist_write_string(
	key: u32,
	cstring: *const ::core::ffi::c_char,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =788", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deletes the value of a key from persistent storage.

 * `key`: The key of the field to delete from.

 Returns S_TRUE if successful, E_DOES_NOT_EXIST if a value was not set, or another error value from `StatusCode`.*/
/** persist_delete
  -> Added in 0
gneiss: Vtable Slot 187, Offset 748*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.persist_delete")]
pub unsafe extern "C" fn persist_delete(key: u32) -> status_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =748", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// WakeupId is an identifier for a wakeup event
pub type WakeupId = i32;
/** The type of function which can be called when a wakeup event occurs.
The arguments will be the id of the wakeup event that occurred,
as well as the scheduled cookie provided to `wakeup_schedule`.*/
pub type WakeupHandler =
	::core::option::Option<unsafe extern "C" fn(wakeup_id: WakeupId, cookie: i32)>;
/** Registers a WakeupHandler to be called when wakeup events occur.

 Note: The handler is only called for wakeup events which occur while the app is already running;
 use `launch_reason()` === `APP_LAUNCH_WAKEUP` to detect when the app was launched by a wakeup event.

 * `handler`: The callback that gets called when the wakeup event occurs*/
/** wakeup_service_subscribe
  -> Added in 24
gneiss: Vtable Slot 358, Offset 1432*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_service_subscribe")]
pub unsafe extern "C" fn wakeup_service_subscribe(handler: WakeupHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1432", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Registers a wakeup event that triggers a callback at the specified time.
 Applications may only schedule up to 8 wakeup events.
 Wakeup events are given a 1 minute duration window, in that no application may schedule a
 wakeup event with 1 minute of a currently scheduled wakeup event.

 * `timestamp`: The requested time (UTC) for the wakeup event to occur
 * `cookie`: The application specific reason for the wakeup event
 * `notify_if_missed`: On powering on Pebble, will alert user when
 notifications were missed due to Pebble being off.

 Returns negative values indicate errors (StatusCode)
 E_RANGE if the event cannot be scheduled due to another event in that period.
 E_INVALID_ARGUMENT if the time requested is in the past.
 E_OUT_OF_RESOURCES if the application has already scheduled all 8 wakeup events.
 E_INTERNAL if a system error occurred during scheduling.*/
/** wakeup_schedule
  -> Added in 24
gneiss: Vtable Slot 357, Offset 1428*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_schedule")]
pub unsafe extern "C" fn wakeup_schedule(
	timestamp: time_t,
	cookie: i32,
	notify_if_missed: bool,
) -> WakeupId {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1428", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Cancels a wakeup event.

 * `wakeup_id`: Wakeup event to cancel*/
/** wakeup_cancel
  -> Added in 24
gneiss: Vtable Slot 353, Offset 1412*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_cancel")]
pub unsafe extern "C" fn wakeup_cancel(wakeup_id: WakeupId) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1412", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Cancels all wakeup event for the app.
/** wakeup_cancel_all
  -> Added in 24
gneiss: Vtable Slot 354, Offset 1416*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_cancel_all")]
pub unsafe extern "C" fn wakeup_cancel_all() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1416", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Retrieves the wakeup event info for an app that was launched
 by a wakeup_event (ie. `launch_reason()` === APP_LAUNCH_WAKEUP)
 so that an app may display information regarding the wakeup event

 * `wakeup_id`: WakeupId for the wakeup event that caused the app to wakeup
 * `cookie`: App provided reason for the wakeup event

 Returns True if app was launched due to a wakeup event, false otherwise*/
/** wakeup_get_launch_event
  -> Added in 24
gneiss: Vtable Slot 355, Offset 1420*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_get_launch_event")]
pub unsafe extern "C" fn wakeup_get_launch_event(
	wakeup_id: *mut WakeupId,
	cookie: *mut i32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1420", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Checks if the current WakeupId is still scheduled and therefore valid

 * `wakeup_id`: Wakeup event to query for validity and scheduled time
 * `timestamp`: Optionally points to an address of a time_t variable to
 store the time that the wakeup event is scheduled to occur.
 (The time is in UTC, but local time when `clock_is_timezone_set`
 returns false).
 You may pass NULL instead if you do not need it.

 Returns True if WakeupId is still scheduled, false if it doesn't exist or has
 already occurred*/
/** wakeup_query
  -> Added in 24
gneiss: Vtable Slot 356, Offset 1424*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.wakeup_query")]
pub unsafe extern "C" fn wakeup_query(wakeup_id: WakeupId, timestamp: *mut time_t) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1424", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// < App launched by the system
pub const AppLaunchReason_APP_LAUNCH_SYSTEM: AppLaunchReason = 0;
/// < App launched by user selection in launcher menu
pub const AppLaunchReason_APP_LAUNCH_USER: AppLaunchReason = 1;
/// < App launched by mobile or companion app
pub const AppLaunchReason_APP_LAUNCH_PHONE: AppLaunchReason = 2;
/// < App launched by wakeup event
pub const AppLaunchReason_APP_LAUNCH_WAKEUP: AppLaunchReason = 3;
/// < App launched by worker calling worker_launch_app()
pub const AppLaunchReason_APP_LAUNCH_WORKER: AppLaunchReason = 4;
/// < App launched by user using quick launch
pub const AppLaunchReason_APP_LAUNCH_QUICK_LAUNCH: AppLaunchReason = 5;
/// < App launched by user opening it from a pin
pub const AppLaunchReason_APP_LAUNCH_TIMELINE_ACTION: AppLaunchReason = 6;
/// < App launched by a smartstrap
pub const AppLaunchReason_APP_LAUNCH_SMARTSTRAP: AppLaunchReason = 7;
/** AppLaunchReason is used to inform the application about how it was launched

Note: New launch reasons may be added in the future. As a best practice, it
is recommended to only handle the cases that the app needs to know about,
rather than trying to handle all possible launch reasons.*/
pub type AppLaunchReason = ::core::ffi::c_uchar;
/// < App was not launched via Quick Launch
pub const AppQuickLaunchAction_APP_QUICK_LAUNCH_ACTION_NONE: AppQuickLaunchAction = 0;
/// < User held a single button
pub const AppQuickLaunchAction_APP_QUICK_LAUNCH_ACTION_HOLD: AppQuickLaunchAction = 1;
/// < User tapped a button (single click)
pub const AppQuickLaunchAction_APP_QUICK_LAUNCH_ACTION_TAP: AppQuickLaunchAction = 2;
/// < User held a button combination
pub const AppQuickLaunchAction_APP_QUICK_LAUNCH_ACTION_COMBO: AppQuickLaunchAction = 3;
/** Details about how an app was quick launched.
Returned by `app_launch_get_quick_launch_action`.*/
pub type AppQuickLaunchAction = ::core::ffi::c_uchar;
/** Provides the method used to launch the current application.

 Returns The method or reason the current application was launched*/
/** launch_reason
  -> Added in 24
gneiss: Vtable Slot 352, Offset 1408*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.launch_reason")]
pub unsafe extern "C" fn launch_reason() -> AppLaunchReason {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1408", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the argument passed to the app when it was launched.

 Note: Currently the only way to pass arguments to apps is by using an openWatchApp action
 on a pin.

 Returns The argument passed to the app, or 0 if the app wasn't launched from a Launch App action*/
/** launch_get_args
  -> Added in 38
gneiss: Vtable Slot 438, Offset 1752*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.launch_get_args")]
pub unsafe extern "C" fn launch_get_args() -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1752", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the button id used to launch the app.
 Only valid if the launch reason is APP_LAUNCH_USER or APP_LAUNCH_QUICK_LAUNCH.*/
/** launch_button
  -> Added in 102
gneiss: Vtable Slot 655, Offset 2620*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.launch_button")]
pub unsafe extern "C" fn launch_button() -> ButtonId {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2620", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the action that was used to quick launch the app.

 Returns The `AppQuickLaunchAction` used to launch the app, or
 APP_QUICK_LAUNCH_ACTION_NONE if the app was not launched via Quick Launch.*/
/** launch_get_quick_launch_action
  -> Added in 102
gneiss: Vtable Slot 656, Offset 2624*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.launch_get_quick_launch_action")]
pub unsafe extern "C" fn launch_get_quick_launch_action() -> AppQuickLaunchAction {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2624", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// < Exit reason not specified
pub const AppExitReason_APP_EXIT_NOT_SPECIFIED: AppExitReason = 0;
/// < Application performed an action when it exited
pub const AppExitReason_APP_EXIT_ACTION_PERFORMED_SUCCESSFULLY: AppExitReason = 1;
/// < Number of AppExitReason options
pub const AppExitReason_NUM_EXIT_REASONS: AppExitReason = 2;
/** AppExitReason is used to notify the system of the reason of an application exiting, which may
affect the part of the system UI that is presented after the application terminates.*/
pub type AppExitReason = ::core::ffi::c_uchar;
/** Set the app exit reason to a new reason.

 * `exit_reason`: The new app exit reason*/
/** exit_reason_set
  -> Added in 83
gneiss: Vtable Slot 616, Offset 2464*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.exit_reason_set")]
pub unsafe extern "C" fn exit_reason_set(exit_reason: AppExitReason) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2464", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// The ID of a published app resource defined within the publishedMedia section of package.json.
pub type PublishedId = u32;
/// Describes how the slice should be visualized in the app's glance in the launcher.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AppGlanceSliceLayout {
	/** The published resource ID of the bitmap icon to display in the app's glance. Use ``
	APP_GLANCE_SLICE_DEFAULT_ICON to use the app's default bitmap icon.*/
	pub icon: PublishedId,
	/** A template string to visualize in the app's glance. The string will be copied, so it is safe
	to destroy after adding the slice to the glance. Use NULL if no string should be displayed.*/
	pub subtitle_template_string: *const ::core::ffi::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppGlanceSliceLayout"][::core::mem::size_of::<AppGlanceSliceLayout>() - 8usize];
	["Alignment of AppGlanceSliceLayout"][::core::mem::align_of::<AppGlanceSliceLayout>() - 4usize];
	["Offset of field: AppGlanceSliceLayout::icon"]
		[::core::mem::offset_of!(AppGlanceSliceLayout, icon) - 0usize];
	["Offset of field: AppGlanceSliceLayout::subtitle_template_string"]
		[::core::mem::offset_of!(AppGlanceSliceLayout, subtitle_template_string) - 4usize];
};
/** An app's glance can change over time as defined by zero or more app glance slices that each
describe the state of the app glance at a particular point in time. Slices are displayed in the
order they are added, and they are removed at the specified expiration time.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AppGlanceSlice {
	/// Describes how the slice should be visualized in the app's glance in the launcher.
	pub layout:          AppGlanceSliceLayout,
	/** The UTC time after which this slice should no longer be shown in the app's glance. Use ``
	APP_GLANCE_SLICE_NO_EXPIRATION if the slice should never expire.*/
	pub expiration_time: time_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AppGlanceSlice"][::core::mem::size_of::<AppGlanceSlice>() - 12usize];
	["Alignment of AppGlanceSlice"][::core::mem::align_of::<AppGlanceSlice>() - 4usize];
	["Offset of field: AppGlanceSlice::layout"]
		[::core::mem::offset_of!(AppGlanceSlice, layout) - 0usize];
	["Offset of field: AppGlanceSlice::expiration_time"]
		[::core::mem::offset_of!(AppGlanceSlice, expiration_time) - 8usize];
};
/// The slice was successfully added to the app's glance.
pub const AppGlanceResult_APP_GLANCE_RESULT_SUCCESS: AppGlanceResult = 0;
/// The subtitle_template_string provided in the slice was invalid.
pub const AppGlanceResult_APP_GLANCE_RESULT_INVALID_TEMPLATE_STRING: AppGlanceResult = 1;
/// The subtitle_template_string provided in the slice was longer than 150 bytes.
pub const AppGlanceResult_APP_GLANCE_RESULT_TEMPLATE_STRING_TOO_LONG: AppGlanceResult = 2;
/// The icon provided in the slice was invalid.
pub const AppGlanceResult_APP_GLANCE_RESULT_INVALID_ICON: AppGlanceResult = 4;
/// The provided slice would exceed the app glance's slice capacity.
pub const AppGlanceResult_APP_GLANCE_RESULT_SLICE_CAPACITY_EXCEEDED: AppGlanceResult = 8;
/// The expiration_time provided in the slice expires in the past.
pub const AppGlanceResult_APP_GLANCE_RESULT_EXPIRES_IN_THE_PAST: AppGlanceResult = 16;
/// The `AppGlanceReloadSession` provided was invalid.
pub const AppGlanceResult_APP_GLANCE_RESULT_INVALID_SESSION: AppGlanceResult = 32;
/// Bitfield enum describing the result of trying to add an AppGlanceSlice to an app's glance.
pub type AppGlanceResult = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct AppGlanceReloadSession {
	_unused: [u8; 0],
}
/** Add a slice to the app's glance. This function will only succeed if called with a valid
 `AppGlanceReloadSession` that is provided in an `AppGlanceReloadCallback`.

 * `session`: The session variable provided in an `AppGlanceReloadCallback`
 * `slice`: The slice to add to the app's glance

 Returns The result of trying to add the slice to the app's glance*/
/** app_glance_add_slice
  -> Added in 83
gneiss: Vtable Slot 614, Offset 2456*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_glance_add_slice")]
pub unsafe extern "C" fn app_glance_add_slice(
	session: *mut AppGlanceReloadSession,
	slice: AppGlanceSlice,
) -> AppGlanceResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2456", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** User-provided callback for reloading the slices in the app's glance.

* `session`: A session variable that must be passed to `app_glance_add_slice` when adding
slices to the app's glance; it becomes invalid when the `AppGlanceReloadCallback` returns

* `limit`: The number of entries that can be added to the app's glance
* `context`: User-provided context provided when calling `app_glance_reload()`*/
pub type AppGlanceReloadCallback = ::core::option::Option<
	unsafe extern "C" fn(
		session: *mut AppGlanceReloadSession,
		limit: usize,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Clear any existing slices in the app's glance and trigger a reload via the provided callback.

 * `callback`: A function that will be called to add new slices to the app's glance; even if
 the provided callback is NULL, any existing slices will still be cleared from the app's glance

 * `context`: User-provided context that will be passed to the callback*/
/** app_glance_reload
  -> Added in 83
gneiss: Vtable Slot 615, Offset 2460*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.app_glance_reload")]
pub unsafe extern "C" fn app_glance_reload(
	callback: AppGlanceReloadCallback,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2460", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Basic graphics types (point, rect, size, color, bitmaps, etc.) and utility functions.
#[repr(C)]
#[derive(Copy, Clone)]
pub union GColor8 {
	pub argb:             u8,
	pub __bindgen_anon_1: GColor8__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GColor8__bindgen_ty_1 {
	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GColor8__bindgen_ty_1"][::core::mem::size_of::<GColor8__bindgen_ty_1>() - 1usize];
	["Alignment of GColor8__bindgen_ty_1"]
		[::core::mem::align_of::<GColor8__bindgen_ty_1>() - 1usize];
};
impl GColor8__bindgen_ty_1 {
	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn b(&self) -> u8 {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_b(&mut self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn b_raw(this: *const Self) -> u8 {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_b_raw(this: *mut Self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn g(&self) -> u8 {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 2u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_g(&mut self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<2usize, 2u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn g_raw(this: *const Self) -> u8 {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 2u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_g_raw(this: *mut Self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 2u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn r(&self) -> u8 {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 2u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_r(&mut self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<4usize, 2u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn r_raw(this: *const Self) -> u8 {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 2u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_r_raw(this: *mut Self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 2u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn a(&self) -> u8 {
		unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 2u8>() as u8) }
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn set_a(&mut self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			self._bitfield_1.set_const::<6usize, 2u8>(val as u64)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn a_raw(this: *const Self) -> u8 {
		unsafe {
			::core::mem::transmute(
				<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 2u8>(
					::core::ptr::addr_of!((*this)._bitfield_1),
				) as u8,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub unsafe fn set_a_raw(this: *mut Self, val: u8) {
		unsafe {
			let val: u8 = ::core::mem::transmute(val);
			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 2u8>(
				::core::ptr::addr_of_mut!((*this)._bitfield_1),
				val as u64,
			)
		}
	}

	#[inline]
	#[allow(unnecessary_transmutes)]
	pub fn new_bitfield_1(b: u8, g: u8, r: u8, a: u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
		__bindgen_bitfield_unit.set_const::<0usize, 2u8>({
			let b: u8 = unsafe { ::core::mem::transmute(b) };
			b as u64
		});
		__bindgen_bitfield_unit.set_const::<2usize, 2u8>({
			let g: u8 = unsafe { ::core::mem::transmute(g) };
			g as u64
		});
		__bindgen_bitfield_unit.set_const::<4usize, 2u8>({
			let r: u8 = unsafe { ::core::mem::transmute(r) };
			r as u64
		});
		__bindgen_bitfield_unit.set_const::<6usize, 2u8>({
			let a: u8 = unsafe { ::core::mem::transmute(a) };
			a as u64
		});
		__bindgen_bitfield_unit
	}
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GColor8"][::core::mem::size_of::<GColor8>() - 1usize];
	["Alignment of GColor8"][::core::mem::align_of::<GColor8>() - 1usize];
	["Offset of field: GColor8::argb"][::core::mem::offset_of!(GColor8, argb) - 0usize];
};
/// Basic graphics types (point, rect, size, color, bitmaps, etc.) and utility functions.
pub type GColor = GColor8;
/// True if both colors are identical or both are invisible (i.e. both have alpha values of .a=0).
/** gcolor_equal
  -> Added in 82
gneiss: Vtable Slot 613, Offset 2452*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gcolor_equal")]
pub unsafe extern "C" fn gcolor_equal(x: GColor8, y: GColor8) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2452", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This method assists in improving the legibility of text on various background colors.
 It takes the background color for the region in question and computes a color for
 maximum legibility.

 * `background_color`: Background color for the region in question

 Returns A legible color for the given background color*/
/** gcolor_legible_over
  -> Added in 60
gneiss: Vtable Slot 533, Offset 2132*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gcolor_legible_over")]
pub unsafe extern "C" fn gcolor_legible_over(background_color: GColor8) -> GColor8 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2132", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Represents a point in a 2-dimensional coordinate system.

Note: Conventionally, the origin of Pebble's 2D coordinate system is in the upper,
lefthand corner
its x-axis extends to the right and its y-axis extends to the bottom of the screen.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GPoint {
	/// The x-coordinate.
	pub x: i16,
	/// The y-coordinate.
	pub y: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GPoint"][::core::mem::size_of::<GPoint>() - 4usize];
	["Alignment of GPoint"][::core::mem::align_of::<GPoint>() - 2usize];
	["Offset of field: GPoint::x"][::core::mem::offset_of!(GPoint, x) - 0usize];
	["Offset of field: GPoint::y"][::core::mem::offset_of!(GPoint, y) - 2usize];
};
/** Tests whether 2 points are equal.

 * `point_a`: Pointer to the first point
 * `point_b`: Pointer to the second point

 Returns `true` if both points are equal, `false` if not.*/
/** gpoint_equal
  -> Added in 0
gneiss: Vtable Slot 111, Offset 444*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpoint_equal")]
pub unsafe extern "C" fn gpoint_equal(point_a: *const GPoint, point_b: *const GPoint) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =444", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Represents a 2-dimensional size.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GSize {
	/// The width
	pub w: i16,
	/// The height
	pub h: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GSize"][::core::mem::size_of::<GSize>() - 4usize];
	["Alignment of GSize"][::core::mem::align_of::<GSize>() - 2usize];
	["Offset of field: GSize::w"][::core::mem::offset_of!(GSize, w) - 0usize];
	["Offset of field: GSize::h"][::core::mem::offset_of!(GSize, h) - 2usize];
};
/** Tests whether 2 sizes are equal.

 * `size_a`: Pointer to the first size
 * `size_b`: Pointer to the second size

 Returns `true` if both sizes are equal, `false` if not.*/
/** gsize_equal
  -> Added in 0
gneiss: Vtable Slot 134, Offset 536*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gsize_equal")]
pub unsafe extern "C" fn gsize_equal(size_a: *const GSize, size_b: *const GSize) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =536", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Represents a rectangle and defining it using the origin of
the upper-lefthand corner and its size.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GRect {
	/// The coordinate of the upper-lefthand corner point of the rectangle.
	pub origin: GPoint,
	/// The size of the rectangle.
	pub size:   GSize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GRect"][::core::mem::size_of::<GRect>() - 8usize];
	["Alignment of GRect"][::core::mem::align_of::<GRect>() - 2usize];
	["Offset of field: GRect::origin"][::core::mem::offset_of!(GRect, origin) - 0usize];
	["Offset of field: GRect::size"][::core::mem::offset_of!(GRect, size) - 4usize];
};
/** Tests whether 2 rectangles are equal.

 * `rect_a`: Pointer to the first rectangle
 * `rect_b`: Pointer to the second rectangle

 Returns `true` if both rectangles are equal, `false` if not.*/
/** grect_equal
  -> Added in 0
gneiss: Vtable Slot 131, Offset 524*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_equal")]
pub unsafe extern "C" fn grect_equal(rect_a: *const GRect, rect_b: *const GRect) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =524", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tests whether the size of the rectangle is (0, 0).

 * `rect`: Pointer to the rectangle

 Returns `true` if the rectangle its size is (0, 0), or `false` if not.

 Note: If the width and/or height of a rectangle is negative, this
 function will return `true`!*/
/** grect_is_empty
  -> Added in 0
gneiss: Vtable Slot 132, Offset 528*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_is_empty")]
pub unsafe extern "C" fn grect_is_empty(rect: *const GRect) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =528", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Converts a rectangle's values so that the components of its size
 (width and/or height) are both positive. In the width and/or height are negative,
 the origin will offset, so that the final rectangle overlaps with the original.
 For example, a GRect with size (-10, -5) and origin (20, 20), will be standardized
 to size (10, 5) and origin (10, 15).

 * `rect`: The rectangle to convert, set to the standardized rectangle.*/
/** grect_standardize
  -> Added in 0
gneiss: Vtable Slot 133, Offset 532*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_standardize")]
pub unsafe extern "C" fn grect_standardize(rect: *mut GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =532", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Trim one rectangle using the edges of a second rectangle.

 * `rect_to_clip`: The rectangle that needs to be clipped (in place).
 * `rect_clipper`: The rectangle of which the edges will serve as "scissors"
 in order to trim `rect_to_clip`.*/
/** grect_clip
  -> Added in 0
gneiss: Vtable Slot 128, Offset 512*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_clip")]
pub unsafe extern "C" fn grect_clip(rect_to_clip: *mut GRect, rect_clipper: *const GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =512", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tests whether a rectangle contains a point.

 * `rect`: The rectangle
 * `point`: The point

 Returns `true` if the rectangle contains the point, or `false` if it does not.*/
/** grect_contains_point
  -> Added in 0
gneiss: Vtable Slot 129, Offset 516*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_contains_point")]
pub unsafe extern "C" fn grect_contains_point(rect: *const GRect, point: *const GPoint) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =516", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function to compute the center-point of a given rectangle.
 This is equal to `(rect->x + rect->width / 2, rect->y + rect->height / 2)`.

 * `rect`: The rectangle for which to calculate the center point.

 Returns The point at the center of `rect`*/
/** grect_center_point
  -> Added in 0
gneiss: Vtable Slot 127, Offset 508*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_center_point")]
pub unsafe extern "C" fn grect_center_point(rect: *const GRect) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =508", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reduce the width and height of a rectangle by insetting each of the edges with
 a fixed inset. The returned rectangle will be centered relative to the input rectangle.

 Note: The function will trip an assertion if the crop yields a rectangle with negative width or height.

 * `rect`: The rectangle that will be inset
 * `crop_size_px`: The inset by which each of the rectangle will be inset.
 A positive inset value results in a smaller rectangle, while negative inset value results
 in a larger rectangle.

 Returns The cropped rectangle.*/
/** grect_crop
  -> Added in 0
gneiss: Vtable Slot 130, Offset 520*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_crop")]
pub unsafe extern "C" fn grect_crop(rect: GRect, crop_size_px: i32) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =520", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const GBitmapFormat_GBitmapFormat1Bit: GBitmapFormat = 0;
pub const GBitmapFormat_GBitmapFormat8Bit: GBitmapFormat = 1;
pub const GBitmapFormat_GBitmapFormat1BitPalette: GBitmapFormat = 2;
pub const GBitmapFormat_GBitmapFormat2BitPalette: GBitmapFormat = 3;
pub const GBitmapFormat_GBitmapFormat4BitPalette: GBitmapFormat = 4;
pub const GBitmapFormat_GBitmapFormat8BitCircular: GBitmapFormat = 5;
/// The format of a GBitmap can either be 1-bit or 8-bit.
pub type GBitmapFormat = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct GBitmap {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug)]
pub struct GBitmapSequence {
	_unused: [u8; 0],
}
/** Get the number of bytes per row in the bitmap data for the given `GBitmap`.
 On rectangular displays, this can be used as a safe way of iterating over the rows in the
 bitmap, since bytes per row should be set according to format. On circular displays with pixel
 format of `GBitmapFormat8BitCircular` this will return 0, and should not be used for
 iteration over frame buffer pixels. Instead, use `GBitmapDataRowInfo`, which provides safe
 minimum and maximum x values for a given row's y value.

 * `bitmap`: A pointer to the GBitmap to get the bytes per row

 Returns The number of bytes per row of the GBitmap

 See `gbitmap_get_data`*/
/** gbitmap_get_bytes_per_row
  -> Added in 33
gneiss: Vtable Slot 408, Offset 1632*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_bytes_per_row")]
pub unsafe extern "C" fn gbitmap_get_bytes_per_row(bitmap: *const GBitmap) -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1632", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the `GBitmapFormat` for the `GBitmap`.

 * `bitmap`: A pointer to the GBitmap to get the format

 Returns The format of the given `GBitmap`.*/
/** gbitmap_get_format
  -> Added in 33
gneiss: Vtable Slot 410, Offset 1640*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_format")]
pub unsafe extern "C" fn gbitmap_get_format(bitmap: *const GBitmap) -> GBitmapFormat {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1640", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get a pointer to the raw image data section of the given `GBitmap` as specified by the format
 of the bitmap.

 * `bitmap`: A pointer to the GBitmap to get the data

 Returns pointer to the raw image data for the GBitmap

 See `gbitmap_get_bytes_per_row`

 See `GBitmap`*/
/** gbitmap_get_data
  -> Added in 33
gneiss: Vtable Slot 409, Offset 1636*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_data")]
pub unsafe extern "C" fn gbitmap_get_data(bitmap: *const GBitmap) -> *mut u8 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1636", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the bitmap data for the given `GBitmap`.

 * `bitmap`: A pointer to the GBitmap to set data to
 * `data`: A pointer to the bitmap data
 * `format`: the format of the bitmap data. If this is a palettized format, make sure that
 there is an accompanying call to `gbitmap_set_palette`.

 * `row_size_bytes`: How many bytes a single row takes. For example, bitmap data of format
 `GBitmapFormat1Bit` must have a row size as a multiple of 4 bytes.

 * `free_on_destroy`: Set whether the data should be freed when the GBitmap is destroyed.

 See `gbitmap_destroy`*/
/** gbitmap_set_data
  -> Added in 33
gneiss: Vtable Slot 413, Offset 1652*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_set_data")]
pub unsafe extern "C" fn gbitmap_set_data(
	bitmap: *mut GBitmap,
	data: *mut u8,
	format: GBitmapFormat,
	row_size_bytes: u16,
	free_on_destroy: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1652", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the bounds of the content for the `GBitmap`. This is set when loading the image or
 if changed by `gbitmap_set_bounds`.

 * `bitmap`: A pointer to the GBitmap to get the bounding box from.

 Returns The bounding box for the GBitmap.

 See `gbitmap_set_bounds`*/
/** gbitmap_get_bounds
  -> Added in 33
gneiss: Vtable Slot 407, Offset 1628*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_bounds")]
pub unsafe extern "C" fn gbitmap_get_bounds(bitmap: *const GBitmap) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1628", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the bounds of the given `GBitmap`.

 * `bitmap`: A pointer to the GBitmap to set the bounding box.
 * `bounds`: The bounding box to set.

 See `gbitmap_get_bounds`*/
/** gbitmap_set_bounds
  -> Added in 33
gneiss: Vtable Slot 412, Offset 1648*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_set_bounds")]
pub unsafe extern "C" fn gbitmap_set_bounds(bitmap: *mut GBitmap, bounds: GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1648", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the palette for the given `GBitmap`.

 * `bitmap`: A pointer to the GBitmap to get the palette from.

 Returns Pointer to a `GColor` array containing the palette colors.

 See `gbitmap_set_palette`*/
/** gbitmap_get_palette
  -> Added in 33
gneiss: Vtable Slot 411, Offset 1644*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_palette")]
pub unsafe extern "C" fn gbitmap_get_palette(bitmap: *const GBitmap) -> *mut GColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1644", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the palette for the given `GBitmap`.

 * `bitmap`: A pointer to the GBitmap to set the palette to
 * `palette`: The palette to be used. Make sure that the palette is large enough for the
 bitmap's format.

 * `free_on_destroy`: Set whether the palette data should be freed when the GBitmap is
 destroyed or when another palette is set.

 See `gbitmap_get_format`

 See `gbitmap_destroy`

 See `gbitmap_set_palette`*/
/** gbitmap_set_palette
  -> Added in 33
gneiss: Vtable Slot 414, Offset 1656*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_set_palette")]
pub unsafe extern "C" fn gbitmap_set_palette(
	bitmap: *mut GBitmap,
	palette: *mut GColor,
	free_on_destroy: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1656", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a new `GBitmap` on the heap using a Pebble image file stored as a resource.
 The resulting GBitmap must be destroyed using `gbitmap_destroy()`.

 * `resource_id`: The ID of the bitmap resource to load

 Returns A pointer to the `GBitmap`. `NULL` if the GBitmap could not
 be created*/
/** gbitmap_create_with_resource
  -> Added in 0
gneiss: Vtable Slot 102, Offset 408*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_with_resource")]
pub unsafe extern "C" fn gbitmap_create_with_resource(resource_id: u32) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =408", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a new GBitmap on the heap initialized with the provided Pebble image data.

 The resulting `GBitmap` must be destroyed using `gbitmap_destroy()` but the image
 data will not be freed automatically. The developer is responsible for keeping the image
 data in memory as long as the bitmap is used and releasing it after the bitmap is destroyed.

 Note: One way to generate Pebble image data is to use bitmapgen.py in the Pebble
 SDK to generate a .pbi file.

 * `data`: The Pebble image data. Must not be NULL. The function
 assumes the data to be correct; there are no sanity checks performed on the
 data. The data will not be copied and the pointer must remain valid for the
 lifetime of this GBitmap.

 Returns A pointer to the `GBitmap`. `NULL` if the `GBitmap` could not
 be created*/
/** gbitmap_create_with_data
  -> Added in 0
gneiss: Vtable Slot 101, Offset 404*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_with_data")]
pub unsafe extern "C" fn gbitmap_create_with_data(data: *const u8) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =404", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a new `GBitmap` on the heap as a sub-bitmap of a 'base' ``
 GBitmap, using a GRect to indicate what portion of the base to use. The
 sub-bitmap will just reference the image data and palette of the base bitmap.
 No deep-copying occurs as a result of calling this function, thus the caller
 is responsible for making sure the base bitmap and palette will remain available when
 using the sub-bitmap. Note that you should not destroy the parent bitmap until
 the sub_bitmap has been destroyed.
 The resulting `GBitmap` must be destroyed using `gbitmap_destroy()`.

 * `base_bitmap`: The bitmap that the sub-bitmap of which the image data
 will be used by the sub-bitmap

 * `sub_rect`: The rectangle within the image data of the base bitmap. The
 bounds of the base bitmap will be used to clip `sub_rect`.

 Returns A pointer to the `GBitmap`. `NULL` if the GBitmap could not
 be created*/
/** gbitmap_create_as_sub_bitmap
  -> Added in 0
gneiss: Vtable Slot 100, Offset 400*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_as_sub_bitmap")]
pub unsafe extern "C" fn gbitmap_create_as_sub_bitmap(
	base_bitmap: *const GBitmap,
	sub_rect: GRect,
) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =400", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a `GBitmap` based on raw PNG data.
 The resulting `GBitmap` must be destroyed using `gbitmap_destroy()`.
 The developer is responsible for freeing png_data following this call.

 Note: PNG decoding currently supports 1,2,4 and 8 bit palettized and grayscale images.

 * `png_data`: PNG image data.
 * `png_data_size`: PNG image size in bytes.

 Returns A pointer to the `GBitmap`. `NULL` if the `GBitmap` could not
 be created*/
/** gbitmap_create_from_png_data
  -> Added in 35
gneiss: Vtable Slot 421, Offset 1684*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_from_png_data")]
pub unsafe extern "C" fn gbitmap_create_from_png_data(
	png_data: *const u8,
	png_data_size: usize,
) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1684", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a new blank GBitmap on the heap initialized to zeroes.
 In the case that the format indicates a palettized bitmap, a palette of appropriate size will
 also be allocated on the heap.
 The resulting `GBitmap` must be destroyed using `gbitmap_destroy()`.

 * `size`: The Pebble image dimensions as a `GSize`.
 * `format`: The `GBitmapFormat` the created image should be in.

 Returns A pointer to the `GBitmap`. `NULL` if the `GBitmap` could not
 be created*/
/** gbitmap_create_blank
  -> Added in 32
gneiss: Vtable Slot 393, Offset 1572*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_blank")]
pub unsafe extern "C" fn gbitmap_create_blank(size: GSize, format: GBitmapFormat) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1572", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a new blank GBitmap on the heap, initialized to zeroes, and assigns it the given
 palette.
 No deep-copying of the palette occurs, so the caller is responsible for making sure the palette
 remains available when using the resulting bitmap. Management of that memory can be handed off
 to the system with the free_on_destroy argument.

 * `size`: The Pebble image dimensions as a `GSize`.
 * `format`: the `GBitmapFormat` the created image and palette should be in.
 * `palette`: a pointer to a palette that is to be used for this GBitmap. The palette should
 be large enough to hold enough colors for the specified format. For example,
 `GBitmapFormat2BitPalette` should have 4 colors, since 2^2 = 4.

 * `free_on_destroy`: Set whether the palette data should be freed along with the bitmap data
 when the GBitmap is destroyed.

 Returns A Pointer to the `GBitmap`. `NULL` if the `GBitmap` could not be created.*/
/** gbitmap_create_blank_with_palette
  -> Added in 33
gneiss: Vtable Slot 406, Offset 1624*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_blank_with_palette")]
pub unsafe extern "C" fn gbitmap_create_blank_with_palette(
	size: GSize,
	format: GBitmapFormat,
	palette: *mut GColor,
	free_on_destroy: bool,
) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1624", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Given a 1-bit GBitmap, create a new bitmap of format GBitmapFormat1BitPalette.
 The new data buffer is allocated on the heap, and a 2-color palette is allocated as well.

 * `src_bitmap`: A GBitmap of format GBitmapFormat1Bit which is to be copied into a newly
 created GBitmap of format GBitmapFormat1BitPalettized.

 Returns The newly created 1-bit palettized GBitmap, or NULL if there is not sufficient space.

 Note: The new bitmap does not depend on any data from src_bitmap, so src_bitmap can be freed
 without worry.*/
/** gbitmap_create_palettized_from_1bit
  -> Added in 44
gneiss: Vtable Slot 458, Offset 1832*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_create_palettized_from_1bit")]
pub unsafe extern "C" fn gbitmap_create_palettized_from_1bit(
	src_bitmap: *const GBitmap,
) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1832", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroy a `GBitmap`.
 This must be called for every bitmap that's been created with gbitmap_create_*

 This function will also free the memory of the bitmap data (bitmap->addr) if the bitmap was created with `gbitmap_create_blank()`
 or `gbitmap_create_with_resource()`.

 If the GBitmap was created with `gbitmap_create_with_data()`, you must release the memory
 after calling gbitmap_destroy().*/
/** gbitmap_destroy
  -> Added in 0
gneiss: Vtable Slot 103, Offset 412*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_destroy")]
pub unsafe extern "C" fn gbitmap_destroy(bitmap: *mut GBitmap) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =412", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a GBitmapSequence from the specified resource (APNG/PNG files)

 * `resource_id`: Resource to load and create GBitmapSequence from.

 Returns GBitmapSequence pointer if the resource was loaded, NULL otherwise*/
/** gbitmap_sequence_create_with_resource
  -> Added in 34
gneiss: Vtable Slot 415, Offset 1660*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_create_with_resource")]
pub unsafe extern "C" fn gbitmap_sequence_create_with_resource(
	resource_id: u32,
) -> *mut GBitmapSequence {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1660", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Updates the contents of the bitmap sequence to the next frame
 and optionally returns the delay in milliseconds until the next frame.

 * `bitmap_sequence`: Pointer to loaded bitmap sequence
 * `bitmap`: Pointer to the initialized GBitmap in which to render the bitmap sequence
 * `delay_ms`: If not NULL, returns the delay in milliseconds until the next frame.

 Returns True if frame was rendered. False if all frames (and loops) have been rendered
 for the sequence. Will also return false if frame could not be rendered
 (includes out of memory errors).

 Note: GBitmap must be large enough to accommodate the bitmap_sequence image
 `gbitmap_sequence_get_bitmap_size`*/
/** gbitmap_sequence_update_bitmap_next_frame
  -> Added in 34
gneiss: Vtable Slot 420, Offset 1680*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_update_bitmap_next_frame")]
pub unsafe extern "C" fn gbitmap_sequence_update_bitmap_next_frame(
	bitmap_sequence: *mut GBitmapSequence,
	bitmap: *mut GBitmap,
	delay_ms: *mut u32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1680", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Updates the contents of the bitmap sequence to the frame at elapsed in the sequence.
 For looping animations this accounts for the loop, for example an animation of 1 second that
 is configured to loop 2 times updated to 1500 ms elapsed time will display the sequence
 frame at 500 ms. Elapsed time is the time from the start of the animation, and will
 be ignored if it is for a time earlier than the last rendered frame.

 * `bitmap_sequence`: Pointer to loaded bitmap sequence
 * `bitmap`: Pointer to the initialized GBitmap in which to render the bitmap sequence
 * `elapsed_ms`: Elapsed time in milliseconds in the sequence relative to start

 Returns True if a frame was rendered. False if all frames (and loops) have already
 been rendered for the sequence. Will also return false if frame could not be rendered
 (includes out of memory errors).

 Note: GBitmap must be large enough to accommodate the bitmap_sequence image
 `gbitmap_sequence_get_bitmap_size`

 Note: This function is disabled for play_count 0*/
/** gbitmap_sequence_update_bitmap_by_elapsed
  -> Added in 43
gneiss: Vtable Slot 457, Offset 1828*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_update_bitmap_by_elapsed")]
pub unsafe extern "C" fn gbitmap_sequence_update_bitmap_by_elapsed(
	bitmap_sequence: *mut GBitmapSequence,
	bitmap: *mut GBitmap,
	elapsed_ms: u32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1828", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deletes the GBitmapSequence structure and frees any allocated memory/decoder_data

 * `bitmap_sequence`: Pointer to the bitmap sequence to free (delete)*/
/** gbitmap_sequence_destroy
  -> Added in 34
gneiss: Vtable Slot 416, Offset 1664*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_destroy")]
pub unsafe extern "C" fn gbitmap_sequence_destroy(bitmap_sequence: *mut GBitmapSequence) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1664", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Restarts the GBitmapSequence to the first frame `gbitmap_sequence_update_bitmap_next_frame`

 * `bitmap_sequence`: Pointer to loaded bitmap sequence

 Returns True if sequence was restarted, false otherwise*/
/** gbitmap_sequence_restart
  -> Added in 40
gneiss: Vtable Slot 442, Offset 1768*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_restart")]
pub unsafe extern "C" fn gbitmap_sequence_restart(bitmap_sequence: *mut GBitmapSequence) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1768", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This function gets the current frame number for the bitmap sequence

 * `bitmap_sequence`: Pointer to loaded bitmap sequence

 Returns index of current frame in the current loop of the bitmap sequence*/
/** gbitmap_sequence_get_current_frame_idx
  -> Added in 34
gneiss: Vtable Slot 418, Offset 1672*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_get_current_frame_idx")]
pub unsafe extern "C" fn gbitmap_sequence_get_current_frame_idx(
	bitmap_sequence: *mut GBitmapSequence,
) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1672", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This function sets the total number of frames for the bitmap sequence

 * `bitmap_sequence`: Pointer to loaded bitmap sequence

 Returns number of frames contained in a single loop of the bitmap sequence*/
/** gbitmap_sequence_get_total_num_frames
  -> Added in 34
gneiss: Vtable Slot 419, Offset 1676*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_get_total_num_frames")]
pub unsafe extern "C" fn gbitmap_sequence_get_total_num_frames(
	bitmap_sequence: *mut GBitmapSequence,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1676", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This function gets the play count (number of times to repeat) the bitmap sequence

 Note: This value is initialized by the bitmap sequence data, and is modified by
 `gbitmap_sequence_set_play_count`

 * `bitmap_sequence`: Pointer to loaded bitmap sequence

 Returns Play count of bitmap sequence, PLAY_COUNT_INFINITE for infinite looping*/
/** gbitmap_sequence_get_play_count
  -> Added in 40
gneiss: Vtable Slot 441, Offset 1764*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_get_play_count")]
pub unsafe extern "C" fn gbitmap_sequence_get_play_count(
	bitmap_sequence: *mut GBitmapSequence,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1764", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This function sets the play count (number of times to repeat) the bitmap sequence

 * `bitmap_sequence`: Pointer to loaded bitmap sequence
 * `play_count`: Number of times to repeat the bitmap sequence
 with 0 disabling update_by_elapsed and update_next_frame, and
 PLAY_COUNT_INFINITE for infinite looping of the animation*/
/** gbitmap_sequence_set_play_count
  -> Added in 40
gneiss: Vtable Slot 443, Offset 1772*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_set_play_count")]
pub unsafe extern "C" fn gbitmap_sequence_set_play_count(
	bitmap_sequence: *mut GBitmapSequence,
	play_count: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1772", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This function gets the minimum required size (dimensions) necessary
 to render the bitmap sequence to a GBitmap
 using the /ref gbitmap_sequence_update_bitmap_next_frame

 * `bitmap_sequence`: Pointer to loaded bitmap sequence

 Returns Dimensions required to render the bitmap sequence to a GBitmap*/
/** gbitmap_sequence_get_bitmap_size
  -> Added in 34
gneiss: Vtable Slot 417, Offset 1668*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_sequence_get_bitmap_size")]
pub unsafe extern "C" fn gbitmap_sequence_get_bitmap_size(
	bitmap_sequence: *mut GBitmapSequence,
) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1668", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Description of a single data row in the pixel data of a bitmap

Note: This data type describes the actual pixel data of a bitmap and does not respect the
bitmap's bounds.

See `gbitmap_get_data_row_info`

See `gbitmap_get_data`

See `gbitmap_get_bounds`*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GBitmapDataRowInfo {
	/** Address of the byte at column 0 of a given data row in a bitmap. Use this to calculate the
	memory address of a pixel. For GBitmapFormat8BitCircular or GBitmapFormat8Bit this would
	be: `uint8_t *pixel_addr = row_info.addr + x`.
	Note that this byte can be outside of the valid range for this row.
	For example: The first valid pixel (`min_x=76`) of a row might start at 76 bytes after the
	given data pointer (assuming that 1 pixel is represented as 1 byte as in
	GBitmapFormat8BitCircular or GBitmapFormat8Bit).*/
	pub data:  *mut u8,
	/// The absolute column of a first valid pixel for a given data row.
	pub min_x: i16,
	/** The absolute column of the last valid pixel for a given data row.
	For optimization reasons the result can be anywhere between
	grect_get_max_x(bitmap_bounds) - 1 and the physical data boundary.*/
	pub max_x: i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GBitmapDataRowInfo"][::core::mem::size_of::<GBitmapDataRowInfo>() - 8usize];
	["Alignment of GBitmapDataRowInfo"][::core::mem::align_of::<GBitmapDataRowInfo>() - 4usize];
	["Offset of field: GBitmapDataRowInfo::data"]
		[::core::mem::offset_of!(GBitmapDataRowInfo, data) - 0usize];
	["Offset of field: GBitmapDataRowInfo::min_x"]
		[::core::mem::offset_of!(GBitmapDataRowInfo, min_x) - 4usize];
	["Offset of field: GBitmapDataRowInfo::max_x"]
		[::core::mem::offset_of!(GBitmapDataRowInfo, max_x) - 6usize];
};
/** Provides information about a pixel data row

 * `bitmap`: A pointer to the GBitmap to get row info
 * `y`: Absolute row number in the pixel data, independent from the bitmap's bounds

 Returns Description of the row

 Note: This function does not respect the bitmap's bounds but purely operates on the pixel data.
 This function works with every bitmap format including GBitmapFormat1Bit.
 The result of the function for invalid rows is undefined.

 See `gbitmap_get_data`*/
/** gbitmap_get_data_row_info
  -> Added in 70
gneiss: Vtable Slot 571, Offset 2284*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gbitmap_get_data_row_info")]
pub unsafe extern "C" fn gbitmap_get_data_row_info(
	bitmap: *const GBitmap,
	y: u16,
) -> GBitmapDataRowInfo {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2284", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Align by centering
pub const GAlign_GAlignCenter: GAlign = 0;
/// Align by making the top edges overlap and left edges overlap
pub const GAlign_GAlignTopLeft: GAlign = 1;
/// Align by making the top edges overlap and left edges overlap
pub const GAlign_GAlignTopRight: GAlign = 2;
/// Align by making the top edges overlap and centered horizontally
pub const GAlign_GAlignTop: GAlign = 3;
/// Align by making the left edges overlap and centered vertically
pub const GAlign_GAlignLeft: GAlign = 4;
/// Align by making the bottom edges overlap and centered horizontally
pub const GAlign_GAlignBottom: GAlign = 5;
/// Align by making the right edges overlap and centered vertically
pub const GAlign_GAlignRight: GAlign = 6;
/// Align by making the bottom edges overlap and right edges overlap
pub const GAlign_GAlignBottomRight: GAlign = 7;
/// Align by making the bottom edges overlap and left edges overlap
pub const GAlign_GAlignBottomLeft: GAlign = 8;
/** Values to specify how two things should be aligned relative to each other.

See `bitmap_layer_set_alignment()`*/
pub type GAlign = ::core::ffi::c_uchar;
/** Aligns one rectangle within another rectangle, using an alignment parameter.
 The relative coordinate systems of both rectangles are assumed to be the same.
 When clip is true, `rect` is also clipped by the constraint.

 * `rect`: The rectangle to align (in place), set to the aligned and
 optionally clipped rectangle

 * `inside_rect`: The rectangle in which to align `rect`
 * `alignment`: Determines the alignment of `rect` within `inside_rect` by
 specifying what edges of should overlap.

 * `clip`: Determines whether `rect` should be trimmed using the edges of `inside_rect`
 in case `rect` extends outside of the area that `inside_rect` covers after the alignment.*/
/** grect_align
  -> Added in 0
gneiss: Vtable Slot 126, Offset 504*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_align")]
pub unsafe extern "C" fn grect_align(
	rect: *mut GRect,
	inside_rect: *const GRect,
	alignment: GAlign,
	clip: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =504", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Assign the pixel values of the source image to the destination pixels,
effectively replacing the previous values for those pixels. For color displays, when drawing
a palettized or 8-bit `GBitmap` image, the opacity value is ignored.*/
pub const GCompOp_GCompOpAssign: GCompOp = 0;
/** Assign the **inverted** pixel values of the source image to the destination pixels,
effectively replacing the previous values for those pixels.

Note: For bitmaps with a format different from GBitmapFormat1Bit, this mode is not supported
and the resulting behavior is undefined.*/
pub const GCompOp_GCompOpAssignInverted: GCompOp = 1;
/** Use the boolean operator `OR` to composite the source and destination pixels.
The visual result of this compositing mode is the source's white pixels
are painted onto the destination and the source's black pixels are treated
as clear.

Note: For bitmaps with a format different from GBitmapFormat1Bit, this mode is not supported
and the resulting behavior is undefined.*/
pub const GCompOp_GCompOpOr: GCompOp = 2;
/** Use the boolean operator `AND` to composite the source and destination pixels.
The visual result of this compositing mode is the source's black pixels
are painted onto the destination and the source's white pixels are treated
as clear.

Note: For bitmaps with a format different from GBitmapFormat1Bit, this mode is not supported
and the resulting behavior is undefined.*/
pub const GCompOp_GCompOpAnd: GCompOp = 3;
/** Clears the bits in the destination image, using the source image as mask.
The visual result of this compositing mode is that for the parts where the source image is
white, the destination image will be painted black. Other parts will be left untouched.

Note: For bitmaps with a format different from GBitmapFormat1Bit, this mode is not supported
and the resulting behavior is undefined.*/
pub const GCompOp_GCompOpClear: GCompOp = 4;
/** Sets the bits in the destination image, using the source image as mask.
This mode is required to apply any transparency of your bitmap.

Note: For bitmaps of the format GBitmapFormat1Bit, the visual result of this compositing
mode is that for the parts where the source image is black, the destination image will be
painted white. Other parts will be left untouched.*/
pub const GCompOp_GCompOpSet: GCompOp = 5;
/** Values to specify how the source image should be composited onto the destination image.

Contrived example of how the different compositing modes affect drawing.
Often, the "destination image" is the render buffer and thus contains the image of
what has been drawn before or "underneath".

For color displays, only two compositing modes are supported, `GCompOpAssign` and
`GCompOpSet`. The behavior of other compositing modes are undefined and may change in the
future. Transparency can be achieved using `GCompOpSet` and requires pixel values with alpha
value .a < 3.

See `bitmap_layer_set_compositing_mode()`

See `graphics_context_set_compositing_mode()`

See `graphics_draw_bitmap_in_rect()`

See `graphics_draw_rotated_bitmap()`*/
pub type GCompOp = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct GContext {
	_unused: [u8; 0],
}
/** Represents insets for four sides. Negative values mean a side extends.

See `grect_inset`*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GEdgeInsets {
	/// The inset at the top of an object.
	pub top:    i16,
	/// The inset at the right of an object.
	pub right:  i16,
	/// The inset at the bottom of an object.
	pub bottom: i16,
	/// The inset at the left of an object.
	pub left:   i16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GEdgeInsets"][::core::mem::size_of::<GEdgeInsets>() - 8usize];
	["Alignment of GEdgeInsets"][::core::mem::align_of::<GEdgeInsets>() - 2usize];
	["Offset of field: GEdgeInsets::top"][::core::mem::offset_of!(GEdgeInsets, top) - 0usize];
	["Offset of field: GEdgeInsets::right"][::core::mem::offset_of!(GEdgeInsets, right) - 2usize];
	["Offset of field: GEdgeInsets::bottom"][::core::mem::offset_of!(GEdgeInsets, bottom) - 4usize];
	["Offset of field: GEdgeInsets::left"][::core::mem::offset_of!(GEdgeInsets, left) - 6usize];
};
/** Returns a rectangle that is shrinked or expanded by the given edge insets.

 Note: The rectangle is standardized and then the inset parameters are applied.
 If the resulting rectangle would have a negative height or width, a GRectZero is returned.

 * `rect`: The rectangle that will be inset
 * `insets`: The insets that will be applied

 Returns The resulting rectangle

 Note: Use this function in together with the `GEdgeInsets` macro
 ```c
 GRect r_inset_all_sides = grect_inset(r, GEdgeInsets(10));
 GRect r_inset_vertical_horizontal = grect_inset(r, GEdgeInsets(10, 20));
 GRect r_expand_top_right_shrink_bottom_left = grect_inset(r, GEdgeInsets(-10, -10, 10, 10));
 ```*/
/** grect_inset
  -> Added in 73
gneiss: Vtable Slot 580, Offset 2320*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_inset")]
pub unsafe extern "C" fn grect_inset(rect: GRect, insets: GEdgeInsets) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2320", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the current stroke color of the graphics context.

 * `ctx`: The graphics context onto which to set the stroke color
 * `color`: The new stroke color*/
/** graphics_context_set_stroke_color
  -> Added in 30
gneiss: Vtable Slot 372, Offset 1488*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_stroke_color")]
pub unsafe extern "C" fn graphics_context_set_stroke_color(ctx: *mut GContext, color: GColor) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1488", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the current fill color of the graphics context.

 * `ctx`: The graphics context onto which to set the fill color
 * `color`: The new fill color*/
/** graphics_context_set_fill_color
  -> Added in 30
gneiss: Vtable Slot 371, Offset 1484*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_fill_color")]
pub unsafe extern "C" fn graphics_context_set_fill_color(ctx: *mut GContext, color: GColor) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1484", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the current text color of the graphics context.

 * `ctx`: The graphics context onto which to set the text color
 * `color`: The new text color*/
/** graphics_context_set_text_color
  -> Added in 30
gneiss: Vtable Slot 373, Offset 1492*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_text_color")]
pub unsafe extern "C" fn graphics_context_set_text_color(ctx: *mut GContext, color: GColor) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1492", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the current bitmap compositing mode of the graphics context.
 The default mode is GCompOpAssign i.e. bitmap transparency disabled.

 * `ctx`: The graphics context onto which to set the compositing mode
 * `mode`: The new compositing mode

 See `GCompOp`

 See `bitmap_layer_set_compositing_mode()`

 Note: At the moment, this only affects the bitmaps drawing operations
 -- `graphics_draw_bitmap_in_rect()`, `graphics_draw_rotated_bitmap`, and
 anything that uses those APIs --, but it currently does not affect the filling or stroking
 operations.*/
/** graphics_context_set_compositing_mode
  -> Added in 0
gneiss: Vtable Slot 112, Offset 448*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_compositing_mode")]
pub unsafe extern "C" fn graphics_context_set_compositing_mode(ctx: *mut GContext, mode: GCompOp) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =448", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets whether antialiasing is applied to stroke drawing

 * `ctx`: The graphics context onto which to set the antialiasing
 * `enable`: True = antialiasing enabled, False = antialiasing disabled

 Note: Default value is true.*/
/** graphics_context_set_antialiased
  -> Added in 41
gneiss: Vtable Slot 444, Offset 1776*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_antialiased")]
pub unsafe extern "C" fn graphics_context_set_antialiased(ctx: *mut GContext, enable: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1776", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the width of the stroke for drawing routines

 * `ctx`: The graphics context onto which to set the stroke width
 * `stroke_width`: Width in pixels of the stroke.

 Note: If stroke width of zero is passed, it will be ignored and will not change the value
 stored in GContext. Currently, only odd stroke_width values are supported. If an even value
 is passed in, the value will be stored as is, but the drawing routines will round down to the
 previous integral value when drawing. Default value is 1.*/
/** graphics_context_set_stroke_width
  -> Added in 41
gneiss: Vtable Slot 445, Offset 1780*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_context_set_stroke_width")]
pub unsafe extern "C" fn graphics_context_set_stroke_width(ctx: *mut GContext, stroke_width: u8) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1780", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// No corners
pub const GCornerMask_GCornerNone: GCornerMask = 0;
/// Top-Left corner
pub const GCornerMask_GCornerTopLeft: GCornerMask = 1;
/// Top-Right corner
pub const GCornerMask_GCornerTopRight: GCornerMask = 2;
/// Bottom-Left corner
pub const GCornerMask_GCornerBottomLeft: GCornerMask = 4;
/// Bottom-Right corner
pub const GCornerMask_GCornerBottomRight: GCornerMask = 8;
/// All corners
pub const GCornerMask_GCornersAll: GCornerMask = 15;
/// Top corners
pub const GCornerMask_GCornersTop: GCornerMask = 3;
/// Bottom corners
pub const GCornerMask_GCornersBottom: GCornerMask = 12;
/// Left corners
pub const GCornerMask_GCornersLeft: GCornerMask = 5;
/// Right corners
pub const GCornerMask_GCornersRight: GCornerMask = 10;
/** Bit mask values to specify the corners of a rectangle.
The values can be combines using binary OR (`|`),
For example: the mask to indicate top left and bottom right corners can:
be created as follows: `(GCornerTopLeft | GCornerBottomRight)`*/
pub type GCornerMask = ::core::ffi::c_uchar;
/** Draws a pixel at given point in the current stroke color

 * `ctx`: The destination graphics context in which to draw
 * `point`: The point at which to draw the pixel*/
/** graphics_draw_pixel
  -> Added in 0
gneiss: Vtable Slot 119, Offset 476*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_pixel")]
pub unsafe extern "C" fn graphics_draw_pixel(ctx: *mut GContext, point: GPoint) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =476", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws line in the current stroke color, current stroke width and AA flag

 * `ctx`: The destination graphics context in which to draw
 * `p0`: The starting point of the line
 * `p1`: The ending point of the line*/
/** graphics_draw_line
  -> Added in 0
gneiss: Vtable Slot 118, Offset 472*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_line")]
pub unsafe extern "C" fn graphics_draw_line(ctx: *mut GContext, p0: GPoint, p1: GPoint) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =472", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws a 1-pixel wide rectangle outline in the current stroke color

 * `ctx`: The destination graphics context in which to draw
 * `rect`: The rectangle for which to draw the outline*/
/** graphics_draw_rect
  -> Added in 0
gneiss: Vtable Slot 120, Offset 480*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_rect")]
pub unsafe extern "C" fn graphics_draw_rect(ctx: *mut GContext, rect: GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =480", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Fills a rectangle with the current fill color, optionally rounding all or a
 selection of its corners.

 * `ctx`: The destination graphics context in which to draw
 * `rect`: The rectangle to fill
 * `corner_radius`: The rounding radius of the corners in pixels (maximum is 8 pixels)
 * `corner_mask`: Bitmask of the corners that need to be rounded.

 See `GCornerMask`*/
/** graphics_fill_rect
  -> Added in 0
gneiss: Vtable Slot 123, Offset 492*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_fill_rect")]
pub unsafe extern "C" fn graphics_fill_rect(
	ctx: *mut GContext,
	rect: GRect,
	corner_radius: u16,
	corner_mask: GCornerMask,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =492", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws the outline of a circle in the current stroke color

 * `ctx`: The destination graphics context in which to draw
 * `p`: The center point of the circle
 * `radius`: The radius in pixels*/
/** graphics_draw_circle
  -> Added in 0
gneiss: Vtable Slot 117, Offset 468*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_circle")]
pub unsafe extern "C" fn graphics_draw_circle(ctx: *mut GContext, p: GPoint, radius: u16) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =468", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Fills a circle in the current fill color

 * `ctx`: The destination graphics context in which to draw
 * `p`: The center point of the circle
 * `radius`: The radius in pixels*/
/** graphics_fill_circle
  -> Added in 0
gneiss: Vtable Slot 122, Offset 488*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_fill_circle")]
pub unsafe extern "C" fn graphics_fill_circle(ctx: *mut GContext, p: GPoint, radius: u16) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =488", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws the outline of a rounded rectangle in the current stroke color

 * `ctx`: The destination graphics context in which to draw
 * `rect`: The rectangle defining the dimensions of the rounded rectangle to draw
 * `radius`: The corner radius in pixels*/
/** graphics_draw_round_rect
  -> Added in 0
gneiss: Vtable Slot 121, Offset 484*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_round_rect")]
pub unsafe extern "C" fn graphics_draw_round_rect(ctx: *mut GContext, rect: GRect, radius: u16) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =484", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws a bitmap into the graphics context, inside the specified rectangle

 * `ctx`: The destination graphics context in which to draw the bitmap
 * `bitmap`: The bitmap to draw
 * `rect`: The rectangle in which to draw the bitmap

 Note: If the size of `rect` is smaller than the size of the bitmap,
 the bitmap will be clipped on right and bottom edges.
 If the size of `rect` is larger than the size of the bitmap,
 the bitmap will be tiled automatically in both horizontal and vertical
 directions, effectively drawing a repeating pattern.

 See GBitmap

 See GContext*/
/** graphics_draw_bitmap_in_rect
  -> Added in 0
gneiss: Vtable Slot 116, Offset 464*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_bitmap_in_rect")]
pub unsafe extern "C" fn graphics_draw_bitmap_in_rect(
	ctx: *mut GContext,
	bitmap: *const GBitmap,
	rect: GRect,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =464", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** A shortcut to capture the framebuffer in the native format of the watch.

 See graphics_capture_frame_buffer_format*/
/** graphics_capture_frame_buffer
  -> Added in 32
gneiss: Vtable Slot 394, Offset 1576*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_capture_frame_buffer")]
pub unsafe extern "C" fn graphics_capture_frame_buffer(ctx: *mut GContext) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1576", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Captures the frame buffer for direct access, using the given format.
 Graphics functions will not affect the frame buffer while it is captured.
 The frame buffer is released when `graphics_release_frame_buffer` is called.
 The frame buffer must be released before the end of a layer's `.update_proc`
 for the layer to be drawn properly.

 While the frame buffer is captured calling `graphics_capture_frame_buffer`
 will fail and return `NULL`.

 Note: When writing to the frame buffer, you should respect the visible boundaries of a
 window on the screen. Use layer_get_frame(window_get_root_layer(window)).origin to obtain its
 position relative to the frame buffer. For example, drawing to (5, 5) in the frame buffer
 while the window is transitioning to the left with its origin at (-20, 0) would
 effectively draw that point at (25, 5) relative to the window. For this reason you should
 consider the window's root layer frame when calculating drawing coordinates.

 See GBitmap

 See GBitmapFormat

 See layer_get_frame

 See window_get_root_layer

 * `ctx`: The graphics context providing the frame buffer
 * `format`: The format in which the framebuffer should be captured. Supported formats
 are `GBitmapFormat1Bit` and `GBitmapFormat8Bit`.

 Returns A pointer to the frame buffer. `NULL` if failed.*/
/** graphics_capture_frame_buffer_format
  -> Added in 32
gneiss: Vtable Slot 395, Offset 1580*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_capture_frame_buffer_format")]
pub unsafe extern "C" fn graphics_capture_frame_buffer_format(
	ctx: *mut GContext,
	format: GBitmapFormat,
) -> *mut GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1580", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Releases the frame buffer.
 Must be called before the end of a layer's `.update_proc` for the layer to be drawn properly.

 If `buffer` does not point to the address previously returned by
 `graphics_capture_frame_buffer` the frame buffer will not be released.

 * `ctx`: The graphics context providing the frame buffer
 * `buffer`: The pointer to frame buffer

 Returns True if the frame buffer was released successfully*/
/** graphics_release_frame_buffer
  -> Added in 23
gneiss: Vtable Slot 350, Offset 1400*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_release_frame_buffer")]
pub unsafe extern "C" fn graphics_release_frame_buffer(
	ctx: *mut GContext,
	buffer: *mut GBitmap,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1400", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Whether or not the frame buffer has been captured by `graphics_capture_frame_buffer`.
 Graphics functions will not affect the frame buffer until it has been released by
 `graphics_release_frame_buffer`.

 * `ctx`: The graphics context providing the frame buffer

 Returns True if the frame buffer has been captured*/
/** graphics_frame_buffer_is_captured
  -> Added in 23
gneiss: Vtable Slot 349, Offset 1396*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_frame_buffer_is_captured")]
pub unsafe extern "C" fn graphics_frame_buffer_is_captured(ctx: *mut GContext) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1396", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws a rotated bitmap with a memory-sensitive 2x anti-aliasing technique
 (using ray-finding instead of super-sampling), which is thresholded into a b/w bitmap for 1-bit
 and color blended for 8-bit.

 Note: This API has performance limitations that can degrade user experience. Use sparingly.

 * `ctx`: The destination graphics context in which to draw
 * `src`: The source bitmap to draw
 * `src_ic`: Instance center (single point unaffected by rotation) relative to source bitmap
 * `rotation`: Angle of rotation. Rotation is an integer between 0 (no rotation)
 and TRIG_MAX_ANGLE (360 degree rotation). Use `DEG_TO_TRIGANGLE` to easily convert degrees
 to the appropriate value.

 * `dest_ic`: Where to draw the instance center of the rotated bitmap in the context.*/
/** graphics_draw_rotated_bitmap
  -> Added in 45
gneiss: Vtable Slot 460, Offset 1840*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_rotated_bitmap")]
pub unsafe extern "C" fn graphics_draw_rotated_bitmap(
	ctx: *mut GContext,
	src: *mut GBitmap,
	src_ic: GPoint,
	rotation: ::core::ffi::c_int,
	dest_ic: GPoint,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1840", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Places a circle at the center of the rectangle, with a diameter that matches
the rectangle's shortest side.*/
pub const GOvalScaleMode_GOvalScaleModeFitCircle: GOvalScaleMode = 0;
/** Places a circle at the center of the rectangle, with a diameter that matches
the rectangle's longest side.
The circle may overflow the bounds of the rectangle.*/
pub const GOvalScaleMode_GOvalScaleModeFillCircle: GOvalScaleMode = 1;
/** Values to specify how a given rectangle should be used to derive an oval shape.

See `graphics_fill_radial_internal`

See `graphics_draw_arc_internal`

See `gpoint_from_polar_internal`

See `grect_centered_from_polar`*/
pub type GOvalScaleMode = ::core::ffi::c_uchar;
/** Draws a line arc clockwise between `angle_start` and `angle_end`, where 0° is
 the top of the circle. If the difference between `angle_start` and `angle_end` is greater
 than 360°, a full circle will be drawn.

 * `ctx`: The destination graphics context in which to draw using the current
 stroke color and antialiasing setting.

 * `rect`: The reference rectangle to derive the center point and radius (see scale_mode).
 * `scale_mode`: Determines how rect will be used to derive the center point and radius.
 * `angle_start`: Radial starting angle. Use `DEG_TO_TRIGANGLE` to easily convert degrees
 to the appropriate value.

 * `angle_end`: Radial finishing angle. If smaller than `angle_start`, nothing will be drawn.*/
/** graphics_draw_arc
  -> Added in 74
gneiss: Vtable Slot 582, Offset 2328*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_arc")]
pub unsafe extern "C" fn graphics_draw_arc(
	ctx: *mut GContext,
	rect: GRect,
	scale_mode: GOvalScaleMode,
	angle_start: i32,
	angle_end: i32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2328", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Fills a circle clockwise between `angle_start` and `angle_end`, where 0° is
 the top of the circle. If the difference between `angle_start` and `angle_end` is greater
 than 360°, a full circle will be drawn and filled. If `angle_start` is greater than
 `angle_end` nothing will be drawn.

 Note: A simple example is drawing a 'Pacman' shape, with a starting angle of -225°, and
 ending angle of 45°. By setting `inset_thickness` to a non-zero value (such as 30) this
 example will produce the letter C.

 * `ctx`: The destination graphics context in which to draw using the current
 fill color and antialiasing setting.

 * `rect`: The reference rectangle to derive the center point and radius (see scale).
 * `scale_mode`: Determines how rect will be used to derive the center point and radius.
 * `inset_thickness`: Describes how thick in pixels the radial will be drawn towards its
 center measured from the outside.

 * `angle_start`: Radial starting angle. Use `DEG_TO_TRIGANGLE` to easily convert degrees
 to the appropriate value.

 * `angle_end`: Radial finishing angle. If smaller than `angle_start`, nothing will be drawn.*/
/** graphics_fill_radial
  -> Added in 74
gneiss: Vtable Slot 583, Offset 2332*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_fill_radial")]
pub unsafe extern "C" fn graphics_fill_radial(
	ctx: *mut GContext,
	rect: GRect,
	scale_mode: GOvalScaleMode,
	inset_thickness: u16,
	angle_start: i32,
	angle_end: i32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2332", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates a GPoint located at the angle provided on the perimeter of a circle defined by the
 provided GRect.

 * `rect`: The reference rectangle to derive the center point and radius (see scale_mode).
 * `scale_mode`: Determines how rect will be used to derive the center point and radius.
 * `angle`: The angle at which the point on the circle's perimeter should be calculated.
 Use `DEG_TO_TRIGANGLE` to easily convert degrees to the appropriate value.

 Returns The point on the circle's perimeter.*/
/** gpoint_from_polar
  -> Added in 74
gneiss: Vtable Slot 581, Offset 2324*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpoint_from_polar")]
pub unsafe extern "C" fn gpoint_from_polar(
	rect: GRect,
	scale_mode: GOvalScaleMode,
	angle: i32,
) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2324", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates a rectangle centered on the perimeter of a circle at a given angle.
 Use this to construct rectangles that follow the perimeter of a circle as an input for
 `graphics_fill_radial_internal` or `graphics_draw_arc_internal`,
 e.g. to draw circles every 30 degrees on a watchface.

 * `rect`: The reference rectangle to derive the circle's center point and radius (see
 scale_mode).

 * `scale_mode`: Determines how rect will be used to derive the circle's center point and
 radius.

 * `angle`: The angle at which the point on the circle's perimeter should be calculated.
 Use `DEG_TO_TRIGANGLE` to easily convert degrees to the appropriate value.

 * `size`: Width and height of the desired rectangle.

 Returns The rectangle centered on the circle's perimeter.*/
/** grect_centered_from_polar
  -> Added in 74
gneiss: Vtable Slot 584, Offset 2336*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.grect_centered_from_polar")]
pub unsafe extern "C" fn grect_centered_from_polar(
	rect: GRect,
	scale_mode: GOvalScaleMode,
	angle: i32,
	size: GSize,
) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2336", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draw commands are the basic building block of the draw command system, encoding the type of
command to draw, the stroke width and color, fill color, and points that define the path (or
center of a circle*/
#[repr(C)]
#[derive(Debug)]
pub struct GDrawCommand {
	_unused: [u8; 0],
}
/** Draw command frames contain a list of commands to draw for that frame and a duration,
indicating the length of time for which the frame should be drawn in an animation sequence.
Frames form the building blocks of a `GDrawCommandSequence`, which consists of multiple
frames.*/
#[repr(C)]
#[derive(Debug)]
pub struct GDrawCommandFrame {
	_unused: [u8; 0],
}
/** Draw command images contain a list of commands that can be drawn. An image can be loaded from
PDC file data.*/
#[repr(C)]
#[derive(Debug)]
pub struct GDrawCommandImage {
	_unused: [u8; 0],
}
/// Draw command lists contain a list of commands that can be iterated over and drawn all at once
#[repr(C)]
#[derive(Debug)]
pub struct GDrawCommandList {
	_unused: [u8; 0],
}
/** Callback for iterating over draw command list

* `command`: current `GDrawCommand` in iteration
* `index`: index of the current command in the list
* `context`: context pointer for the iteration operation

Returns true if the iteration should continue after this command is processed*/
pub type GDrawCommandListIteratorCb = ::core::option::Option<
	unsafe extern "C" fn(
		command: *mut GDrawCommand,
		index: u32,
		context: *mut ::core::ffi::c_void,
	) -> bool,
>;
/** Draw command sequences allow the animation of frames over time. Each sequence has a list of
frames that can be accessed by the elapsed duration of the animation (not maintained internally)
or by index. Sequences can be loaded from PDC file data.*/
#[repr(C)]
#[derive(Debug)]
pub struct GDrawCommandSequence {
	_unused: [u8; 0],
}
/// < Invalid draw command type
pub const GDrawCommandType_GDrawCommandTypeInvalid: GDrawCommandType = 0;
/// < Arbitrary path draw command type
pub const GDrawCommandType_GDrawCommandTypePath: GDrawCommandType = 1;
/// < Circle draw command type
pub const GDrawCommandType_GDrawCommandTypeCircle: GDrawCommandType = 2;
/// < Arbitrary path drawn with sub-pixel precision (1/8th precision)
pub const GDrawCommandType_GDrawCommandTypePrecisePath: GDrawCommandType = 3;
pub type GDrawCommandType = ::core::ffi::c_uchar;
/** Draw a command

 * `ctx`: The destination graphics context in which to draw
 * `command`: `GDrawCommand` to draw*/
/** gdraw_command_draw
  -> Added in 48
gneiss: Vtable Slot 474, Offset 1896*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_draw")]
pub unsafe extern "C" fn gdraw_command_draw(ctx: *mut GContext, command: *mut GDrawCommand) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1896", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the command type

 * `command`: `GDrawCommand` from which to get the type

 Returns The type of the given `GDrawCommand`*/
/** gdraw_command_get_type
  -> Added in 48
gneiss: Vtable Slot 486, Offset 1944*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_type")]
pub unsafe extern "C" fn gdraw_command_get_type(command: *mut GDrawCommand) -> GDrawCommandType {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1944", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the fill color of a command

 * `command`: ref DrawCommand for which to set the fill color
 * `fill_color`: `GColor` to set for the fill*/
/** gdraw_command_set_fill_color
  -> Added in 48
gneiss: Vtable Slot 509, Offset 2036*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_fill_color")]
pub unsafe extern "C" fn gdraw_command_set_fill_color(
	command: *mut GDrawCommand,
	fill_color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2036", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the fill color of a command

 * `command`: `GDrawCommand` from which to get the fill color

 Returns fill color of the given `GDrawCommand`*/
/** gdraw_command_get_fill_color
  -> Added in 48
gneiss: Vtable Slot 478, Offset 1912*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_fill_color")]
pub unsafe extern "C" fn gdraw_command_get_fill_color(command: *mut GDrawCommand) -> GColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1912", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the stroke color of a command

 * `command`: `GDrawCommand` for which to set the stroke color
 * `stroke_color`: `GColor` to set for the stroke*/
/** gdraw_command_set_stroke_color
  -> Added in 48
gneiss: Vtable Slot 514, Offset 2056*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_stroke_color")]
pub unsafe extern "C" fn gdraw_command_set_stroke_color(
	command: *mut GDrawCommand,
	stroke_color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2056", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the stroke color of a command

 * `command`: `GDrawCommand` from which to get the stroke color

 Returns The stroke color of the given `GDrawCommand`*/
/** gdraw_command_get_stroke_color
  -> Added in 48
gneiss: Vtable Slot 484, Offset 1936*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_stroke_color")]
pub unsafe extern "C" fn gdraw_command_get_stroke_color(command: *mut GDrawCommand) -> GColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1936", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the stroke width of a command

 * `command`: `GDrawCommand` for which to set the stroke width
 * `stroke_width`: stroke width to set for the command*/
/** gdraw_command_set_stroke_width
  -> Added in 48
gneiss: Vtable Slot 515, Offset 2060*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_stroke_width")]
pub unsafe extern "C" fn gdraw_command_set_stroke_width(
	command: *mut GDrawCommand,
	stroke_width: u8,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2060", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the stroke width of a command

 * `command`: `GDrawCommand` from which to get the stroke width

 Returns The stroke width of the given `GDrawCommand`*/
/** gdraw_command_get_stroke_width
  -> Added in 48
gneiss: Vtable Slot 485, Offset 1940*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_stroke_width")]
pub unsafe extern "C" fn gdraw_command_get_stroke_width(command: *mut GDrawCommand) -> u8 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1940", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Get the number of points in a command
/** gdraw_command_get_num_points
  -> Added in 48
gneiss: Vtable Slot 480, Offset 1920*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_num_points")]
pub unsafe extern "C" fn gdraw_command_get_num_points(command: *mut GDrawCommand) -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1920", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the value of the point in a command at the specified index

 * `command`: `GDrawCommand` for which to set the value of a point
 * `point_idx`: Index of the point to set the value for
 * `point`: new point value to set*/
/** gdraw_command_set_point
  -> Added in 48
gneiss: Vtable Slot 512, Offset 2048*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_point")]
pub unsafe extern "C" fn gdraw_command_set_point(
	command: *mut GDrawCommand,
	point_idx: u16,
	point: GPoint,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2048", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the value of a point in a command from the specified index

 * `command`: `GDrawCommand` from which to get a point
 * `point_idx`: The index to get the point for

 Returns The point in the `GDrawCommand` specified by point_idx

 Note: The index **must** be less than the number of points*/
/** gdraw_command_get_point
  -> Added in 48
gneiss: Vtable Slot 482, Offset 1928*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_point")]
pub unsafe extern "C" fn gdraw_command_get_point(
	command: *mut GDrawCommand,
	point_idx: u16,
) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1928", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the radius of a circle command

 Note: This only works for commands of type `GDrawCommandTypeCircle`

 * `command`: `GDrawCommand` from which to set the circle radius
 * `radius`: The radius to set for the circle.*/
/** gdraw_command_set_radius
  -> Added in 48
gneiss: Vtable Slot 513, Offset 2052*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_radius")]
pub unsafe extern "C" fn gdraw_command_set_radius(command: *mut GDrawCommand, radius: u16) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2052", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the radius of a circle command.

 Note: this only works for commands of type `GDrawCommandTypeCircle`.

 * `command`: `GDrawCommand` from which to get the circle radius

 Returns The radius in pixels if command is of type `GDrawCommandTypeCircle`*/
/** gdraw_command_get_radius
  -> Added in 48
gneiss: Vtable Slot 483, Offset 1932*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_radius")]
pub unsafe extern "C" fn gdraw_command_get_radius(command: *mut GDrawCommand) -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1932", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the path of a stroke command to be open

 Note: This only works for commands of type `GDrawCommandTypePath` and
 `GDrawCommandTypePrecisePath`

 * `command`: `GDrawCommand` for which to set the path open status
 * `path_open`: true if path should be hidden*/
/** gdraw_command_set_path_open
  -> Added in 48
gneiss: Vtable Slot 511, Offset 2044*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_path_open")]
pub unsafe extern "C" fn gdraw_command_set_path_open(command: *mut GDrawCommand, path_open: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2044", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Return whether a stroke command path is open

 Note: This only works for commands of type `GDrawCommandTypePath` and
 `GDrawCommandTypePrecisePath`

 * `command`: `GDrawCommand` from which to get the path open status

 Returns true if the path is open*/
/** gdraw_command_get_path_open
  -> Added in 48
gneiss: Vtable Slot 481, Offset 1924*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_path_open")]
pub unsafe extern "C" fn gdraw_command_get_path_open(command: *mut GDrawCommand) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1924", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set a command as hidden. This command will not be drawn when `gdraw_command_draw` is called
 with this command

 * `command`: `GDrawCommand` for which to set the hidden status
 * `hidden`: true if command should be hidden*/
/** gdraw_command_set_hidden
  -> Added in 48
gneiss: Vtable Slot 510, Offset 2040*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_set_hidden")]
pub unsafe extern "C" fn gdraw_command_set_hidden(command: *mut GDrawCommand, hidden: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2040", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Return whether a command is hidden

 * `command`: `GDrawCommand` from which to get the hidden status

 Returns true if command is hidden*/
/** gdraw_command_get_hidden
  -> Added in 48
gneiss: Vtable Slot 479, Offset 1916*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_get_hidden")]
pub unsafe extern "C" fn gdraw_command_get_hidden(command: *mut GDrawCommand) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1916", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draw a frame

 * `ctx`: The destination graphics context in which to draw
 * `sequence`: The sequence from which the frame comes from (this is required)
 * `frame`: Frame to draw
 * `offset`: Offset from draw context origin to draw the frame*/
/** gdraw_command_frame_draw
  -> Added in 48
gneiss: Vtable Slot 475, Offset 1900*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_frame_draw")]
pub unsafe extern "C" fn gdraw_command_frame_draw(
	ctx: *mut GContext,
	sequence: *mut GDrawCommandSequence,
	frame: *mut GDrawCommandFrame,
	offset: GPoint,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1900", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the duration of the frame

 * `frame`: `GDrawCommandFrame` for which to set the duration
 * `duration`: duration of the frame in milliseconds*/
/** gdraw_command_frame_set_duration
  -> Added in 48
gneiss: Vtable Slot 477, Offset 1908*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_frame_set_duration")]
pub unsafe extern "C" fn gdraw_command_frame_set_duration(
	frame: *mut GDrawCommandFrame,
	duration: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1908", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the duration of the frame

 * `frame`: `GDrawCommandFrame` from which to get the duration

 Returns duration of the frame in milliseconds*/
/** gdraw_command_frame_get_duration
  -> Added in 48
gneiss: Vtable Slot 476, Offset 1904*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_frame_get_duration")]
pub unsafe extern "C" fn gdraw_command_frame_get_duration(frame: *mut GDrawCommandFrame) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1904", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a GDrawCommandImage from the specified resource (PDC file)

 * `resource_id`: Resource containing data to load and create GDrawCommandImage from.

 Returns GDrawCommandImage pointer if the resource was loaded, NULL otherwise*/
/** gdraw_command_image_create_with_resource
  -> Added in 48
gneiss: Vtable Slot 488, Offset 1952*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_create_with_resource")]
pub unsafe extern "C" fn gdraw_command_image_create_with_resource(
	resource_id: u32,
) -> *mut GDrawCommandImage {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1952", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a GDrawCommandImage as a copy from a given image

 * `image`: Image to copy.

 Returns cloned image or NULL if the operation failed*/
/** gdraw_command_image_clone
  -> Added in 48
gneiss: Vtable Slot 487, Offset 1948*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_clone")]
pub unsafe extern "C" fn gdraw_command_image_clone(
	image: *mut GDrawCommandImage,
) -> *mut GDrawCommandImage {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1948", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deletes the GDrawCommandImage structure and frees associated data

 * `image`: Pointer to the image to free (delete)*/
/** gdraw_command_image_destroy
  -> Added in 48
gneiss: Vtable Slot 489, Offset 1956*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_destroy")]
pub unsafe extern "C" fn gdraw_command_image_destroy(image: *mut GDrawCommandImage) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1956", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draw an image

 * `ctx`: The destination graphics context in which to draw
 * `image`: Image to draw
 * `offset`: Offset from draw context origin to draw the image*/
/** gdraw_command_image_draw
  -> Added in 48
gneiss: Vtable Slot 490, Offset 1960*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_draw")]
pub unsafe extern "C" fn gdraw_command_image_draw(
	ctx: *mut GContext,
	image: *mut GDrawCommandImage,
	offset: GPoint,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1960", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get size of the bounding box surrounding all draw commands in the image. This bounding
 box can be used to set the graphics context or layer bounds when drawing the image.

 * `image`: `GDrawCommandImage` from which to get the bounding box size

 Returns bounding box size*/
/** gdraw_command_image_get_bounds_size
  -> Added in 48
gneiss: Vtable Slot 491, Offset 1964*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_get_bounds_size")]
pub unsafe extern "C" fn gdraw_command_image_get_bounds_size(
	image: *mut GDrawCommandImage,
) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1964", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set size of the bounding box surrounding all draw commands in the image. This bounding
 box can be used to set the graphics context or layer bounds when drawing the image.

 * `image`: `GDrawCommandImage` for which to set the bounding box size
 * `size`: bounding box size*/
/** gdraw_command_image_set_bounds_size
  -> Added in 48
gneiss: Vtable Slot 493, Offset 1972*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_set_bounds_size")]
pub unsafe extern "C" fn gdraw_command_image_set_bounds_size(
	image: *mut GDrawCommandImage,
	size: GSize,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1972", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the command list of the image

 * `image`: `GDrawCommandImage` from which to get the command list

 Returns command list*/
/** gdraw_command_image_get_command_list
  -> Added in 48
gneiss: Vtable Slot 492, Offset 1968*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_image_get_command_list")]
pub unsafe extern "C" fn gdraw_command_image_get_command_list(
	image: *mut GDrawCommandImage,
) -> *mut GDrawCommandList {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1968", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Iterate over all commands in a command list

 * `command_list`: `GDrawCommandList` over which to iterate
 * `handle_command`: iterator callback
 * `callback_context`: context pointer to be passed into the iterator callback*/
/** gdraw_command_list_iterate
  -> Added in 48
gneiss: Vtable Slot 497, Offset 1988*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_list_iterate")]
pub unsafe extern "C" fn gdraw_command_list_iterate(
	command_list: *mut GDrawCommandList,
	handle_command: GDrawCommandListIteratorCb,
	callback_context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1988", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draw all commands in a command list

 * `ctx`: The destination graphics context in which to draw
 * `command_list`: list of commands to draw*/
/** gdraw_command_list_draw
  -> Added in 48
gneiss: Vtable Slot 494, Offset 1976*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_list_draw")]
pub unsafe extern "C" fn gdraw_command_list_draw(
	ctx: *mut GContext,
	command_list: *mut GDrawCommandList,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1976", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the command at the specified index

 Note: the specified index must be less than the number of commands in the list

 * `command_list`: `GDrawCommandList` from which to get a command
 * `command_idx`: index of the command to get

 Returns pointer to `GDrawCommand` at the specified index*/
/** gdraw_command_list_get_command
  -> Added in 48
gneiss: Vtable Slot 495, Offset 1980*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_list_get_command")]
pub unsafe extern "C" fn gdraw_command_list_get_command(
	command_list: *mut GDrawCommandList,
	command_idx: u16,
) -> *mut GDrawCommand {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1980", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the number of commands in the list

 * `command_list`: `GDrawCommandList` from which to get the number of commands

 Returns number of commands in command list*/
/** gdraw_command_list_get_num_commands
  -> Added in 48
gneiss: Vtable Slot 496, Offset 1984*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_list_get_num_commands")]
pub unsafe extern "C" fn gdraw_command_list_get_num_commands(
	command_list: *mut GDrawCommandList,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1984", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a `GDrawCommandSequence` from the specified resource (PDC file)

 * `resource_id`: Resource containing data to load and create GDrawCommandSequence from.

 Returns GDrawCommandSequence pointer if the resource was loaded, NULL otherwise*/
/** gdraw_command_sequence_create_with_resource
  -> Added in 48
gneiss: Vtable Slot 499, Offset 1996*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_create_with_resource")]
pub unsafe extern "C" fn gdraw_command_sequence_create_with_resource(
	resource_id: u32,
) -> *mut GDrawCommandSequence {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1996", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a `GDrawCommandSequence` as a copy from a given sequence

 * `sequence`: Sequence to copy

 Returns cloned sequence or NULL if the operation failed*/
/** gdraw_command_sequence_clone
  -> Added in 48
gneiss: Vtable Slot 498, Offset 1992*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_clone")]
pub unsafe extern "C" fn gdraw_command_sequence_clone(
	sequence: *mut GDrawCommandSequence,
) -> *mut GDrawCommandSequence {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1992", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Deletes the `GDrawCommandSequence` structure and frees associated data

 * `sequence`: Pointer to the sequence to destroy*/
/** gdraw_command_sequence_destroy
  -> Added in 48
gneiss: Vtable Slot 500, Offset 2000*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_destroy")]
pub unsafe extern "C" fn gdraw_command_sequence_destroy(sequence: *mut GDrawCommandSequence) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2000", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the frame that should be shown after the specified amount of elapsed time
 The last frame will be returned if the elapsed time exceeds the total time

 * `sequence`: `GDrawCommandSequence` from which to get the frame
 * `elapsed_ms`: elapsed time in milliseconds

 Returns pointer to `GDrawCommandFrame` that should be displayed at the elapsed time*/
/** gdraw_command_sequence_get_frame_by_elapsed
  -> Added in 48
gneiss: Vtable Slot 502, Offset 2008*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_frame_by_elapsed")]
pub unsafe extern "C" fn gdraw_command_sequence_get_frame_by_elapsed(
	sequence: *mut GDrawCommandSequence,
	elapsed_ms: u32,
) -> *mut GDrawCommandFrame {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2008", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the frame at the specified index

 * `sequence`: `GDrawCommandSequence` from which to get the frame
 * `index`: Index of frame to get

 Returns pointer to `GDrawCommandFrame` at the specified index*/
/** gdraw_command_sequence_get_frame_by_index
  -> Added in 48
gneiss: Vtable Slot 503, Offset 2012*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_frame_by_index")]
pub unsafe extern "C" fn gdraw_command_sequence_get_frame_by_index(
	sequence: *mut GDrawCommandSequence,
	index: u32,
) -> *mut GDrawCommandFrame {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2012", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the size of the bounding box surrounding all draw commands in the sequence. This bounding
 box can be used to set the graphics context or layer bounds when drawing the frames in the
 sequence.

 * `sequence`: `GDrawCommandSequence` from which to get the bounds

 Returns bounding box size*/
/** gdraw_command_sequence_get_bounds_size
  -> Added in 48
gneiss: Vtable Slot 501, Offset 2004*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_bounds_size")]
pub unsafe extern "C" fn gdraw_command_sequence_get_bounds_size(
	sequence: *mut GDrawCommandSequence,
) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2004", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set size of the bounding box surrounding all draw commands in the sequence. This bounding
 box can be used to set the graphics context or layer bounds when drawing the frames in the
 sequence.

 * `sequence`: `GDrawCommandSequence` for which to set the bounds
 * `size`: bounding box size*/
/** gdraw_command_sequence_set_bounds_size
  -> Added in 48
gneiss: Vtable Slot 507, Offset 2028*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_set_bounds_size")]
pub unsafe extern "C" fn gdraw_command_sequence_set_bounds_size(
	sequence: *mut GDrawCommandSequence,
	size: GSize,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2028", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the play count of the sequence

 * `sequence`: `GDrawCommandSequence` from which to get the play count

 Returns play count of sequence*/
/** gdraw_command_sequence_get_play_count
  -> Added in 48
gneiss: Vtable Slot 505, Offset 2020*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_play_count")]
pub unsafe extern "C" fn gdraw_command_sequence_get_play_count(
	sequence: *mut GDrawCommandSequence,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2020", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the play count of the sequence

 * `sequence`: `GDrawCommandSequence` for which to set the play count
 * `play_count`: play count*/
/** gdraw_command_sequence_set_play_count
  -> Added in 48
gneiss: Vtable Slot 508, Offset 2032*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_set_play_count")]
pub unsafe extern "C" fn gdraw_command_sequence_set_play_count(
	sequence: *mut GDrawCommandSequence,
	play_count: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2032", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the total duration of the sequence.

 * `sequence`: `GDrawCommandSequence` from which to get the total duration

 Returns total duration of the sequence in milliseconds*/
/** gdraw_command_sequence_get_total_duration
  -> Added in 48
gneiss: Vtable Slot 506, Offset 2024*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_total_duration")]
pub unsafe extern "C" fn gdraw_command_sequence_get_total_duration(
	sequence: *mut GDrawCommandSequence,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2024", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the number of frames in the sequence

 * `sequence`: `GDrawCommandSequence` from which to get the number of frames

 Returns number of frames in the sequence*/
/** gdraw_command_sequence_get_num_frames
  -> Added in 48
gneiss: Vtable Slot 504, Offset 2016*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_sequence_get_num_frames")]
pub unsafe extern "C" fn gdraw_command_sequence_get_num_frames(
	sequence: *mut GDrawCommandSequence,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2016", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the command list of the frame

 * `frame`: `GDrawCommandFrame` from which to get the command list

 Returns command list*/
/** gdraw_command_frame_get_command_list
  -> Added in 81
gneiss: Vtable Slot 612, Offset 2448*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gdraw_command_frame_get_command_list")]
pub unsafe extern "C" fn gdraw_command_frame_get_command_list(
	frame: *mut GDrawCommandFrame,
) -> *mut GDrawCommandList {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2448", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Data structure describing a naked path

Note: Note that this data structure only refers to an array of points;
the points are not stored inside this data structure itself.
In most cases, one cannot use a stack-allocated array of GPoints. Instead
one often needs to provide longer-lived (static or "global") storage for the points.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GPathInfo {
	/// The number of points in the `points` array
	pub num_points: u32,
	/// Pointer to an array of points.
	pub points:     *mut GPoint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GPathInfo"][::core::mem::size_of::<GPathInfo>() - 8usize];
	["Alignment of GPathInfo"][::core::mem::align_of::<GPathInfo>() - 4usize];
	["Offset of field: GPathInfo::num_points"]
		[::core::mem::offset_of!(GPathInfo, num_points) - 0usize];
	["Offset of field: GPathInfo::points"][::core::mem::offset_of!(GPathInfo, points) - 4usize];
};
/** Data structure describing a path, plus its rotation and translation.

Note: See the remark with `GPathInfo`*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GPath {
	/// The number of points in the `points` array
	pub num_points: u32,
	/// Pointer to an array of points.
	pub points:     *mut GPoint,
	/** The rotation that will be used when drawing the path with
	`gpath_draw_filled()` or `gpath_draw_outline()`*/
	pub rotation:   i32,
	/** The translation that will to be used when drawing the path with
	`gpath_draw_filled()` or `gpath_draw_outline()`*/
	pub offset:     GPoint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of GPath"][::core::mem::size_of::<GPath>() - 16usize];
	["Alignment of GPath"][::core::mem::align_of::<GPath>() - 4usize];
	["Offset of field: GPath::num_points"][::core::mem::offset_of!(GPath, num_points) - 0usize];
	["Offset of field: GPath::points"][::core::mem::offset_of!(GPath, points) - 4usize];
	["Offset of field: GPath::rotation"][::core::mem::offset_of!(GPath, rotation) - 8usize];
	["Offset of field: GPath::offset"][::core::mem::offset_of!(GPath, offset) - 12usize];
};
/** Creates a new GPath on the heap based on a series of points described by a GPathInfo.

 Values after initialization:
 * `num_points` and `points` pointer: copied from the GPathInfo.
 * `rotation`: 0
 * `offset`: (0, 0)

 Returns A pointer to the GPath. `NULL` if the GPath could not
 be created*/
/** gpath_create
  -> Added in 0
gneiss: Vtable Slot 105, Offset 420*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_create")]
pub unsafe extern "C" fn gpath_create(init: *const GPathInfo) -> *mut GPath {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =420", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Free a dynamically allocated gpath created with `gpath_create()`
/** gpath_destroy
  -> Added in 0
gneiss: Vtable Slot 106, Offset 424*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_destroy")]
pub unsafe extern "C" fn gpath_destroy(gpath: *mut GPath) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =424", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws the fill of a path into a graphics context, using the current fill color,
 relative to the drawing area as set up by the layering system.

 * `ctx`: The graphics context to draw into
 * `path`: The path to fill

 See `graphics_context_set_fill_color()`*/
/** gpath_draw_filled
  -> Added in 20
gneiss: Vtable Slot 343, Offset 1372*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_draw_filled")]
pub unsafe extern "C" fn gpath_draw_filled(ctx: *mut GContext, path: *mut GPath) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1372", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws the outline of a path into a graphics context, using the current stroke color and
 width, relative to the drawing area as set up by the layering system. The first and last points
 in the path do have a line between them.

 * `ctx`: The graphics context to draw into
 * `path`: The path to draw

 See `graphics_context_set_stroke_color()`

 See `gpath_draw_outline_open()`*/
/** gpath_draw_outline
  -> Added in 0
gneiss: Vtable Slot 108, Offset 432*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_draw_outline")]
pub unsafe extern "C" fn gpath_draw_outline(ctx: *mut GContext, path: *mut GPath) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =432", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the absolute rotation of the path.
 The current rotation will be replaced by the specified angle.

 * `path`: The path onto which to set the rotation
 * `angle`: The absolute angle of the rotation. The angle is represented in the same way
 that is used with `sin_lookup()`. See `TRIG_MAX_ANGLE` for more information.

 Note: Setting a rotation does not affect the points in the path directly.
 The rotation is applied on-the-fly during drawing, either using `gpath_draw_filled()` or
 `gpath_draw_outline()`.*/
/** gpath_rotate_to
  -> Added in 0
gneiss: Vtable Slot 110, Offset 440*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_rotate_to")]
pub unsafe extern "C" fn gpath_rotate_to(path: *mut GPath, angle: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =440", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the absolute offset of the path.
 The current translation will be replaced by the specified offset.

 * `path`: The path onto which to set the translation
 * `point`: The point which is used as the vector for the translation.

 Note: Setting a translation does not affect the points in the path directly.
 The translation is applied on-the-fly during drawing, either using `gpath_draw_filled()` or
 `gpath_draw_outline()`.*/
/** gpath_move_to
  -> Added in 0
gneiss: Vtable Slot 109, Offset 436*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_move_to")]
pub unsafe extern "C" fn gpath_move_to(path: *mut GPath, point: GPoint) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =436", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draws an open outline of a path into a graphics context, using the current stroke color and
 width, relative to the drawing area as set up by the layering system. The first and last points
 in the path do not have a line between them.

 * `ctx`: The graphics context to draw into
 * `path`: The path to draw

 See `graphics_context_set_stroke_color()`

 See `gpath_draw_outline()`*/
/** gpath_draw_outline_open
  -> Added in 50
gneiss: Vtable Slot 518, Offset 2072*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gpath_draw_outline_open")]
pub unsafe extern "C" fn gpath_draw_outline_open(ctx: *mut GContext, path: *mut GPath) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2072", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** See `TextLayer`

See `TextDrawing`

See `text_layer_set_font`

See `graphics_draw_text`*/
#[repr(C)]
#[derive(Debug)]
pub struct FontInfo {
	_unused: [u8; 0],
}
/** Pointer to opaque font data structure.

See `fonts_load_custom_font()`

See `text_layer_set_font()`

See `graphics_draw_text()`*/
pub type GFont = *mut FontInfo;
/** Loads a system font corresponding to the specified font key.

 * `font_key`: The string key of the font to load. See
 <a href="https://developer.pebble.com/guides/app-resources/system-fonts/">System
 Fonts</a> guide for a list of system fonts.

 Returns An opaque pointer to the loaded font, or, a pointer to the default
 (fallback) font if the specified font cannot be loaded.

 Note: This may load a font from the flash peripheral into RAM.*/
/** fonts_get_system_font
  -> Added in 0
gneiss: Vtable Slot 96, Offset 384*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.fonts_get_system_font")]
pub unsafe extern "C" fn fonts_get_system_font(font_key: *const ::core::ffi::c_char) -> GFont {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =384", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Loads a custom font.

 * `handle`: The resource handle of the font to load. See resource_ids.auto.h
 for a list of resource IDs, and use `resource_get_handle()` to obtain the resource handle.

 Returns An opaque pointer to the loaded font, or a pointer to the default
 (fallback) font if the specified font cannot be loaded.

 See Read the <a href="http://developer.getpebble.com/guides/pebble-apps/resources/">App
 Resources</a> guide on how to embed a font into your app.

 Note: this may load a font from the flash peripheral into RAM.*/
/** fonts_load_custom_font
  -> Added in 0
gneiss: Vtable Slot 97, Offset 388*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.fonts_load_custom_font")]
pub unsafe extern "C" fn fonts_load_custom_font(handle: ResHandle) -> GFont {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =388", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unloads the specified custom font and frees the memory that is occupied by
 it.

 Note: When an application exits, the system automatically unloads all fonts
 that have been loaded.

 * `font`: The font to unload.*/
/** fonts_unload_custom_font
  -> Added in 0
gneiss: Vtable Slot 98, Offset 392*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.fonts_unload_custom_font")]
pub unsafe extern "C" fn fonts_unload_custom_font(font: GFont) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =392", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** On overflow, wrap words to a new line below the current one. Once vertical space is consumed,
the last line may be clipped.*/
pub const GTextOverflowMode_GTextOverflowModeWordWrap: GTextOverflowMode = 0;
/** On overflow, wrap words to a new line below the current one.
Once vertical space is consumed, truncate as needed to fit a trailing ellipsis (...).
Clipping may occur if the vertical space cannot accomodate the first line of text.*/
pub const GTextOverflowMode_GTextOverflowModeTrailingEllipsis: GTextOverflowMode = 1;
/** Acts like `GTextOverflowModeTrailingEllipsis`, plus trims leading and trailing newlines,
while treating all other newlines as spaces.*/
pub const GTextOverflowMode_GTextOverflowModeFill: GTextOverflowMode = 2;
/** Text overflow mode controls the way text overflows when the string that is drawn does not fit
inside the area constraint.

See graphics_draw_text

See text_layer_set_overflow_mode*/
pub type GTextOverflowMode = ::core::ffi::c_uchar;
/// Aligns the text to the left of the drawing box
pub const GTextAlignment_GTextAlignmentLeft: GTextAlignment = 0;
/// Aligns the text centered inside the drawing box
pub const GTextAlignment_GTextAlignmentCenter: GTextAlignment = 1;
/// Aligns the text to the right of the drawing box
pub const GTextAlignment_GTextAlignmentRight: GTextAlignment = 2;
/** Text aligment controls the way the text is aligned inside the box the text is drawn into.

See graphics_draw_text

See text_layer_set_text_alignment*/
pub type GTextAlignment = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct GTextAttributes {
	_unused: [u8; 0],
}
/** Creates an instance of GTextAttributes for advanced control when rendering text.

 Returns New instance of GTextAttributes

 See `graphics_draw_text`*/
/** graphics_text_attributes_create
  -> Added in 75
gneiss: Vtable Slot 585, Offset 2340*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_create")]
pub unsafe extern "C" fn graphics_text_attributes_create() -> *mut GTextAttributes {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2340", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a previously created instance of GTextAttributes
/** graphics_text_attributes_destroy
  -> Added in 75
gneiss: Vtable Slot 586, Offset 2344*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_destroy")]
pub unsafe extern "C" fn graphics_text_attributes_destroy(text_attributes: *mut GTextAttributes) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2344", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Restores text flow to the rectangular default.

 * `text_attributes`: The attributes for which to disable text flow

 See graphics_text_attributes_enable_screen_text_flow

 See text_layer_restore_default_text_flow_and_paging*/
/** graphics_text_attributes_restore_default_text_flow
  -> Added in 75
gneiss: Vtable Slot 590, Offset 2360*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_restore_default_text_flow")]
pub unsafe extern "C" fn graphics_text_attributes_restore_default_text_flow(
	text_attributes: *mut GTextAttributes,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2360", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enables text flow that follows the boundaries of the screen.

 * `text_attributes`: The attributes for which text flow should be enabled
 * `inset`: Additional amount of pixels to inset to the inside of the screen for text flow
 calculation. Can be zero.

 See graphics_text_attributes_restore_default_text_flow

 See text_layer_enable_screen_text_flow_and_paging*/
/** graphics_text_attributes_enable_screen_text_flow
  -> Added in 75
gneiss: Vtable Slot 588, Offset 2352*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_enable_screen_text_flow")]
pub unsafe extern "C" fn graphics_text_attributes_enable_screen_text_flow(
	text_attributes: *mut GTextAttributes,
	inset: u8,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2352", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Restores paging and locked content origin to the defaults.

 * `text_attributes`: The attributes for which to restore paging and locked content origin

 See graphics_text_attributes_enable_paging

 See text_layer_restore_default_text_flow_and_paging*/
/** graphics_text_attributes_restore_default_paging
  -> Added in 75
gneiss: Vtable Slot 589, Offset 2356*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_restore_default_paging")]
pub unsafe extern "C" fn graphics_text_attributes_restore_default_paging(
	text_attributes: *mut GTextAttributes,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2356", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enables paging and locks the text flow calculation to a fixed point on the screen.

 * `text_attributes`: Attributes for which to enable paging and locked content origin
 * `content_origin_on_screen`: Absolute coordinate on the screen where the text content
 starts before an animation or scrolling takes place. Usually the frame's origin of a layer
 in screen coordinates.

 * `paging_on_screen`: Rectangle in absolute coordinates on the screen that describes where
 text content pages. Usually the container's absolute frame in screen coordinates.

 See graphics_text_attributes_restore_default_paging

 See graphics_text_attributes_enable_screen_text_flow

 See text_layer_enable_screen_text_flow_and_paging

 See layer_convert_point_to_screen*/
/** graphics_text_attributes_enable_paging
  -> Added in 75
gneiss: Vtable Slot 587, Offset 2348*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_attributes_enable_paging")]
pub unsafe extern "C" fn graphics_text_attributes_enable_paging(
	text_attributes: *mut GTextAttributes,
	content_origin_on_screen: GPoint,
	paging_on_screen: GRect,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2348", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Draw text into the current graphics context, using the context's current text color.
 The text will be drawn inside a box with the specified dimensions and
 configuration, with clipping occuring automatically.

 * `ctx`: The destination graphics context in which to draw
 * `text`: The zero terminated UTF-8 string to draw
 * `font`: The font in which the text should be set
 * `box`: The bounding box in which to draw the text. The first line of text will be drawn
 against the top of the box.

 * `overflow_mode`: The overflow behavior, in case the text is larger than what fits inside
 the box.

 * `alignment`: The horizontal alignment of the text
 * `text_attributes`: Optional text attributes to describe the characteristics of the text*/
/** graphics_draw_text
  -> Added in 4
gneiss: Vtable Slot 309, Offset 1236*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_draw_text")]
pub unsafe extern "C" fn graphics_draw_text(
	ctx: *mut GContext,
	text: *const ::core::ffi::c_char,
	font: GFont,
	box_: GRect,
	overflow_mode: GTextOverflowMode,
	alignment: GTextAlignment,
	text_attributes: *mut GTextAttributes,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1236", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Obtain the maximum size that a text with given font, overflow mode and alignment occupies
 within a given rectangular constraint.

 * `text`: The zero terminated UTF-8 string for which to calculate the size
 * `font`: The font in which the text should be set while calculating the size
 * `box`: The bounding box in which the text should be constrained
 * `overflow_mode`: The overflow behavior, in case the text is larger than what fits
 inside the box.

 * `alignment`: The horizontal alignment of the text

 Returns The maximum size occupied by the text

 See app_graphics_text_layout_get_content_size_with_attributes*/
/** graphics_text_layout_get_content_size
  -> Added in 7
gneiss: Vtable Slot 315, Offset 1260*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_layout_get_content_size")]
pub unsafe extern "C" fn graphics_text_layout_get_content_size(
	text: *const ::core::ffi::c_char,
	font: GFont,
	box_: GRect,
	overflow_mode: GTextOverflowMode,
	alignment: GTextAlignment,
) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1260", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Obtain the maximum size that a text with given font, overflow mode and alignment occupies
 within a given rectangular constraint.

 * `text`: The zero terminated UTF-8 string for which to calculate the size
 * `font`: The font in which the text should be set while calculating the size
 * `box`: The bounding box in which the text should be constrained
 * `overflow_mode`: The overflow behavior, in case the text is larger than what fits
 inside the box.

 * `alignment`: The horizontal alignment of the text
 * `text_attributes`: Optional text attributes to describe the characteristics of the text

 Returns The maximum size occupied by the text

 See app_graphics_text_layout_get_content_size*/
/** graphics_text_layout_get_content_size_with_attributes
  -> Added in 75
gneiss: Vtable Slot 591, Offset 2364*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.graphics_text_layout_get_content_size_with_attributes")]
pub unsafe extern "C" fn graphics_text_layout_get_content_size_with_attributes(
	text: *const ::core::ffi::c_char,
	font: GFont,
	box_: GRect,
	overflow_mode: GTextOverflowMode,
	alignment: GTextAlignment,
	text_attributes: *mut GTextAttributes,
) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2364", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// No error occured.
pub const SmartstrapResult_SmartstrapResultOk: SmartstrapResult = 0;
/// Invalid function arguments were supplied.
pub const SmartstrapResult_SmartstrapResultInvalidArgs: SmartstrapResult = 1;
/// The smartstrap port is not present on this watch.
pub const SmartstrapResult_SmartstrapResultNotPresent: SmartstrapResult = 2;
/// A request is already pending on the specified attribute.
pub const SmartstrapResult_SmartstrapResultBusy: SmartstrapResult = 3;
/** Either a smartstrap is not connected or the connected smartstrap does not support the
specified service.*/
pub const SmartstrapResult_SmartstrapResultServiceUnavailable: SmartstrapResult = 4;
/// The smartstrap reported that it does not support the requested attribute.
pub const SmartstrapResult_SmartstrapResultAttributeUnsupported: SmartstrapResult = 5;
/// A time-out occured during the request.
pub const SmartstrapResult_SmartstrapResultTimeOut: SmartstrapResult = 6;
/// Error values which may be returned from the smartstrap APIs.
pub type SmartstrapResult = ::core::ffi::c_uchar;
/// A type representing a smartstrap ServiceId.
pub type SmartstrapServiceId = u16;
/// A type representing a smartstrap AttributeId.
pub type SmartstrapAttributeId = u16;
/** A type representing an attribute of a service provided by a smartstrap. This type is used when
issuing requests to the smartstrap.*/
#[repr(C)]
#[derive(Debug)]
pub struct SmartstrapAttribute {
	_unused: [u8; 0],
}
/** The type of function which is called after the smartstrap connection status changes.

* `service_id`: The ServiceId for which the availability changed.
* `is_available`: Whether or not this service is now available.*/
pub type SmartstrapServiceAvailabilityHandler = ::core::option::Option<
	unsafe extern "C" fn(service_id: SmartstrapServiceId, is_available: bool),
>;
/** The type of function which can be called when a read request is completed.

Note: Any write request made to the same attribute within this function will fail with
SmartstrapResultBusy.

* `attribute`: The attribute which was read.
* `result`: The result of the read.
* `data`: The data read from the smartstrap or NULL if the read was not successful.
* `length`: The length of the data or 0 if the read was not successful.*/
pub type SmartstrapReadHandler = ::core::option::Option<
	unsafe extern "C" fn(
		attribute: *mut SmartstrapAttribute,
		result: SmartstrapResult,
		data: *const u8,
		length: usize,
	),
>;
/** The type of function which can be called when a write request is completed.

* `attribute`: The attribute which was written.
* `result`: The result of the write.*/
pub type SmartstrapWriteHandler = ::core::option::Option<
	unsafe extern "C" fn(attribute: *mut SmartstrapAttribute, result: SmartstrapResult),
>;
/** The type of function which can be called when the smartstrap sends a notification to the watch

* `attribute`: The attribute which the notification came from.*/
pub type SmartstrapNotifyHandler =
	::core::option::Option<unsafe extern "C" fn(attribute: *mut SmartstrapAttribute)>;
/// Handlers which are passed to smartstrap_subscribe.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SmartstrapHandlers {
	/// The connection handler is called after the connection state changes.
	pub availability_did_change: SmartstrapServiceAvailabilityHandler,
	/// The read handler is called whenever a read is complete or the read times-out.
	pub did_read:                SmartstrapReadHandler,
	/// The did_write handler is called when a write has completed.
	pub did_write:               SmartstrapWriteHandler,
	/// The notified handler is called whenever a notification is received for an attribute.
	pub notified:                SmartstrapNotifyHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of SmartstrapHandlers"][::core::mem::size_of::<SmartstrapHandlers>() - 16usize];
	["Alignment of SmartstrapHandlers"][::core::mem::align_of::<SmartstrapHandlers>() - 4usize];
	["Offset of field: SmartstrapHandlers::availability_did_change"]
		[::core::mem::offset_of!(SmartstrapHandlers, availability_did_change) - 0usize];
	["Offset of field: SmartstrapHandlers::did_read"]
		[::core::mem::offset_of!(SmartstrapHandlers, did_read) - 4usize];
	["Offset of field: SmartstrapHandlers::did_write"]
		[::core::mem::offset_of!(SmartstrapHandlers, did_write) - 8usize];
	["Offset of field: SmartstrapHandlers::notified"]
		[::core::mem::offset_of!(SmartstrapHandlers, notified) - 12usize];
};
/** Subscribes handlers to be called after certain smartstrap events occur.

 Note: Registering an availability_did_change handler will cause power to be applied to the
 smartstrap port and connection establishment to begin.

 See smartstrap_unsubscribe

 Returns `SmartstrapResultNotPresent` if the watch does not have a smartstrap port or
 `SmartstrapResultOk` otherwise.*/
/** smartstrap_subscribe
  -> Added in 64
gneiss: Vtable Slot 564, Offset 2256*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_subscribe")]
pub unsafe extern "C" fn smartstrap_subscribe(handlers: SmartstrapHandlers) -> SmartstrapResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2256", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unsubscribes the handlers. The handlers will no longer be called, but in-flight requests will
 otherwise be unaffected.

 Note: If power was being applied to the smartstrap port and there are no attributes have been
 created (or they have all been destroyed), this will cause the smartstrap power to be turned
 off.*/
/** smartstrap_unsubscribe
  -> Added in 64
gneiss: Vtable Slot 565, Offset 2260*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_unsubscribe")]
pub unsafe extern "C" fn smartstrap_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2260", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Changes the value of the timeout which is used for smartstrap requests. This timeout is started
 after the request is completely sent to the smartstrap and will be canceled only if the entire
 response is received before it triggers. The new timeout value will take affect only for
 requests made after this API is called.

 * `timeout_ms`: The duration of the timeout to set, in milliseconds.

 Note: The maximum allowed timeout is currently 1000ms. If a larger value is passed, it will be
 internally lowered to the maximum.

 See SMARTSTRAP_TIMEOUT_DEFAULT*/
/** smartstrap_set_timeout
  -> Added in 64
gneiss: Vtable Slot 563, Offset 2252*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_set_timeout")]
pub unsafe extern "C" fn smartstrap_set_timeout(timeout_ms: u16) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2252", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates and returns a SmartstrapAttribute for the specified service and attribute. This API
 will allocate an internal buffer of the requested length on the app's heap.

 Note: Creating an attribute will result in power being applied to the smartstrap port (if it
 isn't already) and connection establishment to begin.

 * `service_id`: The ServiceId to create the attribute for.
 * `attribute_id`: The AttributeId to create the attribute for.
 * `buffer_length`: The length of the internal buffer which will be used to store the read
 and write requests for this attribute.

 Returns The newly created SmartstrapAttribute or NULL if an internal error occured or if the
 specified length is greater than SMARTSTRAP_ATTRIBUTE_LENGTH_MAXIMUM.*/
/** smartstrap_attribute_create
  -> Added in 64
gneiss: Vtable Slot 556, Offset 2224*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_create")]
pub unsafe extern "C" fn smartstrap_attribute_create(
	service_id: SmartstrapServiceId,
	attribute_id: SmartstrapAttributeId,
	buffer_length: usize,
) -> *mut SmartstrapAttribute {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2224", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroys a SmartstrapAttribute. No further handlers will be called for this attribute and it
 may not be used for any future requests.

 * `attribute`: The SmartstrapAttribute which should be destroyed.

 Note: If power was being applied to the smartstrap port, no availability_did_change handler is
 subscribed, and the last attribute is being destroyed, this will cause the smartstrap power to
 be turned off.*/
/** smartstrap_attribute_destroy
  -> Added in 64
gneiss: Vtable Slot 557, Offset 2228*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_destroy")]
pub unsafe extern "C" fn smartstrap_attribute_destroy(attribute: *mut SmartstrapAttribute) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2228", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Checks whether or not the specified service is currently supported by a connected smartstrap.

 * `service_id`: The SmartstrapServiceId of the service to check for availability.

 Returns Whether or not the service is available.*/
/** smartstrap_service_is_available
  -> Added in 64
gneiss: Vtable Slot 562, Offset 2248*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_service_is_available")]
pub unsafe extern "C" fn smartstrap_service_is_available(service_id: SmartstrapServiceId) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2248", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns the ServiceId which the attribute was created for (see ``
 smartstrap_attribute_create).

 * `attribute`: The SmartstrapAttribute for which to obtain the service ID.

 Returns The SmartstrapServiceId which the attribute was created with.*/
/** smartstrap_attribute_get_service_id
  -> Added in 64
gneiss: Vtable Slot 560, Offset 2240*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_get_service_id")]
pub unsafe extern "C" fn smartstrap_attribute_get_service_id(
	attribute: *mut SmartstrapAttribute,
) -> SmartstrapServiceId {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2240", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the AttributeId which the attribute was created for (see `smartstrap_attribute_create`).

 * `attribute`: The SmartstrapAttribute for which to obtain the attribute ID.

 Returns The SmartstrapAttributeId which the attribute was created with.*/
/** smartstrap_attribute_get_attribute_id
  -> Added in 64
gneiss: Vtable Slot 559, Offset 2236*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_get_attribute_id")]
pub unsafe extern "C" fn smartstrap_attribute_get_attribute_id(
	attribute: *mut SmartstrapAttribute,
) -> SmartstrapAttributeId {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2236", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Performs a read request for the specified attribute. The `did_read` callback will be called when
 the response is received from the smartstrap or when an error occurs.

 * `attribute`: The attribute to be perform the read request on.

 Returns `SmartstrapResultOk` if the read operation was started. The `did_read` callback will
 be called once the read request has been completed.*/
/** smartstrap_attribute_read
  -> Added in 64
gneiss: Vtable Slot 561, Offset 2244*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_read")]
pub unsafe extern "C" fn smartstrap_attribute_read(
	attribute: *mut SmartstrapAttribute,
) -> SmartstrapResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2244", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Begins a write request for the specified attribute and returns a buffer into which the app
 should write the data before calling smartstrap_attribute_end_write.

 Note: The buffer must not be used after smartstrap_attribute_end_write is called.

 * `attribute`: The attribute to begin writing for.
 * `buffer`: The buffer to write the data into.
 * `buffer_length`: The length of the buffer in bytes.

 Returns `SmartstrapResultOk` if a write operation was started and the `buffer` and
 `buffer_length` parameters were set, or an error otherwise.*/
/** smartstrap_attribute_begin_write
  -> Added in 64
gneiss: Vtable Slot 555, Offset 2220*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_begin_write")]
pub unsafe extern "C" fn smartstrap_attribute_begin_write(
	attribute: *mut SmartstrapAttribute,
	buffer: *mut *mut u8,
	buffer_length: *mut usize,
) -> SmartstrapResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2220", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This should be called by the app when it is done writing to the buffer provided by
 smartstrap_begin_write and the data is ready to be sent to the smartstrap.

 * `attribute`: The attribute to begin writing for.
 * `write_length`: The length of the data to be written, in bytes.
 * `request_read`: Whether or not a read request on this attribute should be
 automatically triggered following a successful write request.

 Returns `SmartstrapResultOk` if a write operation was queued to be sent to the smartstrap. The
 `did_write` handler will be called when the request is written to the smartstrap, and if
 `request_read` was set to true, the `did_read` handler will be called when the read is complete.*/
/** smartstrap_attribute_end_write
  -> Added in 64
gneiss: Vtable Slot 558, Offset 2232*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.smartstrap_attribute_end_write")]
pub unsafe extern "C" fn smartstrap_attribute_end_write(
	attribute: *mut SmartstrapAttribute,
	write_length: usize,
	request_read: bool,
) -> SmartstrapResult {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2232", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reference to opaque click recognizer
When a `ClickHandler` callback is called, the recognizer that fired the handler is passed in.

See `ClickHandler`

See `click_number_of_clicks_counted()`

See `click_recognizer_get_button_id()`

See `click_recognizer_is_repeating()`*/
pub type ClickRecognizerRef = *mut ::core::ffi::c_void;
/** Function signature of the callback that handles a recognized click pattern

* `recognizer`: The click recognizer that detected a "click" pattern
* `context`: Pointer to application specified data (see `window_set_click_config_provider_with_context()` and
`window_set_click_context()`). This defaults to the window.

See `ClickConfigProvider`*/
pub type ClickHandler = ::core::option::Option<
	unsafe extern "C" fn(recognizer: ClickRecognizerRef, context: *mut ::core::ffi::c_void),
>;
/** This callback is called every time the window becomes visible (and when you call `window_set_click_config_provider()` if
the window is already visible).

Subscribe to click events using
`window_single_click_subscribe()`
`window_single_repeating_click_subscribe()`
`window_multi_click_subscribe()`
`window_long_click_subscribe()`
`window_raw_click_subscribe()`
These subscriptions will get used by the click recognizers of each of the 4 buttons.

* `context`: Pointer to application specific data (see `window_set_click_config_provider_with_context()`).*/
pub type ClickConfigProvider =
	::core::option::Option<unsafe extern "C" fn(context: *mut ::core::ffi::c_void)>;
/** Gets the click count.
 You can use this inside a click handler implementation to get the click count for multi_click
 and (repeated) click events.

 * `recognizer`: The click recognizer for which to get the click count

 Returns The number of consecutive clicks, and for auto-repeating the number of repetitions.*/
/** click_number_of_clicks_counted
  -> Added in 0
gneiss: Vtable Slot 66, Offset 264*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.click_number_of_clicks_counted")]
pub unsafe extern "C" fn click_number_of_clicks_counted(recognizer: ClickRecognizerRef) -> u8 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =264", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the button identifier.
 You can use this inside a click handler implementation to get the button id for the click event.

 * `recognizer`: The click recognizer for which to get the button id that caused the click event

 Returns the ButtonId of the click recognizer*/
/** click_recognizer_get_button_id
  -> Added in 0
gneiss: Vtable Slot 67, Offset 268*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.click_recognizer_get_button_id")]
pub unsafe extern "C" fn click_recognizer_get_button_id(
	recognizer: ClickRecognizerRef,
) -> ButtonId {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =268", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Is this a repeating click.
 You can use this inside a click handler implementation to find out whether this is a repeating click or not.

 * `recognizer`: The click recognizer for which to find out whether this is a repeating click.

 Returns true if this is a repeating click.*/
/** click_recognizer_is_repeating
  -> Added in 14
gneiss: Vtable Slot 325, Offset 1300*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.click_recognizer_is_repeating")]
pub unsafe extern "C" fn click_recognizer_is_repeating(recognizer: ClickRecognizerRef) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1300", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** User interface layers for displaying graphic components

Layers are objects that can be displayed on a Pebble watchapp window, enabling users to see
visual objects, like text or images. Each layer stores the information about its state
necessary to draw or redraw the object that it represents and uses graphics routines along with
this state to draw itself when asked. Layers can be used to display various graphics.

Layers are the basic building blocks for your application UI. Layers can be nested inside each other.
Every window has a root layer which is always the topmost layer.
You provide a function that is called to draw the content of the layer when needed; or
you can use standard layers that are provided by the system, such as text layer, image layer,
menu layer, action bar layer, and so on.

The Pebble layer hierarchy is the list of things that need to be drawn to the screen.
Multiple layers can be arranged into a hierarchy. This enables ordering (front to back),
layout and hierarchy. Through relative positioning, visual objects that are grouped together by
adding them into the same layer can be moved all at once. This means that the child layers
will move accordingly. If a parent layer has clipping enabled, all the children will be clipped
to the frame of the parent.

Pebble OS provides convenience layers with built-in logic for displaying different graphic
components, like text and bitmap layers.

Refer to the *UiFramework* (chapter "Layers") for a conceptual overview
of Layers and relevant code examples.

The Modules listed here contain what can be thought of conceptually as subclasses of Layer. The
listed types can be safely type-casted to `Layer` (or `Layer *` in case of a pointer).
The `layer_...` functions can then be used with the data structures of these subclasses.
<br/>For example, the following is legal:
```c
TextLayer *text_layer;
...
layer_set_hidden((Layer *)text_layer, true);
```*/
#[repr(C)]
#[derive(Debug)]
pub struct Layer {
	_unused: [u8; 0],
}
/** Function signature for a Layer's render callback (the name of the type
is derived from the words 'update procedure').
The system will call the `.update_proc` callback whenever the Layer needs
to be rendered.

* `layer`: The layer that needs to be rendered
* `ctx`: The destination graphics context to draw into

See `Graphics`

See `layer_set_update_proc()`*/
pub type LayerUpdateProc =
	::core::option::Option<unsafe extern "C" fn(layer: *mut Layer, ctx: *mut GContext)>;
/** Creates a layer on the heap and sets its frame and bounds.
 Default values:
 * `bounds` : origin (0, 0) and a size equal to the frame that is passed in.
 * `clips` : `true`
 * `hidden` : `false`
 * `update_proc` : `NULL` (draws nothing)
 * `frame`: The frame at which the layer should be initialized.

 See `layer_set_frame()`

 See `layer_set_bounds()`

 Returns A pointer to the layer. `NULL` if the layer could not
 be created*/
/** layer_create
  -> Added in 0
gneiss: Vtable Slot 139, Offset 556*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_create")]
pub unsafe extern "C" fn layer_create(frame: GRect) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =556", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a layer on the heap with extra space for callback data, and set its frame andbounds.
 Default values:
 * `bounds` : origin (0, 0) and a size equal to the frame that is passed in.
 * `clips` : `true`
 * `hidden` : `false`
 * `update_proc` : `NULL` (draws nothing)
 * `frame`: The frame at which the layer should be initialized.
 * `data_size`: The size (in bytes) of memory to allocate for callback data.

 See `layer_create()`

 See `layer_set_frame()`

 See `layer_set_bounds()`

 Returns A pointer to the layer. `NULL` if the layer could not be created*/
/** layer_create_with_data
  -> Added in 0
gneiss: Vtable Slot 140, Offset 560*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_create_with_data")]
pub unsafe extern "C" fn layer_create_with_data(frame: GRect, data_size: usize) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =560", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a layer previously created by layer_create
/** layer_destroy
  -> Added in 0
gneiss: Vtable Slot 141, Offset 564*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_destroy")]
pub unsafe extern "C" fn layer_destroy(layer: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =564", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Marks the complete layer as "dirty", awaiting to be asked by the system to redraw itself.
 Typically, this function is called whenever state has changed that affects what the layer
 is displaying.
 * The layer's `.update_proc` will not be called before this function returns,
 but will be called asynchronously, shortly.
 * Internally, a call to this function will schedule a re-render of the window that the
 layer belongs to. In effect, all layers in that window's layer hierarchy will be asked to redraw.
 * If an earlier re-render request is still pending, this function is a no-op.
 * `layer`: The layer to mark dirty*/
/** layer_mark_dirty
  -> Added in 0
gneiss: Vtable Slot 150, Offset 600*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_mark_dirty")]
pub unsafe extern "C" fn layer_mark_dirty(layer: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =600", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the layer's render function.
 The system will call the `update_proc` automatically when the layer needs to redraw itself, see
 also `layer_mark_dirty()`.

 * `layer`: Pointer to the layer structure.
 * `update_proc`: Pointer to the function that will be called when the layer needs to be rendered.
 Typically, one performs a series of drawing commands in the implementation of the `update_proc`,
 see `Drawing`, `PathDrawing` and `TextDrawing`.*/
/** layer_set_update_proc
  -> Added in 0
gneiss: Vtable Slot 157, Offset 628*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_set_update_proc")]
pub unsafe extern "C" fn layer_set_update_proc(layer: *mut Layer, update_proc: LayerUpdateProc) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =628", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the frame of the layer, which is it's bounding box relative to the coordinate
 system of its parent layer.
 The size of the layer's bounds will be extended automatically, so that the bounds
 cover the new frame.

 * `layer`: The layer for which to set the frame
 * `frame`: The new frame

 See `layer_set_bounds()`*/
/** layer_set_frame
  -> Added in 0
gneiss: Vtable Slot 155, Offset 620*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_set_frame")]
pub unsafe extern "C" fn layer_set_frame(layer: *mut Layer, frame: GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =620", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the frame of the layer, which is it's bounding box relative to the coordinate
 system of its parent layer.
 If the frame has changed, `layer_mark_dirty()` will be called automatically.

 * `layer`: The layer for which to get the frame

 Returns The frame of the layer

 See layer_set_frame*/
/** layer_get_frame
  -> Added in 0
gneiss: Vtable Slot 145, Offset 580*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_frame")]
pub unsafe extern "C" fn layer_get_frame(layer: *const Layer) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =580", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the bounds of the layer, which is it's bounding box relative to its frame.
 If the bounds has changed, `layer_mark_dirty()` will be called automatically.

 * `layer`: The layer for which to set the bounds
 * `bounds`: The new bounds

 See `layer_set_frame()`*/
/** layer_set_bounds
  -> Added in 0
gneiss: Vtable Slot 153, Offset 612*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_set_bounds")]
pub unsafe extern "C" fn layer_set_bounds(layer: *mut Layer, bounds: GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =612", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the bounds of the layer

 * `layer`: The layer for which to get the bounds

 Returns The bounds of the layer

 See layer_set_bounds*/
/** layer_get_bounds
  -> Added in 0
gneiss: Vtable Slot 142, Offset 568*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_bounds")]
pub unsafe extern "C" fn layer_get_bounds(layer: *const Layer) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =568", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the largest unobstructed bounds rectangle of a layer.

 * `layer`: The layer for which to get the unobstructed bounds.

 Returns The unobstructed bounds of the layer.

 See UnobstructedArea*/
/** layer_get_unobstructed_bounds
  -> Added in 83
gneiss: Vtable Slot 622, Offset 2488*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_unobstructed_bounds")]
pub unsafe extern "C" fn layer_get_unobstructed_bounds(layer: *const Layer) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2488", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Converts a point from the layer's local coordinate system to screen coordinates.

 Note: If the layer isn't part of the view hierarchy the result is undefined.

 * `layer`: The view whose coordinate system will be used to convert the value to the screen.
 * `point`: A point specified in the local coordinate system (bounds) of the layer.

 Returns The point converted to the coordinate system of the screen.*/
/** layer_convert_point_to_screen
  -> Added in 75
gneiss: Vtable Slot 592, Offset 2368*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_convert_point_to_screen")]
pub unsafe extern "C" fn layer_convert_point_to_screen(
	layer: *const Layer,
	point: GPoint,
) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2368", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Converts a rectangle from the layer's local coordinate system to screen coordinates.

 Note: If the layer isn't part of the view hierarchy the result is undefined.

 * `layer`: The view whose coordinate system will be used to convert the value to the screen.
 * `rect`: A rectangle specified in the local coordinate system (bounds) of the layer.

 Returns The rectangle converted to the coordinate system of the screen.*/
/** layer_convert_rect_to_screen
  -> Added in 75
gneiss: Vtable Slot 593, Offset 2372*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_convert_rect_to_screen")]
pub unsafe extern "C" fn layer_convert_rect_to_screen(layer: *const Layer, rect: GRect) -> GRect {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2372", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The basic building block of the user interface

Windows are the top-level elements in the UI hierarchy and the basic building blocks for a Pebble
UI. A single window is always displayed at a time on Pebble, with the exception of when animating
from one window to the other, which, in that case, is managed by the window stack. You can stack
windows on top of each other, but only the topmost window will be visible.

Users wearing a Pebble typically interact with the content and media displayed in a window, clicking
and pressing buttons on the watch, depending on what they see and wish to respond to in a window.

Windows serve to display a hierarchy of layers on the screen and handle user input. When a window is
visible, its root Layer (and all its child layers) are drawn onto the screen automatically.

You need a window, which always fills the entire screen, to display images, text, and graphics in
your Pebble app. A layer by itself doesn’t display on Pebble; it must be in the current window’s
layer hierarchy to be visible.

The Window Stack serves as the global manager of what window is presented and makes sure that input
events are forwarded to the topmost window.

Refer to the *UiFramework* (chapter "Window") for a conceptual
overview of Window, the Window Stack and relevant code examples.*/
#[repr(C)]
#[derive(Debug)]
pub struct Window {
	_unused: [u8; 0],
}
/** Gets the window that the layer is currently attached to.

 * `layer`: The layer for which to get the window

 Returns The window that this layer is currently attached to, or `NULL` if it has
 not been added to a window's layer hierarchy.

 See `window_get_root_layer()`

 See `layer_add_child()`*/
/** layer_get_window
  -> Added in 0
gneiss: Vtable Slot 147, Offset 588*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_window")]
pub unsafe extern "C" fn layer_get_window(layer: *const Layer) -> *mut Window {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =588", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Removes the layer from its current parent layer
 If removed successfully, the child's parent layer will be marked dirty
 automatically.

 * `child`: The layer to remove*/
/** layer_remove_from_parent
  -> Added in 0
gneiss: Vtable Slot 152, Offset 608*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_remove_from_parent")]
pub unsafe extern "C" fn layer_remove_from_parent(child: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =608", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Removes child layers from given layer
 If removed successfully, the child's parent layer will be marked dirty
 automatically.

 * `parent`: The layer from which to remove all child layers*/
/** layer_remove_child_layers
  -> Added in 0
gneiss: Vtable Slot 151, Offset 604*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_remove_child_layers")]
pub unsafe extern "C" fn layer_remove_child_layers(parent: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =604", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds the child layer to a given parent layer, making it appear
 in front of its parent and in front of any existing child layers
 of the parent.
 If the child layer was already part of a layer hierarchy, it will
 be removed from its old parent first.
 If added successfully, the parent (and children) will be marked dirty
 automatically.

 * `parent`: The layer to which to add the child layer
 * `child`: The layer to add to the parent layer*/
/** layer_add_child
  -> Added in 0
gneiss: Vtable Slot 138, Offset 552*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_add_child")]
pub unsafe extern "C" fn layer_add_child(parent: *mut Layer, child: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =552", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Inserts the layer as a sibling behind another layer. If the layer to insert was
 already part of a layer hierarchy, it will be removed from its old parent first.
 The below_layer has to be a child of a parent layer,
 otherwise this function will be a noop.
 If inserted successfully, the parent (and children) will be marked dirty
 automatically.

 * `layer_to_insert`: The layer to insert into the hierarchy
 * `below_sibling_layer`: The layer that will be used as the sibling layer
 above which the insertion will take place*/
/** layer_insert_below_sibling
  -> Added in 0
gneiss: Vtable Slot 149, Offset 596*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_insert_below_sibling")]
pub unsafe extern "C" fn layer_insert_below_sibling(
	layer_to_insert: *mut Layer,
	below_sibling_layer: *mut Layer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =596", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Inserts the layer as a sibling in front of another layer.
 The above_layer has to be a child of a parent layer,
 otherwise this function will be a noop.
 If inserted successfully, the parent (and children) will be marked dirty
 automatically.

 * `layer_to_insert`: The layer to insert into the hierarchy
 * `above_sibling_layer`: The layer that will be used as the sibling layer
 below which the insertion will take place*/
/** layer_insert_above_sibling
  -> Added in 0
gneiss: Vtable Slot 148, Offset 592*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_insert_above_sibling")]
pub unsafe extern "C" fn layer_insert_above_sibling(
	layer_to_insert: *mut Layer,
	above_sibling_layer: *mut Layer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =592", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the visibility of the layer.
 If the visibility has changed, `layer_mark_dirty()` will be called automatically
 on the parent layer.

 * `layer`: The layer for which to set the visibility
 * `hidden`: Supply `true` to make the layer hidden, or `false` to make it
 non-hidden.*/
/** layer_set_hidden
  -> Added in 0
gneiss: Vtable Slot 156, Offset 624*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_set_hidden")]
pub unsafe extern "C" fn layer_set_hidden(layer: *mut Layer, hidden: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =624", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the visibility of the layer.

 * `layer`: The layer for which to get the visibility

 Returns True if the layer is hidden, false if it is not hidden.*/
/** layer_get_hidden
  -> Added in 0
gneiss: Vtable Slot 146, Offset 584*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_hidden")]
pub unsafe extern "C" fn layer_get_hidden(layer: *const Layer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =584", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets whether clipping is enabled for the layer. If enabled, whatever the layer _and
 its children_ will draw using their `.update_proc` callbacks, will be clipped by the
 this layer's frame.
 If the clipping has changed, `layer_mark_dirty()` will be called automatically.

 * `layer`: The layer for which to set the clipping property
 * `clips`: Supply `true` to make the layer clip to its frame, or `false`
 to make it non-clipping.*/
/** layer_set_clips
  -> Added in 0
gneiss: Vtable Slot 154, Offset 616*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_set_clips")]
pub unsafe extern "C" fn layer_set_clips(layer: *mut Layer, clips: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =616", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets whether clipping is enabled for the layer. If enabled, whatever the layer _and
 its children_ will draw using their `.update_proc` callbacks, will be clipped by the
 this layer's frame.

 * `layer`: The layer for which to get the clipping property

 Returns True if clipping is enabled for the layer, false if clipping is not enabled for
 the layer.*/
/** layer_get_clips
  -> Added in 0
gneiss: Vtable Slot 143, Offset 572*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_clips")]
pub unsafe extern "C" fn layer_get_clips(layer: *const Layer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =572", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the data from a layer that has been created with an extra data region.

 * `layer`: The layer to get the data region from.

 Returns A void pointer to the data region.*/
/** layer_get_data
  -> Added in 0
gneiss: Vtable Slot 144, Offset 576*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.layer_get_data")]
pub unsafe extern "C" fn layer_get_data(layer: *const Layer) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =576", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Low-level touch-gesture recognizers for building fully custom touch
interactions on touch-capable hardware.

A recognizer watches the raw touch stream for one gesture — a tap, a pan
(single-axis drag) or a swipe — and calls a `RecognizerEventCb` as the
gesture progresses. Create one with a per-gesture constructor
(`tap_recognizer_create`, `pan_recognizer_create`,
`swipe_recognizer_create`), attach it to a `Window`, and read the
current gesture data from the event callback. Recognizers are the building
block for a custom scroll or drag.

For an ordinary scrollable list you do not need recognizers at all: on touch
hardware `MenuLayer` already scrolls by touch. Reach for recognizers to
build an interaction the built-in list does not give you — a custom menu, a
drag, or acting on a raw tap or swipe. Note that a bare `ScrollLayer` does
not scroll by touch on its own; you drive it with a pan recognizer, as below.

### Usage example: scrolling a custom menu
A `ScrollLayer` holds your own content but does not scroll by touch by
itself. Attach a vertical pan recognizer to the window and feed its delta into
`scroll_layer_set_content_offset()` to scroll the content by finger:
```c
static ScrollLayer *s_scroll;
static int16_t s_base;  // content offset committed on Complete

static void pan_handler(const Recognizer *recognizer, RecognizerEvent event) {
  switch (event) {
	case RecognizerEvent_Updated: {
	  // delta_since_start is (0, 0) at Start, so the content does not jump.
	  GPoint d = pan_recognizer_get_delta_since_start(recognizer);
	  scroll_layer_set_content_offset(s_scroll, GPoint(0, s_base + d.y), false);
	  break;
	}
	case RecognizerEvent_Completed:
	  s_base = scroll_layer_get_content_offset(s_scroll).y;  // commit
	  break;
	case RecognizerEvent_Cancelled:
	  scroll_layer_set_content_offset(s_scroll, GPoint(0, s_base), true);  // roll back
	  break;
	default:
	  break;
  }
}

static void window_load(Window *window) {
  Layer *root = window_get_root_layer(window);
  s_scroll = scroll_layer_create(layer_get_bounds(root));
  scroll_layer_set_content_size(s_scroll, GSize(layer_get_bounds(root).size.w,
												total_content_height));
  // Add your custom row layers as children of s_scroll here.
  layer_add_child(root, scroll_layer_get_layer(s_scroll));

  // The window owns the recognizer and destroys it when the window unloads.
  Recognizer *pan = pan_recognizer_create(pan_handler, NULL, PanAxis_Vertical);
  window_attach_recognizer(window, pan);
}
```
While the global system recognizer set is live, attaching alone is not enough:
a window opts out of it with window_set_touch_bridge_disabled() (added by the
touch-bridge change) so its own recognizers receive the touch stream.*/
#[repr(C)]
#[derive(Debug)]
pub struct Recognizer {
	_unused: [u8; 0],
}
pub const RecognizerEventType_RecognizerEvent_Started: RecognizerEventType = 0;
pub const RecognizerEventType_RecognizerEvent_Updated: RecognizerEventType = 1;
pub const RecognizerEventType_RecognizerEvent_Completed: RecognizerEventType = 2;
pub const RecognizerEventType_RecognizerEvent_Cancelled: RecognizerEventType = 3;
pub type RecognizerEventType = ::core::ffi::c_uchar;
pub use self::RecognizerEventType as RecognizerEvent;
/** User event callback. When a recognizer changes state to any state other than the failed state
the user callback of this type will be called.

* `recognizer`: recognizer affected by the event
* `event_type`: event that occurred*/
pub type RecognizerEventCb = ::core::option::Option<
	unsafe extern "C" fn(recognizer: *const Recognizer, event_type: RecognizerEvent),
>;
/** This function is called to determine whether *recognizer* should be evaluated simultaneously
with *simultaneous_with*

* `recognizer`: recognizer to be tested
* `simultaneous_with`: recognizer with which *recognizer* would be evaluated simultaneously
should this test pass

Returns true if recognizers should be evaluated simultaneously*/
pub type RecognizerSimultaneousWithCb = ::core::option::Option<
	unsafe extern "C" fn(
		recognizer: *const Recognizer,
		simultaneous_with: *const Recognizer,
	) -> bool,
>;
pub const PanAxis_PanAxis_Horizontal: PanAxis = 0;
pub const PanAxis_PanAxis_Vertical: PanAxis = 1;
/** Axis to which a pan recognizer is locked. A pan is only recognized when the
finger moves unambiguously along this axis.*/
pub type PanAxis = ::core::ffi::c_uchar;
pub const SwipeDirection_SwipeDirection_None: SwipeDirection = 0;
pub const SwipeDirection_SwipeDirection_Up: SwipeDirection = 1;
pub const SwipeDirection_SwipeDirection_Down: SwipeDirection = 2;
pub const SwipeDirection_SwipeDirection_Left: SwipeDirection = 4;
pub const SwipeDirection_SwipeDirection_Right: SwipeDirection = 8;
/** Swipe direction, also used as a bitmask when configuring which directions a swipe recognizer
accepts. Screen coordinates grow downward, so a positive y delta is a downward swipe.*/
pub type SwipeDirection = ::core::ffi::c_uchar;
/** Create a tap recognizer. The default recognizer recognizes a single tap from a single finger

 * `event_cb`: event callback
 * `user_data`: user data associated with recognizer

 Returns recognizer reference*/
/** tap_recognizer_create
  -> Added in 107
gneiss: Vtable Slot 669, Offset 2676*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.tap_recognizer_create")]
pub unsafe extern "C" fn tap_recognizer_create(
	event_cb: RecognizerEventCb,
	user_data: *mut ::core::ffi::c_void,
) -> *mut Recognizer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2676", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a pan recognizer locked to a single axis. The recognizer stays in the
 Possible state until the finger moves unambiguously along *axis* and crosses
 the start threshold, at which point it Starts. It Fails if the finger instead
 moves unambiguously along the foreign axis.

 * `event_cb`: event callback
 * `user_data`: user data associated with recognizer
 * `axis`: axis to which the pan is locked

 Returns recognizer reference*/
/** pan_recognizer_create
  -> Added in 107
gneiss: Vtable Slot 658, Offset 2632*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.pan_recognizer_create")]
pub unsafe extern "C" fn pan_recognizer_create(
	event_cb: RecognizerEventCb,
	user_data: *mut ::core::ffi::c_void,
	axis: PanAxis,
) -> *mut Recognizer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2632", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a swipe recognizer that accepts the directions set in *direction_mask*. The recognizer
 stays Possible while tracking the path and Completes on liftoff if the path is a fast, straight,
 long-enough flick whose direction is in the mask; otherwise it Fails.

 * `event_cb`: event callback
 * `user_data`: user data associated with recognizer
 * `direction_mask`: bitwise-OR of the `SwipeDirection` values to accept

 Returns recognizer reference*/
/** swipe_recognizer_create
  -> Added in 107
gneiss: Vtable Slot 666, Offset 2664*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.swipe_recognizer_create")]
pub unsafe extern "C" fn swipe_recognizer_create(
	event_cb: RecognizerEventCb,
	user_data: *mut ::core::ffi::c_void,
	direction_mask: u8,
) -> *mut Recognizer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2664", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the coordinate of the recognized tap. The coordinate is taken from the last position update,
 not the liftoff. Valid once the recognizer has completed.

 * `recognizer`: recognizer from which to get the tap coordinate

 Returns tap coordinate*/
/** tap_recognizer_get_tap_point
  -> Added in 107
gneiss: Vtable Slot 670, Offset 2680*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.tap_recognizer_get_tap_point")]
pub unsafe extern "C" fn tap_recognizer_get_tap_point(recognizer: *const Recognizer) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2680", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the total movement of the pan since the touchdown point. Component-wise.

 * `recognizer`: recognizer from which to get the delta

 Returns total delta from touchdown*/
/** pan_recognizer_get_total_delta
  -> Added in 107
gneiss: Vtable Slot 661, Offset 2644*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.pan_recognizer_get_total_delta")]
pub unsafe extern "C" fn pan_recognizer_get_total_delta(recognizer: *const Recognizer) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2644", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the movement of the pan since it Started (i.e. since the start threshold was crossed). This
 is exactly (0, 0) at the instant the recognizer transitions to Started, so live scroll that
 consumes this value does not jump at gesture start. Component-wise.

 * `recognizer`: recognizer from which to get the delta

 Returns delta since the pan started*/
/** pan_recognizer_get_delta_since_start
  -> Added in 107
gneiss: Vtable Slot 660, Offset 2640*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.pan_recognizer_get_delta_since_start")]
pub unsafe extern "C" fn pan_recognizer_get_delta_since_start(
	recognizer: *const Recognizer,
) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2640", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the movement of the pan since the previous position update. Component-wise.

 * `recognizer`: recognizer from which to get the delta

 Returns delta since the previous event*/
/** pan_recognizer_get_delta_since_prev
  -> Added in 107
gneiss: Vtable Slot 659, Offset 2636*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.pan_recognizer_get_delta_since_prev")]
pub unsafe extern "C" fn pan_recognizer_get_delta_since_prev(
	recognizer: *const Recognizer,
) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2636", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the current velocity of the pan, in pixels per second, component-wise. Computed over the
 most-recent events within a short time window (see PAN_VELOCITY_WINDOW_MS). Zero when the
 elapsed time across the sampled events is zero.

 * `recognizer`: recognizer from which to get the velocity

 Returns velocity in px/s*/
/** pan_recognizer_get_velocity
  -> Added in 107
gneiss: Vtable Slot 662, Offset 2648*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.pan_recognizer_get_velocity")]
pub unsafe extern "C" fn pan_recognizer_get_velocity(recognizer: *const Recognizer) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2648", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the recognized swipe direction. Valid once the recognizer has Completed; otherwise
 `SwipeDirection_None`.

 * `recognizer`: recognizer from which to get the direction

 Returns recognized swipe direction*/
/** swipe_recognizer_get_direction
  -> Added in 107
gneiss: Vtable Slot 667, Offset 2668*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.swipe_recognizer_get_direction")]
pub unsafe extern "C" fn swipe_recognizer_get_direction(
	recognizer: *const Recognizer,
) -> SwipeDirection {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2668", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the velocity of the swipe, in pixels per second, component-wise. Computed over the
 most-recent events within a short time window. Zero when the elapsed time is zero.

 * `recognizer`: recognizer from which to get the velocity

 Returns velocity in px/s*/
/** swipe_recognizer_get_velocity
  -> Added in 107
gneiss: Vtable Slot 668, Offset 2672*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.swipe_recognizer_get_velocity")]
pub unsafe extern "C" fn swipe_recognizer_get_velocity(recognizer: *const Recognizer) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2672", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroy an un-owned recognizer. If a recognizer is not owned, this will destroy the recognizer
 freeing it's data and calling the destructor (see `recognizer_set_on_destroy`), if set. If it
 is owned, this will do nothing.

 * `recognizer`: `Recognizer` to destroy*/
/** recognizer_destroy
  -> Added in 107
gneiss: Vtable Slot 663, Offset 2652*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.recognizer_destroy")]
pub unsafe extern "C" fn recognizer_destroy(recognizer: *mut Recognizer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2652", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Specify a callback to determine whether a recognizer should be evaluated simultaneously with
 another recognizer

 * `recognizer`: recognizer to modify
 * `simultaneous_with_cb`: callback that determines whether this recognizer will be evaluated
 simultaneous with another recognizer*/
/** recognizer_set_simultaneous_with
  -> Added in 107
gneiss: Vtable Slot 665, Offset 2660*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.recognizer_set_simultaneous_with")]
pub unsafe extern "C" fn recognizer_set_simultaneous_with(
	recognizer: *mut Recognizer,
	simultaneous_with_cb: RecognizerSimultaneousWithCb,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2660", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tell a recognizer to only evaluate after the another recognizer fails

 * `recognizer`: recognizer to modify
 * `fail_after`: recognizer after which the modified gesture will be evaluated*/
/** recognizer_set_fail_after
  -> Added in 107
gneiss: Vtable Slot 664, Offset 2656*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.recognizer_set_fail_after")]
pub unsafe extern "C" fn recognizer_set_fail_after(
	recognizer: *mut Recognizer,
	fail_after: *mut Recognizer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2656", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Function signature for a handler that deals with transition events of a window.

See WindowHandlers

See `window_set_window_handlers()`*/
pub type WindowHandler = ::core::option::Option<unsafe extern "C" fn(window: *mut Window)>;
/** WindowHandlers
These handlers are called by the `WindowStack` as windows get pushed on / popped.
All these handlers use `WindowHandler` as their function signature.

See `window_set_window_handlers()`

See `WindowStack`*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WindowHandlers {
	/** Called when the window is pushed to the screen when it's not loaded.
	This is a good moment to do the layout of the window.*/
	pub load:      WindowHandler,
	/** Called when the window comes on the screen (again). E.g. when
	second-top-most window gets revealed (again) after popping the top-most
	window, but also when the window is pushed for the first time. This is a
	good moment to start timers related to the window, or reset the UI, etc.*/
	pub appear:    WindowHandler,
	/** Called when the window leaves the screen, e.g. when another window
	is pushed, or this window is popped. Good moment to stop timers related
	to the window.*/
	pub disappear: WindowHandler,
	/** Called when the window is deinited, but could be used in the future to
	free resources bound to windows that are not on screen.*/
	pub unload:    WindowHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of WindowHandlers"][::core::mem::size_of::<WindowHandlers>() - 16usize];
	["Alignment of WindowHandlers"][::core::mem::align_of::<WindowHandlers>() - 4usize];
	["Offset of field: WindowHandlers::load"]
		[::core::mem::offset_of!(WindowHandlers, load) - 0usize];
	["Offset of field: WindowHandlers::appear"]
		[::core::mem::offset_of!(WindowHandlers, appear) - 4usize];
	["Offset of field: WindowHandlers::disappear"]
		[::core::mem::offset_of!(WindowHandlers, disappear) - 8usize];
	["Offset of field: WindowHandlers::unload"]
		[::core::mem::offset_of!(WindowHandlers, unload) - 12usize];
};
/** Creates a new Window on the heap and initalizes it with the default values.

 * Background color : `GColorWhite`
 * Root layer's `update_proc` : function that fills the window's background using `background_color`.
 * `click_config_provider` : `NULL`
 * `window_handlers` : all `NULL`

 Returns A pointer to the window. `NULL` if the window could not
 be created*/
/** window_create
  -> Added in 0
gneiss: Vtable Slot 271, Offset 1084*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_create")]
pub unsafe extern "C" fn window_create() -> *mut Window {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1084", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a Window previously created by window_create.
/** window_destroy
  -> Added in 0
gneiss: Vtable Slot 272, Offset 1088*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_destroy")]
pub unsafe extern "C" fn window_destroy(window: *mut Window) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1088", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the click configuration provider callback function on the window.
 This will automatically setup the input handlers of the window as well to use
 the click recognizer subsystem.

 * `window`: The window for which to set the click config provider
 * `click_config_provider`: The callback that will be called to configure the click recognizers with the window

 See Clicks

 See ClickConfigProvider*/
/** window_set_click_config_provider
  -> Added in 0
gneiss: Vtable Slot 278, Offset 1112*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_click_config_provider")]
pub unsafe extern "C" fn window_set_click_config_provider(
	window: *mut Window,
	click_config_provider: ClickConfigProvider,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1112", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Same as window_set_click_config_provider(), but will assign a custom context pointer
 (instead of the window pointer) that will be passed into the ClickHandler click event handlers.

 * `window`: The window for which to set the click config provider
 * `click_config_provider`: The callback that will be called to configure the click recognizers with the window
 * `context`: Pointer to application specific data that will be passed to the click configuration provider callback (defaults to the window).

 See Clicks

 See window_set_click_config_provider*/
/** window_set_click_config_provider_with_context
  -> Added in 0
gneiss: Vtable Slot 279, Offset 1116*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_click_config_provider_with_context")]
pub unsafe extern "C" fn window_set_click_config_provider_with_context(
	window: *mut Window,
	click_config_provider: ClickConfigProvider,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1116", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the current click configuration provider of the window.

 * `window`: The window for which to get the click config provider*/
/** window_get_click_config_provider
  -> Added in 0
gneiss: Vtable Slot 273, Offset 1092*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_get_click_config_provider")]
pub unsafe extern "C" fn window_get_click_config_provider(
	window: *const Window,
) -> ClickConfigProvider {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1092", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the current click configuration provider context of the window.

 * `window`: The window for which to get the click config provider context*/
/** window_get_click_config_context
  -> Added in 11
gneiss: Vtable Slot 321, Offset 1284*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_get_click_config_context")]
pub unsafe extern "C" fn window_get_click_config_context(
	window: *mut Window,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1284", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Attach a recognizer to the window

 * `window`: `Window` to which to attach the `Recognizer`
 * `recognizer`: `Recognizer` to attach*/
/** window_attach_recognizer
  -> Added in 107
gneiss: Vtable Slot 671, Offset 2684*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_attach_recognizer")]
pub unsafe extern "C" fn window_attach_recognizer(
	window: *mut Window,
	recognizer: *mut Recognizer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2684", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Detach a recognizer from the window

 * `window`: `Window` from which to detach the `Recognizer`
 * `recognizer`: `Recognizer` to detach*/
/** window_detach_recognizer
  -> Added in 107
gneiss: Vtable Slot 672, Offset 2688*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_detach_recognizer")]
pub unsafe extern "C" fn window_detach_recognizer(
	window: *mut Window,
	recognizer: *mut Recognizer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2688", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Disable the system touch-navigation bridge for a window. With the bridge disabled the system
 recognizer set fails on Touchdown for this window, handing every touch to the recognizers the
 app attached, so an app can take over touch input instead of the built-in button emulation.

 * `window`: `Window` to configure
 * `disabled`: true to disable the bridge for this window*/
/** window_set_touch_bridge_disabled
  -> Added in 107
gneiss: Vtable Slot 673, Offset 2692*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_touch_bridge_disabled")]
pub unsafe extern "C" fn window_set_touch_bridge_disabled(window: *mut Window, disabled: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2692", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the window handlers of the window.
 These handlers get called e.g. when the user enters or leaves the window.

 * `window`: The window for which to set the window handlers
 * `handlers`: The handlers for the specified window

 See `WindowHandlers`*/
/** window_set_window_handlers
  -> Added in 0
gneiss: Vtable Slot 282, Offset 1128*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_window_handlers")]
pub unsafe extern "C" fn window_set_window_handlers(window: *mut Window, handlers: WindowHandlers) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1128", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the root Layer of the window.
 The root layer is the layer at the bottom of the layer hierarchy for this window.
 It is the window's "canvas" if you will. By default, the root layer only draws
 a solid fill with the window's background color.

 * `window`: The window for which to get the root layer

 Returns The window's root layer*/
/** window_get_root_layer
  -> Added in 0
gneiss: Vtable Slot 275, Offset 1100*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_get_root_layer")]
pub unsafe extern "C" fn window_get_root_layer(window: *const Window) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1100", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the background color of the window, which is drawn automatically by the
 root layer of the window.

 * `window`: The window for which to set the background color
 * `background_color`: The new background color

 See `window_get_root_layer()`*/
/** window_set_background_color
  -> Added in 30
gneiss: Vtable Slot 377, Offset 1508*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_background_color")]
pub unsafe extern "C" fn window_set_background_color(
	window: *mut Window,
	background_color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1508", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets whether the window has been loaded.
 If a window is loaded, its `.load` handler has been called (and the `.unload` handler
 has not been called since).

 Returns true if the window is currently loaded or false if not.

 * `window`: The window to query its loaded status

 See `WindowHandlers`*/
/** window_is_loaded
  -> Added in 0
gneiss: Vtable Slot 276, Offset 1104*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_is_loaded")]
pub unsafe extern "C" fn window_is_loaded(window: *mut Window) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1104", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets a pointer to developer-supplied data that the window uses, to
 provide a means to access the data at later times in one of the window event handlers.

 See window_get_user_data

 * `window`: The window for which to set the user data
 * `data`: A pointer to user data.*/
/** window_set_user_data
  -> Added in 2
gneiss: Vtable Slot 292, Offset 1168*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_user_data")]
pub unsafe extern "C" fn window_set_user_data(window: *mut Window, data: *mut ::core::ffi::c_void) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1168", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the pointer to developer-supplied data that was previously
 set using window_set_user_data().

 See window_set_user_data

 * `window`: The window for which to get the user data*/
/** window_get_user_data
  -> Added in 2
gneiss: Vtable Slot 291, Offset 1164*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_get_user_data")]
pub unsafe extern "C" fn window_get_user_data(window: *const Window) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1164", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to single click events.

 Note: Must be called from the `ClickConfigProvider`.

 Note: `window_single_click_subscribe()` and `window_single_repeating_click_subscribe()` conflict, and cannot both be used on the same button.

 Note: When there is a multi_click and/or long_click setup, there will be a delay before the single click

 * `button_id`: The button events to subscribe to.
 * `handler`: The `ClickHandler` to fire on this event.
 handler will get fired. On the other hand, when there is no multi_click nor long_click setup, the single click handler will fire directly on button down.

 See ButtonId

 See Clicks

 See window_single_repeating_click_subscribe*/
/** window_single_click_subscribe
  -> Added in 3
gneiss: Vtable Slot 307, Offset 1228*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_single_click_subscribe")]
pub unsafe extern "C" fn window_single_click_subscribe(button_id: ButtonId, handler: ClickHandler) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1228", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to single click event, with a repeat interval. A single click is detected every time "repeat_interval_ms" has been reached.

 Note: Must be called from the `ClickConfigProvider`.

 Note: `window_single_click_subscribe()` and `window_single_repeating_click_subscribe()` conflict, and cannot both be used on the same button.

 Note: The back button cannot be overridden with a repeating click.

 * `button_id`: The button events to subscribe to.
 * `repeat_interval_ms`: When holding down, how many milliseconds before the handler is fired again.
 A value of 0ms means "no repeat timer". The minimum is 30ms, and values below will be disregarded.
 If there is a long-click handler subscribed on this button, `repeat_interval_ms` will not be used.

 * `handler`: The `ClickHandler` to fire on this event.

 See window_single_click_subscribe*/
/** window_single_repeating_click_subscribe
  -> Added in 3
gneiss: Vtable Slot 308, Offset 1232*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_single_repeating_click_subscribe")]
pub unsafe extern "C" fn window_single_repeating_click_subscribe(
	button_id: ButtonId,
	repeat_interval_ms: u16,
	handler: ClickHandler,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1232", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to multi click events.

 Note: Must be called from the `ClickConfigProvider`.

 * `button_id`: The button events to subscribe to.
 * `min_clicks`: Minimum number of clicks before handler is fired. Defaults to 2.
 * `max_clicks`: Maximum number of clicks after which the click counter is reset. A value of 0 means use "min" also as "max".
 * `timeout`: The delay after which a sequence of clicks is considered finished, and the click counter is reset. A value of 0 means to use the system default 300ms.
 * `last_click_only`: Defaults to false. When true, only the handler for the last multi-click is called.
 * `handler`: The `ClickHandler` to fire on this event. Fired for multi-clicks, as "filtered" by the `last_click_only`, `min`, and `max` parameters.*/
/** window_multi_click_subscribe
  -> Added in 3
gneiss: Vtable Slot 304, Offset 1216*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_multi_click_subscribe")]
pub unsafe extern "C" fn window_multi_click_subscribe(
	button_id: ButtonId,
	min_clicks: u8,
	max_clicks: u8,
	timeout: u16,
	last_click_only: bool,
	handler: ClickHandler,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1216", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to long click events.

 Note: Must be called from the `ClickConfigProvider`.

 Note: The back button cannot be overridden with a long click.

 * `button_id`: The button events to subscribe to.
 * `delay_ms`: Milliseconds after which "handler" is fired. A value of 0 means to use the system default 500ms.
 * `down_handler`: The `ClickHandler` to fire as soon as the button has been held for `delay_ms`. This may be NULL to have no down handler.
 * `up_handler`: The `ClickHandler` to fire on the release of a long click. This may be NULL to have no up handler.*/
/** window_long_click_subscribe
  -> Added in 3
gneiss: Vtable Slot 303, Offset 1212*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_long_click_subscribe")]
pub unsafe extern "C" fn window_long_click_subscribe(
	button_id: ButtonId,
	delay_ms: u16,
	down_handler: ClickHandler,
	up_handler: ClickHandler,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1212", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Subscribe to raw click events.

 Note: Must be called from within the `ClickConfigProvider`.

 Note: The back button cannot be overridden with a raw click.

 * `button_id`: The button events to subscribe to.
 * `down_handler`: The `ClickHandler` to fire as soon as the button has been pressed. This may be NULL to have no down handler.
 * `up_handler`: The `ClickHandler` to fire on the release of the button. This may be NULL to have no up handler.
 * `context`: If this context is not NULL, it will override the general context.*/
/** window_raw_click_subscribe
  -> Added in 3
gneiss: Vtable Slot 305, Offset 1220*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_raw_click_subscribe")]
pub unsafe extern "C" fn window_raw_click_subscribe(
	button_id: ButtonId,
	down_handler: ClickHandler,
	up_handler: ClickHandler,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1220", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the context that will be passed to handlers for the given button's events. By default the context passed to handlers
 is equal to the `ClickConfigProvider` context (defaults to the window).

 Note: Must be called from within the `ClickConfigProvider`.

 * `button_id`: The button to set the context for.
 * `context`: Set the context that will be passed to handlers for the given button's events.*/
/** window_set_click_context
  -> Added in 3
gneiss: Vtable Slot 306, Offset 1224*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_set_click_context")]
pub unsafe extern "C" fn window_set_click_context(
	button_id: ButtonId,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1224", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Pushes the given window on the window navigation stack,
 on top of the current topmost window of the app.

 * `window`: The window to push on top
 * `animated`: Pass in `true` to animate the push using a sliding animation,
 or `false` to skip the animation.*/
/** window_stack_push
  -> Added in 0
gneiss: Vtable Slot 287, Offset 1148*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_push")]
pub unsafe extern "C" fn window_stack_push(window: *mut Window, animated: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1148", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Pops the topmost window on the navigation stack

 * `animated`: See `window_stack_remove()`

 Returns The window that is popped, or NULL if there are no windows to pop.*/
/** window_stack_pop
  -> Added in 0
gneiss: Vtable Slot 285, Offset 1140*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_pop")]
pub unsafe extern "C" fn window_stack_pop(animated: bool) -> *mut Window {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1140", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Pops all windows.
 See `window_stack_remove()` for a description of the `animated` parameter and notes.*/
/** window_stack_pop_all
  -> Added in 0
gneiss: Vtable Slot 286, Offset 1144*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_pop_all")]
pub unsafe extern "C" fn window_stack_pop_all(animated: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1144", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Removes a given window from the window stack
 that belongs to the app task.

 Note: If there are no windows for the app left on the stack, the app
 will be killed by the system, shortly. To avoid this, make sure
 to push another window shortly after or before removing the last window.

 * `window`: The window to remove. If the window is NULL or if it
 is not on the stack, this function is a no-op.

 * `animated`: Pass in `true` to animate the removal of the window using
 a side-to-side sliding animation to reveal the next window.
 This is only used in case the window happens to be on top of the window
 stack (thus visible).

 Returns True if window was successfully removed, false otherwise.*/
/** window_stack_remove
  -> Added in 0
gneiss: Vtable Slot 288, Offset 1152*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_remove")]
pub unsafe extern "C" fn window_stack_remove(window: *mut Window, animated: bool) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1152", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the topmost window on the stack that belongs to the app.

 Returns The topmost window on the stack that belongs to the app or
 NULL if no app window could be found.*/
/** window_stack_get_top_window
  -> Added in 0
gneiss: Vtable Slot 284, Offset 1136*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_get_top_window")]
pub unsafe extern "C" fn window_stack_get_top_window() -> *mut Window {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1136", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Checks if the window is on the window stack

 * `window`: The window to look for on the window stack

 Returns true if the window is currently on the window stack.*/
/** window_stack_contains_window
  -> Added in 0
gneiss: Vtable Slot 283, Offset 1132*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.window_stack_contains_window")]
pub unsafe extern "C" fn window_stack_contains_window(window: *mut Window) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1132", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Abstract framework to create arbitrary animations

The Animation framework provides your Pebble app with an base layer to create arbitrary
animations. The simplest way to work with animations is to use the layer frame
`PropertyAnimation`, which enables you to move a Layer around on the screen.
Using animation_set_implementation(), you can implement a custom animation.

Refer to the *UiFramework* (chapter "Animation") for a conceptual overview
of the animation framework and on how to write custom animations.*/
#[repr(C)]
#[derive(Debug)]
pub struct Animation {
	_unused: [u8; 0],
}
/** The type used to represent how far an animation has progressed. This is passed to the
animation's update handler*/
pub type AnimationProgress = i32;
/// Linear curve: the velocity is constant.
pub const AnimationCurve_AnimationCurveLinear: AnimationCurve = 0;
/// Bicubic ease-in: accelerate from zero velocity
pub const AnimationCurve_AnimationCurveEaseIn: AnimationCurve = 1;
/// Bicubic ease-in: decelerate to zero velocity
pub const AnimationCurve_AnimationCurveEaseOut: AnimationCurve = 2;
/// Bicubic ease-in-out: accelerate from zero velocity, decelerate to zero velocity
pub const AnimationCurve_AnimationCurveEaseInOut: AnimationCurve = 3;
/// Bicubic ease-in-out: accelerate from zero velocity, decelerate to zero velocity
pub const AnimationCurve_AnimationCurveDefault: AnimationCurve = 3;
/// Custom (user-provided) animation curve
pub const AnimationCurve_AnimationCurveCustomFunction: AnimationCurve = 4;
/// User-provided interpolation function
pub const AnimationCurve_AnimationCurveCustomInterpolationFunction: AnimationCurve = 5;
/// User-provided interpolation function
pub const AnimationCurve_AnimationCurve_Reserved1: AnimationCurve = 6;
/// User-provided interpolation function
pub const AnimationCurve_AnimationCurve_Reserved2: AnimationCurve = 7;
/** Values that are used to indicate the different animation curves,
which determine the speed at which the animated value(s) change(s).*/
pub type AnimationCurve = ::core::ffi::c_uchar;
/** Creates a new Animation on the heap and initalizes it with the default values.

 * Duration: 250ms,
 * Curve: `AnimationCurveEaseInOut` (ease-in-out),
 * Delay: 0ms,
 * Handlers: `{NULL, NULL}` (none),
 * Context: `NULL` (none),
 * Implementation: `NULL` (no implementation),
 * Scheduled: no

 Returns A pointer to the animation. `NULL` if the animation could not
 be created*/
/** animation_create
  -> Added in 32
gneiss: Vtable Slot 380, Offset 1520*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_create")]
pub unsafe extern "C" fn animation_create() -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1520", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroys an Animation previously created by animation_create.

 Returns true if successful, false on failure*/
/** animation_destroy
  -> Added in 32
gneiss: Vtable Slot 381, Offset 1524*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_destroy")]
pub unsafe extern "C" fn animation_destroy(animation: *mut Animation) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1524", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** animation_clone
  -> Added in 36
gneiss: Vtable Slot 422, Offset 1688*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_clone")]
pub unsafe extern "C" fn animation_clone(from: *mut Animation) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1688", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a new sequence animation from a list of 2 or more other animations. The returned
 animation owns the animations that were provided as arguments and no further write operations
 on those handles are allowed. The variable length argument list must be terminated with a NULL
 ptr

 Note: the maximum number of animations that can be supplied to this method is 20

 * `animation_a`: the first required component animation
 * `animation_b`: the second required component animation
 * `animation_c`: either the third component, or NULL if only adding 2 components

 Returns The newly created sequence animation*/
/** animation_sequence_create
  -> Added in 36
gneiss: Vtable Slot 428, Offset 1712*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_sequence_create")]
pub unsafe extern "C" fn animation_sequence_create(
	animation_a: *mut Animation,
	animation_b: *mut Animation,
	animation_c: *mut Animation,
	args: ...
) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1712", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** An alternate form of animation_sequence_create() that accepts an array of other animations.

 Note: the maximum number of elements allowed in animation_array is 256

 * `animation_array`: an array of component animations to include
 * `array_len`: the number of elements in the animation_array

 Returns The newly created sequence animation*/
/** animation_sequence_create_from_array
  -> Added in 36
gneiss: Vtable Slot 429, Offset 1716*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_sequence_create_from_array")]
pub unsafe extern "C" fn animation_sequence_create_from_array(
	animation_array: *mut *mut Animation,
	array_len: u32,
) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1716", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a new spawn animation from a list of 2 or more other animations. The returned
 animation owns the animations that were provided as arguments and no further write operations
 on those handles are allowed. The variable length argument list must be terminated with a NULL
 ptr

 Note: the maximum number of animations that can be supplied to this method is 20

 * `animation_a`: the first required component animation
 * `animation_b`: the second required component animation
 * `animation_c`: either the third component, or NULL if only adding 2 components

 Returns The newly created spawn animation or NULL on failure*/
/** animation_spawn_create
  -> Added in 36
gneiss: Vtable Slot 433, Offset 1732*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_spawn_create")]
pub unsafe extern "C" fn animation_spawn_create(
	animation_a: *mut Animation,
	animation_b: *mut Animation,
	animation_c: *mut Animation,
	args: ...
) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1732", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** An alternate form of animation_spawn_create() that accepts an array of other animations.

 Note: the maximum number of elements allowed in animation_array is 256

 * `animation_array`: an array of component animations to include
 * `array_len`: the number of elements in the animation_array

 Returns The newly created spawn animation or NULL on failure*/
/** animation_spawn_create_from_array
  -> Added in 36
gneiss: Vtable Slot 434, Offset 1736*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_spawn_create_from_array")]
pub unsafe extern "C" fn animation_spawn_create_from_array(
	animation_array: *mut *mut Animation,
	array_len: u32,
) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1736", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Seek to a specific location in the animation. Only forward seeking is allowed. Returns true
 if successful, false if the passed in seek location is invalid.

 * `animation`: the animation for which to set the elapsed.
 * `elapsed_ms`: the new elapsed time in milliseconds

 Returns true if successful, false if the requested elapsed is invalid.*/
/** animation_set_elapsed
  -> Added in 36
gneiss: Vtable Slot 431, Offset 1724*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_elapsed")]
pub unsafe extern "C" fn animation_set_elapsed(animation: *mut Animation, elapsed_ms: u32) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1724", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the current location in the animation.

 Note: The animation must be scheduled to get the elapsed time. If it is not schedule,
 this method will return false.

 * `animation`: The animation for which to fetch the elapsed.
 * `elapsed_ms`: pointer to variable that will contain the elapsed time in milliseconds

 Returns true if successful, false on failure*/
/** animation_get_elapsed
  -> Added in 36
gneiss: Vtable Slot 426, Offset 1704*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_elapsed")]
pub unsafe extern "C" fn animation_get_elapsed(
	animation: *mut Animation,
	elapsed_ms: *mut i32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1704", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set an animation to run in reverse (or forward)

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: the animation to operate on
 * `reverse`: set to true to run in reverse, false to run forward

 Returns true if successful, false on failure*/
/** animation_set_reverse
  -> Added in 36
gneiss: Vtable Slot 432, Offset 1728*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_reverse")]
pub unsafe extern "C" fn animation_set_reverse(animation: *mut Animation, reverse: bool) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1728", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the reverse setting of an animation

 * `animation`: The animation for which to get the setting

 Returns the reverse setting*/
/** animation_get_reverse
  -> Added in 36
gneiss: Vtable Slot 427, Offset 1708*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_reverse")]
pub unsafe extern "C" fn animation_get_reverse(animation: *mut Animation) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1708", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set an animation to play N times. The default is 1.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: the animation to set the play count of
 * `play_count`: number of times to play this animation. Set to ANIMATION_PLAY_COUNT_INFINITE
 to make an animation repeat indefinitely.

 Returns true if successful, false on failure*/
/** animation_set_play_count
  -> Added in 36
gneiss: Vtable Slot 430, Offset 1720*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_play_count")]
pub unsafe extern "C" fn animation_set_play_count(
	animation: *mut Animation,
	play_count: u32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1720", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the play count of an animation

 * `animation`: The animation for which to get the setting

 Returns the play count*/
/** animation_get_play_count
  -> Added in 36
gneiss: Vtable Slot 425, Offset 1700*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_play_count")]
pub unsafe extern "C" fn animation_get_play_count(animation: *mut Animation) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1700", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the time in milliseconds that an animation takes from start to finish.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set the duration.
 * `duration_ms`: The duration in milliseconds of the animation. This excludes
 any optional delay as set using `animation_set_delay()`.

 Returns true if successful, false on failure*/
/** animation_set_duration
  -> Added in 32
gneiss: Vtable Slot 388, Offset 1552*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_duration")]
pub unsafe extern "C" fn animation_set_duration(
	animation: *mut Animation,
	duration_ms: u32,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1552", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the static duration of an animation from start to end (ignoring how much has already
 played, if any).

 * `animation`: The animation for which to get the duration
 * `include_delay`: if true, include the delay time
 * `include_play_count`: if true, incorporate the play_count

 Returns the duration, in milliseconds. This includes any optional delay a set using
 `animation_set_delay`.*/
/** animation_get_duration
  -> Added in 36
gneiss: Vtable Slot 424, Offset 1696*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_duration")]
pub unsafe extern "C" fn animation_get_duration(
	animation: *mut Animation,
	include_delay: bool,
	include_play_count: bool,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1696", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets an optional delay for the animation.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set the delay.
 * `delay_ms`: The delay in milliseconds that the animation system should
 wait from the moment the animation is scheduled to starting the animation.

 Returns true if successful, false on failure*/
/** animation_set_delay
  -> Added in 32
gneiss: Vtable Slot 387, Offset 1548*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_delay")]
pub unsafe extern "C" fn animation_set_delay(animation: *mut Animation, delay_ms: u32) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1548", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the delay of an animation in milliseconds

 * `animation`: The animation for which to get the setting

 Returns the delay in milliseconds*/
/** animation_get_delay
  -> Added in 36
gneiss: Vtable Slot 423, Offset 1692*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_delay")]
pub unsafe extern "C" fn animation_get_delay(animation: *mut Animation) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1692", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the animation curve for the animation.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set the curve.
 * `curve`: The type of curve.

 See AnimationCurve

 Returns true if successful, false on failure*/
/** animation_set_curve
  -> Added in 32
gneiss: Vtable Slot 385, Offset 1540*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_curve")]
pub unsafe extern "C" fn animation_set_curve(
	animation: *mut Animation,
	curve: AnimationCurve,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1540", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the animation curve for the animation.

 * `animation`: The animation for which to get the curve.

 Returns The type of curve.*/
/** animation_get_curve
  -> Added in 37
gneiss: Vtable Slot 435, Offset 1740*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_curve")]
pub unsafe extern "C" fn animation_get_curve(animation: *mut Animation) -> AnimationCurve {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1740", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The function pointer type of a custom animation curve.

* `linear_distance`: The linear normalized animation distance to be curved.

See animation_set_custom_curve*/
pub type AnimationCurveFunction = ::core::option::Option<
	unsafe extern "C" fn(linear_distance: AnimationProgress) -> AnimationProgress,
>;
/** Sets a custom animation curve function.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set the curve.
 * `curve_function`: The custom animation curve function.

 See AnimationCurveFunction

 Returns true if successful, false on failure*/
/** animation_set_custom_curve
  -> Added in 32
gneiss: Vtable Slot 386, Offset 1544*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_custom_curve")]
pub unsafe extern "C" fn animation_set_custom_curve(
	animation: *mut Animation,
	curve_function: AnimationCurveFunction,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1544", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the custom animation curve function for the animation.

 * `animation`: The animation for which to get the curve.

 Returns The custom animation curve function for the given animation. NULL if not set.*/
/** animation_get_custom_curve
  -> Added in 37
gneiss: Vtable Slot 436, Offset 1744*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_custom_curve")]
pub unsafe extern "C" fn animation_get_custom_curve(
	animation: *mut Animation,
) -> AnimationCurveFunction {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1744", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The function pointer type of the handler that will be called when an animation is started,
just before updating the first frame of the animation.

* `animation`: The animation that was started.
* `context`: The pointer to custom, application specific data, as set using
`animation_set_handlers()`

Note: This is called after any optional delay as set by `animation_set_delay()` has expired.

See animation_set_handlers*/
pub type AnimationStartedHandler = ::core::option::Option<
	unsafe extern "C" fn(animation: *mut Animation, context: *mut ::core::ffi::c_void),
>;
/** The function pointer type of the handler that will be called when the animation is stopped.

* `animation`: The animation that was stopped.
* `finished`: True if the animation was stopped because it was finished normally,
or False if the animation was stopped prematurely, because it was unscheduled before finishing.

* `context`: The pointer to custom, application specific data, as set using
`animation_set_handlers()`

See animation_set_handlers

Note:
This animation (i.e.: the `animation` parameter) may be destroyed here.
It is not recommended to unschedule or destroy a **different** Animation within this
Animation's `stopped` handler.*/
pub type AnimationStoppedHandler = ::core::option::Option<
	unsafe extern "C" fn(
		animation: *mut Animation,
		finished: bool,
		context: *mut ::core::ffi::c_void,
	),
>;
/** The handlers that will get called when an animation starts and stops.
See documentation with the function pointer types for more information.

See animation_set_handlers*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AnimationHandlers {
	/// The handler that will be called when an animation is started.
	pub started: AnimationStartedHandler,
	/// The handler that will be called when an animation is stopped.
	pub stopped: AnimationStoppedHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AnimationHandlers"][::core::mem::size_of::<AnimationHandlers>() - 8usize];
	["Alignment of AnimationHandlers"][::core::mem::align_of::<AnimationHandlers>() - 4usize];
	["Offset of field: AnimationHandlers::started"]
		[::core::mem::offset_of!(AnimationHandlers, started) - 0usize];
	["Offset of field: AnimationHandlers::stopped"]
		[::core::mem::offset_of!(AnimationHandlers, stopped) - 4usize];
};
/** Sets the callbacks for the animation.
 Often an application needs to run code at the start or at the end of an animation.
 Using this function is possible to register callback functions with an animation,
 that will get called at the start and end of the animation.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set up the callbacks.
 * `callbacks`: The callbacks.
 * `context`: A pointer to application specific data, that will be passed as an argument by
 the animation subsystem when a callback is called.

 Returns true if successful, false on failure*/
/** animation_set_handlers
  -> Added in 32
gneiss: Vtable Slot 389, Offset 1556*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_handlers")]
pub unsafe extern "C" fn animation_set_handlers(
	animation: *mut Animation,
	callbacks: AnimationHandlers,
	context: *mut ::core::ffi::c_void,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1556", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the application-specific callback context of the animation.
 This `void` pointer is passed as an argument when the animation system calls AnimationHandlers
 callbacks. The context pointer can be set to point to any application specific data using
 `animation_set_handlers()`.

 * `animation`: The animation.

 See animation_set_handlers*/
/** animation_get_context
  -> Added in 32
gneiss: Vtable Slot 382, Offset 1528*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_context")]
pub unsafe extern "C" fn animation_get_context(
	animation: *mut Animation,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1528", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Schedules the animation. Call this once after configuring an animation to get it to
 start running.

 If the animation's implementation has a `.setup` callback it will get called before
 this function returns.

 Note: If the animation was already scheduled,
 it will first unschedule it and then re-schedule it again.
 Note that in that case, the animation's `.stopped` handler, the implementation's
 `.teardown` and `.setup` will get called, due to the unscheduling and scheduling.

 * `animation`: The animation to schedule.

 See `animation_unschedule()`

 Returns true if successful, false on failure*/
/** animation_schedule
  -> Added in 32
gneiss: Vtable Slot 384, Offset 1536*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_schedule")]
pub unsafe extern "C" fn animation_schedule(animation: *mut Animation) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1536", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unschedules the animation, which in effect stops the animation.

 * `animation`: The animation to unschedule.

 Note: If the animation was not yet finished, unscheduling it will
 cause its `.stopped` handler to get called, with the "finished" argument set to false.

 Note: If the animation is not scheduled or NULL, calling this routine is
 effectively a no-op

 See `animation_schedule()`

 Returns true if successful, false on failure*/
/** animation_unschedule
  -> Added in 32
gneiss: Vtable Slot 391, Offset 1564*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_unschedule")]
pub unsafe extern "C" fn animation_unschedule(animation: *mut Animation) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1564", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unschedules all animations of the application.

 See animation_unschedule*/
/** animation_unschedule_all
  -> Added in 32
gneiss: Vtable Slot 392, Offset 1568*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_unschedule_all")]
pub unsafe extern "C" fn animation_unschedule_all() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1568", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns True if the animation was scheduled, or false if it was not.

 Note: An animation will be scheduled when it is running and not finished yet.
 An animation that has finished is automatically unscheduled.
 For convenience, passing in a NULL animation argument will simply return false

 * `animation`: The animation for which to get its scheduled state.

 See animation_schedule

 See animation_unschedule*/
/** animation_is_scheduled
  -> Added in 32
gneiss: Vtable Slot 383, Offset 1532*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_is_scheduled")]
pub unsafe extern "C" fn animation_is_scheduled(animation: *mut Animation) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1532", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Pointer to function that (optionally) prepares the animation for running.
This callback is called when the animation is added to the scheduler.

* `animation`: The animation that needs to be set up.

See animation_schedule

See AnimationTeardownImplementation*/
pub type AnimationSetupImplementation =
	::core::option::Option<unsafe extern "C" fn(animation: *mut Animation)>;
/** Pointer to function that updates the animation according to the given normalized progress.
This callback will be called repeatedly by the animation scheduler whenever the animation needs
to be updated.

* `animation`: The animation that needs to update; gets passed in by the animation framework.
* `progress`: The current normalized progress; gets passed in by the animation
framework for each animation frame.
The value `ANIMATION_NORMALIZED_MIN` represents the start and `ANIMATION_NORMALIZED_MAX`
represents the end. Values outside this range (generated by a custom curve function) can be used
to implement features like a bounce back effect, where the progress exceeds the desired final
value before returning to complete the animation.
When using a system provided curve function, each frame during the animation will have a
progress value between `ANIMATION_NORMALIZED_MIN` and `ANIMATION_NORMALIZED_MAX` based on
the animation duration and the `AnimationCurve`.
For example, say an animation was scheduled at t = 1.0s, has a delay of 1.0s, a duration of 2.0s
and a curve of AnimationCurveLinear. Then the .update callback will get called on t = 2.0s with
distance_normalized = `ANIMATION_NORMALIZED_MIN`. For each frame thereafter until t = 4.0s,
the update callback will get called where distance_normalized is (`ANIMATION_NORMALIZED_MIN`
+ (((`ANIMATION_NORMALIZED_MAX` - `ANIMATION_NORMALIZED_MIN`) * t) / duration)).
Other system animation curve functions will result in a non-linear relation between
distance_normalized and time.*/
pub type AnimationUpdateImplementation = ::core::option::Option<
	unsafe extern "C" fn(animation: *mut Animation, progress: AnimationProgress),
>;
/** Pointer to function that (optionally) cleans up the animation.
This callback is called when the animation is removed from the scheduler.
In case the `.setup` implementation
allocated any memory, this is a good place to release that memory again.

* `animation`: The animation that needs to be teared down.

See animation_unschedule

See AnimationSetupImplementation*/
pub type AnimationTeardownImplementation =
	::core::option::Option<unsafe extern "C" fn(animation: *mut Animation)>;
/** The 3 callbacks that implement a custom animation.
Only the `.update` callback is mandatory, `.setup` and `.teardown` are optional.
See the documentation with the function pointer typedefs for more information.

Note: The `.setup` callback is called immediately after scheduling the animation,
regardless if there is a delay set for that animation using `animation_set_delay()`.

The diagram below illustrates the order in which callbacks can be expected to get called
over the life cycle of an animation. It also illustrates where the implementation of
different animation callbacks are intended to be “living”.

See AnimationSetupImplementation

See AnimationUpdateImplementation

See AnimationTeardownImplementation*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AnimationImplementation {
	/** Called by the animation system when an animation is scheduled, to prepare it for running.
	This callback is optional and can be left `NULL` when not needed.*/
	pub setup:    AnimationSetupImplementation,
	/** Called by the animation system when the animation needs to calculate the next animation frame.
	This callback is mandatory and should not be left `NULL`.*/
	pub update:   AnimationUpdateImplementation,
	/** Called by the animation system when an animation is unscheduled, to clean up after it has run.
	This callback is optional and can be left `NULL` when not needed.*/
	pub teardown: AnimationTeardownImplementation,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of AnimationImplementation"]
		[::core::mem::size_of::<AnimationImplementation>() - 12usize];
	["Alignment of AnimationImplementation"]
		[::core::mem::align_of::<AnimationImplementation>() - 4usize];
	["Offset of field: AnimationImplementation::setup"]
		[::core::mem::offset_of!(AnimationImplementation, setup) - 0usize];
	["Offset of field: AnimationImplementation::update"]
		[::core::mem::offset_of!(AnimationImplementation, update) - 4usize];
	["Offset of field: AnimationImplementation::teardown"]
		[::core::mem::offset_of!(AnimationImplementation, teardown) - 8usize];
};
/** Sets the implementation of the custom animation.
 When implementing custom animations, use this function to specify what functions need to be
 called to for the setup, frame update and teardown of the animation.

 Note: Trying to set an attribute when an animation is immutable will return false (failure). An
 animation is immutable once it has been added to a sequence or spawn animation or has been
 scheduled.

 * `animation`: The animation for which to set the implementation.
 * `implementation`: The structure with function pointers to the implementation of the setup,
 update and teardown functions.

 See AnimationImplementation

 Returns true if successful, false on failure*/
/** animation_set_implementation
  -> Added in 32
gneiss: Vtable Slot 390, Offset 1560*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_set_implementation")]
pub unsafe extern "C" fn animation_set_implementation(
	animation: *mut Animation,
	implementation: *const AnimationImplementation,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1560", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the implementation of the custom animation.

 * `animation`: The animation for which to get the implementation.

 See AnimationImplementation

 Returns NULL if animation implementation has not been setup.*/
/** animation_get_implementation
  -> Added in 37
gneiss: Vtable Slot 437, Offset 1748*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.animation_get_implementation")]
pub unsafe extern "C" fn animation_get_implementation(
	animation: *mut Animation,
) -> *const AnimationImplementation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1748", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug)]
pub struct PropertyAnimation {
	_unused: [u8; 0],
}
/** Convenience function to create and initialize a property animation that animates the frame of a
 Layer. It sets up the PropertyAnimation to use `layer_set_frame()` and `layer_get_frame()`
 as accessors and uses the `layer` parameter as the subject for the animation.
 The same defaults are used as with `animation_create()`.

 * `layer`: the layer that will be animated
 * `from_frame`: the frame that the layer should animate from
 * `to_frame`: the frame that the layer should animate to

 Note: Pass in `NULL` as one of the frame arguments to have it set automatically to the layer's
 current frame. This will result in a call to `layer_get_frame()` to get the current frame of
 the layer.

 Returns A handle to the property animation. `NULL` if animation could not be created*/
/** property_animation_create_layer_frame
  -> Added in 32
gneiss: Vtable Slot 397, Offset 1588*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_create_layer_frame")]
pub unsafe extern "C" fn property_animation_create_layer_frame(
	layer: *mut Layer,
	from_frame: *mut GRect,
	to_frame: *mut GRect,
) -> *mut PropertyAnimation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1588", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function to create and initialize a property animation that animates the bound's
 origin of a Layer. It sets up the PropertyAnimation to use layer_set_bounds() and
 layer_get_bounds() as accessors and uses the `layer` parameter as the subject for the animation.
 The same defaults are used as with `animation_create()`.

 * `layer`: the layer that will be animated
 * `from`: the origin that the bounds should animate from
 * `to`: the origin that the layer should animate to

 Returns A handle to the property animation. `NULL` if animation could not be created*/
/** property_animation_create_bounds_origin
  -> Added in 48
gneiss: Vtable Slot 516, Offset 2064*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_create_bounds_origin")]
pub unsafe extern "C" fn property_animation_create_bounds_origin(
	layer: *mut Layer,
	from: *mut GPoint,
	to: *mut GPoint,
) -> *mut PropertyAnimation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2064", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Creates a new PropertyAnimation on the heap and and initializes it with the specified values.
 The same defaults are used as with `animation_create()`.
 If the `from_value` or the `to_value` is `NULL`, the getter accessor will be called to get the
 current value of the property and be used instead.

 * `implementation`: Pointer to the implementation of the animation. In most cases, it makes
 sense to pass in a `static const` struct pointer.

 * `subject`: Pointer to the "subject" being animated. This will be passed in when the getter/
 setter accessors are called,
 see `PropertyAnimationAccessors`, `GPointSetter`, and friends. The value of this pointer
 will be copied into the `.subject` field of the PropertyAnimation struct.

 * `from_value`: Pointer to the value that the subject should animate from
 * `to_value`: Pointer to the value that the subject should animate to

 Note: Pass in `NULL` as one of the value arguments to have it set automatically to the subject's
 current property value, as returned by the getter function. Also note that passing in `NULL` for
 both `from_value` and `to_value`, will result in the animation having the same from- and to-
 values, effectively not doing anything.

 Returns A handle to the property animation. `NULL` if animation could not be created*/
/** property_animation_create
  -> Added in 32
gneiss: Vtable Slot 396, Offset 1584*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_create")]
pub unsafe extern "C" fn property_animation_create(
	implementation: *const PropertyAnimationImplementation,
	subject: *mut ::core::ffi::c_void,
	from_value: *mut ::core::ffi::c_void,
	to_value: *mut ::core::ffi::c_void,
) -> *mut PropertyAnimation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1584", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroy a property animation allocated by property_animation_create() or relatives.

 * `property_animation`: the return value from property_animation_create*/
/** property_animation_destroy
  -> Added in 32
gneiss: Vtable Slot 398, Offset 1592*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_destroy")]
pub unsafe extern "C" fn property_animation_destroy(property_animation: *mut PropertyAnimation) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1592", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Default update callback for a property animations to update a property of type int16_t.
 Assign this function to the `.base.update` callback field of your
 PropertyAnimationImplementation, in combination with a `.getter` and `.setter` accessors of
 types `Int16Getter` and `Int16Setter`.
 The implementation of this function will calculate the next value of the animation and call the
 setter to set the new value upon the subject.

 * `property_animation`: The property animation for which the update is requested.
 * `distance_normalized`: The current normalized distance. See ``
 AnimationUpdateImplementation

 Note: This function is not supposed to be called "manually", but will be called automatically
 when the animation is being run.*/
/** property_animation_update_int16
  -> Added in 32
gneiss: Vtable Slot 405, Offset 1620*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_update_int16")]
pub unsafe extern "C" fn property_animation_update_int16(
	property_animation: *mut PropertyAnimation,
	distance_normalized: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1620", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Default update callback for a property animations to update a property of type uint32_t.
 Assign this function to the `.base.update` callback field of your
 PropertyAnimationImplementation, in combination with a `.getter` and `.setter` accessors of
 types `UInt32Getter` and `UInt32Setter`.
 The implementation of this function will calculate the next value of the animation and call the
 setter to set the new value upon the subject.

 * `property_animation`: The property animation for which the update is requested.
 * `distance_normalized`: The current normalized distance. See ``
 AnimationUpdateImplementation

 Note: This function is not supposed to be called "manually", but will be called automatically
 when the animation is being run.*/
/** property_animation_update_uint32
  -> Added in 49
gneiss: Vtable Slot 517, Offset 2068*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_update_uint32")]
pub unsafe extern "C" fn property_animation_update_uint32(
	property_animation: *mut PropertyAnimation,
	distance_normalized: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2068", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Default update callback for a property animations to update a property of type GPoint.
 Assign this function to the `.base.update` callback field of your
 PropertyAnimationImplementation,
 in combination with a `.getter` and `.setter` accessors of types `GPointGetter` and ``
 GPointSetter.
 The implementation of this function will calculate the next point of the animation and call the
 setter to set the new point upon the subject.

 * `property_animation`: The property animation for which the update is requested.
 * `distance_normalized`: The current normalized distance. See ``
 AnimationUpdateImplementation

 Note: This function is not supposed to be called "manually", but will be called automatically
 when the animation is being run.*/
/** property_animation_update_gpoint
  -> Added in 32
gneiss: Vtable Slot 403, Offset 1612*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_update_gpoint")]
pub unsafe extern "C" fn property_animation_update_gpoint(
	property_animation: *mut PropertyAnimation,
	distance_normalized: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1612", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Default update callback for a property animations to update a property of type GRect.
 Assign this function to the `.base.update` callback field of your
 PropertyAnimationImplementation, in combination with a `.getter` and `.setter` accessors of
 types `GRectGetter` and `GRectSetter`. The implementation of this function will calculate
 the next rectangle of the animation and call the setter to set the new rectangle upon the
 subject.

 * `property_animation`: The property animation for which the update is requested.
 * `distance_normalized`: The current normalized distance. See ``
 AnimationUpdateImplementation

 Note: This function is not supposed to be called "manually", but will be called automatically
 when the animation is being run.*/
/** property_animation_update_grect
  -> Added in 32
gneiss: Vtable Slot 404, Offset 1616*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_update_grect")]
pub unsafe extern "C" fn property_animation_update_grect(
	property_animation: *mut PropertyAnimation,
	distance_normalized: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1616", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Default update callback for a property animations to update a property of type GColor8.
 Assign this function to the `.base.update` callback field of your
 PropertyAnimationImplementation, in combination with a `.getter` and `.setter` accessors of
 types `GColor8Getter` and `GColor8Setter`. The implementation of this function will
 calculate the next rectangle of the animation and call the setter to set the new value upon
 the subject.

 * `property_animation`: The property animation for which the update is requested.
 * `distance_normalized`: The current normalized distance. See ``
 AnimationUpdateImplementation

 Note: This function is not supposed to be called "manually", but will be called automatically
 when the animation is being run.*/
/** property_animation_update_gcolor8
  -> Added in 61
gneiss: Vtable Slot 534, Offset 2136*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_update_gcolor8")]
pub unsafe extern "C" fn property_animation_update_gcolor8(
	property_animation: *mut PropertyAnimation,
	distance_normalized: u32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2136", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Work-around for function pointer return type GPoint to avoid
tripping the pre-processor to use the equally named GPoint define*/
pub type GPointReturn = GPoint;
/** Work-around for function pointer return type GRect to avoid
tripping the pre-processor to use the equally named GRect define*/
pub type GRectReturn = GRect;
/** Function signature of a setter function to set a property of type int16_t onto the subject.

See `property_animation_update_int16()`

See `PropertyAnimationAccessors`*/
pub type Int16Setter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void, int16: i16)>;
/** Function signature of a getter function to get the current property of type int16_t of the
subject.

See `property_animation_create()`

See `PropertyAnimationAccessors`*/
pub type Int16Getter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void) -> i16>;
/** Function signature of a setter function to set a property of type uint32_t onto the subject.

See `property_animation_update_int16()`

See `PropertyAnimationAccessors`*/
pub type UInt32Setter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void, uint32: u32)>;
/** Function signature of a getter function to get the current property of type uint32_t of the
subject.

See `property_animation_create()`

See `PropertyAnimationAccessors`*/
pub type UInt32Getter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void) -> u32>;
/** Function signature of a setter function to set a property of type GPoint onto the subject.

See `property_animation_update_gpoint()`

See `PropertyAnimationAccessors`*/
pub type GPointSetter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void, gpoint: GPoint)>;
/** Function signature of a getter function to get the current property of type GPoint of the subject.

See `property_animation_create()`

See `PropertyAnimationAccessors`*/
pub type GPointGetter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void) -> GPointReturn>;
/** Function signature of a setter function to set a property of type GRect onto the subject.

See `property_animation_update_grect()`

See `PropertyAnimationAccessors`*/
pub type GRectSetter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void, grect: GRect)>;
/** Function signature of a getter function to get the current property of type GRect of the subject.

See `property_animation_create()`

See `PropertyAnimationAccessors`*/
pub type GRectGetter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void) -> GRectReturn>;
/** Function signature of a setter function to set a property of type GColor8 onto the subject.

See `property_animation_update_gcolor8()`

See `PropertyAnimationAccessors`*/
pub type GColor8Setter = ::core::option::Option<
	unsafe extern "C" fn(subject: *mut ::core::ffi::c_void, gcolor: GColor8),
>;
/** Function signature of a getter function to get the current property of type GColor8 of the
subject.

See `property_animation_create()`

See `PropertyAnimationAccessors`*/
pub type GColor8Getter =
	::core::option::Option<unsafe extern "C" fn(subject: *mut ::core::ffi::c_void) -> GColor8>;
/** A ProperyAnimation animates the value of a "property" of a "subject" over time.

### Animating a Layer's frame property
Currently there is only one specific type of property animation offered off-the-shelf, namely
one to change the frame (property) of a layer (subject), see ``
property_animation_create_layer_frame().

### Implementing a custom PropertyAnimation
It is fairly simple to create your own variant of a PropertyAnimation.

Please refer to *UiFramework* (chapter "Property Animations") for a conceptual
overview of the animation framework and make sure you understand the underlying `Animation`,
in case you are not familiar with it, before trying to implement a variation on
PropertyAnimation.

To implement a custom property animation, use `property_animation_create()` and provide a
function pointers to the accessors (getter and setter) and setup, update and teardown callbacks
in the implementation argument. Note that the type of property to animate with ``
PropertyAnimation is limited to int16_t, GPoint or GRect.

For each of these types, there are implementations provided for the necessary `.update` handler
of the animation: see `property_animation_update_int16()`, ``
property_animation_update_gpoint() and `property_animation_update_grect()`.
These update functions expect the `.accessors` to conform to the following interface:
Any getter needs to have the following function signature: `__type__ getter(void *subject);`
Any setter needs to have to following function signature: `void setter(void *subject,
__type__ value);`
See `Int16Getter`, `Int16Setter`, `GPointGetter`, `GPointSetter`,
`GRectGetter`, `GRectSetter` for the typedefs that accompany the update fuctions.

```c
static const PropertyAnimationImplementation my_implementation = {
  .base = {
	// using the "stock" update callback:
	.update = (AnimationUpdateImplementation) property_animation_update_gpoint,
  },
  .accessors = {
	// my accessors that get/set a GPoint from/onto my subject:
	.setter = { .gpoint = my_layer_set_corner_point, },
	.getter = { .gpoint = (const GPointGetter) my_layer_get_corner_point, },
  },
};
static PropertyAnimation* s_my_animation_ptr = NULL;
static GPoint s_to_point = GPointZero;
...
// Use NULL as 'from' value, this will make the animation framework call the getter
// to get the current value of the property and use that as the 'from' value:
s_my_animation_ptr = property_animation_create(&my_implementation, my_layer, NULL, &s_to_point);
animation_schedule(property_animation_get_animation(s_my_animation_ptr));
```*/
#[repr(C)]
#[derive(Copy, Clone)]
pub struct PropertyAnimationAccessors {
	pub setter: PropertyAnimationAccessors__bindgen_ty_1,
	pub getter: PropertyAnimationAccessors__bindgen_ty_2,
}
/** Function pointer to the implementation of the function that __sets__ the updated property
value. This function will be called repeatedly for each animation frame.

See PropertyAnimationAccessors*/
#[repr(C)]
#[derive(Copy, Clone)]
pub union PropertyAnimationAccessors__bindgen_ty_1 {
	/// Use if the property to animate is of int16_t type
	pub int16:   Int16Setter,
	/// Use if the property to animate is of GPoint type
	pub gpoint:  GPointSetter,
	/// Use if the property to animate is of GRect type
	pub grect:   GRectSetter,
	/// Use if the property to animate is of GColor8 type
	pub gcolor8: GColor8Setter,
	/// Use if the property to animate is of uint32_t type
	pub uint32:  UInt32Setter,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of PropertyAnimationAccessors__bindgen_ty_1"]
		[::core::mem::size_of::<PropertyAnimationAccessors__bindgen_ty_1>() - 4usize];
	["Alignment of PropertyAnimationAccessors__bindgen_ty_1"]
		[::core::mem::align_of::<PropertyAnimationAccessors__bindgen_ty_1>() - 4usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_1::int16"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_1, int16) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_1::gpoint"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_1, gpoint) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_1::grect"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_1, grect) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_1::gcolor8"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_1, gcolor8) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_1::uint32"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_1, uint32) - 0usize];
};
/** Function pointer to the implementation of the function that __gets__ the current property
value. This function will be called during `property_animation_create()`, to get the current
property value, in case the `from_value` or `to_value` argument is `NULL`.

See PropertyAnimationAccessors*/
#[repr(C)]
#[derive(Copy, Clone)]
pub union PropertyAnimationAccessors__bindgen_ty_2 {
	/// Use if the property to animate is of int16_t type
	pub int16:   Int16Getter,
	/// Use if the property to animate is of GPoint type
	pub gpoint:  GPointGetter,
	/// Use if the property to animate is of GRect type
	pub grect:   GRectGetter,
	/// Use if the property to animate is of GColor8 type
	pub gcolor8: GColor8Getter,
	/// Use if the property to animate is of uint32_t type
	pub uint32:  UInt32Getter,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of PropertyAnimationAccessors__bindgen_ty_2"]
		[::core::mem::size_of::<PropertyAnimationAccessors__bindgen_ty_2>() - 4usize];
	["Alignment of PropertyAnimationAccessors__bindgen_ty_2"]
		[::core::mem::align_of::<PropertyAnimationAccessors__bindgen_ty_2>() - 4usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_2::int16"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_2, int16) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_2::gpoint"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_2, gpoint) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_2::grect"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_2, grect) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_2::gcolor8"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_2, gcolor8) - 0usize];
	["Offset of field: PropertyAnimationAccessors__bindgen_ty_2::uint32"]
		[::core::mem::offset_of!(PropertyAnimationAccessors__bindgen_ty_2, uint32) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of PropertyAnimationAccessors"]
		[::core::mem::size_of::<PropertyAnimationAccessors>() - 8usize];
	["Alignment of PropertyAnimationAccessors"]
		[::core::mem::align_of::<PropertyAnimationAccessors>() - 4usize];
	["Offset of field: PropertyAnimationAccessors::setter"]
		[::core::mem::offset_of!(PropertyAnimationAccessors, setter) - 0usize];
	["Offset of field: PropertyAnimationAccessors::getter"]
		[::core::mem::offset_of!(PropertyAnimationAccessors, getter) - 4usize];
};
/** Data structure containing a collection of function pointers that form the implementation of the
property animation.
See the code example at the top (`PropertyAnimation`).*/
#[repr(C)]
#[derive(Copy, Clone)]
pub struct PropertyAnimationImplementation {
	/// The "inherited" fields from the Animation "base class".
	pub base:      AnimationImplementation,
	/// The accessors to set/get the property to be animated.
	pub accessors: PropertyAnimationAccessors,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of PropertyAnimationImplementation"]
		[::core::mem::size_of::<PropertyAnimationImplementation>() - 20usize];
	["Alignment of PropertyAnimationImplementation"]
		[::core::mem::align_of::<PropertyAnimationImplementation>() - 4usize];
	["Offset of field: PropertyAnimationImplementation::base"]
		[::core::mem::offset_of!(PropertyAnimationImplementation, base) - 0usize];
	["Offset of field: PropertyAnimationImplementation::accessors"]
		[::core::mem::offset_of!(PropertyAnimationImplementation, accessors) - 12usize];
};
/** Convenience function to retrieve an animation instance from a property animation instance

 * `property_animation`: The property animation

 Returns The `Animation` within this PropertyAnimation*/
/** property_animation_get_animation
  -> Added in 32
gneiss: Vtable Slot 400, Offset 1600*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_get_animation")]
pub unsafe extern "C" fn property_animation_get_animation(
	property_animation: *mut PropertyAnimation,
) -> *mut Animation {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1600", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Helper function used by the property_animation_get|set_subject macros

 * `property_animation`: Handle to the property animation
 * `subject`: The subject to get or set.
 * `set`: true to set new subject, false to retrieve existing value

 Returns true if successful, false on failure (usually a bad animation_h)*/
/** property_animation_subject
  -> Added in 32
gneiss: Vtable Slot 401, Offset 1604*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_subject")]
pub unsafe extern "C" fn property_animation_subject(
	property_animation: *mut PropertyAnimation,
	subject: *mut *mut ::core::ffi::c_void,
	set: bool,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1604", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Helper function used by the property_animation_get|set_from_.* macros

 * `property_animation`: Handle to the property animation
 * `from`: Pointer to the value
 * `size`: Size of the from value
 * `set`: true to set new value, false to retrieve existing one

 Returns true if successful, false on failure (usually a bad animation_h)*/
/** property_animation_from
  -> Added in 32
gneiss: Vtable Slot 399, Offset 1596*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_from")]
pub unsafe extern "C" fn property_animation_from(
	property_animation: *mut PropertyAnimation,
	from: *mut ::core::ffi::c_void,
	size: usize,
	set: bool,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1596", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Helper function used by the property_animation_get|set_to_.* macros

 * `property_animation`: handle to the property animation
 * `to`: Pointer to the value
 * `size`: Size of the to value
 * `set`: true to set new value, false to retrieve existing one

 Returns true if successful, false on failure (usually a bad animation_h)*/
/** property_animation_to
  -> Added in 32
gneiss: Vtable Slot 402, Offset 1608*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.property_animation_to")]
pub unsafe extern "C" fn property_animation_to(
	property_animation: *mut PropertyAnimation,
	to: *mut ::core::ffi::c_void,
	size: usize,
	set: bool,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1608", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Handler that will be called just before the unobstructed area will begin changing

* `final_unobstructed_screen_area`: The final unobstructed screen area after
the unobstructed area has finished changing.

* `context`: A user-provided context.*/
pub type UnobstructedAreaWillChangeHandler = ::core::option::Option<
	unsafe extern "C" fn(final_unobstructed_screen_area: GRect, context: *mut ::core::ffi::c_void),
>;
/** Handler that will be called every time the unobstructed area changes

* `progress`: The progress of the animation changing the unobstructed area.
* `context`: A user-provided context.*/
pub type UnobstructedAreaChangeHandler = ::core::option::Option<
	unsafe extern "C" fn(progress: AnimationProgress, context: *mut ::core::ffi::c_void),
>;
/** Handler that will be called after the unobstructed area has finished changing

* `context`: A user-provided context.*/
pub type UnobstructedAreaDidChangeHandler =
	::core::option::Option<unsafe extern "C" fn(context: *mut ::core::ffi::c_void)>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct UnobstructedAreaHandlers {
	/// Handler that will be called just before the unobstructed area will begin changing.
	pub will_change: UnobstructedAreaWillChangeHandler,
	/// Handler that will be called every time the unobstructed area changes.
	pub change:      UnobstructedAreaChangeHandler,
	/// Handler that will be called after the unobstructed area has finished changing.
	pub did_change:  UnobstructedAreaDidChangeHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of UnobstructedAreaHandlers"]
		[::core::mem::size_of::<UnobstructedAreaHandlers>() - 12usize];
	["Alignment of UnobstructedAreaHandlers"]
		[::core::mem::align_of::<UnobstructedAreaHandlers>() - 4usize];
	["Offset of field: UnobstructedAreaHandlers::will_change"]
		[::core::mem::offset_of!(UnobstructedAreaHandlers, will_change) - 0usize];
	["Offset of field: UnobstructedAreaHandlers::change"]
		[::core::mem::offset_of!(UnobstructedAreaHandlers, change) - 4usize];
	["Offset of field: UnobstructedAreaHandlers::did_change"]
		[::core::mem::offset_of!(UnobstructedAreaHandlers, did_change) - 8usize];
};
/** Subscribe to be notified when the app's unobstructed area changes. When an unobstructed area
 begins changing, the `will_change` handler will be called, and every `will_change` call is
 always paired with a `did_change` call that occurs when it is done changing given that
 the `will_change` and `did_change` handlers are set. When subscribing while the unobstructed
 area is changing, the `will_change` handler will be called after subscription in the next event
 loop.

 * `handlers`: The handlers that should be called when the unobstructed area changes.
 * `context`: A user-provided context that will be passed to the callback handlers.

 See layer_get_unobstructed_bounds*/
/** unobstructed_area_service_subscribe
  -> Added in 83
gneiss: Vtable Slot 624, Offset 2496*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.unobstructed_area_service_subscribe")]
pub unsafe extern "C" fn unobstructed_area_service_subscribe(
	handlers: UnobstructedAreaHandlers,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2496", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Unsubscribe from notifications about changes to the app's unobstructed area.
/** unobstructed_area_service_unsubscribe
  -> Added in 83
gneiss: Vtable Slot 625, Offset 2500*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.unobstructed_area_service_unsubscribe")]
pub unsafe extern "C" fn unobstructed_area_service_unsubscribe() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2500", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Layer that displays and formats a text string.

The geometric information (bounds, frame) of the Layer
is used as the "box" in which the text is drawn. The `TextLayer` also has a number of
other properties that influence how the text is drawn. Most important of these properties are:
a pointer to the string to draw itself, the font, the text color, the background color of the
layer, the overflow mode and alignment of the text inside the layer.

See Layer

See TextDrawing

See Fonts*/
#[repr(C)]
#[derive(Debug)]
pub struct TextLayer {
	_unused: [u8; 0],
}
/** Creates a new TextLayer on the heap and initializes it with the default values.

 * Font: Raster Gothic 14-point Boldface (system font)
 * Text Alignment: `GTextAlignmentLeft`
 * Text color: `GColorBlack`
 * Background color: `GColorWhite`
 * Clips: `true`
 * Hidden: `false`
 * Caching: `false`

 The text layer is automatically marked dirty after this operation.

 * `frame`: The frame with which to initialze the TextLayer

 Returns A pointer to the TextLayer. `NULL` if the TextLayer could not
 be created*/
/** text_layer_create
  -> Added in 47
gneiss: Vtable Slot 462, Offset 1848*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_create")]
pub unsafe extern "C" fn text_layer_create(frame: GRect) -> *mut TextLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1848", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a TextLayer previously created by text_layer_create.
/** text_layer_destroy
  -> Added in 47
gneiss: Vtable Slot 463, Offset 1852*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_destroy")]
pub unsafe extern "C" fn text_layer_destroy(text_layer: *mut TextLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1852", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the text layer, which is the parent for the sub-
 layers used for its implementation.

 * `text_layer`: Pointer to the TextLayer for which to get the "root" Layer

 Returns The "root" Layer of the text layer.*/
/** text_layer_get_layer
  -> Added in 47
gneiss: Vtable Slot 465, Offset 1860*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_get_layer")]
pub unsafe extern "C" fn text_layer_get_layer(text_layer: *mut TextLayer) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1860", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the pointer to the string where the TextLayer is supposed to find the text
 at a later point in time, when it needs to draw itself.

 * `text_layer`: The TextLayer of which to set the text
 * `text`: The new text to set onto the TextLayer. This must be a null-terminated and valid UTF-8 string!

 Note: The string is not copied, so its buffer most likely cannot be stack allocated,
 but is recommended to be a buffer that is long-lived, at least as long as the TextLayer
 is part of a visible Layer hierarchy.

 See text_layer_get_text*/
/** text_layer_set_text
  -> Added in 47
gneiss: Vtable Slot 471, Offset 1884*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_text")]
pub unsafe extern "C" fn text_layer_set_text(
	text_layer: *mut TextLayer,
	text: *const ::core::ffi::c_char,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1884", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the pointer to the string that the TextLayer is using.

 * `text_layer`: The TextLayer for which to get the text

 See text_layer_set_text*/
/** text_layer_get_text
  -> Added in 47
gneiss: Vtable Slot 466, Offset 1864*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_get_text")]
pub unsafe extern "C" fn text_layer_get_text(
	text_layer: *mut TextLayer,
) -> *const ::core::ffi::c_char {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1864", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the background color of the bounding box that will be drawn behind the text

 * `text_layer`: The TextLayer of which to set the background color
 * `color`: The new `GColor` to set the background to

 See text_layer_set_text_color*/
/** text_layer_set_background_color
  -> Added in 47
gneiss: Vtable Slot 467, Offset 1868*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_background_color")]
pub unsafe extern "C" fn text_layer_set_background_color(
	text_layer: *mut TextLayer,
	color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1868", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the color of text that will be drawn

 * `text_layer`: The TextLayer of which to set the text color
 * `color`: The new `GColor` to set the text color to

 See text_layer_set_background_color*/
/** text_layer_set_text_color
  -> Added in 47
gneiss: Vtable Slot 473, Offset 1892*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_text_color")]
pub unsafe extern "C" fn text_layer_set_text_color(text_layer: *mut TextLayer, color: GColor) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1892", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the line break mode of the TextLayer

 * `text_layer`: The TextLayer of which to set the overflow mode
 * `line_mode`: The new `GTextOverflowMode` to set*/
/** text_layer_set_overflow_mode
  -> Added in 47
gneiss: Vtable Slot 469, Offset 1876*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_overflow_mode")]
pub unsafe extern "C" fn text_layer_set_overflow_mode(
	text_layer: *mut TextLayer,
	line_mode: GTextOverflowMode,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1876", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the font of the TextLayer

 * `text_layer`: The TextLayer of which to set the font
 * `font`: The new `GFont` for the TextLayer

 See fonts_get_system_font

 See fonts_load_custom_font*/
/** text_layer_set_font
  -> Added in 47
gneiss: Vtable Slot 468, Offset 1872*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_font")]
pub unsafe extern "C" fn text_layer_set_font(text_layer: *mut TextLayer, font: GFont) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1872", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the alignment of the TextLayer

 * `text_layer`: The TextLayer of which to set the alignment
 * `text_alignment`: The new text alignment for the TextLayer

 See GTextAlignment*/
/** text_layer_set_text_alignment
  -> Added in 47
gneiss: Vtable Slot 472, Offset 1888*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_text_alignment")]
pub unsafe extern "C" fn text_layer_set_text_alignment(
	text_layer: *mut TextLayer,
	text_alignment: GTextAlignment,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1888", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enables text flow following the boundaries of the screen and pagination that introduces
 extra line spacing at page breaks to avoid partially clipped lines for the TextLayer.
 If the TextLayer is part of a `ScrollLayer` the ScrollLayer's frame will be used to
 configure paging.

 Note: Make sure the TextLayer is part of the view hierarchy before calling this function.
 Otherwise it has no effect.

 * `text_layer`: The TextLayer for which to enable text flow and paging
 * `inset`: Additional amount of pixels to inset to the inside of the screen for text flow

 See text_layer_restore_default_text_flow_and_paging

 See graphics_text_attributes_enable_screen_text_flow

 See graphics_text_attributes_enable_paging*/
/** text_layer_enable_screen_text_flow_and_paging
  -> Added in 75
gneiss: Vtable Slot 596, Offset 2384*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_enable_screen_text_flow_and_paging")]
pub unsafe extern "C" fn text_layer_enable_screen_text_flow_and_paging(
	text_layer: *mut TextLayer,
	inset: u8,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2384", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Restores text flow and paging for the TextLayer to the rectangular defaults.

 * `text_layer`: The TextLayer for which to restore text flow and paging

 See text_layer_enable_screen_text_flow_and_paging

 See graphics_text_attributes_restore_default_text_flow

 See graphics_text_attributes_restore_default_paging*/
/** text_layer_restore_default_text_flow_and_paging
  -> Added in 75
gneiss: Vtable Slot 597, Offset 2388*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_restore_default_text_flow_and_paging")]
pub unsafe extern "C" fn text_layer_restore_default_text_flow_and_paging(
	text_layer: *mut TextLayer,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2388", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Calculates the size occupied by the current text of the TextLayer

 * `text_layer`: the TextLayer for which to calculate the text's size

 Returns The size occupied by the current text of the TextLayer*/
/** text_layer_get_content_size
  -> Added in 47
gneiss: Vtable Slot 464, Offset 1856*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_get_content_size")]
pub unsafe extern "C" fn text_layer_get_content_size(text_layer: *mut TextLayer) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1856", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Update the size of the text layer
 This is a convenience function to update the frame of the TextLayer.

 * `text_layer`: The TextLayer of which to set the size
 * `max_size`: The new size for the TextLayer*/
/** text_layer_set_size
  -> Added in 47
gneiss: Vtable Slot 470, Offset 1880*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.text_layer_set_size")]
pub unsafe extern "C" fn text_layer_set_size(text_layer: *mut TextLayer, max_size: GSize) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1880", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Layer that scrolls its contents, animated.

### Key Points
* Facilitates vertical scrolling of a layer sub-hierarchy zero or more
arbitrary layers. The example image shows a scroll layer containing one
large TextLayer.
* Shadows to indicate that there is more content are automatically drawn
on top of the content. When the end of the scroll layer is reached, the
shadow will automatically be retracted.
* Scrolling from one offset to another is animated implicitly by default.
* The scroll layer contains a "content" sub-layer, which is the layer that
is actually moved up an down. Any layer that is a child of this "content"
sub-layer, will be moved as well. Effectively, an entire layout of layers
can be scrolled this way. Use the convenience function
`scroll_layer_add_child()` to add child layers to the "content" sub-layer.
* The scroll layer needs to be informed of the total size of the contents,
in order to calculate from and to what point it should be able to scroll.
Use `scroll_layer_set_content_size()` to set the size of the contents.
* The button behavior is set up, using the convenience function
`scroll_layer_set_click_config_onto_window()`. This will associate the
UP and DOWN buttons with scrolling up and down.
* The SELECT button can be configured by installing a click configuration
provider using `scroll_layer_set_callbacks()`.
* To scroll programatically to a certain offset, use
`scroll_layer_set_content_offset()`.
* It is possible to get called back for each scrolling increment, by
installing the `.content_offset_changed_handler` callback using
`scroll_layer_set_callbacks()`.
* Only vertical scrolling is supported at the moment.*/
#[repr(C)]
#[derive(Debug)]
pub struct ScrollLayer {
	_unused: [u8; 0],
}
/// Function signature for the `.content_offset_changed_handler` callback.
pub type ScrollLayerCallback = ::core::option::Option<
	unsafe extern "C" fn(scroll_layer: *mut ScrollLayer, context: *mut ::core::ffi::c_void),
>;
/** All the callbacks that the ScrollLayer exposes for use by applications.

Note: The context parameter can be set using scroll_layer_set_context() and
gets passed in as context with all of these callbacks.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ScrollLayerCallbacks {
	/** Provider function to set up the SELECT button handlers. This will be
	called after the scroll layer has configured the click configurations for
	the up/down buttons, so it can also be used to modify the default up/down
	scrolling behavior.*/
	pub click_config_provider:          ClickConfigProvider,
	/** Called every time the the content offset changes. During a scrolling
	animation, it will be called for each intermediary offset as well*/
	pub content_offset_changed_handler: ScrollLayerCallback,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ScrollLayerCallbacks"][::core::mem::size_of::<ScrollLayerCallbacks>() - 8usize];
	["Alignment of ScrollLayerCallbacks"][::core::mem::align_of::<ScrollLayerCallbacks>() - 4usize];
	["Offset of field: ScrollLayerCallbacks::click_config_provider"]
		[::core::mem::offset_of!(ScrollLayerCallbacks, click_config_provider) - 0usize];
	["Offset of field: ScrollLayerCallbacks::content_offset_changed_handler"]
		[::core::mem::offset_of!(ScrollLayerCallbacks, content_offset_changed_handler) - 4usize];
};
/** Creates a new ScrollLayer on the heap and initalizes it with the default values:
 * Clips: `true`
 * Hidden: `false`
 * Content size: `frame.size`
 * Content offset: `GPointZero`
 * Callbacks: None (`NULL` for each one)
 * Callback context: `NULL`

 Returns A pointer to the ScrollLayer. `NULL` if the ScrollLayer could not
 be created*/
/** scroll_layer_create
  -> Added in 0
gneiss: Vtable Slot 218, Offset 872*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_create")]
pub unsafe extern "C" fn scroll_layer_create(frame: GRect) -> *mut ScrollLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =872", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a ScrollLayer previously created by scroll_layer_create.
/** scroll_layer_destroy
  -> Added in 0
gneiss: Vtable Slot 219, Offset 876*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_destroy")]
pub unsafe extern "C" fn scroll_layer_destroy(scroll_layer: *mut ScrollLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =876", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the scroll layer, which is the parent for the sub-
 layers used for its implementation.

 * `scroll_layer`: Pointer to the ScrollLayer for which to get the "root" Layer

 Returns The "root" Layer of the scroll layer.*/
/** scroll_layer_get_layer
  -> Added in 0
gneiss: Vtable Slot 222, Offset 888*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_layer")]
pub unsafe extern "C" fn scroll_layer_get_layer(scroll_layer: *const ScrollLayer) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =888", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds the child layer to the content sub-layer of the ScrollLayer.
 This will make the child layer part of the scrollable contents.
 The content sub-layer of the ScrollLayer will become the parent of the
 child layer.

 * `scroll_layer`: The ScrollLayer to which to add the child layer.
 * `child`: The Layer to add to the content sub-layer of the ScrollLayer.

 Note: You may need to update the size of the scrollable contents using
 `scroll_layer_set_content_size()`.*/
/** scroll_layer_add_child
  -> Added in 0
gneiss: Vtable Slot 217, Offset 868*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_add_child")]
pub unsafe extern "C" fn scroll_layer_add_child(scroll_layer: *mut ScrollLayer, child: *mut Layer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =868", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function to set the `ClickConfigProvider` callback on the
 given window to scroll layer's internal click config provider. This internal
 click configuration provider, will set up the default UP & DOWN
 scrolling behavior.
 This function calls `window_set_click_config_provider_with_context` to
 accomplish this.

 If you application has set a `.click_config_provider`
 callback using `scroll_layer_set_callbacks()`, this will be called
 by the internal click config provider, after configuring the UP & DOWN
 buttons. This allows your application to configure the SELECT button
 behavior and optionally override the UP & DOWN
 button behavior. The callback context for the SELECT click recognizer is
 automatically set to the scroll layer's context (see
 `scroll_layer_set_context()` ). This context is passed into
 `ClickHandler` callbacks. For the UP and DOWN buttons, the scroll layer
 itself is passed in by default as the callback context in order to deal with
 those buttons presses to scroll up and down automatically.

 * `scroll_layer`: The ScrollLayer that needs to receive click events.
 * `window`: The window for which to set the click configuration.

 See `Clicks`

 See window_set_click_config_provider_with_context*/
/** scroll_layer_set_click_config_onto_window
  -> Added in 0
gneiss: Vtable Slot 227, Offset 908*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_click_config_onto_window")]
pub unsafe extern "C" fn scroll_layer_set_click_config_onto_window(
	scroll_layer: *mut ScrollLayer,
	window: *mut Window,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =908", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the callbacks that the scroll layer exposes.
 The `context` as set by `scroll_layer_set_context()` is passed into each
 of the callbacks. See `ScrollLayerCallbacks` for the different callbacks.

 Note: If the `context` is NULL, a pointer to scroll_layer is used
 as context parameter instead when calling callbacks.

 * `scroll_layer`: The ScrollLayer for which to assign new callbacks.
 * `callbacks`: The new callbacks.*/
/** scroll_layer_set_callbacks
  -> Added in 0
gneiss: Vtable Slot 226, Offset 904*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_callbacks")]
pub unsafe extern "C" fn scroll_layer_set_callbacks(
	scroll_layer: *mut ScrollLayer,
	callbacks: ScrollLayerCallbacks,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =904", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets a new callback context. This context is passed into the scroll layer's
 callbacks and also the `ClickHandler` for the SELECT button.
 If `NULL` or not set, the context defaults to a pointer to the ScrollLayer
 itself.

 * `scroll_layer`: The ScrollLayer for which to assign the new callback
 context.

 * `context`: The new callback context.

 See scroll_layer_set_click_config_onto_window

 See scroll_layer_set_callbacks*/
/** scroll_layer_set_context
  -> Added in 0
gneiss: Vtable Slot 230, Offset 920*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_context")]
pub unsafe extern "C" fn scroll_layer_set_context(
	scroll_layer: *mut ScrollLayer,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =920", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Scrolls to the given offset, optionally animated.

 Note: When scrolling down, the offset's `.y` decrements. When scrolling up,
 the offset's `.y` increments. If scrolled completely to the top, the offset
 is `GPointZero`.

 Note: The `.x` field must be `0`. Horizontal scrolling is not supported.

 * `scroll_layer`: The ScrollLayer for which to set the content offset
 * `offset`: The final content offset
 * `animated`: Pass in `true` to animate to the new content offset, or
 `false` to set the new content offset without animating.

 See scroll_layer_get_content_offset*/
/** scroll_layer_set_content_offset
  -> Added in 0
gneiss: Vtable Slot 228, Offset 912*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_content_offset")]
pub unsafe extern "C" fn scroll_layer_set_content_offset(
	scroll_layer: *mut ScrollLayer,
	offset: GPoint,
	animated: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =912", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the point by which the contents are offset.

 * `scroll_layer`: The ScrollLayer for which to get the content offset

 See scroll_layer_set_content_offset*/
/** scroll_layer_get_content_offset
  -> Added in 0
gneiss: Vtable Slot 220, Offset 880*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_content_offset")]
pub unsafe extern "C" fn scroll_layer_get_content_offset(scroll_layer: *mut ScrollLayer) -> GPoint {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =880", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the size of the contents layer. This determines the area that is
 scrollable. At the moment, this needs to be set "manually" and is not
 derived from the geometry of the contents layers.

 * `scroll_layer`: The ScrollLayer for which to set the content size.
 * `size`: The new content size.

 See scroll_layer_get_content_size*/
/** scroll_layer_set_content_size
  -> Added in 0
gneiss: Vtable Slot 229, Offset 916*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_content_size")]
pub unsafe extern "C" fn scroll_layer_set_content_size(
	scroll_layer: *mut ScrollLayer,
	size: GSize,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =916", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the size of the contents layer.

 * `scroll_layer`: The ScrollLayer for which to get the content size

 See scroll_layer_set_content_size*/
/** scroll_layer_get_content_size
  -> Added in 0
gneiss: Vtable Slot 221, Offset 884*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_content_size")]
pub unsafe extern "C" fn scroll_layer_get_content_size(scroll_layer: *const ScrollLayer) -> GSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =884", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the frame of the scroll layer and adjusts the internal layers' geometry
 accordingly. The scroll layer is marked dirty automatically.

 * `scroll_layer`: The ScrollLayer for which to set the frame
 * `frame`: The new frame*/
/** scroll_layer_set_frame
  -> Added in 0
gneiss: Vtable Slot 231, Offset 924*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_frame")]
pub unsafe extern "C" fn scroll_layer_set_frame(scroll_layer: *mut ScrollLayer, frame: GRect) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =924", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The click handlers for the UP button that the scroll layer will install as
 part of `scroll_layer_set_click_config_onto_window()`.

 Note: This handler is exposed, in case one wants to implement an alternative
 handler for the UP button, as a way to invoke the default behavior.

 * `recognizer`: The click recognizer for which the handler is called
 * `context`: A void pointer to the ScrollLayer that is the context of the click event*/
/** scroll_layer_scroll_up_click_handler
  -> Added in 0
gneiss: Vtable Slot 225, Offset 900*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_scroll_up_click_handler")]
pub unsafe extern "C" fn scroll_layer_scroll_up_click_handler(
	recognizer: ClickRecognizerRef,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =900", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** The click handlers for the DOWN button that the scroll layer will install as
 part of `scroll_layer_set_click_config_onto_window()`.

 Note: This handler is exposed, in case one wants to implement an alternative
 handler for the DOWN button, as a way to invoke the default behavior.

 * `recognizer`: The click recognizer for which the handler is called
 * `context`: A void pointer to the ScrollLayer that is the context of the click event*/
/** scroll_layer_scroll_down_click_handler
  -> Added in 0
gneiss: Vtable Slot 224, Offset 896*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_scroll_down_click_handler")]
pub unsafe extern "C" fn scroll_layer_scroll_down_click_handler(
	recognizer: ClickRecognizerRef,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =896", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the visibility of the scroll layer shadow.
 If the visibility has changed, `layer_mark_dirty()` will be called automatically
 on the scroll layer.

 * `scroll_layer`: The scroll layer for which to set the shadow visibility
 * `hidden`: Supply `true` to make the shadow hidden, or `false` to make it
 non-hidden.*/
/** scroll_layer_set_shadow_hidden
  -> Added in 0
gneiss: Vtable Slot 232, Offset 928*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_shadow_hidden")]
pub unsafe extern "C" fn scroll_layer_set_shadow_hidden(
	scroll_layer: *mut ScrollLayer,
	hidden: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =928", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the visibility of the scroll layer shadow.

 * `scroll_layer`: The scroll layer for which to get the visibility

 Returns True if the shadow is hidden, false if it is not hidden.*/
/** scroll_layer_get_shadow_hidden
  -> Added in 0
gneiss: Vtable Slot 223, Offset 892*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_shadow_hidden")]
pub unsafe extern "C" fn scroll_layer_get_shadow_hidden(scroll_layer: *const ScrollLayer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =892", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Enables or disables paging of the ScrollLayer (default: disabled). When enabled, every button
 press will change the scroll offset by the frame's height.

 * `scroll_layer`: The scroll layer for which to enable or disable paging
 * `paging_enabled`: True, if paging should be enabled. False to enable.*/
/** scroll_layer_set_paging
  -> Added in 75
gneiss: Vtable Slot 595, Offset 2380*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_set_paging")]
pub unsafe extern "C" fn scroll_layer_set_paging(
	scroll_layer: *mut ScrollLayer,
	paging_enabled: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2380", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Check whether or not the ScrollLayer uses paging when pressing buttons.

 * `scroll_layer`: The scroll layer for which to get the paging behavior.

 Returns True, if paging is enabled; false otherwise.*/
/** scroll_layer_get_paging
  -> Added in 75
gneiss: Vtable Slot 594, Offset 2376*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_paging")]
pub unsafe extern "C" fn scroll_layer_get_paging(scroll_layer: *mut ScrollLayer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2376", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug)]
pub struct ContentIndicator {
	_unused: [u8; 0],
}
/** Gets the ContentIndicator for a ScrollLayer.

 * `scroll_layer`: The ScrollLayer for which to get the ContentIndicator

 Returns A pointer to the ContentIndicator, or `NULL` upon failure.*/
/** scroll_layer_get_content_indicator
  -> Added in 71
gneiss: Vtable Slot 577, Offset 2308*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.scroll_layer_get_content_indicator")]
pub unsafe extern "C" fn scroll_layer_get_content_indicator(
	scroll_layer: *mut ScrollLayer,
) -> *mut ContentIndicator {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2308", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// < The up direction.
pub const ContentIndicatorDirection_ContentIndicatorDirectionUp: ContentIndicatorDirection = 0;
/// < The down direction.
pub const ContentIndicatorDirection_ContentIndicatorDirectionDown: ContentIndicatorDirection = 1;
/// < The number of supported directions.
pub const ContentIndicatorDirection_NumContentIndicatorDirections: ContentIndicatorDirection = 2;
/** Value to describe directions for `ContentIndicator`.

See `content_indicator_configure_direction`

See `content_indicator_set_content_available`*/
pub type ContentIndicatorDirection = ::core::ffi::c_uchar;
/** Struct used to configure directions for `ContentIndicator`.

See `content_indicator_configure_direction`*/
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ContentIndicatorConfig {
	/// < The layer where the arrow indicator will be rendered when content is available.
	pub layer:     *mut Layer,
	/// < Whether the display of the arrow indicator should timeout.
	pub times_out: bool,
	/// < The alignment of the arrow within the provided layer.
	pub alignment: GAlign,
	pub colors:    ContentIndicatorConfig__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ContentIndicatorConfig__bindgen_ty_1 {
	/// < The color of the arrow.
	pub foreground: GColor,
	/// < The color of the layer behind the arrow.
	pub background: GColor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ContentIndicatorConfig__bindgen_ty_1"]
		[::core::mem::size_of::<ContentIndicatorConfig__bindgen_ty_1>() - 2usize];
	["Alignment of ContentIndicatorConfig__bindgen_ty_1"]
		[::core::mem::align_of::<ContentIndicatorConfig__bindgen_ty_1>() - 1usize];
	["Offset of field: ContentIndicatorConfig__bindgen_ty_1::foreground"]
		[::core::mem::offset_of!(ContentIndicatorConfig__bindgen_ty_1, foreground) - 0usize];
	["Offset of field: ContentIndicatorConfig__bindgen_ty_1::background"]
		[::core::mem::offset_of!(ContentIndicatorConfig__bindgen_ty_1, background) - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ContentIndicatorConfig"][::core::mem::size_of::<ContentIndicatorConfig>() - 8usize];
	["Alignment of ContentIndicatorConfig"]
		[::core::mem::align_of::<ContentIndicatorConfig>() - 4usize];
	["Offset of field: ContentIndicatorConfig::layer"]
		[::core::mem::offset_of!(ContentIndicatorConfig, layer) - 0usize];
	["Offset of field: ContentIndicatorConfig::times_out"]
		[::core::mem::offset_of!(ContentIndicatorConfig, times_out) - 4usize];
	["Offset of field: ContentIndicatorConfig::alignment"]
		[::core::mem::offset_of!(ContentIndicatorConfig, alignment) - 5usize];
	["Offset of field: ContentIndicatorConfig::colors"]
		[::core::mem::offset_of!(ContentIndicatorConfig, colors) - 6usize];
};
/** Creates a ContentIndicator on the heap.

 Returns A pointer to the ContentIndicator. `NULL` if the ContentIndicator could not be created.*/
/** content_indicator_create
  -> Added in 71
gneiss: Vtable Slot 573, Offset 2292*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.content_indicator_create")]
pub unsafe extern "C" fn content_indicator_create() -> *mut ContentIndicator {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2292", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroys a ContentIndicator previously created using `content_indicator_create()`.

 * `content_indicator`: The ContentIndicator to destroy.*/
/** content_indicator_destroy
  -> Added in 71
gneiss: Vtable Slot 574, Offset 2296*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.content_indicator_destroy")]
pub unsafe extern "C" fn content_indicator_destroy(content_indicator: *mut ContentIndicator) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2296", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Configures a ContentIndicator for the given direction.

 * `content_indicator`: The ContentIndicator to configure.
 * `direction`: The direction for which to configure the ContentIndicator.
 * `config`: The configuration to use to configure the ContentIndicator. If NULL, the data
 for the specified direction will be reset.

 Returns True if the ContentIndicator was successfully configured for the given direction,
 false otherwise.*/
/** content_indicator_configure_direction
  -> Added in 71
gneiss: Vtable Slot 572, Offset 2288*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.content_indicator_configure_direction")]
pub unsafe extern "C" fn content_indicator_configure_direction(
	content_indicator: *mut ContentIndicator,
	direction: ContentIndicatorDirection,
	config: *const ContentIndicatorConfig,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2288", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Retrieves the availability status of content in the given direction.

 * `content_indicator`: The ContentIndicator for which to get the content availability.
 * `direction`: The direction for which to get the content availability.

 Returns True if content is available in the given direction, false otherwise.*/
/** content_indicator_get_content_available
  -> Added in 71
gneiss: Vtable Slot 575, Offset 2300*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.content_indicator_get_content_available")]
pub unsafe extern "C" fn content_indicator_get_content_available(
	content_indicator: *mut ContentIndicator,
	direction: ContentIndicatorDirection,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2300", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the availability status of content in the given direction.

 * `content_indicator`: The ContentIndicator for which to set the content availability.
 * `direction`: The direction for which to set the content availability.
 * `available`: Whether or not content is available.

 Note: If times_out is enabled, calling this function resets any previously scheduled timeout
 timer for the ContentIndicator.*/
/** content_indicator_set_content_available
  -> Added in 71
gneiss: Vtable Slot 576, Offset 2304*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.content_indicator_set_content_available")]
pub unsafe extern "C" fn content_indicator_set_content_available(
	content_indicator: *mut ContentIndicator,
	direction: ContentIndicatorDirection,
	available: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2304", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Section drawing function to draw a basic section cell with the title, subtitle, and icon of the
 section. Call this function inside the `.draw_row` callback implementation, see ``
 MenuLayerCallbacks. Note that if the size of `cell_layer` is too small to fit all of the cell
 items specified, not all of them may be drawn.

 * `ctx`: The destination graphics context
 * `cell_layer`: The layer of the cell to draw
 * `title`: If non-null, draws a title in larger text (24 points, bold
 Raster Gothic system font).

 * `subtitle`: If non-null, draws a subtitle in smaller text (18 points,
 Raster Gothic system font). If `NULL`, the title will be centered vertically
 inside the menu cell.

 * `icon`: If non-null, draws an icon to the left of the text. If `NULL`,
 the icon will be omitted and the leftover space is used for the title and
 subtitle.*/
/** menu_cell_basic_draw
  -> Added in 0
gneiss: Vtable Slot 165, Offset 660*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_cell_basic_draw")]
pub unsafe extern "C" fn menu_cell_basic_draw(
	ctx: *mut GContext,
	cell_layer: *const Layer,
	title: *const ::core::ffi::c_char,
	subtitle: *const ::core::ffi::c_char,
	icon: *mut GBitmap,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =660", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Cell drawing function to draw a basic menu cell layout with title, subtitle
 Cell drawing function to draw a menu cell layout with only one big title.
 Call this function inside the `.draw_row` callback implementation, see
 `MenuLayerCallbacks`.

 * `ctx`: The destination graphics context
 * `cell_layer`: The layer of the cell to draw
 * `title`: If non-null, draws a title in larger text (28 points, bold
 Raster Gothic system font).*/
/** menu_cell_title_draw
  -> Added in 0
gneiss: Vtable Slot 167, Offset 668*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_cell_title_draw")]
pub unsafe extern "C" fn menu_cell_title_draw(
	ctx: *mut GContext,
	cell_layer: *const Layer,
	title: *const ::core::ffi::c_char,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =668", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Section header drawing function to draw a basic section header cell layout
 with the title of the section.
 Call this function inside the `.draw_header` callback implementation, see
 `MenuLayerCallbacks`.

 * `ctx`: The destination graphics context
 * `cell_layer`: The layer of the cell to draw
 * `title`: If non-null, draws the title in small text (14 points, bold
 Raster Gothic system font).*/
/** menu_cell_basic_header_draw
  -> Added in 0
gneiss: Vtable Slot 166, Offset 664*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_cell_basic_header_draw")]
pub unsafe extern "C" fn menu_cell_basic_header_draw(
	ctx: *mut GContext,
	cell_layer: *const Layer,
	title: *const ::core::ffi::c_char,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =664", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Data structure to represent an menu item's position in a menu, by specifying
the section index and the row index within that section.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MenuIndex {
	/// The index of the section
	pub section: u16,
	/// The index of the row within the section with index `.section`
	pub row:     u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of MenuIndex"][::core::mem::size_of::<MenuIndex>() - 4usize];
	["Alignment of MenuIndex"][::core::mem::align_of::<MenuIndex>() - 2usize];
	["Offset of field: MenuIndex::section"][::core::mem::offset_of!(MenuIndex, section) - 0usize];
	["Offset of field: MenuIndex::row"][::core::mem::offset_of!(MenuIndex, row) - 2usize];
};
/** Comparator function to determine the order of two MenuIndex values.

 * `a`: Pointer to the menu index of the first item
 * `b`: Pointer to the menu index of the second item

 Returns 0 if A and B are equal, 1 if A has a higher section & row
 combination than B or else -1*/
/** menu_index_compare
  -> Added in 0
gneiss: Vtable Slot 168, Offset 672*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_index_compare")]
pub unsafe extern "C" fn menu_index_compare(a: *const MenuIndex, b: *const MenuIndex) -> i16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =672", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MenuCellSpan {
	pub y:     i16,
	pub h:     i16,
	pub sep:   i16,
	pub index: MenuIndex,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of MenuCellSpan"][::core::mem::size_of::<MenuCellSpan>() - 10usize];
	["Alignment of MenuCellSpan"][::core::mem::align_of::<MenuCellSpan>() - 2usize];
	["Offset of field: MenuCellSpan::y"][::core::mem::offset_of!(MenuCellSpan, y) - 0usize];
	["Offset of field: MenuCellSpan::h"][::core::mem::offset_of!(MenuCellSpan, h) - 2usize];
	["Offset of field: MenuCellSpan::sep"][::core::mem::offset_of!(MenuCellSpan, sep) - 4usize];
	["Offset of field: MenuCellSpan::index"][::core::mem::offset_of!(MenuCellSpan, index) - 6usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct MenuLayer {
	_unused: [u8; 0],
}
/** Function signature for the callback to get the number of sections in a menu.

* `menu_layer`: The `MenuLayer` for which the data is requested
* `callback_context`: The callback context

Returns The number of sections in the menu

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerGetNumberOfSectionsCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		callback_context: *mut ::core::ffi::c_void,
	) -> u16,
>;
/** Function signature for the callback to get the number of rows in a
given section in a menu.

* `menu_layer`: The `MenuLayer` for which the data is requested
* `section_index`: The index of the section of the menu for which the
number of items it contains is requested

* `callback_context`: The callback context

Returns The number of rows in the given section in the menu

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerGetNumberOfRowsInSectionsCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		section_index: u16,
		callback_context: *mut ::core::ffi::c_void,
	) -> u16,
>;
/** Function signature for the callback to get the height of the menu cell
at a given index.

* `menu_layer`: The `MenuLayer` for which the data is requested
* `cell_index`: The MenuIndex for which the cell height is requested
* `callback_context`: The callback context

Returns The height of the cell at the given MenuIndex

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerGetCellHeightCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		cell_index: *mut MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	) -> i16,
>;
/** Function signature for the callback to get the height of the section header
at a given section index.

* `menu_layer`: The `MenuLayer` for which the data is requested
* `section_index`: The index of the section for which the header height is
requested

* `callback_context`: The callback context

Returns The height of the section header at the given section index

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerGetHeaderHeightCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		section_index: u16,
		callback_context: *mut ::core::ffi::c_void,
	) -> i16,
>;
/** Function signature for the callback to get the height of the separator
at a given index.

* `menu_layer`: The `MenuLayer` for which the data is requested
* `cell_index`: The MenuIndex for which the cell height is requested
* `callback_context`: The callback context

Returns The height of the separator at the given MenuIndex

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerGetSeparatorHeightCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		cell_index: *mut MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	) -> i16,
>;
/** Function signature for the callback to render the menu cell at a given
MenuIndex.

* `ctx`: The destination graphics context to draw into
* `cell_layer`: The cell's layer, containing the geometry of the cell
* `cell_index`: The MenuIndex of the cell that needs to be drawn
* `callback_context`: The callback context

Note: The `cell_layer` argument is provided to make it easy to re-use an
`.update_proc` implementation in this callback. Only the bounds and frame
of the `cell_layer` are actually valid and other properties should be
ignored.

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerDrawRowCallback = ::core::option::Option<
	unsafe extern "C" fn(
		ctx: *mut GContext,
		cell_layer: *const Layer,
		cell_index: *mut MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback to render the section header at a given
section index.

* `ctx`: The destination graphics context to draw into
* `cell_layer`: The header cell's layer, containing the geometry of the
header cell

* `section_index`: The section index of the section header that needs to
be drawn

* `callback_context`: The callback context

Note: The `cell_layer` argument is provided to make it easy to re-use an
`.update_proc` implementation in this callback. Only the bounds and frame
of the `cell_layer` are actually valid and other properties should be
ignored.

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerDrawHeaderCallback = ::core::option::Option<
	unsafe extern "C" fn(
		ctx: *mut GContext,
		cell_layer: *const Layer,
		section_index: u16,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback to render the separator at a given
MenuIndex.

* `ctx`: The destination graphics context to draw into
* `cell_layer`: The cell's layer, containing the geometry of the cell
* `cell_index`: The MenuIndex of the separator that needs to be drawn
* `callback_context`: The callback context

Note: The `cell_layer` argument is provided to make it easy to re-use an
`.update_proc` implementation in this callback. Only the bounds and frame
of the `cell_layer` are actually valid and other properties should be
ignored.

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerDrawSeparatorCallback = ::core::option::Option<
	unsafe extern "C" fn(
		ctx: *mut GContext,
		cell_layer: *const Layer,
		cell_index: *mut MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback to handle the event that a user hits
the SELECT button.

* `menu_layer`: The `MenuLayer` for which the selection event occured
* `cell_index`: The MenuIndex of the cell that is selected
* `callback_context`: The callback context

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerSelectCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		cell_index: *mut MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback to handle a change in the current
selected item in the menu.

* `menu_layer`: The `MenuLayer` for which the selection event occured
* `new_index`: The MenuIndex of the new item that is selected now
* `old_index`: The MenuIndex of the old item that was selected before
* `callback_context`: The callback context

See `menu_layer_set_callbacks()`

See `MenuLayerCallbacks`*/
pub type MenuLayerSelectionChangedCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		new_index: MenuIndex,
		old_index: MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback which allows or changes selection behavior of the menu.
In order to change the cell that should be selected, modify the passed in new_index.
Preventing the selection from changing, new_index can be assigned the value of old_index.

* `menu_layer`: The `MenuLayer` for which the selection event that occured
* `new_index`: Pointer to the index that the MenuLayer is going to change selection to.
* `old_index`: The index that is being unselected.
* `callback_context`: The callback context

Note: `menu_layer_set_selected_index` will not trigger this callback when
the selection changes, but `menu_layer_set_selected_next` will.*/
pub type MenuLayerSelectionWillChangeCallback = ::core::option::Option<
	unsafe extern "C" fn(
		menu_layer: *mut MenuLayer,
		new_index: *mut MenuIndex,
		old_index: MenuIndex,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/** Function signature for the callback which draws the menu's background.
The background is underneath the cells of the menu, and is visible in the
padding below the bottom cell, or if a cell's background color is set to `GColorClear`.

* `ctx`: The destination graphics context to draw into.
* `bg_layer`: The background's layer, containing the geometry of the background.
* `highlight`: Whether this should be rendered as highlighted or not. Highlight style
should match the highlight style of cells, since this color can be used for animating selection.*/
pub type MenuLayerDrawBackgroundCallback = ::core::option::Option<
	unsafe extern "C" fn(
		ctx: *mut GContext,
		bg_layer: *const Layer,
		highlight: bool,
		callback_context: *mut ::core::ffi::c_void,
	),
>;
/// Data structure containing all the callbacks of a `MenuLayer`.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MenuLayerCallbacks {
	/** Callback that gets called to get the number of sections in the menu.
	This can get called at various moments throughout the life of a menu.

	Note: When `NULL`, the number of sections defaults to 1.*/
	pub get_num_sections:      MenuLayerGetNumberOfSectionsCallback,
	/** Callback that gets called to get the number of rows in a section. This
	can get called at various moments throughout the life of a menu.

	Note: Must be set to a valid callback; `NULL` causes undefined behavior.*/
	pub get_num_rows:          MenuLayerGetNumberOfRowsInSectionsCallback,
	/** Callback that gets called to get the height of a cell.
	This can get called at various moments throughout the life of a menu.

	Note: When `NULL`, the default height of `MENU_CELL_BASIC_CELL_HEIGHT` pixels is used.
	Developers may wish to use `MENU_CELL_ROUND_FOCUSED_SHORT_CELL_HEIGHT`
	and `MENU_CELL_ROUND_UNFOCUSED_SHORT_CELL_HEIGHT` on a round display
	to respect the system aesthetic.*/
	pub get_cell_height:       MenuLayerGetCellHeightCallback,
	/** Callback that gets called to get the height of a section header.
	This can get called at various moments throughout the life of a menu.

	Note: When `NULL`, the default height of 0 pixels is used. This disables
	section headers.*/
	pub get_header_height:     MenuLayerGetHeaderHeightCallback,
	/** Callback that gets called to render a menu item.
	This gets called for each menu item, every time it needs to be
	re-rendered.

	Note: Must be set to a valid callback; `NULL` causes undefined behavior.*/
	pub draw_row:              MenuLayerDrawRowCallback,
	/** Callback that gets called to render a section header.
	This gets called for each section header, every time it needs to be
	re-rendered.

	Note: Must be set to a valid callback, unless `.get_header_height` is
	`NULL`. Causes undefined behavior otherwise.*/
	pub draw_header:           MenuLayerDrawHeaderCallback,
	/** Callback that gets called when the user triggers a click with the SELECT
	button.

	Note: When `NULL`, click events for the SELECT button are ignored.*/
	pub select_click:          MenuLayerSelectCallback,
	/** Callback that gets called when the user triggers a long click with the
	SELECT button.

	Note: When `NULL`, long click events for the SELECT button are ignored.*/
	pub select_long_click:     MenuLayerSelectCallback,
	/** Callback that gets called whenever the selection changes.

	Note: When `NULL`, selection change events are ignored.*/
	pub selection_changed:     MenuLayerSelectionChangedCallback,
	/** Callback that gets called to get the height of a separator
	This can get called at various moments throughout the life of a menu.

	Note: When `NULL`, the default height of 0 is used.*/
	pub get_separator_height:  MenuLayerGetSeparatorHeightCallback,
	/** Callback that gets called to render a separator.
	This gets called for each separator, every time it needs to be
	re-rendered.

	Note: Must be set to a valid callback, unless `.get_separator_height` is
	`NULL`. Causes undefined behavior otherwise.*/
	pub draw_separator:        MenuLayerDrawSeparatorCallback,
	/** Callback that gets called before the selected cell changes.
	This gets called before the selected item in the MenuLayer is changed,
	and will allow for the selected cell to be overridden.
	This allows for skipping cells in the menu, locking selection onto a given item,*/
	pub selection_will_change: MenuLayerSelectionWillChangeCallback,
	/** Callback that gets called before any cells are drawn.
	This supports two states, either highlighted or not highlighted.
	If highlighted is specified, it is expected to be colored in the same
	style as the menu's cells are.
	If this callback is not specified, it will default to the colors set with
	`menu_layer_set_normal_colors` and `menu_layer_set_highlight_colors`.*/
	pub draw_background:       MenuLayerDrawBackgroundCallback,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of MenuLayerCallbacks"][::core::mem::size_of::<MenuLayerCallbacks>() - 52usize];
	["Alignment of MenuLayerCallbacks"][::core::mem::align_of::<MenuLayerCallbacks>() - 4usize];
	["Offset of field: MenuLayerCallbacks::get_num_sections"]
		[::core::mem::offset_of!(MenuLayerCallbacks, get_num_sections) - 0usize];
	["Offset of field: MenuLayerCallbacks::get_num_rows"]
		[::core::mem::offset_of!(MenuLayerCallbacks, get_num_rows) - 4usize];
	["Offset of field: MenuLayerCallbacks::get_cell_height"]
		[::core::mem::offset_of!(MenuLayerCallbacks, get_cell_height) - 8usize];
	["Offset of field: MenuLayerCallbacks::get_header_height"]
		[::core::mem::offset_of!(MenuLayerCallbacks, get_header_height) - 12usize];
	["Offset of field: MenuLayerCallbacks::draw_row"]
		[::core::mem::offset_of!(MenuLayerCallbacks, draw_row) - 16usize];
	["Offset of field: MenuLayerCallbacks::draw_header"]
		[::core::mem::offset_of!(MenuLayerCallbacks, draw_header) - 20usize];
	["Offset of field: MenuLayerCallbacks::select_click"]
		[::core::mem::offset_of!(MenuLayerCallbacks, select_click) - 24usize];
	["Offset of field: MenuLayerCallbacks::select_long_click"]
		[::core::mem::offset_of!(MenuLayerCallbacks, select_long_click) - 28usize];
	["Offset of field: MenuLayerCallbacks::selection_changed"]
		[::core::mem::offset_of!(MenuLayerCallbacks, selection_changed) - 32usize];
	["Offset of field: MenuLayerCallbacks::get_separator_height"]
		[::core::mem::offset_of!(MenuLayerCallbacks, get_separator_height) - 36usize];
	["Offset of field: MenuLayerCallbacks::draw_separator"]
		[::core::mem::offset_of!(MenuLayerCallbacks, draw_separator) - 40usize];
	["Offset of field: MenuLayerCallbacks::selection_will_change"]
		[::core::mem::offset_of!(MenuLayerCallbacks, selection_will_change) - 44usize];
	["Offset of field: MenuLayerCallbacks::draw_background"]
		[::core::mem::offset_of!(MenuLayerCallbacks, draw_background) - 48usize];
};
/** Creates a new `MenuLayer` on the heap and initalizes it with the default values.

 * Clips: `true`
 * Hidden: `false`
 * Content size: `frame.size`
 * Content offset: `GPointZero`
 * Callbacks: None (`NULL` for each one)
 * Callback context: `NULL`
 * After the relevant callbacks are called to populate the menu, the item at MenuIndex(0, 0)
 will be selected initially.

 Returns A pointer to the `MenuLayer`. `NULL` if the `MenuLayer` could not
 be created*/
/** menu_layer_create
  -> Added in 39
gneiss: Vtable Slot 439, Offset 1756*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_create")]
pub unsafe extern "C" fn menu_layer_create(frame: GRect) -> *mut MenuLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1756", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a `MenuLayer` previously created by menu_layer_create.
/** menu_layer_destroy
  -> Added in 0
gneiss: Vtable Slot 170, Offset 680*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_destroy")]
pub unsafe extern "C" fn menu_layer_destroy(menu_layer: *mut MenuLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =680", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the `MenuLayer`, which is the parent for the sub-
 layers used for its implementation.

 * `menu_layer`: Pointer to the MenuLayer for which to get the "root" Layer

 Returns The "root" Layer of the `MenuLayer`.*/
/** menu_layer_get_layer
  -> Added in 0
gneiss: Vtable Slot 171, Offset 684*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_get_layer")]
pub unsafe extern "C" fn menu_layer_get_layer(menu_layer: *const MenuLayer) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =684", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the ScrollLayer of the `MenuLayer`, which is the layer responsible for
 the scrolling of the `MenuLayer`.

 * `menu_layer`: Pointer to the `MenuLayer` for which to get the ScrollLayer

 Returns The ScrollLayer of the `MenuLayer`.*/
/** menu_layer_get_scroll_layer
  -> Added in 0
gneiss: Vtable Slot 172, Offset 688*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_get_scroll_layer")]
pub unsafe extern "C" fn menu_layer_get_scroll_layer(
	menu_layer: *const MenuLayer,
) -> *mut ScrollLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =688", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the callbacks for the MenuLayer.

 * `menu_layer`: Pointer to the `MenuLayer` for which to set the callbacks
 and callback context.

 * `callback_context`: The new callback context. This is passed into each
 of the callbacks and can be set to point to application provided data.

 * `callbacks`: The new callbacks for the `MenuLayer`. The storage for this
 data structure must be long lived. Therefore, it cannot be stack-allocated.

 See MenuLayerCallbacks*/
/** menu_layer_set_callbacks
  -> Added in 54
gneiss: Vtable Slot 522, Offset 2088*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_callbacks")]
pub unsafe extern "C" fn menu_layer_set_callbacks(
	menu_layer: *mut MenuLayer,
	callback_context: *mut ::core::ffi::c_void,
	callbacks: MenuLayerCallbacks,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2088", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function to set the `ClickConfigProvider` callback on the
 given window to the `MenuLayer` internal click config provider. This internal
 click configuration provider, will set up the default UP & DOWN
 scrolling / menu item selection behavior.
 This function calls `scroll_layer_set_click_config_onto_window` to
 accomplish this.

 Click and long click events for the SELECT button can be handled by
 installing the appropriate callbacks using `menu_layer_set_callbacks()`.
 This is a deviation from the usual click configuration provider pattern.

 * `menu_layer`: The `MenuLayer` that needs to receive click events.
 * `window`: The window for which to set the click configuration.

 See `Clicks`

 See `window_set_click_config_provider_with_context()`

 See `scroll_layer_set_click_config_onto_window()`*/
/** menu_layer_set_click_config_onto_window
  -> Added in 0
gneiss: Vtable Slot 176, Offset 704*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_click_config_onto_window")]
pub unsafe extern "C" fn menu_layer_set_click_config_onto_window(
	menu_layer: *mut MenuLayer,
	window: *mut Window,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =704", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Don't align or update the scroll offset of the `MenuLayer`.
pub const MenuRowAlign_MenuRowAlignNone: MenuRowAlign = 0;
/** Scroll the contents of the `MenuLayer` in such way that the selected row
is centered relative to the visible area.*/
pub const MenuRowAlign_MenuRowAlignCenter: MenuRowAlign = 1;
/** Scroll the contents of the `MenuLayer` in such way that the selected row
is at the top of the visible area.*/
pub const MenuRowAlign_MenuRowAlignTop: MenuRowAlign = 2;
/** Scroll the contents of the `MenuLayer` in such way that the selected row
is at the bottom of the visible area.*/
pub const MenuRowAlign_MenuRowAlignBottom: MenuRowAlign = 3;
/** Values to specify how a (selected) row should be aligned relative to the
visible area of the `MenuLayer`.*/
pub type MenuRowAlign = ::core::ffi::c_uchar;
/** Selects the next or previous item, relative to the current selection.

 * `menu_layer`: The `MenuLayer` for which to select the next item
 * `up`: Supply `false` to select the next item in the list (downwards),
 or `true` to select the previous item in the list (upwards).

 * `scroll_align`: The alignment of the new selection
 * `animated`: Supply `true` to animate changing the selection, or `false`
 to change the selection instantly.

 Note: If there is no next/previous item, this function is a no-op.*/
/** menu_layer_set_selected_next
  -> Added in 0
gneiss: Vtable Slot 178, Offset 712*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_selected_next")]
pub unsafe extern "C" fn menu_layer_set_selected_next(
	menu_layer: *mut MenuLayer,
	up: bool,
	scroll_align: MenuRowAlign,
	animated: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =712", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Selects the item with given `MenuIndex`.

 * `menu_layer`: The `MenuLayer` for which to change the selection
 * `index`: The index of the item to select
 * `scroll_align`: The alignment of the new selection
 * `animated`: Supply `true` to animate changing the selection, or `false`
 to change the selection instantly.

 Note: If the section and/or row index exceeds the avaible number of sections
 or resp. rows, the exceeding index/indices will be capped, effectively
 selecting the last section and/or row, resp.*/
/** menu_layer_set_selected_index
  -> Added in 0
gneiss: Vtable Slot 177, Offset 708*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_selected_index")]
pub unsafe extern "C" fn menu_layer_set_selected_index(
	menu_layer: *mut MenuLayer,
	index: MenuIndex,
	scroll_align: MenuRowAlign,
	animated: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =708", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the MenuIndex of the currently selected menu item.

 * `menu_layer`: The `MenuLayer` for which to get the current selected index.

 See menu_cell_layer_is_highlighted

 Note: This function should not be used to determine whether a cell should be
 highlighted or not. See `menu_cell_layer_is_highlighted` for more
 information.*/
/** menu_layer_get_selected_index
  -> Added in 0
gneiss: Vtable Slot 173, Offset 692*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_get_selected_index")]
pub unsafe extern "C" fn menu_layer_get_selected_index(menu_layer: *const MenuLayer) -> MenuIndex {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =692", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Reloads the data of the menu. This causes the menu to re-request the menu
 item data, by calling the relevant callbacks.
 The current selection and scroll position will not be changed. See the
 note with `menu_layer_set_selected_index()` for the behavior if the
 old selection is no longer valid.

 * `menu_layer`: The `MenuLayer` for which to reload the data.*/
/** menu_layer_reload_data
  -> Added in 0
gneiss: Vtable Slot 174, Offset 696*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_reload_data")]
pub unsafe extern "C" fn menu_layer_reload_data(menu_layer: *mut MenuLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =696", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns whether or not the given cell layer is highlighted.
 Using this for determining highlight behaviour is preferable to using
 `menu_layer_get_selected_index`. Row drawing callbacks may be invoked multiple
 times with a different highlight status on the same cell in order to handle partially
 highlighted cells during animation.

 * `cell_layer`: The `Layer` for the cell to check highlight status.

 Returns true if the given cell layer is highlighted in the menu.*/
/** menu_cell_layer_is_highlighted
  -> Added in 44
gneiss: Vtable Slot 459, Offset 1836*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_cell_layer_is_highlighted")]
pub unsafe extern "C" fn menu_cell_layer_is_highlighted(cell_layer: *const Layer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1836", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the default colors to be used for cells when it is in a normal state (not highlighted).
 The GContext's text and fill colors will be set appropriately prior to calling the `.draw_row`
 callback.
 If this function is not explicitly called on a `MenuLayer`, it will default to white
 background with black foreground.

 * `menu_layer`: The `MenuLayer` for which to set the colors.
 * `background`: The color to be used for the background of the cell.
 * `foreground`: The color to be used for the foreground and text of the cell.

 See `menu_layer_set_highlight_colors`*/
/** menu_layer_set_normal_colors
  -> Added in 53
gneiss: Vtable Slot 521, Offset 2084*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_normal_colors")]
pub unsafe extern "C" fn menu_layer_set_normal_colors(
	menu_layer: *mut MenuLayer,
	background: GColor,
	foreground: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2084", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the default colors to be used for cells when it is in a highlighted state.
 The GContext's text and fill colors will be set appropriately prior to calling the `.draw_row`
 callback.
 If this function is not explicitly called on a `MenuLayer`, it will default to black
 background with white foreground.

 * `menu_layer`: The `MenuLayer` for which to set the colors.
 * `background`: The color to be used for the background of the cell.
 * `foreground`: The color to be used for the foreground and text of the cell.

 See `menu_layer_set_normal_colors`*/
/** menu_layer_set_highlight_colors
  -> Added in 53
gneiss: Vtable Slot 520, Offset 2080*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_highlight_colors")]
pub unsafe extern "C" fn menu_layer_set_highlight_colors(
	menu_layer: *mut MenuLayer,
	background: GColor,
	foreground: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2080", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** This enables or disables padding at the bottom of the `MenuLayer`.
 Padding at the bottom of the layer keeps the bottom item from being at the very bottom of the
 screen.
 Padding is turned on by default for all MenuLayers.
 The color of the padded area will be the background color set using
 `menu_layer_set_normal_colors()`. To color the padding a different color, use
 `MenuLayerDrawBackgroundCallback`.

 * `menu_layer`: The menu layer for which to enable or disable the padding.
 * `enable`: True = enable padding, False = disable padding.*/
/** menu_layer_pad_bottom_enable
  -> Added in 56
gneiss: Vtable Slot 523, Offset 2092*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_pad_bottom_enable")]
pub unsafe extern "C" fn menu_layer_pad_bottom_enable(menu_layer: *mut MenuLayer, enable: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2092", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** True, if the `MenuLayer` generally scrolls such that the selected row is in the center.

 See `menu_layer_set_center_focused`*/
/** menu_layer_get_center_focused
  -> Added in 72
gneiss: Vtable Slot 578, Offset 2312*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_get_center_focused")]
pub unsafe extern "C" fn menu_layer_get_center_focused(menu_layer: *mut MenuLayer) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2312", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Controls if the `MenuLayer` generally scrolls such that the selected row is in the center.
 For platforms with a round display (PBL_ROUND) the default is true,
 otherwise false is the default

 * `menu_layer`: The menu layer for which to enable or disable the behavior.
 * `center_focused`: true = enable the mode, false = disable it.

 See `menu_layer_get_center_focused`*/
/** menu_layer_set_center_focused
  -> Added in 72
gneiss: Vtable Slot 579, Offset 2316*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_set_center_focused")]
pub unsafe extern "C" fn menu_layer_set_center_focused(
	menu_layer: *mut MenuLayer,
	center_focused: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2316", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns whether or not the specified cell index is currently selected.

 * `menu_layer`: The `MenuLayer` to use when determining if the index is selected.
 * `index`: The `MenuIndex` of the cell to check for selection.

 Note: This function should not be used to determine whether a cell is highlighted or not.
 See `menu_cell_layer_is_highlighted` for more information.*/
/** menu_layer_is_index_selected
  -> Added in 76
gneiss: Vtable Slot 598, Offset 2392*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.menu_layer_is_index_selected")]
pub unsafe extern "C" fn menu_layer_is_index_selected(
	menu_layer: *const MenuLayer,
	index: *mut MenuIndex,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2392", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Wrapper around `MenuLayer`, that uses static data to display a
list menu.*/
#[repr(C)]
#[derive(Debug)]
pub struct SimpleMenuLayer {
	_unused: [u8; 0],
}
/** Function signature for the callback to handle the event that a user hits
the SELECT button.

* `index`: The row index of the item
* `context`: The callback context*/
pub type SimpleMenuLayerSelectCallback = ::core::option::Option<
	unsafe extern "C" fn(index: ::core::ffi::c_int, context: *mut ::core::ffi::c_void),
>;
/// Data structure containing the information of a menu item.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SimpleMenuItem {
	/// The title of the menu item. Required.
	pub title:    *const ::core::ffi::c_char,
	/// The subtitle of the menu item. Optional, leave `NULL` if unused.
	pub subtitle: *const ::core::ffi::c_char,
	/// The icon of the menu item. Optional, leave `NULL` if unused.
	pub icon:     *mut GBitmap,
	/** The callback that needs to be called upon a click on the SELECT button.
	Optional, leave `NULL` if unused.*/
	pub callback: SimpleMenuLayerSelectCallback,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of SimpleMenuItem"][::core::mem::size_of::<SimpleMenuItem>() - 16usize];
	["Alignment of SimpleMenuItem"][::core::mem::align_of::<SimpleMenuItem>() - 4usize];
	["Offset of field: SimpleMenuItem::title"]
		[::core::mem::offset_of!(SimpleMenuItem, title) - 0usize];
	["Offset of field: SimpleMenuItem::subtitle"]
		[::core::mem::offset_of!(SimpleMenuItem, subtitle) - 4usize];
	["Offset of field: SimpleMenuItem::icon"]
		[::core::mem::offset_of!(SimpleMenuItem, icon) - 8usize];
	["Offset of field: SimpleMenuItem::callback"]
		[::core::mem::offset_of!(SimpleMenuItem, callback) - 12usize];
};
/// Data structure containing the information of a menu section.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SimpleMenuSection {
	/// Title of the section. Optional, leave `NULL` if unused.
	pub title:     *const ::core::ffi::c_char,
	/// Array of items in the section.
	pub items:     *const SimpleMenuItem,
	/// Number of items in the `.items` array.
	pub num_items: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of SimpleMenuSection"][::core::mem::size_of::<SimpleMenuSection>() - 12usize];
	["Alignment of SimpleMenuSection"][::core::mem::align_of::<SimpleMenuSection>() - 4usize];
	["Offset of field: SimpleMenuSection::title"]
		[::core::mem::offset_of!(SimpleMenuSection, title) - 0usize];
	["Offset of field: SimpleMenuSection::items"]
		[::core::mem::offset_of!(SimpleMenuSection, items) - 4usize];
	["Offset of field: SimpleMenuSection::num_items"]
		[::core::mem::offset_of!(SimpleMenuSection, num_items) - 8usize];
};
/** Creates a new SimpleMenuLayer on the heap and initializes it.
 It also sets the internal click configuration provider onto given window.

 * `frame`: The frame at which to initialize the menu
 * `window`: The window onto which to set the click configuration provider
 * `sections`: Array with sections that need to be displayed in the menu
 * `num_sections`: The number of sections in the `sections` array.
 * `callback_context`: Pointer to application specific data, that is passed
 into the callbacks.

 Note: The `sections` array is not deep-copied and can therefore not be stack
 allocated, but needs to be backed by long-lived storage.

 Note: This function does not add the menu's layer to the window.

 Returns A pointer to the SimpleMenuLayer. `NULL` if the SimpleMenuLayer could not
 be created*/
/** simple_menu_layer_create
  -> Added in 0
gneiss: Vtable Slot 233, Offset 932*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_create")]
pub unsafe extern "C" fn simple_menu_layer_create(
	frame: GRect,
	window: *mut Window,
	sections: *const SimpleMenuSection,
	num_sections: i32,
	callback_context: *mut ::core::ffi::c_void,
) -> *mut SimpleMenuLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =932", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a SimpleMenuLayer previously created by simple_menu_layer_create.
/** simple_menu_layer_destroy
  -> Added in 0
gneiss: Vtable Slot 234, Offset 936*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_destroy")]
pub unsafe extern "C" fn simple_menu_layer_destroy(menu_layer: *mut SimpleMenuLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =936", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the simple menu layer, which is the parent for the
 sub-layers used for its implementation.

 * `simple_menu`: Pointer to the SimpleMenuLayer for which to get the
 "root" Layer

 Returns The "root" Layer of the menu layer.*/
/** simple_menu_layer_get_layer
  -> Added in 0
gneiss: Vtable Slot 235, Offset 940*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_get_layer")]
pub unsafe extern "C" fn simple_menu_layer_get_layer(
	simple_menu: *const SimpleMenuLayer,
) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =940", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the row index of the currently selection menu item.

 * `simple_menu`: The SimpleMenuLayer for which to get the current
 selected row index.*/
/** simple_menu_layer_get_selected_index
  -> Added in 0
gneiss: Vtable Slot 236, Offset 944*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_get_selected_index")]
pub unsafe extern "C" fn simple_menu_layer_get_selected_index(
	simple_menu: *const SimpleMenuLayer,
) -> ::core::ffi::c_int {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =944", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Selects the item in the first section at given row index.

 * `simple_menu`: The SimpleMenuLayer for which to change the selection
 * `index`: The row index of the item to select
 * `animated`: Supply `true` to animate changing the selection, or `false`
 to change the selection instantly.*/
/** simple_menu_layer_set_selected_index
  -> Added in 0
gneiss: Vtable Slot 237, Offset 948*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_set_selected_index")]
pub unsafe extern "C" fn simple_menu_layer_set_selected_index(
	simple_menu: *mut SimpleMenuLayer,
	index: i32,
	animated: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =948", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** * `simple_menu`: The `SimpleMenuLayer` to get the `MenuLayer` from.

 Returns The `MenuLayer`.*/
/** simple_menu_layer_get_menu_layer
  -> Added in 8
gneiss: Vtable Slot 316, Offset 1264*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.simple_menu_layer_get_menu_layer")]
pub unsafe extern "C" fn simple_menu_layer_get_menu_layer(
	simple_menu: *mut SimpleMenuLayer,
) -> *mut MenuLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1264", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const ActionBarLayerIconPressAnimation_ActionBarLayerIconPressAnimationNone:
	ActionBarLayerIconPressAnimation = 0;
pub const ActionBarLayerIconPressAnimation_ActionBarLayerIconPressAnimationMoveLeft:
	ActionBarLayerIconPressAnimation = 1;
pub const ActionBarLayerIconPressAnimation_ActionBarLayerIconPressAnimationMoveUp:
	ActionBarLayerIconPressAnimation = 2;
pub const ActionBarLayerIconPressAnimation_ActionBarLayerIconPressAnimationMoveRight:
	ActionBarLayerIconPressAnimation = 3;
pub const ActionBarLayerIconPressAnimation_ActionBarLayerIconPressAnimationMoveDown:
	ActionBarLayerIconPressAnimation = 4;
pub type ActionBarLayerIconPressAnimation = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct ActionBarLayer {
	_unused: [u8; 0],
}
/** Creates a new ActionBarLayer on the heap and initalizes it with the default values.
 * Background color: `GColorBlack`
 * No click configuration provider (`NULL`)
 * No icons
 * Not added to / associated with any window, thus not catching any button input yet.

 Returns A pointer to the ActionBarLayer. `NULL` if the ActionBarLayer could not
 be created*/
/** action_bar_layer_create
  -> Added in 42
gneiss: Vtable Slot 448, Offset 1792*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_create")]
pub unsafe extern "C" fn action_bar_layer_create() -> *mut ActionBarLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1792", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a ActionBarLayer previously created by action_bar_layer_create
/** action_bar_layer_destroy
  -> Added in 42
gneiss: Vtable Slot 449, Offset 1796*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_destroy")]
pub unsafe extern "C" fn action_bar_layer_destroy(action_bar_layer: *mut ActionBarLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1796", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the action bar layer, which is the parent for the sub-
 layers used for its implementation.

 * `action_bar_layer`: Pointer to the ActionBarLayer for which to get the "root" Layer

 Returns The "root" Layer of the action bar layer.*/
/** action_bar_layer_get_layer
  -> Added in 42
gneiss: Vtable Slot 450, Offset 1800*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_get_layer")]
pub unsafe extern "C" fn action_bar_layer_get_layer(
	action_bar_layer: *mut ActionBarLayer,
) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1800", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the context parameter, which will be passed in to `ClickHandler`
 callbacks and the `ClickConfigProvider` callback of the action bar.

 Note: By default, a pointer to the action bar itself is passed in, if the
 context has not been set or if it has been set to `NULL`.

 * `action_bar`: The action bar for which to assign the new context
 * `context`: The new context

 See action_bar_layer_set_click_config_provider()

 See `Clicks`*/
/** action_bar_layer_set_context
  -> Added in 42
gneiss: Vtable Slot 454, Offset 1816*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_context")]
pub unsafe extern "C" fn action_bar_layer_set_context(
	action_bar: *mut ActionBarLayer,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1816", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the click configuration provider callback of the action bar.
 In this callback your application can associate handlers to the different
 types of click events for each of the buttons, see `Clicks`.

 Note: If the action bar had already been added to a window and the window
 is currently on-screen, the click configuration provider will be called
 before this function returns. Otherwise, it will be called by the system
 when the window becomes on-screen.

 Note: The `.raw` handlers cannot be used without breaking the automatic
 highlighting of the segment of the action bar that for which a button is

 See action_bar_layer_set_icon()

 * `action_bar`: The action bar for which to assign a new click
 configuration provider

 * `click_config_provider`: The new click configuration provider*/
/** action_bar_layer_set_click_config_provider
  -> Added in 42
gneiss: Vtable Slot 453, Offset 1812*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_click_config_provider")]
pub unsafe extern "C" fn action_bar_layer_set_click_config_provider(
	action_bar: *mut ActionBarLayer,
	click_config_provider: ClickConfigProvider,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1812", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets an action bar icon onto one of the 3 slots as identified by `button_id`.
 Only `BUTTON_ID_UP`, `BUTTON_ID_SELECT` and `BUTTON_ID_DOWN` can be
 used. The transition will not be animated.
 Whenever an icon is set, the click configuration provider will be
 called, to give the application the opportunity to reconfigure the button
 interaction.

 * `action_bar`: The action bar for which to set the new icon
 * `button_id`: The identifier of the button for which to set the icon
 * `icon`: Pointer to the `GBitmap` icon

 See action_bar_layer_set_icon_animated()

 See action_bar_layer_set_icon_press_animation()

 See action_bar_layer_set_click_config_provider()*/
/** action_bar_layer_set_icon
  -> Added in 42
gneiss: Vtable Slot 455, Offset 1820*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_icon")]
pub unsafe extern "C" fn action_bar_layer_set_icon(
	action_bar: *mut ActionBarLayer,
	button_id: ButtonId,
	icon: *const GBitmap,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1820", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Convenience function to clear out an existing icon.
 All it does is call `action_bar_layer_set_icon(action_bar, button_id, NULL)`

 * `action_bar`: The action bar for which to clear an icon
 * `button_id`: The identifier of the button for which to clear the icon

 See action_bar_layer_set_icon()*/
/** action_bar_layer_clear_icon
  -> Added in 42
gneiss: Vtable Slot 447, Offset 1788*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_clear_icon")]
pub unsafe extern "C" fn action_bar_layer_clear_icon(
	action_bar: *mut ActionBarLayer,
	button_id: ButtonId,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1788", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Adds the action bar's layer on top of the window's root layer. It also
 adjusts the layout of the action bar to match the geometry of the window it
 gets added to.
 Lastly, it calls `window_set_click_config_provider_with_context()` on
 the window to set it up to work with the internal callback and raw click
 handlers of the action bar, to enable the highlighting of the section of the
 action bar when the user presses a button.

 Note: After this call, do not use
 `window_set_click_config_provider_with_context()` with the window that
 the action bar has been added to (this would de-associate the action bar's
 click config provider and context). Instead use
 `action_bar_layer_set_click_config_provider()` and
 `action_bar_layer_set_context()` to register the click configuration
 provider to configure the buttons actions.

 Note: It is advised to call this is in the window's `.load` or `.appear`
 handler. Make sure to call `action_bar_layer_remove_from_window()` in the
 window's `.unload` or `.disappear` handler.

 Note: Adding additional layers to the window's root layer after this calll
 can occlude the action bar.

 * `action_bar`: The action bar to associate with the window
 * `window`: The window with which the action bar is to be associated*/
/** action_bar_layer_add_to_window
  -> Added in 42
gneiss: Vtable Slot 446, Offset 1784*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_add_to_window")]
pub unsafe extern "C" fn action_bar_layer_add_to_window(
	action_bar: *mut ActionBarLayer,
	window: *mut Window,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1784", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Removes the action bar from the window and unconfigures the window's
 click configuration provider. `NULL` is set as the window's new click config
 provider and also as its callback context. If it has not been added to a
 window before, this function is a no-op.

 * `action_bar`: The action bar to de-associate from its current window*/
/** action_bar_layer_remove_from_window
  -> Added in 42
gneiss: Vtable Slot 451, Offset 1804*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_remove_from_window")]
pub unsafe extern "C" fn action_bar_layer_remove_from_window(action_bar: *mut ActionBarLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1804", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the background color of the action bar. Defaults to `GColorBlack`.
 The action bar's layer is automatically marked dirty.

 * `action_bar`: The action bar of which to set the background color
 * `background_color`: The new background color*/
/** action_bar_layer_set_background_color
  -> Added in 42
gneiss: Vtable Slot 452, Offset 1808*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_background_color")]
pub unsafe extern "C" fn action_bar_layer_set_background_color(
	action_bar: *mut ActionBarLayer,
	background_color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1808", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets an action bar icon onto one of the 3 slots as identified by `button_id`.
 Only `BUTTON_ID_UP`, `BUTTON_ID_SELECT` and `BUTTON_ID_DOWN` can be
 used. Optionally, if `animated` is `true`, the transition will be animated.
 Whenever an icon is set, the click configuration provider will be called,
 to give the application the opportunity to reconfigure the button interaction.

 * `action_bar`: The action bar for which to set the new icon
 * `button_id`: The identifier of the button for which to set the icon
 * `icon`: Pointer to the `GBitmap` icon
 * `animated`: True = animate the transition, False = do not animate the transition

 See action_bar_layer_set_icon()

 See action_bar_layer_set_icon_press_animation()

 See action_bar_layer_set_click_config_provider()*/
/** action_bar_layer_set_icon_animated
  -> Added in 42
gneiss: Vtable Slot 456, Offset 1824*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_icon_animated")]
pub unsafe extern "C" fn action_bar_layer_set_icon_animated(
	action_bar: *mut ActionBarLayer,
	button_id: ButtonId,
	icon: *const GBitmap,
	animated: bool,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1824", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the animation to use while a button is pressed on an ActionBarLayer.
 By default we use ActionBarLayerIconPressAnimationMoveLeft

 * `action_bar`: The action bar for which to set the press animation
 * `button_id`: The button for which to set the press animation
 * `animation`: The animation to use.

 See action_bar_layer_set_icon_animated()

 See action_bar_layer_set_click_config_provider()*/
/** action_bar_layer_set_icon_press_animation
  -> Added in 46
gneiss: Vtable Slot 461, Offset 1844*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_bar_layer_set_icon_press_animation")]
pub unsafe extern "C" fn action_bar_layer_set_icon_press_animation(
	action_bar: *mut ActionBarLayer,
	button_id: ButtonId,
	animation: ActionBarLayerIconPressAnimation,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1844", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Layer that serves as a configurable status bar.
#[repr(C)]
#[derive(Debug)]
pub struct StatusBarLayer {
	_unused: [u8; 0],
}
/// The default mode. No separator will be shown.
pub const StatusBarLayerSeparatorMode_StatusBarLayerSeparatorModeNone: StatusBarLayerSeparatorMode =
	0;
/// A dotted separator at the bottom of the status bar.
pub const StatusBarLayerSeparatorMode_StatusBarLayerSeparatorModeDotted:
	StatusBarLayerSeparatorMode = 1;
/// Values that are used to indicate the different status bar separator modes.
pub type StatusBarLayerSeparatorMode = ::core::ffi::c_uchar;
/** Creates a new StatusBarLayer on the heap and initializes it with the default values.

 * Text color: `GColorBlack`
 * Background color: `GColorWhite`
 * Frame: `GRect(0, 0, screen_width, STATUS_BAR_LAYER_HEIGHT)`
 The status bar is automatically marked dirty after this operation.
 You can call `layer_set_frame()` to create a StatusBarLayer of a different width.

 ```c
 // Change the status bar width to make space for the action bar
 int16_t width = layer_get_bounds(root_layer).size.w - ACTION_BAR_WIDTH;
 GRect frame = GRect(0, 0, width, STATUS_BAR_LAYER_HEIGHT);
 layer_set_frame(status_bar_layer_get_layer(status_bar), frame);
 layer_add_child(root_layer, status_bar_layer_get_layer(status_bar));
 ```

 Returns A pointer to the StatusBarLayer, which will be allocated to the heap,
 `NULL` if the StatusBarLayer could not be created*/
/** status_bar_layer_create
  -> Added in 57
gneiss: Vtable Slot 524, Offset 2096*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_create")]
pub unsafe extern "C" fn status_bar_layer_create() -> *mut StatusBarLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2096", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroys a StatusBarLayer previously created by status_bar_layer_create.

 * `status_bar_layer`: The StatusBarLayer to destroy*/
/** status_bar_layer_destroy
  -> Added in 57
gneiss: Vtable Slot 525, Offset 2100*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_destroy")]
pub unsafe extern "C" fn status_bar_layer_destroy(status_bar_layer: *mut StatusBarLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2100", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the status bar, which is the parent for the sub-
 layers used for its implementation.

 * `status_bar_layer`: Pointer to the StatusBarLayer for which to get the "root" Layer

 Returns The "root" Layer of the status bar.

 Note: The result is always equal to `(Layer *) status_bar_layer`.*/
/** status_bar_layer_get_layer
  -> Added in 57
gneiss: Vtable Slot 528, Offset 2112*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_get_layer")]
pub unsafe extern "C" fn status_bar_layer_get_layer(
	status_bar_layer: *mut StatusBarLayer,
) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2112", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets background color of StatusBarLayer

 * `status_bar_layer`: The StatusBarLayer of which to get the color

 Returns GColor of background color property*/
/** status_bar_layer_get_background_color
  -> Added in 57
gneiss: Vtable Slot 526, Offset 2104*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_get_background_color")]
pub unsafe extern "C" fn status_bar_layer_get_background_color(
	status_bar_layer: *const StatusBarLayer,
) -> GColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2104", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets foreground color of StatusBarLayer

 * `status_bar_layer`: The StatusBarLayer of which to get the color

 Returns GColor of foreground color property*/
/** status_bar_layer_get_foreground_color
  -> Added in 57
gneiss: Vtable Slot 527, Offset 2108*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_get_foreground_color")]
pub unsafe extern "C" fn status_bar_layer_get_foreground_color(
	status_bar_layer: *const StatusBarLayer,
) -> GColor {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2108", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the background and foreground colors of StatusBarLayer

 * `status_bar_layer`: The StatusBarLayer of which to set the colors
 * `background`: The new `GColor` to set for background
 * `foreground`: The new `GColor` to set for text and other foreground elements*/
/** status_bar_layer_set_colors
  -> Added in 57
gneiss: Vtable Slot 529, Offset 2116*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_set_colors")]
pub unsafe extern "C" fn status_bar_layer_set_colors(
	status_bar_layer: *mut StatusBarLayer,
	background: GColor,
	foreground: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2116", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the mode of the StatusBarLayer separator, to help divide it from content

 * `status_bar_layer`: The StatusBarLayer of which to set the separator mode
 * `mode`: Determines the separator mode*/
/** status_bar_layer_set_separator_mode
  -> Added in 57
gneiss: Vtable Slot 530, Offset 2120*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.status_bar_layer_set_separator_mode")]
pub unsafe extern "C" fn status_bar_layer_set_separator_mode(
	status_bar_layer: *mut StatusBarLayer,
	mode: StatusBarLayerSeparatorMode,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2120", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Layer that displays a bitmap image.

BitmapLayer is a Layer subtype that draws a GBitmap within its frame. It uses an alignment property
to specify how to position the bitmap image within its frame. Optionally, when the
background color is not GColorClear, it draws a solid background color behind the
bitmap image, filling areas of the frame that are not covered by the bitmap image.
Lastly, using the compositing mode property of the BitmapLayer, determines the way the
bitmap image is drawn on top of what is underneath it (either the background color, or
the layers beneath it).

### Inside the Implementation
The implementation of BitmapLayer is fairly straightforward and relies heavily on the
functionality as exposed by the core drawing functions (see `Drawing`).
`BitmapLayer's` drawing callback uses `graphics_draw_bitmap_in_rect()`
to perform the actual drawing of the `GBitmap`. It uses `grect_align()` to perform
the layout of the image and it uses `graphics_fill_rect()` to draw the background plane.*/
#[repr(C)]
#[derive(Debug)]
pub struct BitmapLayer {
	_unused: [u8; 0],
}
/** Creates a new bitmap layer on the heap and initalizes it the default values.

 * Bitmap: `NULL` (none)
 * Background color: `GColorClear`
 * Compositing mode: `GCompOpAssign`
 * Clips: `true`

 Returns A pointer to the BitmapLayer. `NULL` if the BitmapLayer could not
 be created*/
/** bitmap_layer_create
  -> Added in 0
gneiss: Vtable Slot 56, Offset 224*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_create")]
pub unsafe extern "C" fn bitmap_layer_create(frame: GRect) -> *mut BitmapLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =224", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a window previously created by bitmap_layer_create
/** bitmap_layer_destroy
  -> Added in 0
gneiss: Vtable Slot 57, Offset 228*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_destroy")]
pub unsafe extern "C" fn bitmap_layer_destroy(bitmap_layer: *mut BitmapLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =228", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the bitmap layer, which is the parent for the sub-
 layers used for its implementation.

 * `bitmap_layer`: Pointer to the BitmapLayer for which to get the "root" Layer

 Returns The "root" Layer of the bitmap layer.*/
/** bitmap_layer_get_layer
  -> Added in 0
gneiss: Vtable Slot 58, Offset 232*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_get_layer")]
pub unsafe extern "C" fn bitmap_layer_get_layer(bitmap_layer: *const BitmapLayer) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =232", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the pointer to the bitmap image that the BitmapLayer is using.

 * `bitmap_layer`: The BitmapLayer for which to get the bitmap image

 Returns A pointer to the bitmap image that the BitmapLayer is using*/
/** bitmap_layer_get_bitmap
  -> Added in 10
gneiss: Vtable Slot 319, Offset 1276*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_get_bitmap")]
pub unsafe extern "C" fn bitmap_layer_get_bitmap(bitmap_layer: *mut BitmapLayer) -> *const GBitmap {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1276", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the bitmap onto the BitmapLayer. The bitmap is set by reference (no deep
 copy), thus the caller of this function has to make sure the bitmap is kept
 in memory.

 The bitmap layer is automatically marked dirty after this operation.

 * `bitmap_layer`: The BitmapLayer for which to set the bitmap image
 * `bitmap`: The new `GBitmap` to set onto the BitmapLayer*/
/** bitmap_layer_set_bitmap
  -> Added in 0
gneiss: Vtable Slot 61, Offset 244*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_set_bitmap")]
pub unsafe extern "C" fn bitmap_layer_set_bitmap(
	bitmap_layer: *mut BitmapLayer,
	bitmap: *const GBitmap,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =244", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the alignment of the image to draw with in frame of the BitmapLayer.
 The aligment parameter specifies which edges of the bitmap should overlap
 with the frame of the BitmapLayer.
 If the bitmap is smaller than the frame of the BitmapLayer, the background
 is filled with the background color.

 The bitmap layer is automatically marked dirty after this operation.

 * `bitmap_layer`: The BitmapLayer for which to set the aligment
 * `alignment`: The new alignment for the image inside the BitmapLayer*/
/** bitmap_layer_set_alignment
  -> Added in 0
gneiss: Vtable Slot 59, Offset 236*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_set_alignment")]
pub unsafe extern "C" fn bitmap_layer_set_alignment(
	bitmap_layer: *mut BitmapLayer,
	alignment: GAlign,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =236", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the background color of bounding box that will be drawn behind the image
 of the BitmapLayer.

 The bitmap layer is automatically marked dirty after this operation.

 * `bitmap_layer`: The BitmapLayer for which to set the background color
 * `color`: The new `GColor` to set the background to

 See `bitmap_layer_set_compositing_mode` for enabling transparency*/
/** bitmap_layer_set_background_color
  -> Added in 30
gneiss: Vtable Slot 370, Offset 1480*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_set_background_color")]
pub unsafe extern "C" fn bitmap_layer_set_background_color(
	bitmap_layer: *mut BitmapLayer,
	color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1480", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the compositing mode of how the bitmap image is composited onto the
 BitmapLayer's background plane, or how it is composited onto what has been
 drawn beneath the BitmapLayer.

 The compositing mode only affects the drawing of the bitmap and not the
 drawing of the background color.

 For black&white platforms, there is no notion of "transparency" in the graphics system.
 However, the effect of transparency can be created by masking and using compositing modes.

 For color platforms, when drawing `GBitmap` images, `GCompOpSet` is
 required to apply any transparency.

 The bitmap layer is automatically marked dirty after this operation.

 * `bitmap_layer`: The BitmapLayer for which to set the compositing mode
 * `mode`: The compositing mode to set

 See See `GCompOp` for visual examples of the different compositing modes.*/
/** bitmap_layer_set_compositing_mode
  -> Added in 0
gneiss: Vtable Slot 62, Offset 248*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.bitmap_layer_set_compositing_mode")]
pub unsafe extern "C" fn bitmap_layer_set_compositing_mode(
	bitmap_layer: *mut BitmapLayer,
	mode: GCompOp,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =248", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Layer that displays a rotated bitmap image.

A RotBitmapLayer is like a `BitmapLayer` but has the ability to be rotated (by default, around its center). The amount of rotation
is specified using `rot_bitmap_layer_set_angle()` or `rot_bitmap_layer_increment_angle()`. The rotation argument
to those functions is specified as an amount of clockwise rotation, where the value 0x10000 represents a full 360 degree
rotation and 0 represent no rotation, and it scales linearly between those values, just like `sin_lookup`.

The center of rotation in the source bitmap is always placed at the center of the RotBitmapLayer and the size of the RotBitmapLayer
is automatically calculated so that the entire Bitmap can fit in at all rotation angles.

For example, if the image is 10px wide and high, the RotBitmapLayer will be 14px wide ( sqrt(10^2+10^2) ).

By default, the center of rotation in the source bitmap is the center of the bitmap but you can call `rot_bitmap_set_src_ic()` to change the
center of rotation.

Note: RotBitmapLayer has performance limitations that can degrade user
experience (see `graphics_draw_rotated_bitmap`). Use sparingly.*/
#[repr(C)]
#[derive(Debug)]
pub struct RotBitmapLayer {
	_unused: [u8; 0],
}
/** Creates a new RotBitmapLayer on the heap and initializes it with the default values:
 * Angle: 0
 * Compositing mode: `GCompOpAssign`
 * Corner clip color: `GColorClear`

 * `bitmap`: The bitmap to display in this RotBitmapLayer

 Returns A pointer to the RotBitmapLayer. `NULL` if the RotBitmapLayer could not
 be created*/
/** rot_bitmap_layer_create
  -> Added in 0
gneiss: Vtable Slot 210, Offset 840*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_create")]
pub unsafe extern "C" fn rot_bitmap_layer_create(bitmap: *mut GBitmap) -> *mut RotBitmapLayer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =840", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroys a RotBitmapLayer and frees all associated memory.

 Note: It is the developer responsibility to free the `GBitmap`.

 * `bitmap`: The RotBitmapLayer to destroy.*/
/** rot_bitmap_layer_destroy
  -> Added in 0
gneiss: Vtable Slot 211, Offset 844*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_destroy")]
pub unsafe extern "C" fn rot_bitmap_layer_destroy(bitmap: *mut RotBitmapLayer) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =844", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Layer of the RotBitmapLayer, which is the parent for the sub-
 layers used for its implementation.

 * `rot_bitmap_layer`: Pointer to the RotBitmapLayer for which to get the "root" Layer

 Returns The "root" Layer of the RotBitmapLayer.*/
/** rot_bitmap_layer_get_layer
  -> Added in 93
gneiss: Vtable Slot 633, Offset 2532*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_get_layer")]
pub unsafe extern "C" fn rot_bitmap_layer_get_layer(
	rot_bitmap_layer: *const RotBitmapLayer,
) -> *mut Layer {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2532", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Defines what color to use in areas that are not covered by the source bitmap.
 By default this is `GColorClear`.

 * `bitmap`: The RotBitmapLayer on which to change the corner clip color
 * `color`: The corner clip color*/
/** rot_bitmap_layer_set_corner_clip_color
  -> Added in 30
gneiss: Vtable Slot 374, Offset 1496*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_set_corner_clip_color")]
pub unsafe extern "C" fn rot_bitmap_layer_set_corner_clip_color(
	bitmap: *mut RotBitmapLayer,
	color: GColor,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1496", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the rotation angle of this RotBitmapLayer

 * `bitmap`: The RotBitmapLayer on which to change the rotation
 * `angle`: Rotation is an integer between 0 (no rotation) and 0x10000 (360 degree rotation). See sin_lookup()*/
/** rot_bitmap_layer_set_angle
  -> Added in 0
gneiss: Vtable Slot 213, Offset 852*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_set_angle")]
pub unsafe extern "C" fn rot_bitmap_layer_set_angle(bitmap: *mut RotBitmapLayer, angle: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =852", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Change the rotation angle of this RotBitmapLayer

 * `bitmap`: The RotBitmapLayer on which to change the rotation
 * `angle_change`: The rotation angle change*/
/** rot_bitmap_layer_increment_angle
  -> Added in 0
gneiss: Vtable Slot 212, Offset 848*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_layer_increment_angle")]
pub unsafe extern "C" fn rot_bitmap_layer_increment_angle(
	bitmap: *mut RotBitmapLayer,
	angle_change: i32,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =848", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Defines the only point that will not be affected by the rotation in the source bitmap.

 For example, if you pass GPoint(0, 0), the image will rotate around the top-left corner.

 This point is always projected at the center of the RotBitmapLayer. Calling this function
 automatically adjusts the width and height of the RotBitmapLayer so that
 the entire bitmap can fit inside the layer at all rotation angles.

 * `bitmap`: The RotBitmapLayer on which to change the rotation
 * `ic`: The only point in the original image that will not be affected by the rotation.*/
/** rot_bitmap_set_src_ic
  -> Added in 0
gneiss: Vtable Slot 216, Offset 864*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_set_src_ic")]
pub unsafe extern "C" fn rot_bitmap_set_src_ic(bitmap: *mut RotBitmapLayer, ic: GPoint) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =864", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the compositing mode of how the bitmap image is composited onto what has been drawn beneath the
 RotBitmapLayer.
 By default this is `GCompOpAssign`, i.e. transparency disabled.
 The RotBitmapLayer is automatically marked dirty after this operation.

 * `bitmap`: The RotBitmapLayer on which to change the rotation
 * `mode`: The compositing mode to set

 See `GCompOp` for visual examples of the different compositing modes.*/
/** rot_bitmap_set_compositing_mode
  -> Added in 0
gneiss: Vtable Slot 215, Offset 860*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.rot_bitmap_set_compositing_mode")]
pub unsafe extern "C" fn rot_bitmap_set_compositing_mode(
	bitmap: *mut RotBitmapLayer,
	mode: GCompOp,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =860", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// A ready-made Window prompting the user to pick a number
#[repr(C)]
#[derive(Debug)]
pub struct NumberWindow {
	_unused: [u8; 0],
}
/// Function signature for NumberWindow callbacks.
pub type NumberWindowCallback = ::core::option::Option<
	unsafe extern "C" fn(number_window: *mut NumberWindow, context: *mut ::core::ffi::c_void),
>;
/// Data structure containing all the callbacks for a NumberWindow.
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct NumberWindowCallbacks {
	/** Callback that gets called as the value is incremented.
	Optional, leave `NULL` if unused.*/
	pub incremented: NumberWindowCallback,
	/** Callback that gets called as the value is decremented.
	Optional, leave `NULL` if unused.*/
	pub decremented: NumberWindowCallback,
	/** Callback that gets called as the value is confirmed, in other words the
	SELECT button is clicked.
	Optional, leave `NULL` if unused.*/
	pub selected:    NumberWindowCallback,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of NumberWindowCallbacks"][::core::mem::size_of::<NumberWindowCallbacks>() - 12usize];
	["Alignment of NumberWindowCallbacks"]
		[::core::mem::align_of::<NumberWindowCallbacks>() - 4usize];
	["Offset of field: NumberWindowCallbacks::incremented"]
		[::core::mem::offset_of!(NumberWindowCallbacks, incremented) - 0usize];
	["Offset of field: NumberWindowCallbacks::decremented"]
		[::core::mem::offset_of!(NumberWindowCallbacks, decremented) - 4usize];
	["Offset of field: NumberWindowCallbacks::selected"]
		[::core::mem::offset_of!(NumberWindowCallbacks, selected) - 8usize];
};
/** Creates a new NumberWindow on the heap and initalizes it with the default values.

 * `label`: The title or prompt to display in the NumberWindow. Must be long-lived and cannot be stack-allocated.
 * `callbacks`: The callbacks
 * `callback_context`: Pointer to application specific data that is passed

 Note: The number window is not pushed to the window stack. Use `window_stack_push()` to do this.

 Returns A pointer to the NumberWindow. `NULL` if the NumberWindow could not
 be created*/
/** number_window_create
  -> Added in 0
gneiss: Vtable Slot 179, Offset 716*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_create")]
pub unsafe extern "C" fn number_window_create(
	label: *const ::core::ffi::c_char,
	callbacks: NumberWindowCallbacks,
	callback_context: *mut ::core::ffi::c_void,
) -> *mut NumberWindow {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =716", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Destroys a NumberWindow previously created by number_window_create.
/** number_window_destroy
  -> Added in 0
gneiss: Vtable Slot 180, Offset 720*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_destroy")]
pub unsafe extern "C" fn number_window_destroy(number_window: *mut NumberWindow) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =720", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the text of the title or prompt label.

 * `numberwindow`: Pointer to the NumberWindow for which to set the label
 text

 * `label`: The new label text. Must be long-lived and cannot be
 stack-allocated.*/
/** number_window_set_label
  -> Added in 0
gneiss: Vtable Slot 182, Offset 728*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_set_label")]
pub unsafe extern "C" fn number_window_set_label(
	numberwindow: *mut NumberWindow,
	label: *const ::core::ffi::c_char,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =728", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the maximum value this field can hold

 * `numberwindow`: Pointer to the NumberWindow for which to set the maximum
 value

 * `max`: The maximum value*/
/** number_window_set_max
  -> Added in 0
gneiss: Vtable Slot 183, Offset 732*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_set_max")]
pub unsafe extern "C" fn number_window_set_max(numberwindow: *mut NumberWindow, max: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =732", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the minimum value this field can hold

 * `numberwindow`: Pointer to the NumberWindow for which to set the minimum
 value

 * `min`: The minimum value*/
/** number_window_set_min
  -> Added in 0
gneiss: Vtable Slot 184, Offset 736*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_set_min")]
pub unsafe extern "C" fn number_window_set_min(numberwindow: *mut NumberWindow, min: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =736", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the current value of the field

 * `numberwindow`: Pointer to the NumberWindow for which to set the current
 value

 * `value`: The new current value*/
/** number_window_set_value
  -> Added in 0
gneiss: Vtable Slot 186, Offset 744*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_set_value")]
pub unsafe extern "C" fn number_window_set_value(numberwindow: *mut NumberWindow, value: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =744", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Sets the amount by which to increment/decrement by on a button click

 * `numberwindow`: Pointer to the NumberWindow for which to set the step
 increment

 * `step`: The new step increment*/
/** number_window_set_step_size
  -> Added in 0
gneiss: Vtable Slot 185, Offset 740*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_set_step_size")]
pub unsafe extern "C" fn number_window_set_step_size(numberwindow: *mut NumberWindow, step: i32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =740", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the current value

 * `numberwindow`: Pointer to the NumberWindow for which to get the current
 value

 Returns The current value*/
/** number_window_get_value
  -> Added in 0
gneiss: Vtable Slot 181, Offset 724*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_get_value")]
pub unsafe extern "C" fn number_window_get_value(numberwindow: *const NumberWindow) -> i32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =724", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Gets the "root" Window of the number window

 * `numberwindow`: Pointer to the NumberWindow for which to get the "root" Window

 Returns The "root" Window of the number window.*/
/** number_window_get_window
  -> Added in 12
gneiss: Vtable Slot 322, Offset 1288*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.number_window_get_window")]
pub unsafe extern "C" fn number_window_get_window(numberwindow: *mut NumberWindow) -> *mut Window {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1288", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
#[repr(C)]
#[derive(Debug)]
pub struct ActionMenuItem {
	_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug)]
pub struct ActionMenuLevel {
	_unused: [u8; 0],
}
pub const ActionMenuAlign_ActionMenuAlignTop: ActionMenuAlign = 0;
pub const ActionMenuAlign_ActionMenuAlignCenter: ActionMenuAlign = 1;
pub type ActionMenuAlign = ::core::ffi::c_uchar;
#[repr(C)]
#[derive(Debug)]
pub struct ActionMenu {
	_unused: [u8; 0],
}
/** Callback executed after the ActionMenu has closed, so memory may be freed.

* `menu`: the ActionMenu
* `performed_action`: the ActionMenuItem for the action that was performed,
NULL if the ActionMenu is closing without an action being selected by the user

* `context`: the context passed to the ActionMenu*/
pub type ActionMenuDidCloseCb = ::core::option::Option<
	unsafe extern "C" fn(
		menu: *mut ActionMenu,
		performed_action: *const ActionMenuItem,
		context: *mut ::core::ffi::c_void,
	),
>;
/// < Each item gets its own row
pub const ActionMenuLevelDisplayMode_ActionMenuLevelDisplayModeWide: ActionMenuLevelDisplayMode = 0;
/// < Grid view: multiple items per row
pub const ActionMenuLevelDisplayMode_ActionMenuLevelDisplayModeThin: ActionMenuLevelDisplayMode = 1;
/** enum value that controls whether menu items are displayed in a grid
(similarly to the emoji replies) or in a single column (reminiscent of `MenuLayer`)*/
pub type ActionMenuLevelDisplayMode = ::core::ffi::c_uchar;
/** Callback executed when a given action is selected

* `action_menu`: the action menu currently on screen
* `action`: the action that was triggered
* `context`: the context passed to the action menu

Note: the action menu is closed immediately after an action is performed,
unless it is frozen in the ActionMenuPerformActionCb*/
pub type ActionMenuPerformActionCb = ::core::option::Option<
	unsafe extern "C" fn(
		action_menu: *mut ActionMenu,
		action: *const ActionMenuItem,
		context: *mut ::core::ffi::c_void,
	),
>;
/** Callback invoked for each item in an action menu hierarchy.

* `item`: the current action menu item
* `context`: a caller-provided callback context*/
pub type ActionMenuEachItemCb = ::core::option::Option<
	unsafe extern "C" fn(item: *const ActionMenuItem, context: *mut ::core::ffi::c_void),
>;
/// Configuration struct for the ActionMenu
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ActionMenuConfig {
	/// < the root level of the ActionMenu
	pub root_level: *const ActionMenuLevel,
	/// < a context pointer which will be accessbile when actions are performed
	pub context:    *mut ::core::ffi::c_void,
	pub colors:     ActionMenuConfig__bindgen_ty_1,
	/// < Called immediately before the ActionMenu closes
	pub will_close: ActionMenuDidCloseCb,
	/// < a callback used to cleanup memory after the menu has closed
	pub did_close:  ActionMenuDidCloseCb,
	pub align:      ActionMenuAlign,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ActionMenuConfig__bindgen_ty_1 {
	/// < the color of the left column of the ActionMenu
	pub background: GColor,
	/// < the color of the individual "crumbs" that indicate menu depth
	pub foreground: GColor,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ActionMenuConfig__bindgen_ty_1"]
		[::core::mem::size_of::<ActionMenuConfig__bindgen_ty_1>() - 2usize];
	["Alignment of ActionMenuConfig__bindgen_ty_1"]
		[::core::mem::align_of::<ActionMenuConfig__bindgen_ty_1>() - 1usize];
	["Offset of field: ActionMenuConfig__bindgen_ty_1::background"]
		[::core::mem::offset_of!(ActionMenuConfig__bindgen_ty_1, background) - 0usize];
	["Offset of field: ActionMenuConfig__bindgen_ty_1::foreground"]
		[::core::mem::offset_of!(ActionMenuConfig__bindgen_ty_1, foreground) - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of ActionMenuConfig"][::core::mem::size_of::<ActionMenuConfig>() - 24usize];
	["Alignment of ActionMenuConfig"][::core::mem::align_of::<ActionMenuConfig>() - 4usize];
	["Offset of field: ActionMenuConfig::root_level"]
		[::core::mem::offset_of!(ActionMenuConfig, root_level) - 0usize];
	["Offset of field: ActionMenuConfig::context"]
		[::core::mem::offset_of!(ActionMenuConfig, context) - 4usize];
	["Offset of field: ActionMenuConfig::colors"]
		[::core::mem::offset_of!(ActionMenuConfig, colors) - 8usize];
	["Offset of field: ActionMenuConfig::will_close"]
		[::core::mem::offset_of!(ActionMenuConfig, will_close) - 12usize];
	["Offset of field: ActionMenuConfig::did_close"]
		[::core::mem::offset_of!(ActionMenuConfig, did_close) - 16usize];
	["Offset of field: ActionMenuConfig::align"]
		[::core::mem::offset_of!(ActionMenuConfig, align) - 20usize];
};
/** Getter for the label of a given `ActionMenuItem`

 * `item`: the `ActionMenuItem` of interest

 Returns a pointer to the string label. NULL if invalid.*/
/** action_menu_item_get_label
  -> Added in 63
gneiss: Vtable Slot 542, Offset 2168*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_item_get_label")]
pub unsafe extern "C" fn action_menu_item_get_label(
	item: *const ActionMenuItem,
) -> *mut ::core::ffi::c_char {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2168", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Getter for the action_data pointer of a given `ActionMenuItem`.

 See action_menu_level_add_action

 * `item`: the `ActionMenuItem` of interest

 Returns a pointer to the data. NULL if invalid.*/
/** action_menu_item_get_action_data
  -> Added in 63
gneiss: Vtable Slot 541, Offset 2164*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_item_get_action_data")]
pub unsafe extern "C" fn action_menu_item_get_action_data(
	item: *const ActionMenuItem,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2164", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Create a new action menu level with storage allocated for a given number of items

 * `max_items`: the max number of items that will be displayed at that level

 Note: levels are freed alongside the whole hierarchy so no destroy API is provided.

 Note: by default, levels are using ActionMenuLevelDisplayModeWide.
 Use `action_menu_level_set_display_mode` to change it.

 See action_menu_hierarchy_destroy*/
/** action_menu_level_create
  -> Added in 63
gneiss: Vtable Slot 545, Offset 2180*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_level_create")]
pub unsafe extern "C" fn action_menu_level_create(max_items: u16) -> *mut ActionMenuLevel {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2180", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the action menu display mode

 * `level`: The ActionMenuLevel whose display mode you want to change
 * `display_mode`: The display mode for the action menu (3 vs. 1 item per row)*/
/** action_menu_level_set_display_mode
  -> Added in 63
gneiss: Vtable Slot 546, Offset 2184*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_level_set_display_mode")]
pub unsafe extern "C" fn action_menu_level_set_display_mode(
	level: *mut ActionMenuLevel,
	display_mode: ActionMenuLevelDisplayMode,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2184", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Add an action to an ActionLevel

 * `level`: the level to add the action to
 * `label`: the text to display for the action in the menu
 * `cb`: the callback that will be triggered when this action is actuated
 * `action_data`: data to pass to the callback for this action

 Returns a reference to the new `ActionMenuItem` on success, NULL if the level is full*/
/** action_menu_level_add_action
  -> Added in 63
gneiss: Vtable Slot 543, Offset 2172*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_level_add_action")]
pub unsafe extern "C" fn action_menu_level_add_action(
	level: *mut ActionMenuLevel,
	label: *const ::core::ffi::c_char,
	cb: ActionMenuPerformActionCb,
	action_data: *mut ::core::ffi::c_void,
) -> *mut ActionMenuItem {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2172", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Add a child to this ActionMenuLevel

 * `level`: the parent level
 * `child`: the child level
 * `label`: the text to display in the action menu for this level

 Returns a reference to the new `ActionMenuItem` on success, NULL if the level is full*/
/** action_menu_level_add_child
  -> Added in 63
gneiss: Vtable Slot 544, Offset 2176*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_level_add_child")]
pub unsafe extern "C" fn action_menu_level_add_child(
	level: *mut ActionMenuLevel,
	child: *mut ActionMenuLevel,
	label: *const ::core::ffi::c_char,
) -> *mut ActionMenuItem {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2176", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Destroy a hierarchy of ActionMenuLevels

 * `root`: the root level in the hierarchy
 * `each_cb`: a callback to call on every `ActionMenuItem` in every level
 * `context`: a context pointer to pass to each_cb on invocation

 Note: Typical implementations will cleanup memory allocated for the item label/data
 associated with each item in the callback

 Note: Hierarchy is traversed in post-order.
 In other words, all children items are freed before their parent is freed.*/
/** action_menu_hierarchy_destroy
  -> Added in 63
gneiss: Vtable Slot 540, Offset 2160*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_hierarchy_destroy")]
pub unsafe extern "C" fn action_menu_hierarchy_destroy(
	root: *const ActionMenuLevel,
	each_cb: ActionMenuEachItemCb,
	context: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2160", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the context pointer this ActionMenu was created with

 * `action_menu`: A pointer to an ActionMenu

 Returns the context pointer initially provided in the `ActionMenuConfig`.
 NULL if none exists.*/
/** action_menu_get_context
  -> Added in 63
gneiss: Vtable Slot 538, Offset 2152*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_get_context")]
pub unsafe extern "C" fn action_menu_get_context(
	action_menu: *mut ActionMenu,
) -> *mut ::core::ffi::c_void {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2152", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the root level of an ActionMenu

 * `action_menu`: the ActionMenu you want to know about

 Returns a pointer to the root ActionMenuLevel for the given ActionMenu, NULL if invalid*/
/** action_menu_get_root_level
  -> Added in 63
gneiss: Vtable Slot 539, Offset 2156*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_get_root_level")]
pub unsafe extern "C" fn action_menu_get_root_level(
	action_menu: *mut ActionMenu,
) -> *mut ActionMenuLevel {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2156", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Open a new ActionMenu.
 The ActionMenu acts much like a window. It fills the whole screen and handles clicks.

 * `config`: the configuration info for this new ActionMenu

 Returns the new ActionMenu*/
/** action_menu_open
  -> Added in 63
gneiss: Vtable Slot 547, Offset 2188*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_open")]
pub unsafe extern "C" fn action_menu_open(config: *mut ActionMenuConfig) -> *mut ActionMenu {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2188", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Freeze the ActionMenu. The ActionMenu will no longer respond to user input.

 Note: this API should be used when waiting for asynchronous operation.

 * `action_menu`: the ActionMenu*/
/** action_menu_freeze
  -> Added in 63
gneiss: Vtable Slot 537, Offset 2148*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_freeze")]
pub unsafe extern "C" fn action_menu_freeze(action_menu: *mut ActionMenu) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2148", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Unfreeze the ActionMenu previously frozen with `action_menu_freeze`

 * `action_menu`: the ActionMenu to unfreeze*/
/** action_menu_unfreeze
  -> Added in 63
gneiss: Vtable Slot 549, Offset 2196*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_unfreeze")]
pub unsafe extern "C" fn action_menu_unfreeze(action_menu: *mut ActionMenu) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2196", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the result window for an ActionMenu. The result window will be
 shown when the ActionMenu closes

 * `action_menu`: the ActionMenu
 * `result_window`: the window to insert, pass NULL to remove the current result window

 Note: repeated call will result in only the last call to be applied, i.e. only
 one result window is ever set*/
/** action_menu_set_result_window
  -> Added in 63
gneiss: Vtable Slot 548, Offset 2192*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_set_result_window")]
pub unsafe extern "C" fn action_menu_set_result_window(
	action_menu: *mut ActionMenu,
	result_window: *mut Window,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2192", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Close the ActionMenu, whether it is frozen or not.

 Note: this API can be used on a frozen ActionMenu once the data required to
 build the result window has been received and the result window has been set

 * `action_menu`: the ActionMenu to close
 * `animated`: whether or not show a close animation*/
/** action_menu_close
  -> Added in 63
gneiss: Vtable Slot 536, Offset 2144*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.action_menu_close")]
pub unsafe extern "C" fn action_menu_close(action_menu: *mut ActionMenu, animated: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2144", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Data structure describing a vibration pattern.
 A pattern consists of at least 1 vibe-on duration, optionally followed by
 alternating vibe-off + vibe-on durations. Each segment may have a different duration.

 Example code:
 ```c
// Vibe pattern: ON for 200ms, OFF for 100ms, ON for 400ms:
static const uint32_t segments[] = { 200, 100, 400 };
VibePattern pat = {
.durations = segments,
.num_segments = ARRAY_LENGTH(segments),
};
vibes_enqueue_custom_pattern(pat);
 ```

 See vibes_enqueue_custom_pattern*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct VibePattern {
	/** Pointer to an array of segment durations, measured in milli-seconds.
	The maximum allowed duration is 10000ms.*/
	pub durations:    *const u32,
	/// The length of the array of durations.
	pub num_segments: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of VibePattern"][::core::mem::size_of::<VibePattern>() - 8usize];
	["Alignment of VibePattern"][::core::mem::align_of::<VibePattern>() - 4usize];
	["Offset of field: VibePattern::durations"]
		[::core::mem::offset_of!(VibePattern, durations) - 0usize];
	["Offset of field: VibePattern::num_segments"]
		[::core::mem::offset_of!(VibePattern, num_segments) - 4usize];
};
/** Cancel any in-flight vibe patterns; this is a no-op if there is no
 on-going vibe.*/
/** vibes_cancel
  -> Added in 0
gneiss: Vtable Slot 266, Offset 1064*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.vibes_cancel")]
pub unsafe extern "C" fn vibes_cancel() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1064", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Makes the watch emit one short vibration.
/** vibes_short_pulse
  -> Added in 0
gneiss: Vtable Slot 270, Offset 1080*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.vibes_short_pulse")]
pub unsafe extern "C" fn vibes_short_pulse() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1080", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Makes the watch emit one long vibration.
/** vibes_long_pulse
  -> Added in 0
gneiss: Vtable Slot 269, Offset 1076*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.vibes_long_pulse")]
pub unsafe extern "C" fn vibes_long_pulse() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1076", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Makes the watch emit two brief vibrations.
/** vibes_double_pulse
  -> Added in 0
gneiss: Vtable Slot 267, Offset 1068*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.vibes_double_pulse")]
pub unsafe extern "C" fn vibes_double_pulse() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1068", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Makes the watch emit a 'custom' vibration pattern.

 * `pattern`: An arbitrary vibration pattern

 See VibePattern*/
/** vibes_enqueue_custom_pattern
  -> Added in 0
gneiss: Vtable Slot 268, Offset 1072*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.vibes_enqueue_custom_pattern")]
pub unsafe extern "C" fn vibes_enqueue_custom_pattern(pattern: VibePattern) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1072", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const SpeakerWaveform_SpeakerWaveformSine: SpeakerWaveform = 0;
pub const SpeakerWaveform_SpeakerWaveformSquare: SpeakerWaveform = 1;
pub const SpeakerWaveform_SpeakerWaveformTriangle: SpeakerWaveform = 2;
pub const SpeakerWaveform_SpeakerWaveformSawtooth: SpeakerWaveform = 3;
pub const SpeakerWaveform_SpeakerWaveformCount: SpeakerWaveform = 4;
/** Controlling the speaker

The Speaker API provides calls that let you play sounds through the watch's speaker.
You can play simple note sequences (melodies), single tones, or stream raw PCM audio.

Note sequences are compact representations of melodies using MIDI-like note definitions,
supporting 4 basic waveforms: sine, square, triangle, and sawtooth.

Raw PCM streaming allows apps to generate arbitrary audio in configurable formats.*/
pub type SpeakerWaveform = ::core::ffi::c_uchar;
/** A single note in a sequence.
midi_note: MIDI note number (0-127, 60=C4). 0 = rest (silence).
waveform: SpeakerWaveform value.
duration_ms: Note duration in ms (max 10000).
velocity: Volume 0-127 (0 = use global volume).*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PACKED {
	pub midi_note:   u8,
	pub waveform:    u8,
	pub duration_ms: u16,
	pub velocity:    u8,
	pub reserved:    u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of PACKED"][::core::mem::size_of::<PACKED>() - 6usize];
	["Alignment of PACKED"][::core::mem::align_of::<PACKED>() - 2usize];
	["Offset of field: PACKED::midi_note"][::core::mem::offset_of!(PACKED, midi_note) - 0usize];
	["Offset of field: PACKED::waveform"][::core::mem::offset_of!(PACKED, waveform) - 1usize];
	["Offset of field: PACKED::duration_ms"][::core::mem::offset_of!(PACKED, duration_ms) - 2usize];
	["Offset of field: PACKED::velocity"][::core::mem::offset_of!(PACKED, velocity) - 4usize];
	["Offset of field: PACKED::reserved"][::core::mem::offset_of!(PACKED, reserved) - 5usize];
};
/** A single note in a sequence.
midi_note: MIDI note number (0-127, 60=C4). 0 = rest (silence).
waveform: SpeakerWaveform value.
duration_ms: Note duration in ms (max 10000).
velocity: Volume 0-127 (0 = use global volume).*/
pub type SpeakerNote = PACKED;
/// < 8kHz 8-bit signed (1 byte/sample)
pub const SpeakerPcmFormat_SpeakerPcmFormat_8kHz_8bit: SpeakerPcmFormat = 0;
/// < 16kHz 8-bit signed (1 byte/sample)
pub const SpeakerPcmFormat_SpeakerPcmFormat_16kHz_8bit: SpeakerPcmFormat = 1;
/// < 8kHz 16-bit signed little-endian (2 bytes/sample)
pub const SpeakerPcmFormat_SpeakerPcmFormat_8kHz_16bit: SpeakerPcmFormat = 2;
/// < 16kHz 16-bit signed little-endian (2 bytes/sample)
pub const SpeakerPcmFormat_SpeakerPcmFormat_16kHz_16bit: SpeakerPcmFormat = 3;
pub const SpeakerPcmFormat_SpeakerPcmFormatCount: SpeakerPcmFormat = 4;
/** PCM audio format for speaker streaming.
Bit layout: bit0 = sample rate (0=8kHz, 1=16kHz), bit1 = bit depth (0=8-bit, 1=16-bit).
All formats are mono signed PCM (8-bit samples are signed [-128,127], not unsigned).*/
pub type SpeakerPcmFormat = ::core::ffi::c_uchar;
pub const SpeakerStatus_SpeakerStatusIdle: SpeakerStatus = 0;
pub const SpeakerStatus_SpeakerStatusPlaying: SpeakerStatus = 1;
pub const SpeakerStatus_SpeakerStatusDraining: SpeakerStatus = 2;
/// Speaker status
pub type SpeakerStatus = ::core::ffi::c_uchar;
/// < Playback completed naturally
pub const SpeakerFinishReason_SpeakerFinishReasonDone: SpeakerFinishReason = 0;
/// < Playback was stopped by the app
pub const SpeakerFinishReason_SpeakerFinishReasonStopped: SpeakerFinishReason = 1;
/// < Preempted by higher priority source
pub const SpeakerFinishReason_SpeakerFinishReasonPreempted: SpeakerFinishReason = 2;
/// < An error occurred
pub const SpeakerFinishReason_SpeakerFinishReasonError: SpeakerFinishReason = 3;
/// Reason reported when speaker playback ends.
pub type SpeakerFinishReason = ::core::ffi::c_uchar;
/** Callback invoked when playback finishes.

* `reason`: Why playback ended
* `ctx`: User context*/
pub type SpeakerFinishedCallback = ::core::option::Option<
	unsafe extern "C" fn(reason: SpeakerFinishReason, ctx: *mut ::core::ffi::c_void),
>;
/** A raw PCM sample that can be pitch-shifted when played by a track.
data: mono signed PCM in the given format.
num_bytes: size of data in bytes.
format: sample rate + bit depth (see SpeakerPcmFormat).
base_midi_note: the MIDI note at which the sample plays unshifted (e.g. 60 = C4).
Notes above/below this value are produced by resampling.
loop: if true, the sample restarts from the beginning each time it runs out,
and keeps playing until the owning note's duration elapses.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpeakerSample {
	pub data:           *const ::core::ffi::c_void,
	pub num_bytes:      u32,
	pub format:         SpeakerPcmFormat,
	pub base_midi_note: u8,
	pub loop_:          bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of SpeakerSample"][::core::mem::size_of::<SpeakerSample>() - 12usize];
	["Alignment of SpeakerSample"][::core::mem::align_of::<SpeakerSample>() - 4usize];
	["Offset of field: SpeakerSample::data"][::core::mem::offset_of!(SpeakerSample, data) - 0usize];
	["Offset of field: SpeakerSample::num_bytes"]
		[::core::mem::offset_of!(SpeakerSample, num_bytes) - 4usize];
	["Offset of field: SpeakerSample::format"]
		[::core::mem::offset_of!(SpeakerSample, format) - 8usize];
	["Offset of field: SpeakerSample::base_midi_note"]
		[::core::mem::offset_of!(SpeakerSample, base_midi_note) - 9usize];
	["Offset of field: SpeakerSample::loop_"]
		[::core::mem::offset_of!(SpeakerSample, loop_) - 10usize];
};
/** A single monophonic voice. Multiple tracks are mixed together by
speaker_play_tracks() to produce polyphony.
notes: array of notes to play sequentially.
num_notes: length of the notes array.
sample: if non-NULL, notes are played by pitch-shifting this sample;
note.waveform is ignored. If NULL, notes use their waveform field.*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpeakerTrack {
	pub notes:     *const SpeakerNote,
	pub num_notes: u32,
	pub sample:    *const SpeakerSample,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of SpeakerTrack"][::core::mem::size_of::<SpeakerTrack>() - 12usize];
	["Alignment of SpeakerTrack"][::core::mem::align_of::<SpeakerTrack>() - 4usize];
	["Offset of field: SpeakerTrack::notes"][::core::mem::offset_of!(SpeakerTrack, notes) - 0usize];
	["Offset of field: SpeakerTrack::num_notes"]
		[::core::mem::offset_of!(SpeakerTrack, num_notes) - 4usize];
	["Offset of field: SpeakerTrack::sample"]
		[::core::mem::offset_of!(SpeakerTrack, sample) - 8usize];
};
/** Play a sequence of notes on the speaker.

 * `notes`: Array of SpeakerNote structs defining the melody
 * `num_notes`: Number of notes in the array (max SPEAKER_MAX_NOTES)
 * `volume`: Playback volume (0-100)

 Returns true if playback started successfully*/
/** speaker_play_notes
  -> Added in 97
gneiss: Vtable Slot 642, Offset 2568*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_play_notes")]
pub unsafe extern "C" fn speaker_play_notes(
	notes: *const SpeakerNote,
	num_notes: u32,
	volume: u8,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2568", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Play N monophonic tracks in parallel, mixed (polyphony).

 * `tracks`: Array of track descriptors (notes + optional sample).
 * `num_tracks`: Number of tracks. Must be >= 1 and <= SPEAKER_MAX_TRACKS.
 * `volume`: Playback volume (0-100).

 Returns true if playback started successfully.*/
/** speaker_play_tracks
  -> Added in 97
gneiss: Vtable Slot 644, Offset 2576*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_play_tracks")]
pub unsafe extern "C" fn speaker_play_tracks(
	tracks: *const SpeakerTrack,
	num_tracks: u32,
	volume: u8,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2576", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Play a single tone on the speaker (convenience wrapper).

 * `frequency_hz`: Tone frequency in Hz
 * `duration_ms`: Tone duration in milliseconds (max 10000)
 * `volume`: Playback volume (0-100)
 * `waveform`: Waveform to use

 Returns true if playback started successfully*/
/** speaker_play_tone
  -> Added in 97
gneiss: Vtable Slot 643, Offset 2572*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_play_tone")]
pub unsafe extern "C" fn speaker_play_tone(
	frequency_hz: u16,
	duration_ms: u32,
	volume: u8,
	waveform: SpeakerWaveform,
) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2572", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Open a raw PCM stream for app-generated audio.

 * `format`: PCM format specifying sample rate and bit depth
 * `volume`: Playback volume (0-100)

 Returns true if stream opened successfully*/
/** speaker_stream_open
  -> Added in 97
gneiss: Vtable Slot 649, Offset 2596*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_stream_open")]
pub unsafe extern "C" fn speaker_stream_open(format: SpeakerPcmFormat, volume: u8) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2596", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Write PCM data to the open stream.

 * `data`: Buffer of PCM data in the format specified at open
 * `num_bytes`: Number of bytes to write

 Returns Number of bytes actually written (may be less if buffer is full)*/
/** speaker_stream_write
  -> Added in 97
gneiss: Vtable Slot 650, Offset 2600*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_stream_write")]
pub unsafe extern "C" fn speaker_stream_write(
	data: *const ::core::ffi::c_void,
	num_bytes: u32,
) -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2600", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Close the PCM stream. Buffered data will be played before stopping.
/** speaker_stream_close
  -> Added in 97
gneiss: Vtable Slot 648, Offset 2592*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_stream_close")]
pub unsafe extern "C" fn speaker_stream_close() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2592", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/// Stop any active speaker playback immediately.
/** speaker_stop
  -> Added in 97
gneiss: Vtable Slot 647, Offset 2588*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_stop")]
pub unsafe extern "C" fn speaker_stop() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2588", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Set the speaker volume.

 * `volume`: Volume level (0-100)*/
/** speaker_set_volume
  -> Added in 97
gneiss: Vtable Slot 646, Offset 2584*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_set_volume")]
pub unsafe extern "C" fn speaker_set_volume(volume: u8) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2584", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the current speaker status.

 Returns Current SpeakerStatus*/
/** speaker_get_status
  -> Added in 97
gneiss: Vtable Slot 641, Offset 2564*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_get_status")]
pub unsafe extern "C" fn speaker_get_status() -> SpeakerStatus {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2564", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Register a callback invoked when speaker playback ends.
 The callback runs on the app task.

 * `cb`: Callback to invoke, or NULL to unregister.
 * `ctx`: User context passed back to cb.*/
/** speaker_set_finish_callback
  -> Added in 97
gneiss: Vtable Slot 645, Offset 2580*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_set_finish_callback")]
pub unsafe extern "C" fn speaker_set_finish_callback(
	cb: SpeakerFinishedCallback,
	ctx: *mut ::core::ffi::c_void,
) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2580", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Check whether the speaker is currently muted system-wide. The watch can
 mute the speaker either always-on (Settings → Sounds & Haptics) or for
 the duration of Quiet Time (Settings → Quiet Time). Apps cannot
 override the mute, but they can use this to adapt UI or skip long
 sounds the user won't hear.

 Returns true if the speaker is currently muted*/
/** speaker_is_muted
  -> Added in 100
gneiss: Vtable Slot 652, Offset 2608*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.speaker_is_muted")]
pub unsafe extern "C" fn speaker_is_muted() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2608", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Returns true if the backlight is currently on in any form (on, timed,
 or fading out). Returns false only when the backlight is fully off.
 Useful for apps that want to behave differently depending on whether
 the screen is currently lit — e.g. skipping an animation or queuing a
 visual cue for when the screen wakes.*/
/** light_is_on
  -> Added in 95
gneiss: Vtable Slot 636, Offset 2544*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_is_on")]
pub unsafe extern "C" fn light_is_on() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2544", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Trigger the backlight and schedule a timer to automatically disable the backlight
 after a short delay. This is the preferred method of interacting with the backlight.*/
/** light_enable_interaction
  -> Added in 0
gneiss: Vtable Slot 159, Offset 636*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_enable_interaction")]
pub unsafe extern "C" fn light_enable_interaction() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =636", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Turn the watch's backlight on or put it back into automatic control.
 Developers should take care when calling this function, keeping Pebble's backlight on for long periods of time
 will rapidly deplete the battery.

 * `enable`: Turn the backlight on if `true`, otherwise `false` to put it back into automatic control.*/
/** light_enable
  -> Added in 0
gneiss: Vtable Slot 158, Offset 632*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_enable")]
pub unsafe extern "C" fn light_enable(enable: bool) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =632", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tint the backlight LED to the given color. The color persists while the
 app is foregrounded and is automatically reset to the user's default
 (white) when the app exits or is preempted by a system notification.
 On platforms without a color backlight this is a no-op.

 Note: GColor carries only 2 bits per channel (64 distinct tints). Use
 light_set_color_rgb888() if you need the full 8-bit-per-channel range
 that the LED hardware supports.

 * `color`: The color to tint the backlight to.*/
/** light_set_color
  -> Added in 94
gneiss: Vtable Slot 634, Offset 2536*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_set_color")]
pub unsafe extern "C" fn light_set_color(color: GColor) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2536", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Tint the backlight LED to a packed 24-bit RGB value (0x00RRGGBB).
 Same persistence semantics as light_set_color(): the override lasts
 while the app is foregrounded and is reset on app exit or system preempt.
 No-op on platforms without a color backlight.

 * `rgb`: Packed 0x00RRGGBB value; 8 bits per channel. High byte ignored.*/
/** light_set_color_rgb888
  -> Added in 96
gneiss: Vtable Slot 640, Offset 2560*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_set_color_rgb888")]
pub unsafe extern "C" fn light_set_color_rgb888(rgb: u32) {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2560", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Restore the backlight to the user's default color. Rarely needed — the
 system resets automatically on app exit. No-op on platforms without a
 color backlight.*/
/** light_set_system_color
  -> Added in 94
gneiss: Vtable Slot 635, Offset 2540*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.light_set_system_color")]
pub unsafe extern "C" fn light_set_system_color() {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2540", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the recommended amount of milliseconds a result window should be visible before it should
 automatically close.

 Note: It is the application developer's responsibility to automatically close a result window.

 Returns The recommended result window timeout duration in milliseconds*/
/** preferred_result_display_duration
  -> Added in 83
gneiss: Vtable Slot 623, Offset 2492*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.preferred_result_display_duration")]
pub unsafe extern "C" fn preferred_result_display_duration() -> u32 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2492", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
pub const PreferredContentSize_PreferredContentSizeSmall: PreferredContentSize = 0;
pub const PreferredContentSize_PreferredContentSizeMedium: PreferredContentSize = 1;
pub const PreferredContentSize_PreferredContentSizeLarge: PreferredContentSize = 2;
pub const PreferredContentSize_PreferredContentSizeExtraLarge: PreferredContentSize = 3;
pub const PreferredContentSize_NumPreferredContentSizes: PreferredContentSize = 4;
/** PreferredContentSize represents the display scale of all the app's UI components. The enum
contains all sizes that all platforms as a whole are capable of displaying, but each individual
platform may not be able to display all sizes.

Note: As of version 4.1, platforms other than Emery cannot display extra large and Emery itself
cannot display small.*/
pub type PreferredContentSize = ::core::ffi::c_uchar;
/** Returns the user's preferred content size representing the scale of all the app's UI components
 should use for display.

 Returns The user's `PreferredContentSize` setting.*/
/** preferred_content_size
  -> Added in 88
gneiss: Vtable Slot 630, Offset 2520*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.preferred_content_size")]
pub unsafe extern "C" fn preferred_content_size() -> PreferredContentSize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2520", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Users can toggle Quiet Time manually or on schedule. Watchfaces and apps should respect this
 choice and avoid disturbing actions such as vibration if quiet time is active.

 Returns True, if Quiet Time is currently active.*/
/** quiet_time_is_active
  -> Added in 89
gneiss: Vtable Slot 631, Offset 2524*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.quiet_time_is_active")]
pub unsafe extern "C" fn quiet_time_is_active() -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2524", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** structure containing broken-down time for expressing calendar time
(ie. Year, Month, Day of Month, Hour of Day) and timezone information*/
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tm {
	/// < Seconds. [0-60] (1 leap second)
	pub tm_sec:    ::core::ffi::c_int,
	/// < Minutes. [0-59]
	pub tm_min:    ::core::ffi::c_int,
	/// < Hours. [0-23]
	pub tm_hour:   ::core::ffi::c_int,
	/// < Day. [1-31]
	pub tm_mday:   ::core::ffi::c_int,
	/// < Month. [0-11]
	pub tm_mon:    ::core::ffi::c_int,
	/// < Years since 1900
	pub tm_year:   ::core::ffi::c_int,
	/// < Day of week. [0-6]
	pub tm_wday:   ::core::ffi::c_int,
	/// < Days in year.[0-365]
	pub tm_yday:   ::core::ffi::c_int,
	/// < DST. [-1/0/1]
	pub tm_isdst:  ::core::ffi::c_int,
	/** < Total seconds east of UTC, DST included. tm_isdst is an indicator only --
	never add it to this value.*/
	pub tm_gmtoff: ::core::ffi::c_int,
	/// < Timezone abbreviation
	pub tm_zone:   [::core::ffi::c_char; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
	["Size of tm"][::core::mem::size_of::<tm>() - 48usize];
	["Alignment of tm"][::core::mem::align_of::<tm>() - 4usize];
	["Offset of field: tm::tm_sec"][::core::mem::offset_of!(tm, tm_sec) - 0usize];
	["Offset of field: tm::tm_min"][::core::mem::offset_of!(tm, tm_min) - 4usize];
	["Offset of field: tm::tm_hour"][::core::mem::offset_of!(tm, tm_hour) - 8usize];
	["Offset of field: tm::tm_mday"][::core::mem::offset_of!(tm, tm_mday) - 12usize];
	["Offset of field: tm::tm_mon"][::core::mem::offset_of!(tm, tm_mon) - 16usize];
	["Offset of field: tm::tm_year"][::core::mem::offset_of!(tm, tm_year) - 20usize];
	["Offset of field: tm::tm_wday"][::core::mem::offset_of!(tm, tm_wday) - 24usize];
	["Offset of field: tm::tm_yday"][::core::mem::offset_of!(tm, tm_yday) - 28usize];
	["Offset of field: tm::tm_isdst"][::core::mem::offset_of!(tm, tm_isdst) - 32usize];
	["Offset of field: tm::tm_gmtoff"][::core::mem::offset_of!(tm, tm_gmtoff) - 36usize];
	["Offset of field: tm::tm_zone"][::core::mem::offset_of!(tm, tm_zone) - 40usize];
};
/** Format the time value at tm according to fmt and place the result in a buffer s of size max

 * `s`: A preallocation char array of size max
 * `maxsize`: the size of the array s
 * `format`: a formatting string
 * `tm_p`: A pointer to a struct tm containing a broken out time value

 Returns The number of bytes placed in the array s, not including the null byte,
 0 if the value does not fit.*/
/** strftime
  -> Added in 0
gneiss: Vtable Slot 244, Offset 976*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.strftime")]
pub unsafe extern "C" fn strftime(
	s: *mut ::core::ffi::c_char,
	maxsize: usize,
	format: *const ::core::ffi::c_char,
	tm_p: *const tm,
) -> usize {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =976", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** convert the time value pointed at by clock to a struct tm which contains the time
 adjusted for the local timezone

 * `timep`: A pointer to an object of type time_t that contains a time value

 Returns A pointer to a struct tm containing the broken out time value adjusted
 for the local timezone*/
/** localtime
  -> Added in 31
gneiss: Vtable Slot 379, Offset 1516*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.localtime")]
pub unsafe extern "C" fn localtime(timep: *const time_t) -> *mut tm {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1516", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** convert the time value pointed at by clock to a struct tm
 which contains the time expressed in Coordinated Universal Time (UTC)

 * `timep`: A pointer to an object of type time_t that contains a time value

 Returns A pointer to a struct tm containing Coordinated Universal Time (UTC)*/
/** gmtime
  -> Added in 0
gneiss: Vtable Slot 104, Offset 416*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.gmtime")]
pub unsafe extern "C" fn gmtime(timep: *const time_t) -> *mut tm {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =416", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** convert the broken-down time structure to a timestamp
 expressed in Coordinated Universal Time (UTC)

 * `tb`: A pointer to an object of type tm that contains broken-down time

 Returns The number of seconds since epoch, January 1st 1970*/
/** mktime
  -> Added in 29
gneiss: Vtable Slot 363, Offset 1452*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.mktime")]
pub unsafe extern "C" fn mktime(tb: *mut tm) -> time_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =1452", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Obtain the number of seconds since epoch.
 Note that the epoch is not adjusted for Timezones and Daylight Savings.

 * `tloc`: Optionally points to an address of a time_t variable to store the time in.
 If you only want to use the return value, you may pass NULL into tloc instead

 Returns The number of seconds since epoch, January 1st 1970*/
/** time
  -> Added in 51
gneiss: Vtable Slot 519, Offset 2076*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.time")]
pub unsafe extern "C" fn time(tloc: *mut time_t) -> time_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2076", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Obtain the number of seconds elapsed between beginning and end represented as a double.

 * `end`: A time_t variable representing some number of seconds since epoch, January 1st 1970
 * `beginning`: A time_t variable representing some number of seconds since epoch,
 January 1st 1970. Note that end should be greater than beginning, but this is not enforced.

 Returns The number of seconds elapsed between beginning and end.

 Note: Pebble uses software floating point emulation. Including this function which returns a
 double will significantly increase the size of your binary. We recommend directly
 subtracting both timestamps to calculate a time difference.
 ```c
	 int difference = ts1 - ts2;
 ```*/
/** difftime
  -> Added in 58
gneiss: Vtable Slot 531, Offset 2124*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.difftime")]
pub unsafe extern "C" fn difftime(end: time_t, beginning: time_t) -> f64 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2124", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Obtain the number of seconds and milliseconds part since the epoch.
 This is a non-standard C function provided for convenience.

 * `tloc`: if provided receives the current UTC Unix Time seconds portion
 * `out_ms`: if provided receives the current Unix Time milliseconds portion

 Returns Current Unix Time milliseconds portion*/
/** time_ms
  -> Added in 59
gneiss: Vtable Slot 532, Offset 2128*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.time_ms")]
pub unsafe extern "C" fn time_ms(tloc: *mut time_t, out_ms: *mut u16) -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2128", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Return the UTC time that corresponds to the start of today (midnight).

 Returns the UTC time corresponding to the start of today (midnight)*/
/** time_start_of_today
  -> Added in 78
gneiss: Vtable Slot 608, Offset 2432*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.time_start_of_today")]
pub unsafe extern "C" fn time_start_of_today() -> time_t {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2432", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Get the most recent HRV peak-to-peak interval in milliseconds. The value is captured from
 `HealthEventHRVUpdate` events, so it only updates while this app is subscribed via
 `health_service_events_subscribe()` and holds an HRV sample period.

 Returns PPI in ms, or 0 if no reading available.*/
/** health_service_peek_hrv_ppi_ms
  -> Added in 109
gneiss: Vtable Slot 675, Offset 2700*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_peek_hrv_ppi_ms")]
pub unsafe extern "C" fn health_service_peek_hrv_ppi_ms() -> u16 {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2700", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}
/** Request HRV (peak-to-peak interval) sampling. While any app holds an HRV sample period, the
 sensor collects HRV alongside heart rate and HealthEventHRVUpdate events are delivered to
 health service subscribers.
 The HRV and heart rate sample periods (`health_service_set_heart_rate_sample_period`)
 share the app's single sensor subscription: both may be active at once, the sensor is driven
 at the shorter of the two periods, and setting one period to 0 clears only that request.

 * `interval_sec`: desired sampling interval in seconds; 0 unsubscribes.

 Returns true on success.*/
/** health_service_set_hrv_sample_period
  -> Added in 109
gneiss: Vtable Slot 676, Offset 2704*/
#[unsafe(naked)]
#[unsafe(link_section = ".text.health_service_set_hrv_sample_period")]
pub unsafe extern "C" fn health_service_set_hrv_sample_period(interval_sec: u16) -> bool {
	core::arch::naked_asm!(
		"push  {{r0-r3}}", "ldr   r1, =2704", "b     {resolver}", resolver = sym crate
		::shim::jump_to_pbl_function,
	)
}