{"type": "func", "start": 4294981440, "end": 4294981570, "name": "GJRotateCommandLayer::onLockRotation", "pseudocode": "// \n// GJRotateCommandLayer::onLockRotation from 0x100003740 to 0x1000037c2 (130 bytes)\n// \n// 1 xrefs:\n// > GJRotateCommandLayer::init @ 0x10000274a\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 GJRotateCommandLayer::onLockRotation(GJRotateCommandLayer *a1, cocos2d::CCObject *a2)\n{\n  bool v2; // al\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v6; // r14d\n\n  v2 = !a1->m_lockObjectRotation;\n  a1->m_lockObjectRotation = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_lockObjectRotation = v2;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )\n    {\n      v6 = 0;\n      do\n        *(_BYTE *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1552) = a1->m_lockObjectRotation;\n      while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; GJRotateCommandLayer::onLockRotation from 0x100003740 to 0x1000037c2 (130 bytes)\n; \n; 1 xrefs:\n; > GJRotateCommandLayer::init @ 0x10000274a\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\npush    rbp                                                            ; +0x0, 0x100003740\nmov     rbp, rsp                                                       ; +0x1, 0x100003741\npush    r14                                                            ; +0x4, 0x100003744\npush    rbx                                                            ; +0x6, 0x100003746\nmovzx   eax, byte ptr [rdi+42Ch]                                       ; +0x7, 0x100003747\nxor     al, 1                                                          ; +0xe, 0x10000374e\nmov     [rdi+42Ch], al                                                 ; +0x10, 0x100003750\nmov     rcx, [rdi+290h]                                                ; +0x16, 0x100003756\ntest    rcx, rcx                                                       ; +0x1d, 0x10000375d\njz      short loc_10000376D                                            ; +0x20, 0x100003760\nmov     [rcx+610h], al                                                 ; +0x22, 0x100003762\npop     rbx                                                            ; +0x28, 0x100003768\npop     r14                                                            ; +0x29, 0x100003769\npop     rbp                                                            ; +0x2b, 0x10000376b\nretn                                                                   ; +0x2c, 0x10000376c\nmov     rbx, rdi                                                       ; +0x2d, 0x10000376d\nmov     rdi, [rdi+298h]                                                ; +0x30, 0x100003770\ntest    rdi, rdi                                                       ; +0x37, 0x100003777\njz      short loc_100003768                                            ; +0x3a, 0x10000377a\ncall    sub_100720070                                                  ; +0x3c, 0x10000377c\ntest    eax, eax                                                       ; +0x41, 0x100003781\njz      short loc_100003768                                            ; +0x43, 0x100003783\nxor     r14d, r14d                                                     ; +0x45, 0x100003785\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x100003788\nmov     rdi, [rbx+298h]                                                ; +0x50, 0x100003790\nmov     esi, r14d                                                      ; +0x57, 0x100003797\ncall    sub_1007200C0                                                  ; +0x5a, 0x10000379a\nmovzx   ecx, byte ptr [rbx+42Ch]                                       ; +0x5f, 0x10000379f\nmov     [rax+610h], cl                                                 ; +0x66, 0x1000037a6\ninc     r14d                                                           ; +0x6c, 0x1000037ac\nmov     rdi, [rbx+298h]                                                ; +0x6f, 0x1000037af\ncall    sub_100720070                                                  ; +0x76, 0x1000037b6\ncmp     r14d, eax                                                      ; +0x7b, 0x1000037bb\njb      short loc_100003790                                            ; +0x7e, 0x1000037be\njmp     short loc_100003768                                            ; +0x80, 0x1000037c0", "xrefs": ["GJRotateCommandLayer::init @ 0x10000274a"], "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"}