// // GJBaseGameLayer::animateInDualGroundNew from 0x9e640c to 0x9e6608 (508 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateDualGround @ 0x9e66c8 // > @ 0xb3008 // // 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:59:00 +0000 // __int64 __fastcall GJBaseGameLayer::animateInDualGroundNew( GJBaseGameLayer *this, GameObject *a2, float a3, unsigned __int8 a4, float a5) { int v5; // w21 float v8; // s0 float v9; // s10 float v10; // s8 float v11; // s1 int v12; // w0 cocos2d::CCDirector *v13; // x0 float v14; // s11 float v15; // s0 bool v16; // cc cocos2d::CCDirector *v17; // x0 __int64 v19; // [xsp+60h] [xbp+60h] BYREF v5 = a4; GJBaseGameLayer::getTargetFlyCameraY(this, a2); v9 = v8; v10 = a3 * 0.5; v11 = v8 - (float)(a3 * 0.5); if ( !*((_BYTE *)this + 786) ) v11 = floorf(v11 / 30.0) * 30.0; if ( v11 <= 90.0 ) v11 = 90.0; v12 = *((unsigned __int8 *)this + 1010); *((float *)this + 194) = v11 + v10; if ( !v12 ) { v13 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 784); if ( *((_BYTE *)this + 784) ) { if ( !v5 ) goto LABEL_8; } else if ( !v5 ) { v14 = 0.5; LABEL_9: v15 = *((float *)this + 253); v16 = v15 <= 0.0; if ( v15 >= 0.0 ) goto LABEL_10; goto LABEL_21; } LABEL_18: v14 = 0.0; GJGameState::stopTweenAction((GJBaseGameLayer *)((char *)this + 424), 25); *((float *)this + 253) = 1.0; goto LABEL_13; } if ( v5 ) goto LABEL_18; v13 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 784); if ( !*((_BYTE *)this + 784) ) { v15 = *((float *)this + 253); v14 = 0.4; v16 = v15 <= 0.0; if ( v15 >= 0.0 ) { LABEL_10: if ( !v16 ) { v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v19, v17); v15 = (float)((float)((float)(1.0 - (float)(*((float *)this + 187) * 0.5)) + (float)(*((float *)&v19 + 1) * 0.5)) * *((float *)this + 253)) / (float)((float)(1.0 - v10) + (float)(*((float *)&v19 + 1) * 0.5)); *((float *)this + 253) = v15; } goto LABEL_12; } LABEL_21: *((_DWORD *)this + 253) = 0; v15 = 0.0; LABEL_12: GJGameState::tweenValue((GJBaseGameLayer *)((char *)this + 424), v15, 1.0, 25, v14, 1, 2.0, -1, -1); goto LABEL_13; } LABEL_8: v14 = 0.4; if ( *((float *)this + 187) != a3 ) goto LABEL_9; LABEL_13: if ( *((float *)this + 143) == 0.0 || *((_BYTE *)this + 672) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, *((float *)this + 194)); GJBaseGameLayer::updateStaticCameraPos((__int64)this, &v19, 0, 1u, 0, 1, v14, 2.0); *((_BYTE *)this + 672) = 1; } *((_BYTE *)this + 784) = 1; *((float *)this + 187) = a3; *((float *)this + 186) = v9; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source