; ; -[AccelerometerSimulation initialize] from 0x100152c84 to 0x100152d98 (276 bytes) ; ; 2 xrefs: ; > +[AccelerometerSimulation getAccelerometer] @ 0x100152bdc ; > @ 0x100845b60 ; ; 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 ; SUB SP, SP, #0x40 ; +0x0, 0x100152c84 STP X20, X19, [SP,#0x30+var_10] ; +0x4, 0x100152c88 STP X29, X30, [SP,#0x30+var_s0] ; +0x8, 0x100152c8c ADD X29, SP, #0x30 ; +0xc, 0x100152c90 MOV X19, X0 ; +0x10, 0x100152c94 ADRP X8, #___stack_chk_guard_ptr@PAGE ; +0x14, 0x100152c98 LDR X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x18, 0x100152c9c LDR X8, [X8] ; +0x1c, 0x100152ca0 STR X8, [SP,#0x30+var_18] ; +0x20, 0x100152ca4 ADRP X8, #classRef_UIAccelerationSimulation@PAGE ; +0x24, 0x100152ca8 LDR X0, [X8,#classRef_UIAccelerationSimulation@PAGEOFF]; _OBJC_CLASS_$_UIAccelerationSimulation ; Class ; +0x28, 0x100152cac BL _objc_alloc ; +0x2c, 0x100152cb0 ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.accObject@PAGE; UIAccelerationSimulation *accObject; ; +0x30, 0x100152cb4 LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.accObject@PAGEOFF]; UIAccelerationSimulation *accObject; ; +0x34, 0x100152cb8 STR X0, [X19,X8] ; +0x38, 0x100152cbc ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.isExiting@PAGE; bool isExiting; ; +0x3c, 0x100152cc0 LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.isExiting@PAGEOFF]; bool isExiting; ; +0x40, 0x100152cc4 STRB WZR, [X19,X8] ; +0x44, 0x100152cc8 MOV W0, #2; int ; +0x48, 0x100152ccc MOV W1, #2; int ; +0x4c, 0x100152cd0 MOV W2, #0x11; int ; +0x50, 0x100152cd4 BL _socket ; +0x54, 0x100152cd8 ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGE; int udpSocket; ; +0x58, 0x100152cdc LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGEOFF]; int udpSocket; ; +0x5c, 0x100152ce0 STR W0, [X19,X8] ; +0x60, 0x100152ce4 STR WZR, [SP,#0x30+var_28.sa_data+0xA] ; +0x64, 0x100152ce8 STUR XZR, [SP,#0x30+var_28.sa_data+2] ; +0x68, 0x100152cec MOV W8, #0x38290210 ; +0x6c, 0x100152cf0 STR W8, [SP,#0x30+var_28] ; +0x74, 0x100152cf8 ADD X1, SP, #0x30+var_28; sockaddr * ; +0x78, 0x100152cfc MOV W2, #0x10; socklen_t ; +0x7c, 0x100152d00 BL _bind ; +0x80, 0x100152d04 ADRP X8, #classRef_NSThread@PAGE ; +0x84, 0x100152d08 LDR X0, [X8,#classRef_NSThread@PAGEOFF]; _OBJC_CLASS_$_NSThread ; Class ; +0x88, 0x100152d0c BL _objc_alloc ; +0x8c, 0x100152d10 ADRP X8, #selRef_threadLoop_@PAGE ; +0x90, 0x100152d14 LDR X3, [X8,#selRef_threadLoop_@PAGEOFF]; "threadLoop:" ... ; +0x94, 0x100152d18 MOV X2, X19 ; +0x98, 0x100152d1c MOV X4, #0 ; +0x9c, 0x100152d20 BL _objc_msgSend$initWithTarget_selector_object_ ; +0xa0, 0x100152d24 ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.thread@PAGE; NSThread *thread; ; +0xa4, 0x100152d28 LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.thread@PAGEOFF]; NSThread *thread; ; +0xa8, 0x100152d2c STR X0, [X19,X8] ; +0xac, 0x100152d30 BL _objc_msgSend$start; -[NSThread start] ... ; +0xb0, 0x100152d34 MOV X0, X19 ; +0xb4, 0x100152d38 BL _objc_msgSend$setUpThreadingSupport; -[AccelerometerSimulation setUpThreadingSupport] ... ; +0xb8, 0x100152d3c ADRP X8, #classRef_NSNotificationCenter@PAGE ; +0xbc, 0x100152d40 LDR X0, [X8,#classRef_NSNotificationCenter@PAGEOFF]; _OBJC_CLASS_$_NSNotificationCenter ; +0xc0, 0x100152d44 BL _objc_msgSend$defaultCenter; +[NSNotificationCenter defaultCenter] ... ; +0xc4, 0x100152d48 ADRP X8, #selRef_processNotification_@PAGE ; +0xc8, 0x100152d4c LDR X3, [X8,#selRef_processNotification_@PAGEOFF]; "processNotification:" ... ; +0xcc, 0x100152d50 ADRL X4, cfstr_Threadaccelnot; "ThreadAccelNotification" ; +0xd0, 0x100152d54 MOV X2, X19 ; +0xd8, 0x100152d5c MOV X5, #0 ; +0xdc, 0x100152d60 BL _objc_msgSend$addObserver_selector_name_object_; -[NSNotificationCenter addObserver:selector:name:object:] ... ; +0xe0, 0x100152d64 LDR X8, [SP,#0x30+var_18] ; +0xe4, 0x100152d68 ADRP X9, #___stack_chk_guard_ptr@PAGE ; +0xe8, 0x100152d6c LDR X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0xec, 0x100152d70 LDR X9, [X9] ; +0xf0, 0x100152d74 CMP X9, X8 ; +0xf4, 0x100152d78 B.NE loc_100152D94 ; +0xf8, 0x100152d7c MOV X0, X19 ; +0xfc, 0x100152d80 LDP X29, X30, [SP,#0x30+var_s0] ; +0x100, 0x100152d84 LDP X20, X19, [SP,#0x30+var_10] ; +0x104, 0x100152d88 ADD SP, SP, #0x40 ; '@' ; +0x108, 0x100152d8c RET ; +0x10c, 0x100152d90 BL ___stack_chk_fail ; +0x110, 0x100152d94