{"type": "func", "start": 4296990068, "end": 4296990724, "name": "GJBaseGameLayer::controlTriggersInGroup", "pseudocode": "// \n// GJBaseGameLayer::controlTriggersInGroup from 0x1001edd74 to 0x1001ee004 (656 bytes)\n// \n// 1 xrefs:\n// > TriggerControlGameObject::triggerObject @ 0x100398110\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::controlTriggersInGroup(GJBaseGameLayer *a1, int a2, GJActionCommand a3)\n{\n  cocos2d::CCArray *Group; // x0\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  EnterEffectObject **arr; // x22\n  unsigned __int64 v9; // x23\n  EnterEffectObject *v10; // x21\n  int m_objectID; // w8\n  std::__vector_base<DynamicObjectAction>::pointer begin; // x8\n  std::__vector_base<DynamicObjectAction>::pointer end; // x9\n  char v14; // w10\n  __int64 v15; // x11\n  std::vector<EnterEffectInstance> *p_m_rotateEffectInstances; // x2\n\n  Group = GJBaseGameLayer::getGroup(a1, a2);\n  if ( Group )\n  {\n    data = Group->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (EnterEffectObject **)data->arr;\n      v9 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        v10 = *arr;\n        if ( !*arr )\n          return;\n        if ( v10->m_canBeControlled )\n        {\n          m_objectID = v10->m_objectID;\n          if ( m_objectID > 2998 )\n          {\n            if ( m_objectID <= 3008 )\n            {\n              if ( m_objectID > 3006 )\n              {\n                if ( m_objectID == 3007 )\n                  p_m_rotateEffectInstances = &a1->m_gameState.m_rotateEffectInstances;\n                else\n                  p_m_rotateEffectInstances = &a1->m_gameState.m_scaleEffectInstances;\n                goto LABEL_56;\n              }\n              if ( m_objectID != 2999 )\n              {\n                if ( m_objectID == 3006 )\n                {\n                  p_m_rotateEffectInstances = &a1->m_gameState.m_moveEffectInstances;\nLABEL_56:\n                  GJBaseGameLayer::controlAreaEffect((GJBaseGameLayer *)Group, *arr, p_m_rotateEffectInstances, a3);\n                  goto LABEL_57;\n                }\n                goto LABEL_50;\n              }\n              goto LABEL_47;\n            }\n            if ( m_objectID <= 3015 )\n            {\n              if ( m_objectID == 3009 )\n              {\n                p_m_rotateEffectInstances = &a1->m_gameState.m_fadeEffectInstances;\n                goto LABEL_56;\n              }\n              if ( m_objectID == 3010 )\n              {\n                p_m_rotateEffectInstances = &a1->m_gameState.m_tintEffectInstances;\n                goto LABEL_56;\n              }\n              goto LABEL_50;\n            }\n            if ( m_objectID == 3016 )\n            {\n              GJBaseGameLayer::controlAdvancedFollowCommand(a1, (AdvancedFollowTriggerObject *)*arr, -1, a3);\n              goto LABEL_57;\n            }\n            if ( m_objectID == 3602 )\n            {\n              GJBaseGameLayer::stopSFXTrigger(a1, (SFXTriggerGameObject *)*arr);\n              goto LABEL_57;\n            }\n            if ( m_objectID != 3604 )\n              goto LABEL_50;\n            GJBaseGameLayer::controlEventLink(a1, v10->m_uniqueID, -1, a3);\n          }\n          else\n          {\n            if ( m_objectID <= 1915 )\n            {\n              if ( m_objectID <= 1614 )\n              {\n                if ( m_objectID == 901 )\n                {\n                  if ( v10->m_isDynamicMode )\n                    GJBaseGameLayer::controlDynamicCommand(\n                      (GJBaseGameLayer *)Group,\n                      *arr,\n                      -1,\n                      &a1->m_gameState.m_dynamicMoveActions,\n                      a3);\n                  goto LABEL_50;\n                }\n                if ( m_objectID != 1346 || !v10->m_isDynamicMode )\n                {\nLABEL_50:\n                  GJEffectManager::controlActionsForTrigger(a1->m_effectManager, v10, a3);\n                  goto LABEL_57;\n                }\n                begin = a1->m_gameState.m_dynamicRotateActions.__begin_;\n                end = a1->m_gameState.m_dynamicRotateActions.__end_;\n                while ( 2 )\n                {\n                  if ( begin == end )\n                    goto LABEL_50;\n                  if ( begin->m_gameObject1 == v10 )\n                  {\n                    v14 = 1;\n                    switch ( a3 )\n                    {\n                      case Stop:\n                        v15 = 77;\n                        goto LABEL_31;\n                      case Pause:\n                        goto LABEL_29;\n                      case Resume:\n                        v14 = 0;\nLABEL_29:\n                        begin->m_unkBool3 = v14;\n                        v15 = 79;\nLABEL_31:\n                        *((_BYTE *)&begin->m_gameObject1 + v15) = v14;\n                        break;\n                    }\n                  }\n                  ++begin;\n                  continue;\n                }\n              }\n              if ( m_objectID == 1615 )\n              {\n                LOBYTE(v10->m_anglePosition.y) = a3 != Resume;\n                goto LABEL_57;\n              }\n              if ( m_objectID != 1913 )\n                goto LABEL_50;\n              goto LABEL_47;\n            }\n            if ( (unsigned int)(m_objectID - 2903) > 0x15 )\n              goto LABEL_45;\n            if ( ((1 << (m_objectID - 87)) & 0x3F7FD6) == 0 )\n            {\n              if ( m_objectID != 2903 )\n              {\nLABEL_45:\n                if ( m_objectID != 1916 && m_objectID != 2015 )\n                  goto LABEL_50;\nLABEL_47:\n                GJGameState::controlTweenAction(&a1->m_gameState, v10->m_uniqueID, -1, a3);\n                goto LABEL_57;\n              }\n              GJBaseGameLayer::controlGradientTrigger(a1, (GradientTriggerObject *)*arr, a3);\n            }\n          }\n        }\nLABEL_57:\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v9 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlTriggersInGroup from 0x1001edd74 to 0x1001ee004 (656 bytes)\n; \n; 1 xrefs:\n; > TriggerControlGameObject::triggerObject @ 0x100398110\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\nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001edd74\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001edd78\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001edd7c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001edd80\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001edd84\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001edd88\nMOV             X19, X2                                                ; +0x18, 0x1001edd8c\nMOV             X20, X0                                                ; +0x1c, 0x1001edd90\nBL              GJBaseGameLayer__getGroup                              ; +0x20, 0x1001edd94\nCBZ             X0, loc_1001EDFEC                                      ; +0x24, 0x1001edd98\nLDR             X9, [X0,#0x38]                                         ; +0x28, 0x1001edd9c\nLDR             W8, [X9]                                               ; +0x2c, 0x1001edda0\nCBZ             W8, loc_1001EDFEC                                      ; +0x30, 0x1001edda4\nLDR             X22, [X9,#0x10]                                        ; +0x34, 0x1001edda8\nADD             X8, X22, X8,LSL#3                                      ; +0x38, 0x1001eddac\nSUB             X23, X8, #8                                            ; +0x3c, 0x1001eddb0\nCMP             W19, #2                                                ; +0x40, 0x1001eddb4\nCSET            W24, NE                                                ; +0x44, 0x1001eddb8\nMOV             W25, #1                                                ; +0x48, 0x1001eddbc\nMOV             W26, #0x3F7FD6                                         ; +0x4c, 0x1001eddc0\nLDR             X21, [X22]                                             ; +0x54, 0x1001eddc8\nCBZ             X21, loc_1001EDFEC                                     ; +0x58, 0x1001eddcc\nLDRB            W8, [X21,#0x4E8]                                       ; +0x5c, 0x1001eddd0\nCMP             W8, #1                                                 ; +0x60, 0x1001eddd4\nB.NE            loc_1001EDFE0                                          ; +0x64, 0x1001eddd8\nLDR             W8, [X21,#0x404]                                       ; +0x68, 0x1001edddc\nCMP             W8, #0xBB6                                             ; +0x6c, 0x1001edde0\nB.GT            loc_1001EDE20                                          ; +0x70, 0x1001edde4\nCMP             W8, #0x77B                                             ; +0x74, 0x1001edde8\nB.LE            loc_1001EDE60                                          ; +0x78, 0x1001eddec\nSUB             W9, W8, #0xB57                                         ; +0x7c, 0x1001eddf0\nCMP             W9, #0x15                                              ; +0x80, 0x1001eddf4\nB.HI            loc_1001EDF3C                                          ; +0x84, 0x1001eddf8\nLSL             W10, W25, W9                                           ; +0x88, 0x1001eddfc\nTST             W10, W26                                               ; +0x8c, 0x1001ede00\nB.NE            loc_1001EDFE0                                          ; +0x90, 0x1001ede04\nCBNZ            W9, loc_1001EDF3C                                      ; +0x94, 0x1001ede08\nMOV             X0, X20                                                ; +0x98, 0x1001ede0c\nMOV             X1, X21                                                ; +0x9c, 0x1001ede10\nMOV             X2, X19                                                ; +0xa0, 0x1001ede14\nBL              GJBaseGameLayer__controlGradientTrigger                ; +0xa4, 0x1001ede18\nB               loc_1001EDFE0                                          ; +0xa8, 0x1001ede1c\nCMP             W8, #0xBC0                                             ; +0xac, 0x1001ede20\nB.LE            loc_1001EDED8                                          ; +0xb0, 0x1001ede24\nCMP             W8, #0xBC7                                             ; +0xb4, 0x1001ede28\nB.LE            loc_1001EDF24                                          ; +0xb8, 0x1001ede2c\nCMP             W8, #0xBC8                                             ; +0xbc, 0x1001ede30\nB.EQ            loc_1001EDFB8                                          ; +0xc0, 0x1001ede34\nCMP             W8, #0xE12                                             ; +0xc4, 0x1001ede38\nB.EQ            loc_1001EDFA8                                          ; +0xc8, 0x1001ede3c\nCMP             W8, #0xE14                                             ; +0xcc, 0x1001ede40\nB.NE            loc_1001EDF84                                          ; +0xd0, 0x1001ede44\nLDR             W1, [X21,#0x394]                                       ; +0xd4, 0x1001ede48\nMOV             X0, X20                                                ; +0xd8, 0x1001ede4c\nMOV             W2, #0xFFFFFFFF                                        ; +0xdc, 0x1001ede50\nMOV             X3, X19                                                ; +0xe0, 0x1001ede54\nBL              GJBaseGameLayer__controlEventLink                      ; +0xe4, 0x1001ede58\nB               loc_1001EDFE0                                          ; +0xe8, 0x1001ede5c\nCMP             W8, #0x64E                                             ; +0xec, 0x1001ede60\nB.GT            loc_1001EDEF8                                          ; +0xf0, 0x1001ede64\nCMP             W8, #0x385                                             ; +0xf4, 0x1001ede68\nB.EQ            loc_1001EDF64                                          ; +0xf8, 0x1001ede6c\nCMP             W8, #0x542                                             ; +0xfc, 0x1001ede70\nB.NE            loc_1001EDF84                                          ; +0x100, 0x1001ede74\nLDRB            W8, [X21,#0x600]                                       ; +0x104, 0x1001ede78\nCMP             W8, #1                                                 ; +0x108, 0x1001ede7c\nB.NE            loc_1001EDF84                                          ; +0x10c, 0x1001ede80\nLDR             X8, [X20,#0x6A0]                                       ; +0x110, 0x1001ede84\nLDR             X9, [X20,#0x6A8]                                       ; +0x114, 0x1001ede88\nCMP             X8, X9                                                 ; +0x118, 0x1001ede8c\nB.EQ            loc_1001EDF84                                          ; +0x11c, 0x1001ede90\nLDR             X10, [X8]                                              ; +0x120, 0x1001ede94\nCMP             X10, X21                                               ; +0x124, 0x1001ede98\nB.NE            loc_1001EDED0                                          ; +0x128, 0x1001ede9c\nMOV             W10, #1                                                ; +0x12c, 0x1001edea0\nCBZ             W19, loc_1001EDEC8                                     ; +0x130, 0x1001edea4\nCMP             W19, #1                                                ; +0x134, 0x1001edea8\nB.EQ            loc_1001EDEBC                                          ; +0x138, 0x1001edeac\nCMP             W19, #2                                                ; +0x13c, 0x1001edeb0\nB.NE            loc_1001EDED0                                          ; +0x140, 0x1001edeb4\nMOV             W10, #0                                                ; +0x144, 0x1001edeb8\nSTRB            W10, [X8,#0x4E]                                        ; +0x148, 0x1001edebc\nMOV             W11, #0x4F ; 'O'                                       ; +0x14c, 0x1001edec0\nB               loc_1001EDECC                                          ; +0x150, 0x1001edec4\nMOV             W11, #0x4D ; 'M'                                       ; +0x154, 0x1001edec8\nSTRB            W10, [X8,X11]                                          ; +0x158, 0x1001edecc\nADD             X8, X8, #0x60 ; '`'                                    ; +0x15c, 0x1001eded0\nB               loc_1001EDE8C                                          ; +0x160, 0x1001eded4\nCMP             W8, #0xBBE                                             ; +0x164, 0x1001eded8\nB.GT            loc_1001EDF0C                                          ; +0x168, 0x1001ededc\nCMP             W8, #0xBB7                                             ; +0x16c, 0x1001edee0\nB.EQ            loc_1001EDF4C                                          ; +0x170, 0x1001edee4\nCMP             W8, #0xBBE                                             ; +0x174, 0x1001edee8\nB.NE            loc_1001EDF84                                          ; +0x178, 0x1001edeec\nADD             X2, X20, #0x5C8                                        ; +0x17c, 0x1001edef0\nB               loc_1001EDFD4                                          ; +0x180, 0x1001edef4\nCMP             W8, #0x64F                                             ; +0x184, 0x1001edef8\nB.EQ            loc_1001EDF98                                          ; +0x188, 0x1001edefc\nCMP             W8, #0x779                                             ; +0x18c, 0x1001edf00\nB.EQ            loc_1001EDF4C                                          ; +0x190, 0x1001edf04\nB               loc_1001EDF84                                          ; +0x194, 0x1001edf08\nCMP             W8, #0xBBF                                             ; +0x198, 0x1001edf0c\nB.EQ            loc_1001EDFA0                                          ; +0x19c, 0x1001edf10\nCMP             W8, #0xBC0                                             ; +0x1a0, 0x1001edf14\nB.NE            loc_1001EDF84                                          ; +0x1a4, 0x1001edf18\nADD             X2, X20, #0x5F8                                        ; +0x1a8, 0x1001edf1c\nB               loc_1001EDFD4                                          ; +0x1ac, 0x1001edf20\nCMP             W8, #0xBC1                                             ; +0x1b0, 0x1001edf24\nB.EQ            loc_1001EDFD0                                          ; +0x1b4, 0x1001edf28\nCMP             W8, #0xBC2                                             ; +0x1b8, 0x1001edf2c\nB.NE            loc_1001EDF84                                          ; +0x1bc, 0x1001edf30\nADD             X2, X20, #0x628                                        ; +0x1c0, 0x1001edf34\nB               loc_1001EDFD4                                          ; +0x1c4, 0x1001edf38\nCMP             W8, #0x77C                                             ; +0x1c8, 0x1001edf3c\nB.EQ            loc_1001EDF4C                                          ; +0x1cc, 0x1001edf40\nCMP             W8, #0x7DF                                             ; +0x1d0, 0x1001edf44\nB.NE            loc_1001EDF84                                          ; +0x1d4, 0x1001edf48\nLDR             W1, [X21,#0x394]                                       ; +0x1d8, 0x1001edf4c\nADD             X0, X20, #0x1A8                                        ; +0x1dc, 0x1001edf50\nMOV             W2, #0xFFFFFFFF                                        ; +0x1e0, 0x1001edf54\nMOV             X3, X19                                                ; +0x1e4, 0x1001edf58\nBL              GJGameState__controlTweenAction                        ; +0x1e8, 0x1001edf5c\nB               loc_1001EDFE0                                          ; +0x1ec, 0x1001edf60\nLDRB            W8, [X21,#0x600]                                       ; +0x1f0, 0x1001edf64\nCMP             W8, #1                                                 ; +0x1f4, 0x1001edf68\nB.NE            loc_1001EDF84                                          ; +0x1f8, 0x1001edf6c\nADD             X3, X20, #0x688                                        ; +0x1fc, 0x1001edf70\nMOV             X1, X21                                                ; +0x200, 0x1001edf74\nMOV             W2, #0xFFFFFFFF                                        ; +0x204, 0x1001edf78\nMOV             X4, X19                                                ; +0x208, 0x1001edf7c\nBL              GJBaseGameLayer__controlDynamicCommand                 ; +0x20c, 0x1001edf80\nLDR             X0, [X20,#0x878]                                       ; +0x210, 0x1001edf84\nMOV             X1, X21                                                ; +0x214, 0x1001edf88\nMOV             X2, X19                                                ; +0x218, 0x1001edf8c\nBL              GJEffectManager__controlActionsForTrigger              ; +0x21c, 0x1001edf90\nB               loc_1001EDFE0                                          ; +0x220, 0x1001edf94\nSTRB            W24, [X21,#0x770]                                      ; +0x224, 0x1001edf98\nB               loc_1001EDFE0                                          ; +0x228, 0x1001edf9c\nADD             X2, X20, #0x5E0                                        ; +0x22c, 0x1001edfa0\nB               loc_1001EDFD4                                          ; +0x230, 0x1001edfa4\nMOV             X0, X20                                                ; +0x234, 0x1001edfa8\nMOV             X1, X21                                                ; +0x238, 0x1001edfac\nBL              GJBaseGameLayer__stopSFXTrigger                        ; +0x23c, 0x1001edfb0\nB               loc_1001EDFE0                                          ; +0x240, 0x1001edfb4\nMOV             X0, X20                                                ; +0x244, 0x1001edfb8\nMOV             X1, X21                                                ; +0x248, 0x1001edfbc\nMOV             W2, #0xFFFFFFFF                                        ; +0x24c, 0x1001edfc0\nMOV             X3, X19                                                ; +0x250, 0x1001edfc4\nBL              GJBaseGameLayer__controlAdvancedFollowCommand          ; +0x254, 0x1001edfc8\nB               loc_1001EDFE0                                          ; +0x258, 0x1001edfcc\nADD             X2, X20, #0x610                                        ; +0x25c, 0x1001edfd0\nMOV             X1, X21                                                ; +0x260, 0x1001edfd4\nMOV             X3, X19                                                ; +0x264, 0x1001edfd8\nBL              GJBaseGameLayer__controlAreaEffect                     ; +0x268, 0x1001edfdc\nADD             X22, X22, #8                                           ; +0x26c, 0x1001edfe0\nCMP             X22, X23                                               ; +0x270, 0x1001edfe4\nB.LS            loc_1001EDDC8                                          ; +0x274, 0x1001edfe8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x278, 0x1001edfec\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x27c, 0x1001edff0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x280, 0x1001edff4\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x284, 0x1001edff8\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x288, 0x1001edffc\nRET                                                                    ; +0x28c, 0x1001ee000", "xrefs": ["TriggerControlGameObject::triggerObject @ 0x100398110"], "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"}