{"type": "func", "start": 4742120, "end": 4742288, "name": "GJGameState::tweenValue", "pseudocode": "// \n// GJGameState::tweenValue from 0x485be8 to 0x485c90 (168 bytes)\n// \n// 18 xrefs:\n// > GJBaseGameLayer::animateOutGroundNew @ 0x485ce2\n// > GJBaseGameLayer::cameraMoveX @ 0x485d1c\n// > GJBaseGameLayer::cameraMoveY @ 0x485d6e\n// > GJBaseGameLayer::animatePortalY @ 0x485de4\n// > GJBaseGameLayer::toggleFlipped @ 0x485f04\n// > GJBaseGameLayer::updateScreenRotation @ 0x485fa8\n// > GJBaseGameLayer::updateCameraOffsetX @ 0x485ffa\n// > GJBaseGameLayer::updateCameraOffsetY @ 0x486048\n// > GJBaseGameLayer::updateMGOffsetY @ 0x48609a\n// > GJBaseGameLayer::updateCamera @ 0x4871c0\n// > GJBaseGameLayer::updateInternalCamOffsetX @ 0x4879ae\n// > GJBaseGameLayer::updateInternalCamOffsetY @ 0x4879fc\n// > GJBaseGameLayer::updateStaticCameraPos @ 0x487b64\n// > GJBaseGameLayer::updateStaticCameraPos @ 0x487b8c\n// > GJBaseGameLayer::animateInDualGroundNew @ 0x487d5a\n// > GJBaseGameLayer::updateZoom @ 0x487f24\n// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488450\n// > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488494\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::tweenValue(GJGameState *a1, float a2, float a3, int a4, float a5, int a6, float a7, int a8, int a9)\n{\n  std::unordered_map<int, GJValueTween> *p_m_tweenActions; // r6\n  float *v13; // r0\n  float *v14; // r4\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 v15; // r7\n  _DWORD **v16; // r0\n\n  p_m_tweenActions = &a1->m_tweenActions;\n  GJGameState::stopTweenAction(a1, a4);\n  v13 = (float *)operator new(0x30u);\n  v13[3] = a3;\n  v13[2] = a2;\n  v14 = v13;\n  v13[5] = 0.0;\n  v13[6] = 0.0;\n  v13[4] = a5;\n  *((_DWORD *)v13 + 7) = a6;\n  *((_BYTE *)v13 + 36) = 0;\n  v13[8] = a7;\n  *((_BYTE *)v13 + 37) = 0;\n  *((_DWORD *)v13 + 10) = a8;\n  *((_DWORD *)v13 + 11) = a9;\n  *v13 = 0.0;\n  *((_DWORD *)v13 + 1) = a4;\n  v15 = a4 % a1->m_tweenActions._M_h._M_bucket_count;\n  v16 = sub_46C570(p_m_tweenActions, v15, (_DWORD *)v13 + 1);\n  if ( v16 && *v16 )\n    operator delete(v14);\n  else\n    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_insert_unique_node(\n      (int)p_m_tweenActions,\n      v15,\n      a4,\n      v14);\n}", "assembly": "; \n; GJGameState::tweenValue from 0x485be8 to 0x485c90 (168 bytes)\n; \n; 18 xrefs:\n; > GJBaseGameLayer::animateOutGroundNew @ 0x485ce2\n; > GJBaseGameLayer::cameraMoveX @ 0x485d1c\n; > GJBaseGameLayer::cameraMoveY @ 0x485d6e\n; > GJBaseGameLayer::animatePortalY @ 0x485de4\n; > GJBaseGameLayer::toggleFlipped @ 0x485f04\n; > GJBaseGameLayer::updateScreenRotation @ 0x485fa8\n; > GJBaseGameLayer::updateCameraOffsetX @ 0x485ffa\n; > GJBaseGameLayer::updateCameraOffsetY @ 0x486048\n; > GJBaseGameLayer::updateMGOffsetY @ 0x48609a\n; > GJBaseGameLayer::updateCamera @ 0x4871c0\n; > GJBaseGameLayer::updateInternalCamOffsetX @ 0x4879ae\n; > GJBaseGameLayer::updateInternalCamOffsetY @ 0x4879fc\n; > GJBaseGameLayer::updateStaticCameraPos @ 0x487b64\n; > GJBaseGameLayer::updateStaticCameraPos @ 0x487b8c\n; > GJBaseGameLayer::animateInDualGroundNew @ 0x487d5a\n; > GJBaseGameLayer::updateZoom @ 0x487f24\n; > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488450\n; > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488494\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.W          {R4-R11,LR}                                            ; +0x0, 0x485be8\nMOV             R11, R1                                                ; +0x4, 0x485bec\nVPUSH           {D8}                                                   ; +0x6, 0x485bee\nMOV             R1, R3; int                                            ; +0xa, 0x485bf2\nMOV             R7, R0                                                 ; +0xc, 0x485bf4\nMOV             R5, R3                                                 ; +0xe, 0x485bf6\nADD.W           R6, R7, #0x230                                         ; +0x10, 0x485bf8\nSUB             SP, SP, #0xC                                           ; +0x14, 0x485bfc\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x16, 0x485bfe\nVLDR            S17, [SP,#0xC+arg_0]                                   ; +0x18, 0x485c00\nLDR.W           R10, [SP,#0xC+arg_4]                                   ; +0x1c, 0x485c04\nLDR.W           R9, [SP,#0xC+arg_C]                                    ; +0x20, 0x485c08\nVLDR            S16, [SP,#0xC+arg_8]                                   ; +0x24, 0x485c0c\nLDR.W           R8, [SP,#0xC+arg_10]                                   ; +0x28, 0x485c10\nBL              _ZN11GJGameState15stopTweenActionEi; GJGameState::stopTweenAction(int) ; +0x2c, 0x485c14\nMOVS            R0, #0x30 ; '0'; unsigned int                          ; +0x30, 0x485c18\nBL              _Znwj; operator new(uint)                              ; +0x32, 0x485c1a\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x36, 0x485c1e\nMOVS            R3, #0                                                 ; +0x38, 0x485c20\nSTR             R2, [R0,#0xC]                                          ; +0x3a, 0x485c22\nMOVS            R2, #0                                                 ; +0x3c, 0x485c24\nSTR.W           R11, [R0,#8]                                           ; +0x3e, 0x485c26\nMOV             R4, R0                                                 ; +0x42, 0x485c2a\nSTR             R2, [R0,#0x14]                                         ; +0x44, 0x485c2c\nSTR             R2, [R0,#0x18]                                         ; +0x46, 0x485c2e\nVSTR            S17, [R0,#0x10]                                        ; +0x48, 0x485c30\nSTR.W           R10, [R0,#0x1C]                                        ; +0x4c, 0x485c34\nSTRB.W          R3, [R0,#0x24]                                         ; +0x50, 0x485c38\nVSTR            S16, [R0,#0x20]                                        ; +0x54, 0x485c3c\nSTRB.W          R3, [R0,#0x25]                                         ; +0x58, 0x485c40\nSTR.W           R9, [R0,#0x28]                                         ; +0x5c, 0x485c44\nSTR.W           R8, [R0,#0x2C]                                         ; +0x60, 0x485c48\nSTM.W           R0, {R3,R5}                                            ; +0x64, 0x485c4c\nMOV             R0, R5                                                 ; +0x68, 0x485c50\nLDR.W           R1, [R7,#0x234]                                        ; +0x6a, 0x485c52\nBLX             __aeabi_uidivmod                                       ; +0x6e, 0x485c56\nMOV             R0, R6                                                 ; +0x72, 0x485c5a\nADDS            R2, R4, #4                                             ; +0x74, 0x485c5c\nMOV             R7, R1                                                 ; +0x76, 0x485c5e\nBL              sub_46C570                                             ; +0x78, 0x485c60\nCBZ             R0, loc_485C7A                                         ; +0x7c, 0x485c64\nLDR             R3, [R0]                                               ; +0x7e, 0x485c66\nCBZ             R3, loc_485C7A                                         ; +0x80, 0x485c68\nMOV             R0, R4; p                                              ; +0x82, 0x485c6a\nADD             SP, SP, #0xC                                           ; +0x84, 0x485c6c\nVPOP            {D8}                                                   ; +0x86, 0x485c6e\nPOP.W           {R4-R11,LR}                                            ; +0x8a, 0x485c72\nB.W             _ZdlPv; operator delete(void *)                        ; +0x8e, 0x485c76\nMOV             R0, R6                                                 ; +0x92, 0x485c7a\nMOV             R1, R7                                                 ; +0x94, 0x485c7c\nMOV             R2, R5                                                 ; +0x96, 0x485c7e\nMOV             R3, R4                                                 ; +0x98, 0x485c80\nBL              _ZNSt10_HashtableIiSt4pairIKi12GJValueTweenESaIS3_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS5_18_Mod_range_hashingENS5_20_Default_ranged_hashENS5_20_Prime_rehash_policyENS5_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNS5_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_insert_unique_node(uint,uint,std::__detail::_Hash_node<std::pair<int const,GJValueTween>,false> *) ; +0x9a, 0x485c82\nADD             SP, SP, #0xC                                           ; +0x9e, 0x485c86\nVPOP            {D8}                                                   ; +0xa0, 0x485c88\nPOP.W           {R4-R11,PC}                                            ; +0xa4, 0x485c8c", "xrefs": ["GJBaseGameLayer::animateOutGroundNew @ 0x485ce2", "GJBaseGameLayer::cameraMoveX @ 0x485d1c", "GJBaseGameLayer::cameraMoveY @ 0x485d6e", "GJBaseGameLayer::animatePortalY @ 0x485de4", "GJBaseGameLayer::toggleFlipped @ 0x485f04", "GJBaseGameLayer::updateScreenRotation @ 0x485fa8", "GJBaseGameLayer::updateCameraOffsetX @ 0x485ffa", "GJBaseGameLayer::updateCameraOffsetY @ 0x486048", "GJBaseGameLayer::updateMGOffsetY @ 0x48609a", "GJBaseGameLayer::updateCamera @ 0x4871c0", "GJBaseGameLayer::updateInternalCamOffsetX @ 0x4879ae", "GJBaseGameLayer::updateInternalCamOffsetY @ 0x4879fc", "GJBaseGameLayer::updateStaticCameraPos @ 0x487b64", "GJBaseGameLayer::updateStaticCameraPos @ 0x487b8c", "GJBaseGameLayer::animateInDualGroundNew @ 0x487d5a", "GJBaseGameLayer::updateZoom @ 0x487f24", "GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488450", "GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x488494"], "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"}