{"type": "func", "start": 4653488, "end": 4653558, "name": "GJBaseGameLayer::controlDynamicCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicCommand from 0x4701b0 to 0x4701f6 (70 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlDynamicRotateCommand @ 0x4701fe\n// > GJBaseGameLayer::controlDynamicMoveCommand @ 0x470210\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 GJBaseGameLayer::controlDynamicCommand(\n        GJBaseGameLayer *a1,\n        EffectGameObject *a2,\n        int a3,\n        std::vector<DynamicObjectAction> *a4,\n        GJActionCommand a5)\n{\n  DynamicObjectAction *m_start; // r3\n  DynamicObjectAction *m_finish; // r5\n  bool v8; // zf\n\n  m_start = a4->m_start;\n  m_finish = a4->m_finish;\n  while ( m_start != m_finish )\n  {\n    if ( a3 == -1 )\n      v8 = m_start->m_gameObject1 == a2;\n    else\n      v8 = m_start->m_controlID == a3;\n    if ( v8 )\n    {\n      if ( a5 )\n      {\n        if ( a5 == Pause )\n        {\n          m_start->m_unkBool3 = 1;\n          m_start->m_unkBool4 = 1;\n        }\n        else if ( a5 == Resume )\n        {\n          m_start->m_unkBool3 = 0;\n          m_start->m_unkBool4 = 0;\n        }\n      }\n      else\n      {\n        m_start->m_unkBool2 = 1;\n      }\n    }\n    ++m_start;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlDynamicCommand from 0x4701b0 to 0x4701f6 (70 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlDynamicRotateCommand @ 0x4701fe\n; > GJBaseGameLayer::controlDynamicMoveCommand @ 0x470210\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            {R4-R7,LR}                                             ; +0x0, 0x4701b0\nMOVS            R4, #0                                                 ; +0x2, 0x4701b2\nLDR             R0, [SP,#arg_0]                                        ; +0x4, 0x4701b4\nMOVS            R6, #1                                                 ; +0x6, 0x4701b6\nLDM             R3, {R3,R5}                                            ; +0x8, 0x4701b8\nCMP             R3, R5                                                 ; +0xa, 0x4701ba\nBEQ             locret_4701F4                                          ; +0xc, 0x4701bc\nADDS            R7, R2, #1                                             ; +0xe, 0x4701be\nBEQ             loc_4701C8                                             ; +0x10, 0x4701c0\nLDR             R7, [R3,#0x30]                                         ; +0x12, 0x4701c2\nCMP             R7, R2                                                 ; +0x14, 0x4701c4\nB               loc_4701CC                                             ; +0x16, 0x4701c6\nLDR             R7, [R3]                                               ; +0x18, 0x4701c8\nCMP             R7, R1                                                 ; +0x1a, 0x4701ca\nBNE             loc_4701F0                                             ; +0x1c, 0x4701cc\nCBNZ            R0, loc_4701D6                                         ; +0x1e, 0x4701ce\nSTRB.W          R6, [R3,#0x2D]                                         ; +0x20, 0x4701d0\nB               loc_4701F0                                             ; +0x24, 0x4701d4\nCMP             R0, #1                                                 ; +0x26, 0x4701d6\nBNE             loc_4701E4                                             ; +0x28, 0x4701d8\nSTRB.W          R0, [R3,#0x2E]                                         ; +0x2a, 0x4701da\nSTRB.W          R0, [R3,#0x2F]                                         ; +0x2e, 0x4701de\nB               loc_4701F0                                             ; +0x32, 0x4701e2\nCMP             R0, #2                                                 ; +0x34, 0x4701e4\nITT EQ                                                                 ; +0x36, 0x4701e6\nSTRBEQ.W        R4, [R3,#0x2E]                                         ; +0x38, 0x4701e8\nSTRBEQ.W        R4, [R3,#0x2F]                                         ; +0x3c, 0x4701ec\nADDS            R3, #0x3C ; '<'                                        ; +0x40, 0x4701f0\nB               loc_4701BA                                             ; +0x42, 0x4701f2\nPOP             {R4-R7,PC}                                             ; +0x44, 0x4701f4", "xrefs": ["GJBaseGameLayer::controlDynamicRotateCommand @ 0x4701fe", "GJBaseGameLayer::controlDynamicMoveCommand @ 0x470210"], "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"}