{"type": "func", "start": 4296996268, "end": 4296996380, "name": "GJBaseGameLayer::controlDynamicCommand", "pseudocode": "// \n// GJBaseGameLayer::controlDynamicCommand from 0x1001ef5ac to 0x1001ef61c (112 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf80\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4dc\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4f0\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; // x8\n  std::__vector_base<DynamicObjectAction>::pointer end; // x9\n  char v7; // w10\n  __int64 v8; // x11\n\n  begin = a4->__begin_;\n  end = a4->__end_;\n  while ( begin != end )\n  {\n    if ( a3 != -1 && begin->m_controlID == a3 || a3 == -1 && begin->m_gameObject1 == a2 )\n    {\n      v7 = 1;\n      if ( a5 )\n      {\n        if ( a5 != Pause )\n        {\n          if ( a5 != Resume )\n            goto LABEL_14;\n          v7 = 0;\n        }\n        begin->m_unkBool3 = v7;\n        v8 = 79;\n      }\n      else\n      {\n        v8 = 77;\n      }\n      *((_BYTE *)&begin->m_gameObject1 + v8) = v7;\n    }\nLABEL_14:\n    ++begin;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlDynamicCommand from 0x1001ef5ac to 0x1001ef61c (112 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf80\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4dc\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4f0\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\nLDP             X8, X9, [X3]                                           ; +0x0, 0x1001ef5ac\nCMP             X8, X9                                                 ; +0x4, 0x1001ef5b0\nB.EQ            locret_1001EF618                                       ; +0x8, 0x1001ef5b4\nCMN             W2, #1                                                 ; +0xc, 0x1001ef5b8\nB.EQ            loc_1001EF5CC                                          ; +0x10, 0x1001ef5bc\nLDR             W10, [X8,#0x50]                                        ; +0x14, 0x1001ef5c0\nCMP             W10, W2                                                ; +0x18, 0x1001ef5c4\nB.EQ            loc_1001EF5E0                                          ; +0x1c, 0x1001ef5c8\nCMN             W2, #1                                                 ; +0x20, 0x1001ef5cc\nB.NE            loc_1001EF610                                          ; +0x24, 0x1001ef5d0\nLDR             X10, [X8]                                              ; +0x28, 0x1001ef5d4\nCMP             X10, X1                                                ; +0x2c, 0x1001ef5d8\nB.NE            loc_1001EF610                                          ; +0x30, 0x1001ef5dc\nMOV             W10, #1                                                ; +0x34, 0x1001ef5e0\nCBZ             W4, loc_1001EF608                                      ; +0x38, 0x1001ef5e4\nCMP             W4, #1                                                 ; +0x3c, 0x1001ef5e8\nB.EQ            loc_1001EF5FC                                          ; +0x40, 0x1001ef5ec\nCMP             W4, #2                                                 ; +0x44, 0x1001ef5f0\nB.NE            loc_1001EF610                                          ; +0x48, 0x1001ef5f4\nMOV             W10, #0                                                ; +0x4c, 0x1001ef5f8\nSTRB            W10, [X8,#0x4E]                                        ; +0x50, 0x1001ef5fc\nMOV             W11, #0x4F ; 'O'                                       ; +0x54, 0x1001ef600\nB               loc_1001EF60C                                          ; +0x58, 0x1001ef604\nMOV             W11, #0x4D ; 'M'                                       ; +0x5c, 0x1001ef608\nSTRB            W10, [X8,X11]                                          ; +0x60, 0x1001ef60c\nADD             X8, X8, #0x60 ; '`'                                    ; +0x64, 0x1001ef610\nB               loc_1001EF5B0                                          ; +0x68, 0x1001ef614\nRET                                                                    ; +0x6c, 0x1001ef618", "xrefs": ["GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf80", "GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4dc", "GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee4f0"], "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"}