{"type": "func", "start": 8914836, "end": 8915052, "name": "GJGameState::controlTweenAction", "pseudocode": "// \n// GJGameState::controlTweenAction from 0x880794 to 0x88086c (216 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x898f08\n// > GJBaseGameLayer::controlTriggersInGroup @ 0x8993bc\n// > <???> @ 0x50c40\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 GJGameState::controlTweenAction(GJGameState *a1, int a2, int a3, GJActionCommand a4)\n{\n  __int64 M_nxt; // x3\n  __int64 *p_m_tweenActions; // x23\n  std::_Hashtable<int, std::pair<const int, GJValueTween>, std::allocator<std::pair<const int, GJValueTween>>, 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>>::size_type v10; // x1\n  __int64 *i; // x2\n\n  M_nxt = (__int64)a1->m_tweenActions._M_h._M_before_begin._M_nxt;\n  p_m_tweenActions = (__int64 *)&a1->m_tweenActions;\n  while ( M_nxt )\n  {\n    if ( a3 == -1 )\n    {\n      if ( *(_DWORD *)(M_nxt + 44) != a2 )\n        goto LABEL_5;\n    }\n    else if ( *(_DWORD *)(M_nxt + 48) != a3 )\n    {\n      goto LABEL_5;\n    }\n    switch ( a4 )\n    {\n      case Stop:\n        v10 = *(int *)(M_nxt + 8) % a1->m_tweenActions._M_h._M_bucket_count;\n        for ( i = (__int64 *)a1->m_tweenActions._M_h._M_buckets[v10]; M_nxt != *i; i = (__int64 *)*i )\n          ;\n        M_nxt = std::_Hashtable<int,std::pair<int const,GJValueTween>,std::allocator<std::pair<int const,GJValueTween>>,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>>::_M_erase(\n                  p_m_tweenActions,\n                  v10,\n                  i,\n                  (__int64 *)M_nxt);\n        continue;\n      case Pause:\n        *(_BYTE *)(M_nxt + 41) = 1;\n        M_nxt = *(_QWORD *)M_nxt;\n        continue;\n      case Resume:\n        *(_BYTE *)(M_nxt + 41) = 0;\n        M_nxt = *(_QWORD *)M_nxt;\n        continue;\n    }\nLABEL_5:\n    M_nxt = *(_QWORD *)M_nxt;\n  }\n}", "assembly": "; \n; GJGameState::controlTweenAction from 0x880794 to 0x88086c (216 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x898f08\n; > GJBaseGameLayer::controlTriggersInGroup @ 0x8993bc\n; > <???> @ 0x50c40\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,#var_40]!                                ; +0x0, 0x880794\nMOV             X29, SP                                                ; +0x4, 0x880798\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x88079c\nMOV             W20, W3                                                ; +0xc, 0x8807a0\nLDR             X3, [X0,#0x280]                                        ; +0x10, 0x8807a4\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x8807a8\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x18, 0x8807ac\nMOV             X22, X0                                                ; +0x1c, 0x8807b0\nMOV             W21, W1                                                ; +0x20, 0x8807b4\nMOV             W19, W2                                                ; +0x24, 0x8807b8\nADD             X23, X0, #0x270                                        ; +0x28, 0x8807bc\nCBZ             X3, loc_8807E4                                         ; +0x2c, 0x8807c0\nCMN             W19, #1                                                ; +0x30, 0x8807c4\nADD             X0, X3, #0xC                                           ; +0x34, 0x8807c8\nB.NE            loc_8807F8                                             ; +0x38, 0x8807cc\nLDR             W1, [X0,#0x20]                                         ; +0x3c, 0x8807d0\nCMP             W1, W21                                                ; +0x40, 0x8807d4\nB.EQ            loc_880804                                             ; +0x44, 0x8807d8\nLDR             X3, [X3]                                               ; +0x48, 0x8807dc\nCBNZ            X3, loc_8807C4                                         ; +0x4c, 0x8807e0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x50, 0x8807e4\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x54, 0x8807e8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x58, 0x8807ec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x5c, 0x8807f0\nRET                                                                    ; +0x60, 0x8807f4\nLDR             W1, [X0,#0x24]                                         ; +0x64, 0x8807f8\nCMP             W1, W19                                                ; +0x68, 0x8807fc\nB.NE            loc_8807DC                                             ; +0x6c, 0x880800\nCBZ             W20, loc_880824                                        ; +0x70, 0x880804\nCMP             W20, #1                                                ; +0x74, 0x880808\nB.EQ            loc_880860                                             ; +0x78, 0x88080c\nCMP             W20, #2                                                ; +0x7c, 0x880810\nB.NE            loc_8807DC                                             ; +0x80, 0x880814\nSTRB            WZR, [X0,#0x1D]                                        ; +0x84, 0x880818\nLDR             X3, [X3]; p                                            ; +0x88, 0x88081c\nB               loc_8807E0                                             ; +0x8c, 0x880820\nLDRSW           X4, [X3,#8]                                            ; +0x90, 0x880824\nLDR             X1, [X22,#0x278]                                       ; +0x94, 0x880828\nLDR             X2, [X22,#0x270]                                       ; +0x98, 0x88082c\nUDIV            X0, X4, X1                                             ; +0x9c, 0x880830\nMSUB            X1, X0, X1, X4; int                                    ; +0xa0, 0x880834\nLDR             X2, [X2,X1,LSL#3]                                      ; +0xa4, 0x880838\nB               loc_880844                                             ; +0xa8, 0x88083c\nMOV             X2, X0; int                                            ; +0xac, 0x880840\nLDR             X0, [X2]                                               ; +0xb0, 0x880844\nCMP             X3, X0                                                 ; +0xb4, 0x880848\nB.NE            loc_880840                                             ; +0xb8, 0x88084c\nMOV             X0, X23; int                                           ; +0xbc, 0x880850\nBL              _ZNSt10_HashtableIiSt4pairIKi12GJValueTweenESaIS3_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE8_M_eraseEmPNS5_15_Hash_node_baseEPNS5_10_Hash_nodeIS3_Lb0EEE; std::_Hashtable<int,std::pair<int const,GJValueTween>,std::allocator<std::pair<int const,GJValueTween>>,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>>::_M_erase(ulong,std::__detail::_Hash_node_base *,std::__detail::_Hash_node<std::pair<int const,GJValueTween>,false> *) ; +0xc0, 0x880854\nMOV             X3, X0                                                 ; +0xc4, 0x880858\nB               loc_8807C0                                             ; +0xc8, 0x88085c\nSTRB            W20, [X0,#0x1D]                                        ; +0xcc, 0x880860\nLDR             X3, [X3]                                               ; +0xd0, 0x880864\nB               loc_8807E0                                             ; +0xd4, 0x880868", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x898f08", "GJBaseGameLayer::controlTriggersInGroup @ 0x8993bc", "<???> @ 0x50c40"], "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"}