{"type": "func", "start": 4678680, "end": 4678900, "name": "GJBaseGameLayer::activateTimerTrigger", "pseudocode": "// \n// GJBaseGameLayer::activateTimerTrigger from 0x476418 to 0x4764f4 (220 bytes)\n// \n// 1 xrefs:\n// > TimerTriggerGameObject::triggerObject @ 0x3eea10\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::activateTimerTrigger(GJBaseGameLayer *a1, TimerTriggerGameObject *a2, std::vector<int> *const a3)\n{\n  int m_objectID; // r3\n  int m_controlType; // r3\n\n  m_objectID = a2->m_objectID;\n  switch ( m_objectID )\n  {\n    case 3615:\n      GJEffectManager::runTimerTrigger(\n        a1->m_effectManager,\n        a2->m_itemID,\n        a2->m_targetTime,\n        a2->m_multiActivate,\n        a2->m_targetGroupID,\n        a3,\n        a2->m_uniqueID,\n        a2->m_controlID);\n      break;\n    case 3617:\n      m_controlType = a2->m_controlType;\n      if ( m_controlType )\n      {\n        if ( m_controlType == 1 )\n          GJEffectManager::pauseTimer(a1->m_effectManager, a2->m_itemID);\n      }\n      else\n      {\n        GJEffectManager::resumeTimer(a1->m_effectManager, a2->m_itemID);\n      }\n      break;\n    case 3614:\n      GJEffectManager::startTimer(\n        a1->m_effectManager,\n        a2->m_itemID,\n        a2->m_startTime,\n        a2->m_targetTime,\n        a2->m_stopTimeEnabled,\n        !a2->m_startPaused,\n        a2->m_dontOverride,\n        a2->m_timeMod,\n        a2->m_ignoreTimeWarp,\n        a2->m_targetGroupID,\n        a3,\n        a2->m_uniqueID,\n        a2->m_controlID);\n      break;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::activateTimerTrigger from 0x476418 to 0x4764f4 (220 bytes)\n; \n; 1 xrefs:\n; > TimerTriggerGameObject::triggerObject @ 0x3eea10\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.W           R3, [R1,#0x374]                                        ; +0x0, 0x476418\nPUSH            {R4,R6,R7,LR}                                          ; +0x4, 0x47641c\nMOVW            R4, #0xE1F                                             ; +0x6, 0x47641e\nCMP             R3, R4                                                 ; +0xa, 0x476422\nSUB             SP, SP, #0x30                                          ; +0xc, 0x476424\nBEQ             loc_476492                                             ; +0xe, 0x476426\nMOVW            R4, #0xE21                                             ; +0x10, 0x476428\nCMP             R3, R4                                                 ; +0x14, 0x47642c\nBEQ             loc_4764C2                                             ; +0x16, 0x47642e\nMOVW            R4, #0xE1E                                             ; +0x18, 0x476430\nCMP             R3, R4                                                 ; +0x1c, 0x476434\nBNE             loc_4764F0                                             ; +0x1e, 0x476436\nADD.W           R3, R1, #0x670                                         ; +0x20, 0x476438\nADD.W           R4, R1, #0x668                                         ; +0x24, 0x47643c\nLDRD.W          R6, R7, [R3]                                           ; +0x28, 0x476440\nSTRD.W          R6, R7, [SP,#0x30+var_30]; double                      ; +0x2c, 0x476444\nLDRB.W          R3, [R1,#0x678]                                        ; +0x30, 0x476448\nSTR             R3, [SP,#0x30+var_28]; char                            ; +0x34, 0x47644c\nLDRB.W          R3, [R1,#0x680]                                        ; +0x36, 0x47644e\nEOR.W           R3, R3, #1                                             ; +0x3a, 0x476452\nSTR             R3, [SP,#0x30+var_24]; char                            ; +0x3e, 0x476456\nLDRB.W          R3, [R1,#0x679]                                        ; +0x40, 0x476458\nSTR             R3, [SP,#0x30+var_20]; char                            ; +0x44, 0x47645c\nADDW            R3, R1, #0x67C                                         ; +0x46, 0x47645e\nLDR             R3, [R3]                                               ; +0x4a, 0x476462\nSTR             R3, [SP,#0x30+var_1C]; float                           ; +0x4c, 0x476464\nLDRB.W          R3, [R1,#0x67A]                                        ; +0x4e, 0x476466\nSTR             R3, [SP,#0x30+var_18]; char                            ; +0x52, 0x47646a\nLDR.W           R3, [R1,#0x4FC]                                        ; +0x54, 0x47646c\nSTR             R2, [SP,#0x30+var_10]; int                             ; +0x58, 0x476470\nSTR             R3, [SP,#0x30+var_14]; int                             ; +0x5a, 0x476472\nLDR.W           R3, [R1,#0x304]                                        ; +0x5c, 0x476474\nSTR             R3, [SP,#0x30+var_C]; int                              ; +0x60, 0x476478\nLDR.W           R3, [R1,#0x5CC]                                        ; +0x62, 0x47647a\nSTR             R3, [SP,#0x30+var_8]; int                              ; +0x66, 0x47647e\nLDR.W           R0, [R0,#0x690]; int                                   ; +0x68, 0x476480\nLDR.W           R1, [R1,#0x5D4]; int                                   ; +0x6c, 0x476484\nLDRD.W          R2, R3, [R4]; int                                      ; +0x70, 0x476488\nBL              _ZN15GJEffectManager10startTimerEiddbbbfbiRKSt6vectorIiSaIiEEii; GJEffectManager::startTimer(int,double,double,bool,bool,bool,float,bool,int,std::vector<int> const&,int,int) ; +0x74, 0x47648c\nB               loc_4764F0                                             ; +0x78, 0x476490\nLDRB.W          R4, [R1,#0x681]                                        ; +0x7a, 0x476492\nADD.W           R3, R1, #0x670                                         ; +0x7e, 0x476496\nSTR             R4, [SP,#0x30+var_30]                                  ; +0x82, 0x47649a\nLDR.W           R4, [R1,#0x4FC]                                        ; +0x84, 0x47649c\nSTR             R2, [SP,#0x30+var_28]                                  ; +0x88, 0x4764a0\nSTR             R4, [SP,#0x30+var_30+4]                                ; +0x8a, 0x4764a2\nLDR.W           R2, [R1,#0x304]                                        ; +0x8c, 0x4764a4\nSTR             R2, [SP,#0x30+var_24]                                  ; +0x90, 0x4764a8\nLDR.W           R2, [R1,#0x5CC]                                        ; +0x92, 0x4764aa\nSTR             R2, [SP,#0x30+var_20]                                  ; +0x96, 0x4764ae\nLDR.W           R0, [R0,#0x690]                                        ; +0x98, 0x4764b0\nLDR.W           R1, [R1,#0x5D4]                                        ; +0x9c, 0x4764b4\nLDRD.W          R2, R3, [R3]                                           ; +0xa0, 0x4764b8\nBL              _ZN15GJEffectManager15runTimerTriggerEidbiRKSt6vectorIiSaIiEEii; GJEffectManager::runTimerTrigger(int,double,bool,int,std::vector<int> const&,int,int) ; +0xa4, 0x4764bc\nB               loc_4764F0                                             ; +0xa8, 0x4764c0\nLDR.W           R3, [R1,#0x684]                                        ; +0xaa, 0x4764c2\nCBNZ            R3, loc_4764DA                                         ; +0xae, 0x4764c6\nLDR.W           R0, [R0,#0x690]; this                                  ; +0xb0, 0x4764c8\nLDR.W           R1, [R1,#0x5D4]; int                                   ; +0xb4, 0x4764cc\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb8, 0x4764d0\nPOP.W           {R4,R6,R7,LR}                                          ; +0xba, 0x4764d2\nB.W             _ZN15GJEffectManager11resumeTimerEi; GJEffectManager::resumeTimer(int) ; +0xbe, 0x4764d6\nCMP             R3, #1                                                 ; +0xc2, 0x4764da\nBNE             loc_4764F0                                             ; +0xc4, 0x4764dc\nLDR.W           R0, [R0,#0x690]; this                                  ; +0xc6, 0x4764de\nLDR.W           R1, [R1,#0x5D4]; int                                   ; +0xca, 0x4764e2\nADD             SP, SP, #0x30 ; '0'                                    ; +0xce, 0x4764e6\nPOP.W           {R4,R6,R7,LR}                                          ; +0xd0, 0x4764e8\nB.W             _ZN15GJEffectManager10pauseTimerEi; GJEffectManager::pauseTimer(int) ; +0xd4, 0x4764ec\nADD             SP, SP, #0x30 ; '0'                                    ; +0xd8, 0x4764f0\nPOP             {R4,R6,R7,PC}                                          ; +0xda, 0x4764f2", "xrefs": ["TimerTriggerGameObject::triggerObject @ 0x3eea10"], "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"}