// // GJGameState::tweenValue from 0x9e3324 to 0x9e3634 (784 bytes) // // 20 xrefs: // > GJBaseGameLayer::animateOutGroundNew @ 0x9e3684 // > GJBaseGameLayer::updateScreenRotation @ 0x9e3720 // > GJBaseGameLayer::updateCameraOffsetX @ 0x9e37e4 // > GJBaseGameLayer::updateCameraOffsetY @ 0x9e385c // > GJBaseGameLayer::updateMGOffsetY @ 0x9e38d8 // > GJBaseGameLayer::updateCamera @ 0x9e449c // > GJBaseGameLayer::updateCamera @ 0x9e48c4 // > GJBaseGameLayer::cameraMoveX @ 0x9e5fb8 // > GJBaseGameLayer::cameraMoveY @ 0x9e6018 // > GJBaseGameLayer::updateInternalCamOffsetX @ 0x9e60c4 // > GJBaseGameLayer::updateInternalCamOffsetY @ 0x9e6134 // > GJBaseGameLayer::animatePortalY @ 0x9e619c // > GJBaseGameLayer::updateStaticCameraPos @ 0x9e63b0 // > GJBaseGameLayer::updateStaticCameraPos @ 0x9e63dc // > GJBaseGameLayer::animateInDualGroundNew @ 0x9e6518 // > GJBaseGameLayer::updateZoom @ 0x9e6e78 // > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x9e7d04 // > GJBaseGameLayer::updateStaticCameraPosToGroup @ 0x9e7df8 // > GJBaseGameLayer::toggleFlipped @ 0x9e7f40 // > @ 0x64708 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:58:57 +0000 // __int64 __fastcall GJGameState::tweenValue( GJGameState *this, float a2, float a3, int a4, float a5, int a6, float a7, int a8, int a9) { __int64 v9; // x26 unsigned __int64 v15; // x21 unsigned __int64 v19; // x19 __int64 result; // x0 unsigned __int64 v21; // x1 unsigned __int64 v22; // x1 __int64 v23; // x0 __int64 v24; // x25 float v25; // s2 float v26; // s0 _BOOL8 v27; // x1 __int64 v28; // x22 unsigned __int64 prime; // x22 unsigned __int64 v30; // x0 unsigned __int64 v31; // x26 unsigned __int64 v32; // x0 unsigned __int64 v33; // x1 __int64 *v34; // x0 unsigned __int64 v35; // x1 unsigned __int64 v36; // x0 v15 = a4; GJGameState::stopTweenAction(this, a4); v19 = *((_QWORD *)this + 75); if ( v19 ) { v9 = (v19 - 1) & v15; if ( ((v19 - 1) & v19) != 0 ) v9 = v15 % v19; result = *(_QWORD *)(*((_QWORD *)this + 74) + 8 * v9); if ( result ) { while ( 1 ) { result = *(_QWORD *)result; if ( !result ) break; v21 = *(_QWORD *)(result + 8); v22 = ((v19 - 1) & v19) != 0 ? v21 % v19 : (v19 - 1) & v21; if ( v9 != v22 ) break; if ( *(_DWORD *)(result + 16) == (_DWORD)v15 ) return result; } } } v23 = operator new(0x40u); *(_DWORD *)(v23 + 16) = v15; *(_DWORD *)(v23 + 40) = a6; *(_BYTE *)(v23 + 48) = 0; v24 = v23; *(_BYTE *)(v23 + 49) = 0; *(_DWORD *)(v23 + 52) = a8; *(_DWORD *)(v23 + 56) = a9; *(_QWORD *)(v23 + 8) = v15; *(_QWORD *)v23 = 0; *(float *)(v23 + 20) = a2; *(float *)(v23 + 24) = a3; *(float *)(v23 + 28) = a5; *(_DWORD *)(v23 + 32) = 0; *(_DWORD *)(v23 + 36) = 0; *(float *)(v23 + 44) = a7; v25 = *((float *)this + 156); v26 = (float)(unsigned __int64)(*((_QWORD *)this + 77) + 1LL); if ( v26 > (float)((float)v19 * v25) ) { v27 = 1; v28 = 2 * v19; if ( v19 > 2 ) v27 = ((v19 - 1) & v19) != 0; LABEL_12: prime = v27 + v28; v30 = vcvtps_u32_f32(v26 / v25); if ( v30 >= prime ) prime = v30; if ( prime == 1 ) { prime = 2; } else if ( ((prime - 1) & prime) != 0 ) { prime = std::__next_prime(prime); } v19 = *((_QWORD *)this + 75); if ( prime > v19 ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__rehash( (__int64)this + 592, prime); v19 = *((_QWORD *)this + 75); } else { if ( prime >= v19 ) goto LABEL_26; if ( v19 <= 2 || (v31 = v19 - 1, ((v19 - 1) & v19) != 0) ) { v32 = std::__next_prime(vcvtps_u32_f32((float)*((unsigned __int64 *)this + 77) / *((float *)this + 156))); if ( v32 < prime ) v33 = prime; else v33 = v32; if ( v33 >= v19 ) { v19 = *((_QWORD *)this + 75); goto LABEL_26; } } else { v33 = 1LL << (64 - (unsigned __int8)__clz( vcvtps_u32_f32((float)*((unsigned __int64 *)this + 77) / *((float *)this + 156)) - 1)); if ( v33 < prime ) v33 = prime; if ( v33 >= v19 ) { LABEL_27: v9 = v31 & v15; goto LABEL_28; } } std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__rehash( (__int64)this + 592, v33); v19 = *((_QWORD *)this + 75); } LABEL_26: v31 = v19 - 1; if ( ((v19 - 1) & v19) != 0 ) { v9 = v15 % v19; v34 = *(__int64 **)(*((_QWORD *)this + 74) + 8 * (v15 % v19)); if ( v34 ) goto LABEL_29; LABEL_37: *(_QWORD *)v24 = *((_QWORD *)this + 76); *((_QWORD *)this + 76) = v24; *(_QWORD *)(*((_QWORD *)this + 74) + 8 * v9) = (char *)this + 608; if ( *(_QWORD *)v24 ) { v35 = *(_QWORD *)(*(_QWORD *)v24 + 8LL); if ( ((v19 - 1) & v19) != 0 ) v36 = v35 % v19; else v36 = (v19 - 1) & v35; *(_QWORD *)(*((_QWORD *)this + 74) + 8 * v36) = v24; } goto LABEL_30; } goto LABEL_27; } if ( !v19 ) { v27 = 1; v28 = 0; goto LABEL_12; } LABEL_28: v34 = *(__int64 **)(*((_QWORD *)this + 74) + 8 * v9); if ( !v34 ) goto LABEL_37; LABEL_29: *(_QWORD *)v24 = *v34; *v34 = v24; LABEL_30: result = *((_QWORD *)this + 77) + 1LL; *((_QWORD *)this + 77) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source