// // SetupCameraOffsetTrigger::determineStartValues from 0xaadb48 to 0xaade88 (832 bytes) // // 2 xrefs: // > @ 0x69d90 // > @ 0x14a5440 // // 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 13:00:55 +0000 // __int64 __fastcall SetupCameraOffsetTrigger::determineStartValues(cocos2d::CCObject **this) { cocos2d::CCArray *v2; // x0 cocos2d::CCArray *v3; // x20 float v4; // s9 float v5; // s10 unsigned int v6; // w19 int v7; // w28 int v8; // w24 int v9; // w21 int v10; // w22 int v11; // w25 __int64 v12; // x27 const cocos2d::CCPoint *v13; // x1 const cocos2d::CCPoint *v14; // x1 int v16; // [xsp+8Ch] [xbp+8Ch] int v17; // [xsp+90h] [xbp+90h] int v18; // [xsp+94h] [xbp+94h] int v19; // [xsp+98h] [xbp+98h] int v20; // [xsp+9Ch] [xbp+9Ch] float v21; // [xsp+A0h] [xbp+A0h] BYREF float v22; // [xsp+A4h] [xbp+A4h] SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this); v2 = *(this + 85); if ( v2 ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(v3, *(this + 85)); } else { v3 = *(this + 86); } *((_DWORD *)this + 262) = -99999; *((_DWORD *)this + 276) = -99999; *((_DWORD *)this + 277) = -99999; *((_DWORD *)this + 258) = -943501440; *((_DWORD *)this + 263) = -943501440; if ( v3 && (unsigned int)cocos2d::CCArray::count(v3) ) { v4 = -99999.0; v5 = -99999.0; v6 = 0; v18 = 0; v19 = 0; v16 = 0; v20 = 0; v7 = 0; v17 = 0; v8 = -99999; v9 = -99999; v10 = -99999; v11 = -99999; while ( v6 < (unsigned int)cocos2d::CCArray::count(v3) ) { v12 = cocos2d::CCArray::objectAtIndex(v3, v6); if ( !v17 ) { if ( v5 == -99999.0 ) { v5 = *(float *)(v12 + 1452); } else if ( v5 != *(float *)(v12 + 1452) ) { v17 = 1; v5 = -99999.0; } } if ( !v20 ) { if ( v11 == -99999 ) { v11 = *(_DWORD *)(v12 + 1496); } else if ( v11 != *(_DWORD *)(v12 + 1496) ) { v11 = -99999; v20 = 1; } } if ( !v16 ) { if ( v4 == -99999.0 ) { v4 = *(float *)(v12 + 1500); } else if ( v4 != *(float *)(v12 + 1500) ) { v16 = 1; v4 = -99999.0; } } if ( !v19 ) { v13 = (const cocos2d::CCPoint *)(v12 + 1488); if ( v10 == -99999 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v13); v10 = (int)v21; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v13); if ( v10 != (int)v21 ) { v10 = -99999; v19 = 1; } } } if ( !v18 ) { v14 = (const cocos2d::CCPoint *)(v12 + 1488); if ( v9 == -99999 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v14); v9 = (int)v22; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, v14); if ( v9 != (int)v22 ) { v9 = -99999; v18 = 1; } } } if ( !v7 ) { if ( v8 == -99999 ) { v8 = *(_DWORD *)(v12 + 1512); ++v6; continue; } if ( v8 != *(_DWORD *)(v12 + 1512) ) { v7 = 1; v8 = -99999; } } ++v6; } if ( v5 != -99999.0 ) *((float *)this + 258) = v5; if ( v11 != -99999 ) *((_DWORD *)this + 262) = v11; if ( v4 != -99999.0 ) *((float *)this + 263) = v4; if ( v10 != -99999 ) *((_DWORD *)this + 276) = v10; if ( v9 != -99999 ) *((_DWORD *)this + 277) = v9; if ( v8 != -99999 ) *((_DWORD *)this + 278) = v8; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source