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
#[allow(unused_imports)]
use self::super::root;
pub mod detail;

pub type Tick = u64;
pub type LightEventType = u64;
#[repr(C)]
pub struct EventType {
    pub _x0: *mut root::nn::os::EventType,
    pub _x8: *mut root::nn::os::EventType,
    pub isSignaled: bool,
    pub initiallySignaled: bool,
    pub shouldAutoClear: bool,
    pub isInit: bool,
    pub signalCounter: u32,
    pub signalCounter2: u32,
    pub crit: root::nn::os::detail::InternalCriticalSection,
    pub condvar: root::nn::os::detail::InternalConditionVariable,
}

pub type Event = root::nn::os::EventType;
pub const EventClearMode_EventClearMode_ManualClear: root::nn::os::EventClearMode = 0;
pub const EventClearMode_EventClearMode_AutoClear: root::nn::os::EventClearMode = 1;
pub type EventClearMode = u32;

pub struct MessageQueueType {
    pub _x0: u64,
    pub _x8: u64,
    pub _x10: u64,
    pub _x18: u64,
    pub Buffer: *mut u8,
    pub MaxCount: u32,
    pub Count: u32,
    pub Offset: u32,
    pub Initialized: bool,
    pub _x38: root::nn::os::detail::InternalCriticalSection,
    pub _x3C: root::nn::os::detail::InternalConditionVariable,
    pub _x40: root::nn::os::detail::InternalConditionVariable,
}


#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ConditionVariableType {
    pub _address: u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SystemEvent {
    pub _unused: [u8; 0x28],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SystemEventType {
    pub _unused: [u8; 0x29],
}
impl SystemEventType {
    pub fn new(clear_mode: SystemEventClearMode) -> Self {
        let x = Self { _unused: [0; 0x29] };
        unsafe { CreateSystemEvent(&x, clear_mode, false) };
        x
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub enum SystemEventClearMode {
    Manual = 0,
    Auto = 1,
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11SetHostArgcEi"]
    pub fn SetHostArgc(arg1: root::s32);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11GetHostArgcEv"]
    pub fn GetHostArgc() -> root::s32;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11SetHostArgvEPPc"]
    pub fn SetHostArgv(arg1: *mut *mut u8);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11GetHostArgvEv"]
    pub fn GetHostArgv() -> *mut *mut u8;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os30InitializeVirtualAddressMemoryEv"]
    pub fn InitializeVirtualAddressMemory();
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os21AllocateAddressRegionEPmm"]
    pub fn AllocateAddressRegion(arg1: *mut u64, arg2: u64) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os14AllocateMemoryEPmm"]
    pub fn AllocateMemory(arg1: *mut u64, arg2: u64) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19AllocateMemoryPagesEmm"]
    pub fn AllocateMemoryPages(arg1: u64, arg2: u64) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19AllocateMemoryBlockEPmm"]
    pub fn AllocateMemoryBlock(arg1: *mut u64, arg2: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os15FreeMemoryBlockEmm"]
    pub fn FreeMemoryBlock(arg1: u64, arg2: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os17SetMemoryHeapSizeEm"]
    pub fn SetMemoryHeapSize(arg1: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os17CreateSystemEventEPNS0_15SystemEventTypeENS0_14EventClearModeEb"]
    pub fn CreateSystemEvent(
        arg1: *const SystemEventType,
        clear_mode: SystemEventClearMode,
        skip_init: bool,
    ) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os18TryWaitSystemEventEPNS0_15SystemEventTypeE"]
    pub fn TryWaitSystemEvent(arg1: *const SystemEventType) -> bool;
}
#[repr(C)]
pub struct MutexType {
    pub impl_: root::nnosMutexType,
}


extern "C" {
    #[link_name = "\u{1}_ZN2nn2os15InitializeMutexEPNS0_9MutexTypeEbi"]
    pub fn InitializeMutex(
        arg1: *mut root::nn::os::MutexType,
        arg2: bool,
        arg3: root::s32,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13FinalizeMutexEPNS0_9MutexTypeE"]
    pub fn FinalizeMutex(arg1: *mut root::nn::os::MutexType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os9LockMutexEPNS0_9MutexTypeE"]
    pub fn LockMutex(arg1: *mut root::nn::os::MutexType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os12TryLockMutexEPNS0_9MutexTypeE"]
    pub fn TryLockMutex(arg1: *mut root::nn::os::MutexType) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11UnlockMutexEPNS0_9MutexTypeE"]
    pub fn UnlockMutex(arg1: *mut root::nn::os::MutexType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os28IsMutexLockedByCurrentThreadEPKNS0_9MutexTypeE"]
    pub fn IsMutexLockedByCurrentThread(arg1: *const root::nn::os::MutexType) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os22InitializeMessageQueueEPNS0_16MessageQueueTypeEPmm"]
    pub fn InitializeMessageQueue(
        arg1: *mut root::nn::os::MessageQueueType,
        buf: *mut u64,
        queueCount: u64,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os20FinalizeMessageQueueEPNS0_16MessageQueueTypeE"]
    pub fn FinalizeMessageQueue(arg1: *mut root::nn::os::MessageQueueType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19TrySendMessageQueueEPNS0_16MessageQueueTypeEm"]
    pub fn TrySendMessageQueue(
        arg1: *mut root::nn::os::MessageQueueType,
        arg2: u64,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os16SendMessageQueueEPNS0_16MessageQueueTypeEm"]
    pub fn SendMessageQueue(arg1: *mut root::nn::os::MessageQueueType, arg2: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os21TimedSendMessageQueueEPNS0_16MessageQueueTypeEmNS_8TimeSpanE"]
    pub fn TimedSendMessageQueue(
        arg1: *mut root::nn::os::MessageQueueType,
        arg2: u64,
        arg3: root::nn::TimeSpan,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os22TryReceiveMessageQueueEPmPNS0_16MessageQueueTypeE"]
    pub fn TryReceiveMessageQueue(
        out: *mut u64,
        arg1: *mut root::nn::os::MessageQueueType,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19ReceiveMessageQueueEPmPNS0_16MessageQueueTypeE"]
    pub fn ReceiveMessageQueue(
        out: *mut u64,
        arg1: *mut root::nn::os::MessageQueueType,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os24TimedReceiveMessageQueueEPmPNS0_16MessageQueueTypeENS_8TimeSpanE"]
    pub fn TimedReceiveMessageQueue(
        out: *mut u64,
        arg1: *mut root::nn::os::MessageQueueType,
        arg2: root::nn::TimeSpan,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19TryPeekMessageQueueEPmPKNS0_16MessageQueueTypeE"]
    pub fn TryPeekMessageQueue(
        arg1: *mut u64,
        arg2: *const root::nn::os::MessageQueueType,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os16PeekMessageQueueEPmPKNS0_16MessageQueueTypeE"]
    pub fn PeekMessageQueue(
        arg1: *mut u64,
        arg2: *const root::nn::os::MessageQueueType,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os21TimedPeekMessageQueueEPmPKNS0_16MessageQueueTypeE"]
    pub fn TimedPeekMessageQueue(
        arg1: *mut u64,
        arg2: *const root::nn::os::MessageQueueType,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os18TryJamMessageQueueEPNS0_16MessageQueueTypeEm"]
    pub fn TryJamMessageQueue(
        arg1: *mut root::nn::os::MessageQueueType,
        arg2: u64,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os15JamMessageQueueEPNS0_16MessageQueueTypeEm"]
    pub fn JamMessageQueue(arg1: *mut root::nn::os::MessageQueueType, arg2: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os20TimedJamMessageQueueEPNS0_16MessageQueueTypeEmNS_8TimeSpanE"]
    pub fn TimedJamMessageQueue(
        arg1: *mut root::nn::os::MessageQueueType,
        arg2: u64,
        arg3: root::nn::TimeSpan,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os27InitializeConditionVariableEPNS0_21ConditionVariableTypeE"]
    pub fn InitializeConditionVariable(arg1: *mut root::nn::os::ConditionVariableType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os25FinalizeConditionVariableEPNS0_21ConditionVariableTypeE"]
    pub fn FinalizeConditionVariable(arg1: *mut root::nn::os::ConditionVariableType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os23SignalConditionVariableEPNS0_21ConditionVariableTypeE"]
    pub fn SignalConditionVariable(arg1: *mut root::nn::os::ConditionVariableType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os26BroadcastConditionVariableEPNS0_21ConditionVariableTypeE"]
    pub fn BroadcastConditionVariable(arg1: *mut root::nn::os::ConditionVariableType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os21WaitConditionVariableEPNS0_21ConditionVariableTypeE"]
    pub fn WaitConditionVariable(arg1: *mut root::nn::os::ConditionVariableType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os26TimedWaitConditionVariableEPNS0_21ConditionVariableTypeEPNS0_9MutexTypeENS_8TimeSpanE"]
    pub fn TimedWaitConditionVariable(
        arg1: *mut root::nn::os::ConditionVariableType,
        arg2: *mut root::nn::os::MutexType,
        arg3: root::nn::TimeSpan,
    ) -> u8;
}

// THREADS

#[repr(C)]
pub struct ThreadType {
    inner: [u8; 0x1c0],
}

impl ThreadType {
    pub fn new() -> Self {
        Self {
            inner: [0u8;0x1c0],
        }
    }
}

impl Default for ThreadType {
    fn default() -> Self {
        Self::new()
    }
}

extern "C" {
    #[link_name = "\u{1}_ZN2nn2os12CreateThreadEPNS0_10ThreadTypeEPFvPvES3_S3_mi"]
    pub fn CreateThread(
        thread: *mut ThreadType,
        function: extern "C" fn(arg: *mut libc::c_void),
        argument: *mut u8,
        stack: *mut u8,
        stack_size: usize,
        priority: i32,
    ) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os12CreateThreadEPNS0_10ThreadTypeEPFvPvES3_S3_mii"]
    pub fn CreateThread1(
        thread: *mut ThreadType,
        function: extern "C" fn(arg: *mut libc::c_void),
        argument: *mut u8,
        stack: *mut u8,
        stack_size: usize,
        priority: i32,
        ideal_core_id: i32,
    ) -> root::Result;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13DestroyThreadEPNS0_10ThreadTypeE"]
    pub fn DestroyThread(thread: *mut ThreadType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11StartThreadEPNS0_10ThreadTypeE"]
    pub fn StartThread(thread: *mut ThreadType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13SetThreadNameEPNS0_10ThreadTypeEPKc"]
    pub fn SetThreadName(
        thread: *mut ThreadType,
        thread_name: *const u8,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os20SetThreadNamePointerEPNS0_10ThreadTypeEPKc"]
    pub fn SetThreadNamePointer(
        thread: *mut ThreadType,
        thread_name: *const u8,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os20GetThreadNamePointerEPKNS0_10ThreadTypeE"]
    pub fn GetThreadNamePointer(
        thread: *const ThreadType,
    ) -> *mut u8;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os16GetCurrentThreadEv"]
    pub fn GetCurrentThread() -> *mut ThreadType;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os20ChangeThreadPriorityEPNS0_10ThreadTypeEi"]
    pub fn ChangeThreadPriority(
        thread: *mut ThreadType,
        priority: i32,
    ) -> i32;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os17GetThreadPriorityEPKNS0_10ThreadTypeE"]
    pub fn GetThreadPriority(thread: *const ThreadType) -> i32;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11YieldThreadEv"]
    pub fn YieldThread();
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13SuspendThreadEPNS0_10ThreadTypeE"]
    pub fn SuspendThread(thread: *mut ThreadType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os12ResumeThreadEPNS0_10ThreadTypeE"]
    pub fn ResumeThread(thread: *mut ThreadType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11SleepThreadENS_8TimeSpanE"]
    pub fn SleepThread(time: root::nn::TimeSpan);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os10WaitThreadEPNS0_10ThreadTypeE"]
    pub fn WaitThread(thread: *mut ThreadType);
}

// Events

extern "C" {
    #[link_name = "\u{1}_ZN2nn2os15InitializeEventEPNS0_9EventTypeEbNS0_14EventClearModeE"]
    pub fn InitializeEvent(
        arg1: *mut root::nn::os::EventType,
        initiallySignaled: bool,
        clearMode: root::nn::os::EventClearMode,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13FinalizeEventEPNS0_9EventTypeE"]
    pub fn FinalizeEvent(arg1: *mut root::nn::os::EventType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os11SignalEventEPNS0_9EventTypeE"]
    pub fn SignalEvent(arg1: *mut root::nn::os::EventType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os9WaitEventEPNS0_9EventTypeE"]
    pub fn WaitEvent(arg1: *mut root::nn::os::EventType);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os12TryWaitEventEPNS0_9EventTypeE"]
    pub fn TryWaitEvent(arg1: *mut root::nn::os::EventType) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os14TimedWaitEventEPNS0_9EventTypeENS_8TimeSpanE"]
    pub fn TimedWaitEvent(
        arg1: *mut root::nn::os::EventType,
        arg2: root::nn::TimeSpan,
    ) -> bool;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os10ClearEventEPNS0_9EventTypeE"]
    pub fn ClearEvent(arg1: *mut root::nn::os::EventType);
}
#[repr(C)]
pub struct CpuRegister {
    #[doc = "< 64-bit AArch64 register view."]
    pub x: root::__BindgenUnionField<u64>,
    #[doc = "< 32-bit AArch64 register view."]
    pub w: root::__BindgenUnionField<u32>,
    #[doc = "< AArch32 register view."]
    pub r: root::__BindgenUnionField<u32>,
    pub bindgen_union_field: u64,
}

#[doc = " Armv8 NEON register."]
#[repr(C)]
#[repr(align(16))]
pub struct FpuRegister {
    #[doc = "< 128-bit vector view."]
    pub v: root::__BindgenUnionField<u128>,
    #[doc = "< 64-bit double-precision view."]
    pub d: root::__BindgenUnionField<f64>,
    #[doc = "< 32-bit single-precision view."]
    pub s: root::__BindgenUnionField<f32>,
    pub bindgen_union_field: u128,
}

#[repr(C)]
#[repr(align(16))]
pub struct UserExceptionInfo {
    #[doc = "< See \\ref ThreadExceptionDesc."]
    pub ErrorDescription: u32,
    pub pad: [u32; 3usize],
    #[doc = "< GPRs 0..28. Note: also contains AArch32 registers."]
    pub CpuRegisters: [root::nn::os::CpuRegister; 29usize],
    #[doc = "< Frame pointer."]
    pub FP: root::nn::os::CpuRegister,
    #[doc = "< Link register."]
    pub LR: root::nn::os::CpuRegister,
    #[doc = "< Stack pointer."]
    pub SP: root::nn::os::CpuRegister,
    #[doc = "< Program counter (elr_el1)."]
    pub PC: root::nn::os::CpuRegister,
    pub padding: u64,
    #[doc = "< 32 general-purpose NEON registers."]
    pub FpuRegisters: [root::nn::os::FpuRegister; 32usize],
    #[doc = "< pstate & 0xFF0FFE20"]
    pub PState: u32,
    pub AFSR0: u32,
    pub AFSR1: u32,
    pub ESR: u32,
    #[doc = "< Fault Address Register."]
    pub FAR: root::nn::os::CpuRegister,
}

extern "C" {
    #[link_name = "\u{1}_ZN2nn2os23SetUserExceptionHandlerEPFvPNS0_17UserExceptionInfoEEPvmS2_"]
    #[allow(improper_ctypes)]
    pub fn SetUserExceptionHandler(
        arg1: ::core::option::Option<
            unsafe extern "C" fn(arg1: *mut root::nn::os::UserExceptionInfo),
        >,
        arg2: *mut u8,
        arg3: root::ulong,
        arg4: *mut root::nn::os::UserExceptionInfo,
    );
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os19GenerateRandomBytesEPvm"]
    pub fn GenerateRandomBytes(arg1: *mut u8, arg2: u64);
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os13GetSystemTickEv"]
    pub fn GetSystemTick() -> root::nn::os::Tick;
}
extern "C" {
    #[link_name = "\u{1}_ZN2nn2os26GetThreadAvailableCoreMaskEv"]
    pub fn GetThreadAvailableCoreMask() -> u64;
}


pub type FiberFunction = extern "C" fn(*const u8) -> *const FiberType;

#[repr(C)]
pub struct FiberType {
    pub status: u8,
    pub is_aligned: bool,
    pub function: FiberFunction,
    pub args: *mut libc::c_void,
    pub unk1: *mut libc::c_void,
    pub stack: *mut libc::c_void,
    pub stack_size: usize,
    pub context: [u8; 208],
}

extern "C" {
    #[link_name = "\u{1}_ZN2nn2os15InitializeFiberEPNS0_9FiberTypeEPFS2_PvES3_S3_mi"]
    pub fn InitializeFiber(fiber: *mut FiberType, fiber_function: FiberFunction, arguments: *mut libc::c_void, stack: *mut libc::c_void, stack_size: usize, flag: i32);

    #[link_name = "_ZN2nn2os13SwitchToFiberEPNS0_9FiberTypeE"]
    pub fn SwitchToFiber(fiber: *mut FiberType);

    #[link_name = "_ZN2nn2os15GetCurrentFiberEv"]
    pub fn GetCurrentFiber() -> *mut FiberType;

    #[link_name = "_ZN2nn2os13FinalizeFiberEPNS0_9FiberTypeE"]
    pub fn FinalizeFiber(fiber: *mut FiberType);
}