{"type": "func", "start": 8766572, "end": 8766704, "name": "GJBaseGameLayer::controlDynamicCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicCommand from 0x85c46c to 0x85c4f0 (132 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::controlDynamicRotateCommand @ 0x85c4f8\n// > GJBaseGameLayer::controlDynamicMoveCommand @ 0x85c504\n// > <???> @ 0xb6970\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_finish; // x5\n  DynamicObjectAction *i; // x0\n\n  m_finish = a4->m_finish;\n  for ( i = a4->m_start; m_finish != i; ++i )\n  {\n    while ( a3 == -1 )\n    {\n      if ( i->m_gameObject1 == a2 )\n        goto LABEL_7;\nLABEL_4:\n      if ( m_finish == ++i )\n        return;\n    }\n    if ( i->m_controlID != a3 )\n      goto LABEL_4;\nLABEL_7:\n    if ( a5 )\n    {\n      if ( a5 == Pause )\n      {\n        i->m_unkBool3 = 1;\n        i->m_unkBool4 = 1;\n      }\n      else if ( a5 == Resume )\n      {\n        i->m_unkBool3 = 0;\n        i->m_unkBool4 = 0;\n      }\n      goto LABEL_4;\n    }\n    i->m_unkBool2 = 1;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlDynamicCommand from 0x85c46c to 0x85c4f0 (132 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::controlDynamicRotateCommand @ 0x85c4f8\n; > GJBaseGameLayer::controlDynamicMoveCommand @ 0x85c504\n; > <???> @ 0xb6970\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\nLDR             X5, [X3,#8]                                            ; +0x0, 0x85c46c\nMOV             W6, #1                                                 ; +0x4, 0x85c470\nLDR             X0, [X3]                                               ; +0x8, 0x85c474\nCMP             X5, X0                                                 ; +0xc, 0x85c478\nB.NE            loc_85C49C                                             ; +0x10, 0x85c47c\nB               locret_85C4C4                                          ; +0x14, 0x85c480\nLDR             X3, [X0]                                               ; +0x18, 0x85c484\nCMP             X3, X1                                                 ; +0x1c, 0x85c488\nB.EQ            loc_85C4B0                                             ; +0x20, 0x85c48c\nADD             X0, X0, #0x60 ; '`'                                    ; +0x24, 0x85c490\nCMP             X5, X0                                                 ; +0x28, 0x85c494\nB.EQ            locret_85C4C4                                          ; +0x2c, 0x85c498\nCMN             W2, #1                                                 ; +0x30, 0x85c49c\nB.EQ            loc_85C484                                             ; +0x34, 0x85c4a0\nLDR             W3, [X0,#0x50]                                         ; +0x38, 0x85c4a4\nCMP             W3, W2                                                 ; +0x3c, 0x85c4a8\nB.NE            loc_85C490                                             ; +0x40, 0x85c4ac\nCBNZ            W4, loc_85C4C8                                         ; +0x44, 0x85c4b0\nSTRB            W6, [X0,#0x4D]                                         ; +0x48, 0x85c4b4\nADD             X0, X0, #0x60 ; '`'                                    ; +0x4c, 0x85c4b8\nCMP             X5, X0                                                 ; +0x50, 0x85c4bc\nB.NE            loc_85C49C                                             ; +0x54, 0x85c4c0\nRET                                                                    ; +0x58, 0x85c4c4\nCMP             W4, #1                                                 ; +0x5c, 0x85c4c8\nB.EQ            loc_85C4E4                                             ; +0x60, 0x85c4cc\nCMP             W4, #2                                                 ; +0x64, 0x85c4d0\nB.NE            loc_85C490                                             ; +0x68, 0x85c4d4\nSTRB            WZR, [X0,#0x4E]                                        ; +0x6c, 0x85c4d8\nSTRB            WZR, [X0,#0x4F]                                        ; +0x70, 0x85c4dc\nB               loc_85C490                                             ; +0x74, 0x85c4e0\nSTRB            W4, [X0,#0x4E]                                         ; +0x78, 0x85c4e4\nSTRB            W4, [X0,#0x4F]                                         ; +0x7c, 0x85c4e8\nB               loc_85C490                                             ; +0x80, 0x85c4ec", "xrefs": ["GJBaseGameLayer::controlDynamicRotateCommand @ 0x85c4f8", "GJBaseGameLayer::controlDynamicMoveCommand @ 0x85c504", "<???> @ 0xb6970"], "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"}