{"type": "func", "start": 4296244176, "end": 4296244356, "name": "GJBaseGameLayer::triggerDynamicMoveCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerDynamicMoveCommand from 0x100137bd0 to 0x100137c84 (180 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::triggerDynamicMoveCommand(GJBaseGameLayer *a1, EffectGameObject *a2)\n{\n  int m_targetModCenterID; // esi\n  GameObject *Object; // rax\n  PlayerObject *m_player1; // rcx\n  int m_centerGroupID; // esi\n  GameObject *v7; // r14\n  EffectGameObject *v8; // [rsp+8h] [rbp-28h] BYREF\n  GameObject *v9; // [rsp+10h] [rbp-20h] BYREF\n  PlayerObject *v10; // [rsp+18h] [rbp-18h] BYREF\n\n  v8 = a2;\n  m_targetModCenterID = a2->m_targetModCenterID;\n  if ( m_targetModCenterID <= 0 )\n    m_targetModCenterID = a2->m_targetGroupID;\n  Object = GJBaseGameLayer::tryGetObject(a1, m_targetModCenterID);\n  v9 = Object;\n  if ( a2->m_targetPlayer1 )\n    goto LABEL_4;\n  if ( a2->m_targetPlayer2 )\n  {\n    if ( !a1->m_gameState.m_isDualMode )\n    {\nLABEL_4:\n      m_player1 = a1->m_player1;\n      goto LABEL_9;\n    }\n    m_player1 = a1->m_player2;\n  }\n  else\n  {\n    m_centerGroupID = a2->m_centerGroupID;\n    v7 = Object;\n    m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);\n    Object = v7;\n  }\nLABEL_9:\n  v10 = m_player1;\n  if ( Object != nullptr && m_player1 != nullptr )\n    sub_100137DE0(&a1->m_gameState.m_dynamicMoveActions, &v8, &v9, &v10);\n}", "assembly": "; \n; GJBaseGameLayer::triggerDynamicMoveCommand from 0x100137bd0 to 0x100137c84 (180 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, 0x100137bd0\nmov     rbp, rsp                                                       ; +0x1, 0x100137bd1\npush    r14                                                            ; +0x4, 0x100137bd4\npush    rbx                                                            ; +0x6, 0x100137bd6\nsub     rsp, 20h                                                       ; +0x7, 0x100137bd7\nmov     r14, rsi                                                       ; +0xb, 0x100137bdb\nmov     rbx, rdi                                                       ; +0xe, 0x100137bde\nmov     [rbp+var_28], rsi                                              ; +0x11, 0x100137be1\nmov     esi, [rsi+5F8h]                                                ; +0x15, 0x100137be5\ntest    esi, esi                                                       ; +0x1b, 0x100137beb\njg      short loc_100137BF6                                            ; +0x1d, 0x100137bed\nmov     esi, [r14+5B8h]                                                ; +0x1f, 0x100137bef\nmov     rdi, rbx                                                       ; +0x26, 0x100137bf6\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x29, 0x100137bf9\nmov     [rbp+var_20], rax                                              ; +0x2e, 0x100137bfe\ncmp     byte ptr [r14+694h], 0                                         ; +0x32, 0x100137c02\njz      short loc_100137C15                                            ; +0x3a, 0x100137c0a\nmov     rcx, [rbx+0CA0h]                                               ; +0x3c, 0x100137c0c\njmp     short loc_100137C49                                            ; +0x43, 0x100137c13\ncmp     byte ptr [r14+695h], 1                                         ; +0x45, 0x100137c15\njnz     short loc_100137C31                                            ; +0x4d, 0x100137c1d\ncmp     byte ptr [rbx+3F2h], 0                                         ; +0x4f, 0x100137c1f\njz      short loc_100137C0C                                            ; +0x56, 0x100137c26\nmov     rcx, [rbx+0CA8h]                                               ; +0x58, 0x100137c28\njmp     short loc_100137C49                                            ; +0x5f, 0x100137c2f\nmov     esi, [r14+5BCh]                                                ; +0x61, 0x100137c31\nmov     rdi, rbx                                                       ; +0x68, 0x100137c38\nmov     r14, rax                                                       ; +0x6b, 0x100137c3b\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x6e, 0x100137c3e\nmov     rcx, rax                                                       ; +0x73, 0x100137c43\nmov     rax, r14                                                       ; +0x76, 0x100137c46\nmov     [rbp+var_18], rcx                                              ; +0x79, 0x100137c49\ntest    rax, rax                                                       ; +0x7d, 0x100137c4d\nsetnz   al                                                             ; +0x80, 0x100137c50\ntest    rcx, rcx                                                       ; +0x83, 0x100137c53\nsetnz   cl                                                             ; +0x86, 0x100137c56\nand     cl, al                                                         ; +0x89, 0x100137c59\ncmp     cl, 1                                                          ; +0x8b, 0x100137c5b\njnz     short loc_100137C7B                                            ; +0x8e, 0x100137c5e\nadd     rbx, 688h                                                      ; +0x90, 0x100137c60\nlea     rsi, [rbp+var_28]                                              ; +0x97, 0x100137c67\nlea     rdx, [rbp+var_20]                                              ; +0x9b, 0x100137c6b\nlea     rcx, [rbp+var_18]                                              ; +0x9f, 0x100137c6f\nmov     rdi, rbx                                                       ; +0xa3, 0x100137c73\ncall    sub_100137DE0                                                  ; +0xa6, 0x100137c76\nadd     rsp, 20h                                                       ; +0xab, 0x100137c7b\npop     rbx                                                            ; +0xaf, 0x100137c7f\npop     r14                                                            ; +0xb0, 0x100137c80\npop     rbp                                                            ; +0xb2, 0x100137c82\nretn                                                                   ; +0xb3, 0x100137c83", "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"}