{"type": "func", "start": 4296247648, "end": 4296247894, "name": "GJBaseGameLayer::controlDynamicCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicCommand from 0x100138960 to 0x100138a56 (246 bytes)\n// \n// 0 xrefs:\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::controlDynamicCommand(\n        GJBaseGameLayer *a1,\n        EffectGameObject *a2,\n        int a3,\n        std::vector<DynamicObjectAction> *a4,\n        GJActionCommand a5)\n{\n  std::__vector_base<DynamicObjectAction>::pointer begin; // rax\n  std::__vector_base<DynamicObjectAction>::pointer end; // rcx\n\n  begin = a4->__begin_;\n  end = a4->__end_;\n  if ( begin != end )\n  {\n    if ( a3 == -1 )\n    {\n      if ( a5 )\n      {\n        if ( a5 == 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 ( a5 == 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 ( a5 )\n    {\n      if ( a5 == 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 ( a5 == 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::controlDynamicCommand from 0x100138960 to 0x100138a56 (246 bytes)\n; \n; 0 xrefs:\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, 0x100138960\nmov     rbp, rsp                                                       ; +0x1, 0x100138961\nmov     rax, [rcx]                                                     ; +0x4, 0x100138964\nmov     rcx, [rcx+8]                                                   ; +0x7, 0x100138967\ncmp     rax, rcx                                                       ; +0xb, 0x10013896b\njz      loc_1001389F7                                                  ; +0xe, 0x10013896e\ncmp     edx, 0FFFFFFFFh                                                ; +0x14, 0x100138974\njz      short loc_1001389E6                                            ; +0x17, 0x100138977\ntest    r8d, r8d                                                       ; +0x19, 0x100138979\njz      short loc_1001389B9                                            ; +0x1c, 0x10013897c\ncmp     r8d, 1                                                         ; +0x1e, 0x10013897e\njz      short loc_100138999                                            ; +0x22, 0x100138982\ncmp     r8d, 2                                                         ; +0x24, 0x100138984\njz      short loc_1001389D9                                            ; +0x28, 0x100138988\njmp     short loc_1001389F7                                            ; +0x2a, 0x10013898a\nalign 10h                                                              ; +0x2c, 0x10013898c\nadd     rax, 60h ; '`'                                                 ; +0x30, 0x100138990\ncmp     rax, rcx                                                       ; +0x34, 0x100138994\njz      short loc_1001389F7                                            ; +0x37, 0x100138997\ncmp     [rax+50h], edx                                                 ; +0x39, 0x100138999\njnz     short loc_100138990                                            ; +0x3c, 0x10013899c\nmov     word ptr [rax+4Eh], 101h                                       ; +0x3e, 0x10013899e\njmp     short loc_100138990                                            ; +0x44, 0x1001389a4\nalign 10h                                                              ; +0x46, 0x1001389a6\nadd     rax, 60h ; '`'                                                 ; +0x50, 0x1001389b0\ncmp     rax, rcx                                                       ; +0x54, 0x1001389b4\njz      short loc_1001389F7                                            ; +0x57, 0x1001389b7\ncmp     [rax+50h], edx                                                 ; +0x59, 0x1001389b9\njnz     short loc_1001389B0                                            ; +0x5c, 0x1001389bc\nmov     byte ptr [rax+4Dh], 1                                          ; +0x5e, 0x1001389be\njmp     short loc_1001389B0                                            ; +0x62, 0x1001389c2\nalign 10h                                                              ; +0x64, 0x1001389c4\nadd     rax, 60h ; '`'                                                 ; +0x70, 0x1001389d0\ncmp     rax, rcx                                                       ; +0x74, 0x1001389d4\njz      short loc_1001389F7                                            ; +0x77, 0x1001389d7\ncmp     [rax+50h], edx                                                 ; +0x79, 0x1001389d9\njnz     short loc_1001389D0                                            ; +0x7c, 0x1001389dc\nmov     word ptr [rax+4Eh], 0                                          ; +0x7e, 0x1001389de\njmp     short loc_1001389D0                                            ; +0x84, 0x1001389e4\ntest    r8d, r8d                                                       ; +0x86, 0x1001389e6\njz      short loc_100138A29                                            ; +0x89, 0x1001389e9\ncmp     r8d, 1                                                         ; +0x8b, 0x1001389eb\njz      short loc_100138A09                                            ; +0x8f, 0x1001389ef\ncmp     r8d, 2                                                         ; +0x91, 0x1001389f1\njz      short loc_100138A49                                            ; +0x95, 0x1001389f5\npop     rbp                                                            ; +0x97, 0x1001389f7\nretn                                                                   ; +0x98, 0x1001389f8\nalign 20h                                                              ; +0x99, 0x1001389f9\nadd     rax, 60h ; '`'                                                 ; +0xa0, 0x100138a00\ncmp     rax, rcx                                                       ; +0xa4, 0x100138a04\njz      short loc_1001389F7                                            ; +0xa7, 0x100138a07\ncmp     [rax], rsi                                                     ; +0xa9, 0x100138a09\njnz     short loc_100138A00                                            ; +0xac, 0x100138a0c\nmov     word ptr [rax+4Eh], 101h                                       ; +0xae, 0x100138a0e\njmp     short loc_100138A00                                            ; +0xb4, 0x100138a14\nalign 20h                                                              ; +0xb6, 0x100138a16\nadd     rax, 60h ; '`'                                                 ; +0xc0, 0x100138a20\ncmp     rax, rcx                                                       ; +0xc4, 0x100138a24\njz      short loc_1001389F7                                            ; +0xc7, 0x100138a27\ncmp     [rax], rsi                                                     ; +0xc9, 0x100138a29\njnz     short loc_100138A20                                            ; +0xcc, 0x100138a2c\nmov     byte ptr [rax+4Dh], 1                                          ; +0xce, 0x100138a2e\njmp     short loc_100138A20                                            ; +0xd2, 0x100138a32\nalign 20h                                                              ; +0xd4, 0x100138a34\nadd     rax, 60h ; '`'                                                 ; +0xe0, 0x100138a40\ncmp     rax, rcx                                                       ; +0xe4, 0x100138a44\njz      short loc_1001389F7                                            ; +0xe7, 0x100138a47\ncmp     [rax], rsi                                                     ; +0xe9, 0x100138a49\njnz     short loc_100138A40                                            ; +0xec, 0x100138a4c\nmov     word ptr [rax+4Eh], 0                                          ; +0xee, 0x100138a4e\njmp     short loc_100138A40                                            ; +0xf4, 0x100138a54", "xrefs": [], "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"}