//
// -[AccelerometerSimulation setUpThreadingSupport] from 0x1001d1460 to 0x1001d1518 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009cd7d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:00:23 +0000
//
void __cdecl -[AccelerometerSimulation setUpThreadingSupport](AccelerometerSimulation *self, SEL a2)
{
NSMachPort *v3; // x0
if ( !self->notifications )
{
self->notifications = (NSMutableArray *)objc_alloc_init((Class)&OBJC_CLASS___NSMutableArray);
self->notificationLock = (NSLock *)objc_alloc_init((Class)&OBJC_CLASS___NSLock);
self->notificationThread = objc_retain(+[NSThread currentThread](&OBJC_CLASS___NSThread, "currentThread"));
v3 = (NSMachPort *)objc_alloc_init((Class)&OBJC_CLASS___NSMachPort);
self->notificationPort = v3;
-[NSMachPort setDelegate:](v3, "setDelegate:", self);
-[NSRunLoop addPort:forMode:](
+[NSRunLoop currentRunLoop](&OBJC_CLASS___NSRunLoop, "currentRunLoop"),
"addPort:forMode:",
self->notificationPort,
kCFRunLoopCommonModes);
}
}