// // SetupCameraOffsetTrigger::determineStartValues from 0x1405adb30 to 0x1405ade6f (831 bytes) // // 4 xrefs: // > @ 0x1407ee958 // > @ 0x1408df250 // > @ 0x1408df284 // > @ 0x14092d878 // // This function is hookable on this platform (idp: pc, 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 11:34:41 +0000 // void __fastcall SetupCameraOffsetTrigger::determineStartValues(__int64 a1) { __int64 v2; // rcx cocos2d::CCArray *v3; // r14 int v4; // ebp int v5; // r12d int v6; // esi int v7; // r15d unsigned int v8; // r13d float v9; // xmm7_4 float v10; // xmm8_4 char v11; // bl struct cocos2d::CCObject *v12; // rax struct cocos2d::CCObject *v13; // rdi int v14; // eax const struct cocos2d::CCPoint *v15; // rdx const struct cocos2d::CCPoint *v16; // rdx char v17; // [rsp+20h] [rbp-A8h] char v18; // [rsp+21h] [rbp-A7h] float v19[2]; // [rsp+24h] [rbp-A4h] BYREF float v20[2]; // [rsp+2Ch] [rbp-9Ch] BYREF _BYTE v21[4]; // [rsp+34h] [rbp-94h] BYREF float v22; // [rsp+38h] [rbp-90h] _BYTE v23[4]; // [rsp+3Ch] [rbp-8Ch] BYREF float v24; // [rsp+40h] [rbp-88h] char v26; // [rsp+D8h] [rbp+10h] char v27; // [rsp+E0h] [rbp+18h] char v28; // [rsp+E8h] [rbp+20h] SetupTriggerPopup::determineStartValues(); if ( *(_QWORD *)(a1 + 680) ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(v3, *(struct cocos2d::CCObject **)(a1 + 680)); } else { v3 = *(cocos2d::CCArray **)(a1 + 688); } *(_DWORD *)(a1 + 1016) = -943501440; *(_DWORD *)(a1 + 1032) = -99999; *(_DWORD *)(a1 + 1088) = -99999; *(_DWORD *)(a1 + 1092) = -99999; *(_DWORD *)(a1 + 1036) = -943501440; if ( v3 ) { if ( cocos2d::CCArray::count(v3) ) { v4 = -99999; v5 = -99999; v6 = -99999; v7 = -99999; v8 = 0; v9 = -99999.0; v28 = 0; v18 = 0; v10 = -99999.0; v26 = 0; v27 = 0; v17 = 0; if ( cocos2d::CCArray::count(v3) ) { v11 = 0; do { v12 = cocos2d::CCArray::objectAtIndex(v3, v8); v13 = v12; if ( !v26 ) { if ( v10 == -99999.0 ) { v10 = *((float *)v12 + 367); } else if ( v10 != *((float *)v12 + 367) ) { v10 = -99999.0; v26 = 1; } } if ( !v27 ) { v14 = *((_DWORD *)v12 + 378); if ( v4 == -99999 ) { v4 = v14; } else if ( v4 != v14 ) { v4 = -99999; v27 = 1; } } if ( !v28 ) { if ( v9 == -99999.0 ) { v9 = *((float *)v13 + 379); } else if ( v9 != *((float *)v13 + 379) ) { v9 = -99999.0; v28 = 1; } } if ( !v17 ) { v15 = (struct cocos2d::CCObject *)((char *)v13 + 1504); if ( v5 == -99999 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v15); v5 = (int)v19[0]; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v15); if ( v5 != (int)v20[0] ) { v5 = -99999; v17 = 1; } } } if ( !v18 ) { v16 = (struct cocos2d::CCObject *)((char *)v13 + 1504); if ( v7 == -99999 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v16); v7 = (int)v22; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v16); if ( v7 != (int)v24 ) { v7 = -99999; v18 = 1; } } } if ( !v11 ) { if ( v6 == -99999 ) { v6 = *((_DWORD *)v13 + 382); } else if ( v6 != *((_DWORD *)v13 + 382) ) { v6 = -99999; v11 = 1; } } ++v8; } while ( v8 < cocos2d::CCArray::count(v3) ); if ( v10 != -99999.0 ) *(float *)(a1 + 1016) = v10; if ( v4 != -99999 ) *(_DWORD *)(a1 + 1032) = v4; if ( v9 != -99999.0 ) *(float *)(a1 + 1036) = v9; if ( v5 != -99999 ) *(_DWORD *)(a1 + 1088) = v5; if ( v7 != -99999 ) *(_DWORD *)(a1 + 1092) = v7; if ( v6 != -99999 ) *(_DWORD *)(a1 + 1096) = v6; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source