{"type": "func", "start": 6442781200, "end": 6442781272, "name": "cocos2d::CCLayer::setAccelerometerInterval", "pseudocode": "// \n// cocos2d::CCLayer::setAccelerometerInterval from 0x180050a10 to 0x180050a58 (72 bytes)\n// \n// 8 xrefs:\n// > <???> @ 0x1800ed2b0\n// > <???> @ 0x1800ed770\n// > <???> @ 0x1800edca8\n// > <???> @ 0x1800ee210\n// > <???> @ 0x1800ee7e8\n// > <???> @ 0x1800f70b8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b204c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCLayer::setAccelerometerInterval(cocos2d::CCLayer *this, double a2)\n{\n  struct cocos2d::CCDirector *v2; // rax\n  float v3; // xmm6_4\n  cocos2d::CCNode *v4; // rax\n\n  if ( this->m_bAccelerometerEnabled && this->m_bRunning )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = a2;\n    v4 = (cocos2d::CCNode *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getAccelerometer)(v2);\n    cocos2d::CCNode::updateTweenActionInt(v4, v3);\n  }\n}", "assembly": "; \n; cocos2d::CCLayer::setAccelerometerInterval from 0x180050a10 to 0x180050a58 (72 bytes)\n; \n; 8 xrefs:\n; > <???> @ 0x1800ed2b0\n; > <???> @ 0x1800ed770\n; > <???> @ 0x1800edca8\n; > <???> @ 0x1800ee210\n; > <???> @ 0x1800ee7e8\n; > <???> @ 0x1800f70b8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b204c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 38h                                                       ; +0x0, 0x180050a10\ncmp     byte ptr [rcx+169h], 0                                         ; +0x4, 0x180050a14\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xb, 0x180050a1b\nmovaps  xmm6, xmm1                                                     ; +0x10, 0x180050a20\njz      short loc_180050A4E                                            ; +0x13, 0x180050a23\ncmp     byte ptr [rcx+110h], 0                                         ; +0x15, 0x180050a25\njz      short loc_180050A4E                                            ; +0x1c, 0x180050a2c\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1e, 0x180050a2e\nmov     rcx, rax                                                       ; +0x23, 0x180050a33\ncvtsd2ss xmm6, xmm6                                                    ; +0x26, 0x180050a36\nmov     rdx, [rax]                                                     ; +0x2a, 0x180050a3a\ncall    qword ptr [rdx+0D0h]                                           ; +0x2d, 0x180050a3d\nmov     rcx, rax; this                                                 ; +0x33, 0x180050a43\nmovaps  xmm1, xmm6; float                                              ; +0x36, 0x180050a46\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x39, 0x180050a49\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x3e, 0x180050a4e\nadd     rsp, 38h                                                       ; +0x43, 0x180050a53\nretn                                                                   ; +0x47, 0x180050a57", "xrefs": ["<???> @ 0x1800ed2b0", "<???> @ 0x1800ed770", "<???> @ 0x1800edca8", "<???> @ 0x1800ee210", "<???> @ 0x1800ee7e8", "<???> @ 0x1800f70b8", "<???> @ 0x1801438a8", "<???> @ 0x1801b204c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}