{"type": "func", "start": 9015728, "end": 9016424, "name": "GJBaseGameLayer::controlTriggersInGroup", "pseudocode": "// \n// GJBaseGameLayer::controlTriggersInGroup from 0x8991b0 to 0x899468 (696 bytes)\n// \n// 2 xrefs:\n// > TriggerControlGameObject::triggerObject @ 0x74b358\n// > <???> @ 0x903d8\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::controlTriggersInGroup(GJBaseGameLayer *a1, int a2, GJActionCommand a3)\n{\n  cocos2d::CCArray *Group; // x0\n  cocos2d::ccArray *data; // x1\n  cocos2d::CCObject **arr; // x19\n  cocos2d::CCObject **v8; // x28\n  cocos2d::CCObject *v9; // x20\n  int v10; // w0\n\n  Group = GJBaseGameLayer::getGroup(a1, a2);\n  if ( Group )\n  {\n    data = Group->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v8 = &arr[data->num - 1];\n      if ( arr <= v8 )\n      {\n        v9 = *arr;\n        if ( *arr )\n        {\n          while ( 1 )\n          {\n            if ( !LOBYTE(v9[22].m_uID) )\n              goto LABEL_14;\n            v10 = HIDWORD(v9[18].__vftable);\n            if ( v10 <= 2924 )\n            {\n              if ( v10 >= 2919 )\n                goto LABEL_14;\n              if ( v10 == 2903 )\n              {\n                GJBaseGameLayer::controlGradientTrigger(a1, (GradientTriggerObject *)v9, a3);\n                goto LABEL_14;\n              }\n              if ( v10 > 2903 )\n              {\n                if ( v10 != 2907 )\n                {\n                  if ( v10 > 2907 )\n                  {\n                    if ( (unsigned int)(v10 - 2909) > 8 )\n                      goto LABEL_33;\n                  }\n                  else if ( v10 > 2905 )\n                  {\n                    goto LABEL_33;\n                  }\n                }\n              }\n              else\n              {\n                if ( v10 == 1913 )\n                  goto LABEL_41;\n                if ( v10 > 1913 )\n                {\n                  if ( v10 != 1916 && v10 != 2015 )\n                  {\nLABEL_33:\n                    if ( v10 == 1346 )\n                    {\n                      if ( LOBYTE(v9[27].m_uID) )\n                        GJBaseGameLayer::controlDynamicRotateCommand(a1, (EffectGameObject *)v9, -1, a3);\n                    }\n                    else if ( v10 == 901 && LOBYTE(v9[27].m_uID) )\n                    {\n                      GJBaseGameLayer::controlDynamicMoveCommand(a1, (EffectGameObject *)v9, -1, a3);\n                    }\n                    GJEffectManager::controlActionsForTrigger(a1->m_effectManager, (EffectGameObject *)v9, a3);\n                    goto LABEL_14;\n                  }\nLABEL_41:\n                  GJGameState::controlTweenAction(&a1->m_gameState, HIDWORD(v9[16].__vftable), -1, a3);\n                  goto LABEL_14;\n                }\n                if ( v10 != 1615 )\n                  goto LABEL_33;\n                LOBYTE(v9[33].m_uAutoReleaseCount) = a3 != Resume;\n              }\n            }\n            else if ( v10 == 3009 )\n            {\n              GJBaseGameLayer::controlAreaEffect(\n                a1,\n                (EnterEffectObject *)v9,\n                &a1->m_gameState.m_fadeEffectInstances,\n                a3);\n            }\n            else if ( v10 <= 3009 )\n            {\n              if ( v10 != 3006 )\n              {\n                if ( v10 > 3006 )\n                {\n                  if ( v10 == 3007 )\n                    GJBaseGameLayer::controlAreaEffect(\n                      a1,\n                      (EnterEffectObject *)v9,\n                      &a1->m_gameState.m_rotateEffectInstances,\n                      a3);\n                  else\n                    GJBaseGameLayer::controlAreaEffect(\n                      a1,\n                      (EnterEffectObject *)v9,\n                      &a1->m_gameState.m_scaleEffectInstances,\n                      a3);\n                  goto LABEL_14;\n                }\n                if ( v10 != 2999 )\n                  goto LABEL_33;\n                goto LABEL_41;\n              }\n              GJBaseGameLayer::controlAreaEffect(\n                a1,\n                (EnterEffectObject *)v9,\n                &a1->m_gameState.m_moveEffectInstances,\n                a3);\n            }\n            else if ( v10 == 3016 )\n            {\n              GJBaseGameLayer::controlAdvancedFollowCommand(a1, (AdvancedFollowTriggerObject *)v9, -1, a3);\n            }\n            else if ( v10 <= 3016 )\n            {\n              if ( v10 != 3010 )\n                goto LABEL_33;\n              GJBaseGameLayer::controlAreaEffect(\n                a1,\n                (EnterEffectObject *)v9,\n                &a1->m_gameState.m_tintEffectInstances,\n                a3);\n            }\n            else if ( v10 == 3602 )\n            {\n              GJBaseGameLayer::stopSFXTrigger(a1, (SFXTriggerGameObject *)v9);\n            }\n            else\n            {\n              if ( v10 != 3604 )\n                goto LABEL_33;\n              GJBaseGameLayer::controlEventLink(a1, HIDWORD(v9[16].__vftable), -1, a3);\n            }\nLABEL_14:\n            if ( v8 >= ++arr )\n            {\n              v9 = *arr;\n              if ( *arr )\n                continue;\n            }\n            return;\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::controlTriggersInGroup from 0x8991b0 to 0x899468 (696 bytes)\n; \n; 2 xrefs:\n; > TriggerControlGameObject::triggerObject @ 0x74b358\n; > <???> @ 0x903d8\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             X29, X30, [SP,#-0x60+var_s0]!                          ; +0x0, 0x8991b0\nMOV             X29, SP                                                ; +0x4, 0x8991b4\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x8991b8\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x8991bc\nSTP             X23, X24, [SP,#var_s30]                                ; +0x10, 0x8991c0\nSTP             X25, X26, [SP,#var_s40]                                ; +0x14, 0x8991c4\nSTP             X27, X28, [SP,#var_s50]                                ; +0x18, 0x8991c8\nMOV             X21, X0                                                ; +0x1c, 0x8991cc\nMOV             W22, W2                                                ; +0x20, 0x8991d0\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x24, 0x8991d4\nCBZ             X0, loc_899280                                         ; +0x28, 0x8991d8\nLDR             X1, [X0,#0x38]                                         ; +0x2c, 0x8991dc\nLDR             W0, [X1]                                               ; +0x30, 0x8991e0\nCBZ             W0, loc_899280                                         ; +0x34, 0x8991e4\nLDR             X19, [X1,#0x10]                                        ; +0x38, 0x8991e8\nMOV             X28, #0xFFFFFFFFFFFFFFF8                               ; +0x3c, 0x8991ec\nADD             X28, X28, W0,UXTW#3                                    ; +0x40, 0x8991f0\nADD             X28, X19, X28                                          ; +0x44, 0x8991f4\nCMP             X19, X28                                               ; +0x48, 0x8991f8\nB.HI            loc_899280                                             ; +0x4c, 0x8991fc\nLDR             X20, [X19]                                             ; +0x50, 0x899200\nCBZ             X20, loc_899280                                        ; +0x54, 0x899204\nADD             X27, X21, #0x1A8                                       ; +0x58, 0x899208\nADD             X26, X21, #0x6C8                                       ; +0x5c, 0x89920c\nADD             X25, X21, #0x6E0                                       ; +0x60, 0x899210\nADD             X24, X21, #0x680                                       ; +0x64, 0x899214\nADD             X23, X21, #0x698                                       ; +0x68, 0x899218\nLDRB            W0, [X20,#0x4D8]                                       ; +0x6c, 0x89921c\nCBZ             W0, loc_89926C                                         ; +0x70, 0x899220\nLDR             W0, [X20,#0x3F4]                                       ; +0x74, 0x899224\nCMP             W0, #0xB6C                                             ; +0x78, 0x899228\nB.LE            loc_89929C                                             ; +0x7c, 0x89922c\nCMP             W0, #0xBC1                                             ; +0x80, 0x899230\nB.EQ            loc_8993C4                                             ; +0x84, 0x899234\nB.LE            loc_8992D4                                             ; +0x88, 0x899238\nCMP             W0, #0xBC8                                             ; +0x8c, 0x89923c\nB.EQ            loc_899384                                             ; +0x90, 0x899240\nB.LE            loc_899308                                             ; +0x94, 0x899244\nCMP             W0, #0xE12                                             ; +0x98, 0x899248\nB.EQ            loc_899360                                             ; +0x9c, 0x89924c\nCMP             W0, #0xE14                                             ; +0xa0, 0x899250\nB.NE            loc_89933C                                             ; +0xa4, 0x899254\nLDR             W1, [X20,#0x384]                                       ; +0xa8, 0x899258\nMOV             X0, X21                                                ; +0xac, 0x89925c\nMOV             W2, #0xFFFFFFFF                                        ; +0xb0, 0x899260\nMOV             W3, W22                                                ; +0xb4, 0x899264\nBL              _ZN15GJBaseGameLayer16controlEventLinkEii15GJActionCommand; GJBaseGameLayer::controlEventLink(int,int,GJActionCommand) ; +0xb8, 0x899268\nADD             X19, X19, #8                                           ; +0xbc, 0x89926c\nCMP             X28, X19                                               ; +0xc0, 0x899270\nB.CC            loc_899280                                             ; +0xc4, 0x899274\nLDR             X20, [X19]                                             ; +0xc8, 0x899278\nCBNZ            X20, loc_89921C                                        ; +0xcc, 0x89927c\nLDP             X19, X20, [SP,#var_s10]                                ; +0xd0, 0x899280\nLDP             X21, X22, [SP,#var_s20]                                ; +0xd4, 0x899284\nLDP             X23, X24, [SP,#var_s30]                                ; +0xd8, 0x899288\nLDP             X25, X26, [SP,#var_s40]                                ; +0xdc, 0x89928c\nLDP             X27, X28, [SP,#var_s50]                                ; +0xe0, 0x899290\nLDP             X29, X30, [SP+var_s0],#0x60                            ; +0xe4, 0x899294\nRET                                                                    ; +0xe8, 0x899298\nCMP             W0, #0xB67                                             ; +0xec, 0x89929c\nB.GE            loc_89926C                                             ; +0xf0, 0x8992a0\nCMP             W0, #0xB57                                             ; +0xf4, 0x8992a4\nB.EQ            loc_899370                                             ; +0xf8, 0x8992a8\nB.GT            loc_899328                                             ; +0xfc, 0x8992ac\nCMP             W0, #0x779                                             ; +0x100, 0x8992b0\nB.EQ            loc_8993AC                                             ; +0x104, 0x8992b4\nB.GT            loc_89939C                                             ; +0x108, 0x8992b8\nCMP             W0, #0x64F                                             ; +0x10c, 0x8992bc\nB.NE            loc_89933C                                             ; +0x110, 0x8992c0\nCMP             W22, #2                                                ; +0x114, 0x8992c4\nCSET            W0, NE                                                 ; +0x118, 0x8992c8\nSTRB            W0, [X20,#0x750]                                       ; +0x11c, 0x8992cc\nB               loc_89926C                                             ; +0x120, 0x8992d0\nCMP             W0, #0xBBE                                             ; +0x124, 0x8992d4\nB.EQ            loc_8993F4                                             ; +0x128, 0x8992d8\nB.LE            loc_89943C                                             ; +0x12c, 0x8992dc\nCMP             W0, #0xBBF                                             ; +0x130, 0x8992e0\nB.EQ            loc_8993DC                                             ; +0x134, 0x8992e4\nCMP             W0, #0xBC0                                             ; +0x138, 0x8992e8\nB.NE            loc_89933C                                             ; +0x13c, 0x8992ec\nMOV             X0, X21                                                ; +0x140, 0x8992f0\nMOV             X1, X20                                                ; +0x144, 0x8992f4\nADD             X2, X21, #0x6B0                                        ; +0x148, 0x8992f8\nMOV             W3, W22                                                ; +0x14c, 0x8992fc\nBL              _ZN15GJBaseGameLayer17controlAreaEffectEP17EnterEffectObjectPSt6vectorI19EnterEffectInstanceSaIS3_EE15GJActionCommand; GJBaseGameLayer::controlAreaEffect(EnterEffectObject *,std::vector<EnterEffectInstance> *,GJActionCommand) ; +0x150, 0x899300\nB               loc_89926C                                             ; +0x154, 0x899304\nCMP             W0, #0xBC2                                             ; +0x158, 0x899308\nB.NE            loc_89933C                                             ; +0x15c, 0x89930c\nMOV             X0, X21                                                ; +0x160, 0x899310\nMOV             X1, X20                                                ; +0x164, 0x899314\nMOV             X2, X25                                                ; +0x168, 0x899318\nMOV             W3, W22                                                ; +0x16c, 0x89931c\nBL              _ZN15GJBaseGameLayer17controlAreaEffectEP17EnterEffectObjectPSt6vectorI19EnterEffectInstanceSaIS3_EE15GJActionCommand; GJBaseGameLayer::controlAreaEffect(EnterEffectObject *,std::vector<EnterEffectInstance> *,GJActionCommand) ; +0x170, 0x899320\nB               loc_89926C                                             ; +0x174, 0x899324\nCMP             W0, #0xB5B                                             ; +0x178, 0x899328\nB.EQ            loc_89926C                                             ; +0x17c, 0x89932c\nB.GT            loc_89942C                                             ; +0x180, 0x899330\nCMP             W0, #0xB59                                             ; +0x184, 0x899334\nB.LE            loc_89926C                                             ; +0x188, 0x899338\nCMP             W0, #0x542                                             ; +0x18c, 0x89933c\nB.EQ            loc_89940C                                             ; +0x190, 0x899340\nCMP             W0, #0x385                                             ; +0x194, 0x899344\nB.EQ            loc_899448                                             ; +0x198, 0x899348\nLDR             X0, [X21,#0x9A8]; this                                 ; +0x19c, 0x89934c\nMOV             X1, X20                                                ; +0x1a0, 0x899350\nMOV             W2, W22                                                ; +0x1a4, 0x899354\nBL              _ZN15GJEffectManager24controlActionsForTriggerEP16EffectGameObject15GJActionCommand; GJEffectManager::controlActionsForTrigger(EffectGameObject *,GJActionCommand) ; +0x1a8, 0x899358\nB               loc_89926C                                             ; +0x1ac, 0x89935c\nMOV             X0, X21; this                                          ; +0x1b0, 0x899360\nMOV             X1, X20; SFXTriggerGameObject *                        ; +0x1b4, 0x899364\nBL              _ZN15GJBaseGameLayer14stopSFXTriggerEP20SFXTriggerGameObject; GJBaseGameLayer::stopSFXTrigger(SFXTriggerGameObject *) ; +0x1b8, 0x899368\nB               loc_89926C                                             ; +0x1bc, 0x89936c\nMOV             X0, X21                                                ; +0x1c0, 0x899370\nMOV             X1, X20                                                ; +0x1c4, 0x899374\nMOV             W2, W22                                                ; +0x1c8, 0x899378\nBL              _ZN15GJBaseGameLayer22controlGradientTriggerEP21GradientTriggerObject15GJActionCommand; GJBaseGameLayer::controlGradientTrigger(GradientTriggerObject *,GJActionCommand) ; +0x1cc, 0x89937c\nB               loc_89926C                                             ; +0x1d0, 0x899380\nMOV             X0, X21                                                ; +0x1d4, 0x899384\nMOV             X1, X20                                                ; +0x1d8, 0x899388\nMOV             W2, #0xFFFFFFFF                                        ; +0x1dc, 0x89938c\nMOV             W3, W22                                                ; +0x1e0, 0x899390\nBL              _ZN15GJBaseGameLayer28controlAdvancedFollowCommandEP27AdvancedFollowTriggerObjecti15GJActionCommand; GJBaseGameLayer::controlAdvancedFollowCommand(AdvancedFollowTriggerObject *,int,GJActionCommand) ; +0x1e4, 0x899394\nB               loc_89926C                                             ; +0x1e8, 0x899398\nCMP             W0, #0x77C                                             ; +0x1ec, 0x89939c\nB.EQ            loc_8993AC                                             ; +0x1f0, 0x8993a0\nCMP             W0, #0x7DF                                             ; +0x1f4, 0x8993a4\nB.NE            loc_89933C                                             ; +0x1f8, 0x8993a8\nLDR             W1, [X20,#0x384]                                       ; +0x1fc, 0x8993ac\nMOV             X0, X27                                                ; +0x200, 0x8993b0\nMOV             W2, #0xFFFFFFFF                                        ; +0x204, 0x8993b4\nMOV             W3, W22                                                ; +0x208, 0x8993b8\nBL              _ZN11GJGameState18controlTweenActionEii15GJActionCommand; GJGameState::controlTweenAction(int,int,GJActionCommand) ; +0x20c, 0x8993bc\nB               loc_89926C                                             ; +0x210, 0x8993c0\nMOV             X0, X21                                                ; +0x214, 0x8993c4\nMOV             X1, X20                                                ; +0x218, 0x8993c8\nMOV             X2, X26                                                ; +0x21c, 0x8993cc\nMOV             W3, W22                                                ; +0x220, 0x8993d0\nBL              _ZN15GJBaseGameLayer17controlAreaEffectEP17EnterEffectObjectPSt6vectorI19EnterEffectInstanceSaIS3_EE15GJActionCommand; GJBaseGameLayer::controlAreaEffect(EnterEffectObject *,std::vector<EnterEffectInstance> *,GJActionCommand) ; +0x224, 0x8993d4\nB               loc_89926C                                             ; +0x228, 0x8993d8\nMOV             X0, X21                                                ; +0x22c, 0x8993dc\nMOV             X1, X20                                                ; +0x230, 0x8993e0\nMOV             X2, X23                                                ; +0x234, 0x8993e4\nMOV             W3, W22                                                ; +0x238, 0x8993e8\nBL              _ZN15GJBaseGameLayer17controlAreaEffectEP17EnterEffectObjectPSt6vectorI19EnterEffectInstanceSaIS3_EE15GJActionCommand; GJBaseGameLayer::controlAreaEffect(EnterEffectObject *,std::vector<EnterEffectInstance> *,GJActionCommand) ; +0x23c, 0x8993ec\nB               loc_89926C                                             ; +0x240, 0x8993f0\nMOV             X0, X21                                                ; +0x244, 0x8993f4\nMOV             X1, X20                                                ; +0x248, 0x8993f8\nMOV             X2, X24                                                ; +0x24c, 0x8993fc\nMOV             W3, W22                                                ; +0x250, 0x899400\nBL              _ZN15GJBaseGameLayer17controlAreaEffectEP17EnterEffectObjectPSt6vectorI19EnterEffectInstanceSaIS3_EE15GJActionCommand; GJBaseGameLayer::controlAreaEffect(EnterEffectObject *,std::vector<EnterEffectInstance> *,GJActionCommand) ; +0x254, 0x899404\nB               loc_89926C                                             ; +0x258, 0x899408\nLDRB            W0, [X20,#0x5F0]                                       ; +0x25c, 0x89940c\nCBZ             W0, loc_89934C                                         ; +0x260, 0x899410\nMOV             X0, X21                                                ; +0x264, 0x899414\nMOV             X1, X20                                                ; +0x268, 0x899418\nMOV             W2, #0xFFFFFFFF                                        ; +0x26c, 0x89941c\nMOV             W3, W22                                                ; +0x270, 0x899420\nBL              _ZN15GJBaseGameLayer27controlDynamicRotateCommandEP16EffectGameObjecti15GJActionCommand; GJBaseGameLayer::controlDynamicRotateCommand(EffectGameObject *,int,GJActionCommand) ; +0x274, 0x899424\nB               loc_89934C                                             ; +0x278, 0x899428\nSUB             W1, W0, #0xB5D                                         ; +0x27c, 0x89942c\nCMP             W1, #8                                                 ; +0x280, 0x899430\nB.LS            loc_89926C                                             ; +0x284, 0x899434\nB               loc_89933C                                             ; +0x288, 0x899438\nCMP             W0, #0xBB7                                             ; +0x28c, 0x89943c\nB.EQ            loc_8993AC                                             ; +0x290, 0x899440\nB               loc_89933C                                             ; +0x294, 0x899444\nLDRB            W0, [X20,#0x5F0]                                       ; +0x298, 0x899448\nCBZ             W0, loc_89934C                                         ; +0x29c, 0x89944c\nMOV             X0, X21                                                ; +0x2a0, 0x899450\nMOV             X1, X20                                                ; +0x2a4, 0x899454\nMOV             W2, #0xFFFFFFFF                                        ; +0x2a8, 0x899458\nMOV             W3, W22                                                ; +0x2ac, 0x89945c\nBL              _ZN15GJBaseGameLayer25controlDynamicMoveCommandEP16EffectGameObjecti15GJActionCommand; GJBaseGameLayer::controlDynamicMoveCommand(EffectGameObject *,int,GJActionCommand) ; +0x2b0, 0x899460\nB               loc_89934C                                             ; +0x2b4, 0x899464", "xrefs": ["TriggerControlGameObject::triggerObject @ 0x74b358", "<???> @ 0x903d8"], "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"}