//
// -[AccelerometerSimulation setUpThreadingSupport] from 0x1001528f4 to 0x1001529b8 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x100845b00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __cdecl -[AccelerometerSimulation setUpThreadingSupport](AccelerometerSimulation *self, SEL a2)
{
NSMachPort *v3; // x0
if ( !self->notifications )
{
self->notifications = (NSMutableArray *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSMutableArray), "init");
self->notificationLock = (NSLock *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSLock), "init");
self->notificationThread = objc_retain(+[NSThread currentThread](&OBJC_CLASS___NSThread, "currentThread"));
v3 = (NSMachPort *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSMachPort), "init");
self->notificationPort = v3;
-[NSMachPort setDelegate:](v3, "setDelegate:", self);
-[NSRunLoop addPort:forMode:](
+[NSRunLoop currentRunLoop](&OBJC_CLASS___NSRunLoop, "currentRunLoop"),
"addPort:forMode:",
self->notificationPort,
kCFRunLoopCommonModes);
}
}