{"type": "func", "start": 4846008, "end": 4846200, "name": "GJEffectManager::updateTimer", "pseudocode": "// \n// GJEffectManager::updateTimer from 0x49f1b8 to 0x49f278 (192 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e84a\n// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e98e\n// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e9e4\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 GJEffectManager::updateTimer(GJEffectManager *a1, int a2, double a3)\n{\n  double v4; // d8\n  int v5; // r1\n  int v6; // r0\n  int v7; // [sp+34h] [bp-14h] BYREF\n  std::vector<int> v8; // [sp+38h] [bp-10h] BYREF\n\n  v4 = a3;\n  v7 = a2;\n  if ( a2 > 9998 )\n    v5 = 9999;\n  else\n    v5 = a2 & ~(a2 >> 31);\n  v7 = v5;\n  if ( a3 <= 9999999.0 )\n  {\n    if ( a3 < -9999999.0 )\n      v4 = -9999999.0;\n  }\n  else\n  {\n    v4 = 9999999.0;\n  }\n  v6 = std::_Hashtable<int,std::pair<int const,TimerItem>,std::allocator<std::pair<int const,TimerItem>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(\n         &a1->m_timerItemMap._M_h._M_buckets,\n         &v7);\n  if ( v6 )\n  {\n    *(double *)(v6 + 24) = v4;\n  }\n  else\n  {\n    memset(&v8, 0, sizeof(v8));\n    GJEffectManager::startTimer(a1, v7, v4, 0.0, 0, 0, 1, 1.0, 0, 0, &v8, 0, 0);\n    std::_Vector_base<int>::~_Vector_base((void **)&v8.m_start);\n  }\n}", "assembly": "; \n; GJEffectManager::updateTimer from 0x49f1b8 to 0x49f278 (192 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::activateItemEditTrigger @ 0x48e84a\n; > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e98e\n; > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e9e4\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x49f1b8\nMOV             R6, R0                                                 ; +0x2, 0x49f1ba\nVPUSH           {D8}                                                   ; +0x4, 0x49f1bc\nVMOV            D8, R2, R3                                             ; +0x8, 0x49f1c0\nLDR             R3, =(__stack_chk_guard_ptr - 0x49F1D0)                ; +0xc, 0x49f1c4\nSUB             SP, SP, #0x48                                          ; +0xe, 0x49f1c6\nVLDR            D7, =9999999.0                                         ; +0x10, 0x49f1c8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x14, 0x49f1cc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x16, 0x49f1ce\nSTR             R1, [SP,#0x48+var_14]                                  ; +0x18, 0x49f1d0\nLDR             R2, [R3]                                               ; +0x1a, 0x49f1d2\nMOV             R4, R3                                                 ; +0x1c, 0x49f1d4\nVCMPE.F64       D8, D7                                                 ; +0x1e, 0x49f1d6\nSTR             R2, [SP,#0x48+var_4]                                   ; +0x22, 0x49f1da\nMOVW            R2, #0x270E                                            ; +0x24, 0x49f1dc\nCMP             R1, R2                                                 ; +0x28, 0x49f1e0\nITE LE                                                                 ; +0x2a, 0x49f1e2\nBICLE.W         R1, R1, R1,ASR#31                                      ; +0x2c, 0x49f1e4\nMOVWGT          R1, #0x270F                                            ; +0x30, 0x49f1e8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x34, 0x49f1ec\nSTR             R1, [SP,#0x48+var_14]                                  ; +0x38, 0x49f1f0\nBGT             loc_49F208                                             ; +0x3a, 0x49f1f2\nVLDR            D7, =-9999999.0                                        ; +0x3c, 0x49f1f4\nVCMP.F64        D8, D7                                                 ; +0x40, 0x49f1f8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x44, 0x49f1fc\nIT MI                                                                  ; +0x48, 0x49f200\nVMOVMI.F64      D8, D7                                                 ; +0x4a, 0x49f202\nB               loc_49F20C                                             ; +0x4e, 0x49f206\nVMOV.F64        D8, D7                                                 ; +0x50, 0x49f208\nADD.W           R0, R6, #0x280                                         ; +0x54, 0x49f20c\nADD             R1, SP, #0x48+var_14                                   ; +0x58, 0x49f210\nBL              _ZNSt10_HashtableIiSt4pairIKi9TimerItemESaIS3_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<int,std::pair<int const,TimerItem>,std::allocator<std::pair<int const,TimerItem>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(int const&) ; +0x5a, 0x49f212\nCBZ             R0, loc_49F21E                                         ; +0x5e, 0x49f216\nVSTR            D8, [R0,#0x18]                                         ; +0x60, 0x49f218\nB               loc_49F264                                             ; +0x64, 0x49f21c\nMOVS            R2, #0                                                 ; +0x66, 0x49f21e\nMOVS            R3, #0                                                 ; +0x68, 0x49f220\nSTR             R0, [SP,#0x48+var_10]                                  ; +0x6a, 0x49f222\nADD             R5, SP, #0x48+var_10                                   ; +0x6c, 0x49f224\nSTRD.W          R2, R3, [SP,#0x48+var_48]; double                      ; +0x6e, 0x49f226\nMOVS            R3, #1                                                 ; +0x72, 0x49f22a\nSTR             R0, [SP,#0x48+var_C]                                   ; +0x74, 0x49f22c\nSTR             R0, [SP,#0x48+var_8]                                   ; +0x76, 0x49f22e\nSTR             R0, [SP,#0x48+var_40]; char                            ; +0x78, 0x49f230\nSTR             R0, [SP,#0x48+var_3C]; char                            ; +0x7a, 0x49f232\nSTR             R3, [SP,#0x48+var_38]; char                            ; +0x7c, 0x49f234\nMOV.W           R3, #0x3F800000                                        ; +0x7e, 0x49f236\nSTR             R0, [SP,#0x48+var_30]; char                            ; +0x82, 0x49f23a\nSTR             R3, [SP,#0x48+var_34]; float                           ; +0x84, 0x49f23c\nSTR             R0, [SP,#0x48+var_2C]; int                             ; +0x86, 0x49f23e\nSTR             R0, [SP,#0x48+var_24]; int                             ; +0x88, 0x49f240\nSTR             R0, [SP,#0x48+var_20]; int                             ; +0x8a, 0x49f242\nMOV             R0, R6; int                                            ; +0x8c, 0x49f244\nSTR             R5, [SP,#0x48+var_28]; int                             ; +0x8e, 0x49f246\nLDR             R1, [SP,#0x48+var_14]; int                             ; +0x90, 0x49f248\nVMOV            R2, R3, D8; int                                        ; +0x92, 0x49f24a\nBL              _ZN15GJEffectManager10startTimerEiddbbbfbiRKSt6vectorIiSaIiEEii; GJEffectManager::startTimer(int,double,double,bool,bool,bool,float,bool,int,std::vector<int> const&,int,int) ; +0x96, 0x49f24e\nMOV             R0, R5                                                 ; +0x9a, 0x49f252\nBL              _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() ; +0x9c, 0x49f254\nB               loc_49F264                                             ; +0xa0, 0x49f258\nMOV             R0, R5                                                 ; +0xa2, 0x49f25a\nBL              _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() ; +0xa4, 0x49f25c\nBL              __cxa_end_cleanup                                      ; +0xa8, 0x49f260\nLDR             R2, [SP,#0x48+var_4]                                   ; +0xac, 0x49f264\nLDR             R3, [R4]                                               ; +0xae, 0x49f266\nCMP             R2, R3                                                 ; +0xb0, 0x49f268\nBEQ             loc_49F270                                             ; +0xb2, 0x49f26a\nBLX             __stack_chk_fail                                       ; +0xb4, 0x49f26c\nADD             SP, SP, #0x48 ; 'H'                                    ; +0xb8, 0x49f270\nVPOP            {D8}                                                   ; +0xba, 0x49f272\nPOP             {R4-R6,PC}                                             ; +0xbe, 0x49f276", "xrefs": ["GJBaseGameLayer::activateItemEditTrigger @ 0x48e84a", "GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e98e", "GJBaseGameLayer::activatePersistentItemTrigger @ 0x48e9e4"], "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"}