{"type": "func", "start": 6443234096, "end": 6443234178, "name": "cocos2d::CCDirector::setAccelerometer", "pseudocode": "// \n// cocos2d::CCDirector::setAccelerometer from 0x1800bf330 to 0x1800bf382 (82 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180107348\n// > <???> @ 0x180107458\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b92d0\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::CCDirector::setAccelerometer(cocos2d::CCDirector *this, struct cocos2d::CCAccelerometer *a2)\n{\n  float v2; // xmm1_4\n  struct cocos2d::CCAccelerometer *m_pAccelerometer; // rbx\n\n  m_pAccelerometer = this->m_pAccelerometer;\n  if ( m_pAccelerometer != a2 )\n  {\n    if ( m_pAccelerometer )\n    {\n      cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)this->m_pAccelerometer, v2);\n      j_j_free_0(m_pAccelerometer);\n    }\n    this->m_pAccelerometer = a2;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setAccelerometer from 0x1800bf330 to 0x1800bf382 (82 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180107348\n; > <???> @ 0x180107458\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b92d0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bf330\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800bf335\npush    rdi                                                            ; +0xa, 0x1800bf33a\nsub     rsp, 20h                                                       ; +0xb, 0x1800bf33b\nmov     rbx, [rcx+98h]                                                 ; +0xf, 0x1800bf33f\nmov     rdi, rdx                                                       ; +0x16, 0x1800bf346\nmov     rsi, rcx                                                       ; +0x19, 0x1800bf349\ncmp     rbx, rdx                                                       ; +0x1c, 0x1800bf34c\njz      short loc_1800BF372                                            ; +0x1f, 0x1800bf34f\ntest    rbx, rbx                                                       ; +0x21, 0x1800bf351\njz      short loc_1800BF36B                                            ; +0x24, 0x1800bf354\nmov     rcx, rbx; this                                                 ; +0x26, 0x1800bf356\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x29, 0x1800bf359\nmov     edx, 28h ; '('                                                 ; +0x2e, 0x1800bf35e\nmov     rcx, rbx; Block                                                ; +0x33, 0x1800bf363\ncall    j_j_free_0                                                     ; +0x36, 0x1800bf366\nmov     [rsi+98h], rdi                                                 ; +0x3b, 0x1800bf36b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x42, 0x1800bf372\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x47, 0x1800bf377\nadd     rsp, 20h                                                       ; +0x4c, 0x1800bf37c\npop     rdi                                                            ; +0x50, 0x1800bf380\nretn                                                                   ; +0x51, 0x1800bf381", "xrefs": ["<???> @ 0x180107348", "<???> @ 0x180107458", "<???> @ 0x1801438a8", "<???> @ 0x1801b92d0"], "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"}