// // SetupPulsePopup::determineStartValues from 0xa44484 to 0xa44878 (1012 bytes) // // 2 xrefs: // > @ 0x80860 // > @ 0x148a7a0 // // 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:58 +0000 // __int64 __fastcall SetupPulsePopup::determineStartValues(cocos2d::CCObject **this) { __int64 result; // x0 cocos2d::CCArray *v3; // x21 float v4; // s9 unsigned int v5; // w26 __int64 v6; // x6 __int64 v7; // x7 int v8; // w20 int v9; // w25 int v10; // w19 int v11; // w24 float v12; // s11 float v13; // s10 int v14; // w23 __int64 v15; // x0 char v16; // w4 char v17; // w1 int v18; // w6 int v19; // w4 char v20; // w5 int v21; // w1 int v22; // w1 int v23; // w1 int v24; // w0 unsigned __int64 v25; // [xsp+90h] [xbp+90h] int v26; // [xsp+9Ch] [xbp+9Ch] SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this); result = (__int64)*(this + 85); if ( result ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)result); result = cocos2d::CCArray::addObject(v3, *(this + 85)); } else { v3 = *(this + 86); } if ( v3 ) { result = cocos2d::CCArray::count(v3); if ( (_DWORD)result ) { v4 = -1.0; *((_BYTE *)this + 1264) = 1; v5 = 0; v6 = qword_155D528; v7 = qword_155D530; *((_BYTE *)this + 1265) = 1; *((_BYTE *)this + 1301) = 1; v8 = -1; *((_BYTE *)this + 1266) = 1; *((_BYTE *)this + 1136) = -1; v9 = 1; *((_BYTE *)this + 1137) = -1; v10 = -1; *((_BYTE *)this + 1138) = -1; v11 = 0; v12 = -1.0; v26 = 1; v13 = -1.0; v14 = 0; *(this + 163) = (cocos2d::CCObject *)v6; *(this + 164) = (cocos2d::CCObject *)v7; *((_DWORD *)this + 317) = -1; *((_DWORD *)this + 318) = -1; result = cocos2d::CCArray::count(v3); if ( (_DWORD)result ) { while ( 1 ) { v15 = cocos2d::CCArray::objectAtIndex(v3, v5); if ( !*(_BYTE *)(v15 + 1633) ) *((_BYTE *)this + 1264) = 0; if ( !*(_BYTE *)(v15 + 1634) ) *((_BYTE *)this + 1265) = 0; if ( !*(_BYTE *)(v15 + 1635) ) *((_BYTE *)this + 1301) = 0; if ( !*(_BYTE *)(v15 + 1636) ) *((_BYTE *)this + 1266) = 0; if ( v13 == -1.0 ) { v13 = *(float *)(v15 + 1592); } else if ( v13 != *(float *)(v15 + 1592) ) { v13 = -2.0; } if ( v12 == -1.0 ) { v12 = *(float *)(v15 + 1596); } else if ( v12 != *(float *)(v15 + 1596) ) { v12 = -2.0; } if ( v4 == -1.0 ) break; if ( v4 == *(float *)(v15 + 1600) ) goto LABEL_20; v4 = -2.0; if ( v10 == -1 ) { LABEL_50: v10 = *(_DWORD *)(v15 + 1604); if ( v8 != -1 ) goto LABEL_24; goto LABEL_51; } LABEL_21: if ( v10 != *(_DWORD *)(v15 + 1604) ) v10 = -2; if ( v8 != -1 ) { LABEL_24: if ( v8 != *(_DWORD *)(v15 + 1608) ) v8 = -2; goto LABEL_26; } LABEL_51: v8 = *(_DWORD *)(v15 + 1608); LABEL_26: if ( !v14 ) { if ( v26 ) { v16 = *(_BYTE *)(v15 + 1448); v17 = *(_BYTE *)(v15 + 1449); v26 = 0; *((_BYTE *)this + 1138) = *(_BYTE *)(v15 + 1450); *((_BYTE *)this + 1136) = v16; *((_BYTE *)this + 1137) = v17; } else if ( *((unsigned __int8 *)this + 1136) != *(unsigned __int8 *)(v15 + 1448) || *((unsigned __int8 *)this + 1137) != *(unsigned __int8 *)(v15 + 1449) || *((unsigned __int8 *)this + 1138) != *(unsigned __int8 *)(v15 + 1450) ) { v14 = 1; *((_BYTE *)this + 1136) = -1; *((_BYTE *)this + 1137) = -1; *((_BYTE *)this + 1138) = -1; } } if ( !v11 ) { if ( v9 ) { v18 = *(_DWORD *)(v15 + 1612); v19 = *(_DWORD *)(v15 + 1616); v20 = *(_BYTE *)(v15 + 1625); v21 = *(_DWORD *)(v15 + 1620); v9 = 0; *((_BYTE *)this + 1316) = *(_BYTE *)(v15 + 1624); *((_BYTE *)this + 1317) = v20; *((_DWORD *)this + 326) = v18; *((_DWORD *)this + 327) = v19; *((_DWORD *)this + 328) = v21; } else if ( *((float *)this + 326) != *(float *)(v15 + 1612) || *((float *)this + 327) != *(float *)(v15 + 1616) || *((float *)this + 328) != *(float *)(v15 + 1620) || (v25 = v25 & 0xFFFF0000FFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v15 + 1624) << 32) & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v15 + 1625) << 40), WORD2(v25) != *((unsigned __int16 *)this + 658)) ) { *((_BYTE *)this + 1316) = 0; *((_DWORD *)this + 326) = -1165815185; *((_BYTE *)this + 1317) = 0; v11 = 1; *((_DWORD *)this + 327) = 0; *((_DWORD *)this + 328) = 0; } } v22 = *((_DWORD *)this + 317); if ( v22 == -1 ) { *((_DWORD *)this + 317) = *(_DWORD *)(v15 + 1464); } else if ( v22 != *(_DWORD *)(v15 + 1464) ) { *((_DWORD *)this + 317) = 0; } v23 = *((_DWORD *)this + 318); v24 = *(_DWORD *)(v15 + 1628); if ( v23 == -1 ) { *((_DWORD *)this + 318) = v24; ++v5; } else { if ( v23 != v24 ) *((_DWORD *)this + 318) = 0; ++v5; } result = cocos2d::CCArray::count(v3); if ( v5 >= (unsigned int)result ) goto LABEL_40; } v4 = *(float *)(v15 + 1600); LABEL_20: if ( v10 == -1 ) goto LABEL_50; goto LABEL_21; } LABEL_40: if ( v13 < 0.0 ) { *((_DWORD *)this + 320) = -1110651699; if ( v12 >= 0.0 ) { LABEL_42: *((float *)this + 321) = v12; if ( v4 >= 0.0 ) goto LABEL_43; goto LABEL_70; } } else { *((float *)this + 320) = v13; if ( v12 >= 0.0 ) goto LABEL_42; } *((_DWORD *)this + 321) = -1110651699; if ( v4 >= 0.0 ) { LABEL_43: if ( v10 < 0 ) v10 = -1; *((_DWORD *)this + 323) = v10; *((float *)this + 322) = v4; if ( (v8 & 0x80000000) == 0 ) { LABEL_46: *((_DWORD *)this + 324) = v8; return result; } LABEL_65: *((_DWORD *)this + 324) = -1; return 0xFFFFFFFFLL; } LABEL_70: if ( v10 < 0 ) v10 = -1; *((_DWORD *)this + 323) = v10; *((_DWORD *)this + 322) = -1110651699; if ( (v8 & 0x80000000) == 0 ) goto LABEL_46; goto LABEL_65; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source