{"type": "func", "start": 4296240448, "end": 4296240694, "name": "GJBaseGameLayer::controlDynamicRotateCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicRotateCommand from 0x100136d40 to 0x100136e36 (246 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fb7\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 GJBaseGameLayer::controlDynamicRotateCommand(\n        GJBaseGameLayer *a1,\n        EffectGameObject *a2,\n        int a3,\n        GJActionCommand a4)\n{\n  std::__vector_base<DynamicObjectAction>::pointer begin; // rax\n  std::__vector_base<DynamicObjectAction>::pointer end; // rdi\n\n  begin = a1->m_gameState.m_dynamicRotateActions.__begin_;\n  end = a1->m_gameState.m_dynamicRotateActions.__end_;\n  if ( begin != end )\n  {\n    if ( a3 == -1 )\n    {\n      if ( a4 )\n      {\n        if ( a4 == Pause )\n        {\n          do\n          {\n            if ( begin->m_gameObject1 == a2 )\n              *(_WORD *)&begin->m_unkBool3 = 257;\n            ++begin;\n          }\n          while ( begin != end );\n        }\n        else if ( a4 == Resume )\n        {\n          do\n          {\n            if ( begin->m_gameObject1 == a2 )\n              *(_WORD *)&begin->m_unkBool3 = 0;\n            ++begin;\n          }\n          while ( begin != end );\n        }\n      }\n      else\n      {\n        do\n        {\n          if ( begin->m_gameObject1 == a2 )\n            begin->m_unkBool2 = 1;\n          ++begin;\n        }\n        while ( begin != end );\n      }\n    }\n    else if ( a4 )\n    {\n      if ( a4 == Pause )\n      {\n        do\n        {\n          if ( begin->m_controlID == a3 )\n            *(_WORD *)&begin->m_unkBool3 = 257;\n          ++begin;\n        }\n        while ( begin != end );\n      }\n      else if ( a4 == Resume )\n      {\n        do\n        {\n          if ( begin->m_controlID == a3 )\n            *(_WORD *)&begin->m_unkBool3 = 0;\n          ++begin;\n        }\n        while ( begin != end );\n      }\n    }\n    else\n    {\n      do\n      {\n        if ( begin->m_controlID == a3 )\n          begin->m_unkBool2 = 1;\n        ++begin;\n      }\n      while ( begin != end );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlDynamicRotateCommand from 0x100136d40 to 0x100136e36 (246 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fb7\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, 0x100136d40\nmov     rbp, rsp                                                       ; +0x1, 0x100136d41\nmov     rax, [rdi+6A0h]                                                ; +0x4, 0x100136d44\nmov     rdi, [rdi+6A8h]                                                ; +0xb, 0x100136d4b\ncmp     rax, rdi                                                       ; +0x12, 0x100136d52\njz      short loc_100136DD4                                            ; +0x15, 0x100136d55\ncmp     edx, 0FFFFFFFFh                                                ; +0x17, 0x100136d57\njz      short loc_100136DC6                                            ; +0x1a, 0x100136d5a\ntest    ecx, ecx                                                       ; +0x1c, 0x100136d5c\njz      short loc_100136D99                                            ; +0x1e, 0x100136d5e\ncmp     ecx, 1                                                         ; +0x20, 0x100136d60\njz      short loc_100136D79                                            ; +0x23, 0x100136d63\ncmp     ecx, 2                                                         ; +0x25, 0x100136d65\njz      short loc_100136DB9                                            ; +0x28, 0x100136d68\njmp     short loc_100136DD4                                            ; +0x2a, 0x100136d6a\nalign 10h                                                              ; +0x2c, 0x100136d6c\nadd     rax, 60h ; '`'                                                 ; +0x30, 0x100136d70\ncmp     rax, rdi                                                       ; +0x34, 0x100136d74\njz      short loc_100136DD4                                            ; +0x37, 0x100136d77\ncmp     [rax+50h], edx                                                 ; +0x39, 0x100136d79\njnz     short loc_100136D70                                            ; +0x3c, 0x100136d7c\nmov     word ptr [rax+4Eh], 101h                                       ; +0x3e, 0x100136d7e\njmp     short loc_100136D70                                            ; +0x44, 0x100136d84\nalign 10h                                                              ; +0x46, 0x100136d86\nadd     rax, 60h ; '`'                                                 ; +0x50, 0x100136d90\ncmp     rax, rdi                                                       ; +0x54, 0x100136d94\njz      short loc_100136DD4                                            ; +0x57, 0x100136d97\ncmp     [rax+50h], edx                                                 ; +0x59, 0x100136d99\njnz     short loc_100136D90                                            ; +0x5c, 0x100136d9c\nmov     byte ptr [rax+4Dh], 1                                          ; +0x5e, 0x100136d9e\njmp     short loc_100136D90                                            ; +0x62, 0x100136da2\nalign 10h                                                              ; +0x64, 0x100136da4\nadd     rax, 60h ; '`'                                                 ; +0x70, 0x100136db0\ncmp     rax, rdi                                                       ; +0x74, 0x100136db4\njz      short loc_100136DD4                                            ; +0x77, 0x100136db7\ncmp     [rax+50h], edx                                                 ; +0x79, 0x100136db9\njnz     short loc_100136DB0                                            ; +0x7c, 0x100136dbc\nmov     word ptr [rax+4Eh], 0                                          ; +0x7e, 0x100136dbe\njmp     short loc_100136DB0                                            ; +0x84, 0x100136dc4\ntest    ecx, ecx                                                       ; +0x86, 0x100136dc6\njz      short loc_100136E09                                            ; +0x88, 0x100136dc8\ncmp     ecx, 1                                                         ; +0x8a, 0x100136dca\njz      short loc_100136DE9                                            ; +0x8d, 0x100136dcd\ncmp     ecx, 2                                                         ; +0x8f, 0x100136dcf\njz      short loc_100136E29                                            ; +0x92, 0x100136dd2\npop     rbp                                                            ; +0x94, 0x100136dd4\nretn                                                                   ; +0x95, 0x100136dd5\nalign 20h                                                              ; +0x96, 0x100136dd6\nadd     rax, 60h ; '`'                                                 ; +0xa0, 0x100136de0\ncmp     rax, rdi                                                       ; +0xa4, 0x100136de4\njz      short loc_100136DD4                                            ; +0xa7, 0x100136de7\ncmp     [rax], rsi                                                     ; +0xa9, 0x100136de9\njnz     short loc_100136DE0                                            ; +0xac, 0x100136dec\nmov     word ptr [rax+4Eh], 101h                                       ; +0xae, 0x100136dee\njmp     short loc_100136DE0                                            ; +0xb4, 0x100136df4\nalign 20h                                                              ; +0xb6, 0x100136df6\nadd     rax, 60h ; '`'                                                 ; +0xc0, 0x100136e00\ncmp     rax, rdi                                                       ; +0xc4, 0x100136e04\njz      short loc_100136DD4                                            ; +0xc7, 0x100136e07\ncmp     [rax], rsi                                                     ; +0xc9, 0x100136e09\njnz     short loc_100136E00                                            ; +0xcc, 0x100136e0c\nmov     byte ptr [rax+4Dh], 1                                          ; +0xce, 0x100136e0e\njmp     short loc_100136E00                                            ; +0xd2, 0x100136e12\nalign 20h                                                              ; +0xd4, 0x100136e14\nadd     rax, 60h ; '`'                                                 ; +0xe0, 0x100136e20\ncmp     rax, rdi                                                       ; +0xe4, 0x100136e24\njz      short loc_100136DD4                                            ; +0xe7, 0x100136e27\ncmp     [rax], rsi                                                     ; +0xe9, 0x100136e29\njnz     short loc_100136E20                                            ; +0xec, 0x100136e2c\nmov     word ptr [rax+4Eh], 0                                          ; +0xee, 0x100136e2e\njmp     short loc_100136E20                                            ; +0xf4, 0x100136e34", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fb7"], "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"}