// // SetupPortalPopup::determineStartValues from 0x633e2c to 0x633f4a (286 bytes) // // 1 xrefs: // > SetupPortalPopup::init @ 0x634442 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:19 +0000 // unsigned int __fastcall SetupPortalPopup::determineStartValues(unsigned int this) { unsigned int v1; // r4 unsigned int v2; // r5 float v3; // s16 int v4; // r7 int v5; // r6 float v6; // s17 int v7; // r0 float *v8; // r3 float *v9; // r0 v1 = this; *(_DWORD *)(this + 544) = 0; *(_DWORD *)(this + 556) = 0; v2 = *(_DWORD *)(this + 524); if ( v2 ) { *(_BYTE *)(this + 560) = *(_BYTE *)(v2 + 1564); *(_BYTE *)(this + 561) = *(_BYTE *)(v2 + 1565); *(_DWORD *)(this + 544) = (int)*(float *)(v2 + 1568); *(_DWORD *)(this + 556) = *(_DWORD *)(v2 + 1572); } else { v3 = -99999.0; v4 = 0; v5 = 0; *(_BYTE *)(this + 560) = 1; *(_BYTE *)(this + 561) = 1; v6 = -99999.0; while ( 1 ) { this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 520)); if ( v2 >= this ) break; v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 520), v2); if ( !*(_BYTE *)(v7 + 1564) ) *(_BYTE *)(v1 + 560) = 0; if ( !*(_BYTE *)(v7 + 1565) ) *(_BYTE *)(v1 + 561) = 0; if ( !v5 ) { v8 = (float *)(v7 + 1568); if ( v6 == -99999.0 ) { v6 = *v8; } else if ( v6 != *v8 ) { v6 = -99999.0; v5 = 1; } } if ( !v4 ) { v9 = (float *)(v7 + 1572); if ( v3 == -99999.0 ) { v3 = *v9; } else if ( v3 != *v9 ) { v3 = -99999.0; v4 = 1; } } ++v2; } if ( v6 != -99999.0 ) *(_DWORD *)(v1 + 544) = (int)v6; if ( v3 != -99999.0 ) *(float *)(v1 + 556) = v3; } if ( !*(_BYTE *)(v1 + 561) ) { *(_DWORD *)(v1 + 544) = 10; *(_DWORD *)(v1 + 556) = 1056964608; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source