// // GJGameLevel::handleStatsConflict from 0x1000b20ec to 0x1000b26ec (1536 bytes) // // 5 xrefs: // > GameLevelManager::dataLoaded @ 0x1000b1588 // > GameLevelManager::dataLoaded @ 0x1000b16a4 // > GameLevelManager::dataLoaded @ 0x1000b17e4 // > GameLevelManager::dataLoaded @ 0x1000b191c // > LocalLevelManager::dataLoaded @ 0x10025f564 // // 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 10:58:39 +0000 // void __fastcall GJGameLevel::handleStatsConflict(__int64 a1, __int64 a2) { int v4; // w21 float v5; // s0 int v6; // w21 float v7; // s0 int v8; // w21 float v9; // s0 int v10; // w21 float v11; // s0 int v12; // w21 float v13; // s0 int v14; // w25 int v15; // w26 int v16; // w27 int v17; // w28 __int64 v18; // x21 __int64 v19; // x22 __int64 v20; // x23 __int64 v21; // x24 int v22; // w0 int v23; // w21 __int64 v24; // x21 __int64 v25; // x22 __int64 v26; // x23 __int64 v27; // x24 int v28; // w21 int v29; // w22 float v30; // s0 int v31; // w21 float v32; // s0 int v33; // w21 float v34; // s0 int v35; // w8 int v36; // w8 int v37; // w8 int v38; // w8 __int64 v39; // x8 __int64 v40; // x8 __int64 v41; // x8 __int64 v42; // x8 std::string v43; // [xsp+0h] [xbp-C0h] BYREF void *__dst[2]; // [xsp+20h] [xbp-A0h] BYREF __int64 v45; // [xsp+30h] [xbp-90h] void *__p[2]; // [xsp+40h] [xbp-80h] BYREF __int64 v47; // [xsp+50h] [xbp-70h] if ( *(_DWORD *)(a1 + 796) - *(_DWORD *)(a1 + 800) <= *(_DWORD *)(a2 + 796) - *(_DWORD *)(a2 + 800) ) v4 = *(_DWORD *)(a2 + 796) - *(_DWORD *)(a2 + 800); else v4 = *(_DWORD *)(a1 + 796) - *(_DWORD *)(a1 + 800); *(_DWORD *)(a1 + 804) = v4; v5 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 800) = (int)v5; *(_DWORD *)(a1 + 796) = v4 + (int)v5; if ( *(_DWORD *)(a1 + 808) - *(_DWORD *)(a1 + 812) <= *(_DWORD *)(a2 + 808) - *(_DWORD *)(a2 + 812) ) v6 = *(_DWORD *)(a2 + 808) - *(_DWORD *)(a2 + 812); else v6 = *(_DWORD *)(a1 + 808) - *(_DWORD *)(a1 + 812); *(_DWORD *)(a1 + 816) = v6; v7 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 812) = (int)v7; *(_DWORD *)(a1 + 808) = v6 + (int)v7; if ( *(_DWORD *)(a1 + 820) - *(_DWORD *)(a1 + 824) <= *(_DWORD *)(a2 + 820) - *(_DWORD *)(a2 + 824) ) v8 = *(_DWORD *)(a2 + 820) - *(_DWORD *)(a2 + 824); else v8 = *(_DWORD *)(a1 + 820) - *(_DWORD *)(a1 + 824); *(_DWORD *)(a1 + 828) = v8; v9 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 824) = (int)v9; *(_DWORD *)(a1 + 820) = v8 + (int)v9; if ( *(_DWORD *)(a1 + 860) - *(_DWORD *)(a1 + 856) <= *(_DWORD *)(a2 + 860) - *(_DWORD *)(a2 + 856) ) v10 = *(_DWORD *)(a2 + 860) - *(_DWORD *)(a2 + 856); else v10 = *(_DWORD *)(a1 + 860) - *(_DWORD *)(a1 + 856); *(_DWORD *)(a1 + 852) = v10; v11 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 856) = (int)v11; *(_DWORD *)(a1 + 860) = v10 + (int)v11; if ( *(_DWORD *)(a1 + 864) - *(_DWORD *)(a1 + 868) <= *(_DWORD *)(a2 + 864) - *(_DWORD *)(a2 + 868) ) v12 = *(_DWORD *)(a2 + 864) - *(_DWORD *)(a2 + 868); else v12 = *(_DWORD *)(a1 + 864) - *(_DWORD *)(a1 + 868); *(_DWORD *)(a1 + 872) = v12; v13 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 868) = (int)v13; *(_DWORD *)(a1 + 864) = v12 + (int)v13; v14 = *(_DWORD *)(a1 + 876); v15 = *(_DWORD *)(a1 + 880); v16 = *(_DWORD *)(a2 + 876); v17 = *(_DWORD *)(a2 + 880); v18 = *(unsigned int *)(a2 + 1296); v19 = *(unsigned int *)(a2 + 1300); v20 = *(unsigned int *)(a2 + 1304); v21 = *(unsigned int *)(a2 + 1308); if ( *(char *)(a2 + 1335) < 0 ) { sub_1000097D0(__p, *(void **)(a2 + 1312), *(_QWORD *)(a2 + 1320)); } else { *(_OWORD *)__p = *(_OWORD *)(a2 + 1312); v47 = *(_QWORD *)(a2 + 1328); } v22 = sub_1000CF4C0(a1, v18, 0, v19, v20, v21, __p, 0); v23 = v22; if ( (SHIBYTE(v47) & 0x80000000) == 0 ) { if ( !v22 ) goto LABEL_22; goto LABEL_21; } operator delete(__p[0]); if ( v23 ) LABEL_21: *(_BYTE *)(a1 + 1432) = *(_BYTE *)(a2 + 1432); LABEL_22: v24 = *(unsigned int *)(a2 + 1336); v25 = *(unsigned int *)(a2 + 1340); v26 = *(unsigned int *)(a2 + 1344); v27 = *(unsigned int *)(a2 + 1348); if ( *(char *)(a2 + 1375) < 0 ) { sub_1000097D0(__dst, *(void **)(a2 + 1352), *(_QWORD *)(a2 + 1360)); } else { *(_OWORD *)__dst = *(_OWORD *)(a2 + 1352); v45 = *(_QWORD *)(a2 + 1368); } v28 = sub_1000CF4C0(a1, v24, 1, v25, v26, v27, __dst, 0); if ( SHIBYTE(v45) < 0 ) operator delete(__dst[0]); v29 = v16 - v17; if ( v28 ) *(_BYTE *)(a1 + 1433) = *(_BYTE *)(a2 + 1433); if ( v29 > v14 - v15 ) { *(_DWORD *)(a1 + 884) = v29; v30 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 880) = (int)v30; *(_DWORD *)(a1 + 876) = v29 + (int)v30; v31 = *(_DWORD *)(a2 + 820) - *(_DWORD *)(a2 + 824); *(_DWORD *)(a1 + 828) = v31; v32 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 824) = (int)v32; *(_DWORD *)(a1 + 820) = v31 + (int)v32; v33 = *(_DWORD *)(a2 + 832) - *(_DWORD *)(a2 + 836); *(_DWORD *)(a1 + 840) = v33; v34 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; *(_DWORD *)(a1 + 836) = (int)v34; *(_DWORD *)(a1 + 832) = v33 + (int)v34; *(_DWORD *)(a1 + 844) = *(_DWORD *)(a2 + 844); if ( *(char *)(a2 + 1231) < 0 ) sub_1000097D0(&v43, *(void **)(a2 + 1208), *(_QWORD *)(a2 + 1216)); else v43 = *(std::string *)(a2 + 1208); std::string::operator=((std::string *)(a1 + 1208), &v43); if ( SHIBYTE(v43.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v43.__r_.__value_.__l.__data_); *(_BYTE *)(a1 + 848) = *(_BYTE *)(a2 + 848); } v35 = *(_DWORD *)(a1 + 888); if ( v35 <= *(_DWORD *)(a2 + 888) ) v35 = *(_DWORD *)(a2 + 888); *(_DWORD *)(a1 + 888) = v35; v36 = *(_DWORD *)(a1 + 1532); if ( v36 <= *(_DWORD *)(a2 + 1532) ) v36 = *(_DWORD *)(a2 + 1532); *(_DWORD *)(a1 + 1532) = v36; v37 = *(_DWORD *)(a1 + 632); if ( v37 <= *(_DWORD *)(a2 + 632) ) v37 = *(_DWORD *)(a2 + 632); *(_DWORD *)(a1 + 632) = v37; if ( *(_BYTE *)(a2 + 912) == 1 ) *(_BYTE *)(a1 + 912) = 1; v38 = *(_DWORD *)(a2 + 1536); if ( v38 >= 1 && (!*(_DWORD *)(a1 + 1536) || *(_DWORD *)(a2 + 1644) > *(_DWORD *)(a1 + 1644)) ) { *(_DWORD *)(a1 + 1536) = v38; std::string::operator=((std::string *)(a1 + 1544), (const std::string *)(a2 + 1544)); std::string::operator=((std::string *)(a1 + 1568), (const std::string *)(a2 + 1568)); std::string::operator=((std::string *)(a1 + 1592), (const std::string *)(a2 + 1592)); std::string::operator=((std::string *)(a1 + 1616), (const std::string *)(a2 + 1616)); *(_OWORD *)(a1 + 1640) = *(_OWORD *)(a2 + 1640); *(_DWORD *)(a1 + 1656) = *(_DWORD *)(a2 + 1656); std::string::operator=((std::string *)(a1 + 1664), (const std::string *)(a2 + 1664)); std::string::operator=((std::string *)(a1 + 1688), (const std::string *)(a2 + 1688)); *(_BYTE *)(a1 + 1712) = *(_BYTE *)(a2 + 1712); if ( *(_DWORD *)(a2 + 788) == *(_DWORD *)(a1 + 788) && (*(_DWORD *)(a1 + 1140) != 2 || sub_1000045BC((_QWORD *)(a1 + 392), (_QWORD *)(a2 + 392))) ) { std::string::operator=((std::string *)(a1 + 1720), (const std::string *)(a2 + 1720)); *(_BYTE *)(a1 + 1744) = *(_BYTE *)(a2 + 1744); } } if ( (*(char *)(a1 + 1783) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(a1 + 1768) ) goto LABEL_61; } else if ( *(_BYTE *)(a1 + 1783) ) { goto LABEL_61; } v39 = *(char *)(a2 + 1783); if ( v39 < 0 ) v39 = *(_QWORD *)(a2 + 1768); if ( v39 ) { std::string::operator=((std::string *)(a1 + 1760), (const std::string *)(a2 + 1760)); *(_QWORD *)(a1 + 1752) = *(_QWORD *)(a2 + 1752); } LABEL_61: if ( (*(char *)(a1 + 1839) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(a1 + 1824) ) goto LABEL_69; } else if ( *(_BYTE *)(a1 + 1839) ) { goto LABEL_69; } v40 = *(char *)(a2 + 1839); if ( v40 < 0 ) v40 = *(_QWORD *)(a2 + 1824); if ( v40 ) { std::string::operator=((std::string *)(a1 + 1816), (const std::string *)(a2 + 1816)); *(_DWORD *)(a1 + 1840) = *(_DWORD *)(a2 + 1840); *(_BYTE *)(a1 + 1844) = *(_BYTE *)(a2 + 1844); *(_DWORD *)(a1 + 1848) = *(_DWORD *)(a2 + 1848); } LABEL_69: if ( (*(char *)(a1 + 1807) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(a1 + 1792) ) goto LABEL_77; } else if ( *(_BYTE *)(a1 + 1807) ) { goto LABEL_77; } v41 = *(char *)(a2 + 1807); if ( v41 < 0 ) v41 = *(_QWORD *)(a2 + 1792); if ( v41 ) { std::string::operator=((std::string *)(a1 + 1784), (const std::string *)(a2 + 1784)); *(_DWORD *)(a1 + 1808) = *(_DWORD *)(a2 + 1808); } LABEL_77: if ( (*(char *)(a1 + 1495) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(a1 + 1480) ) return; } else if ( *(_BYTE *)(a1 + 1495) ) { return; } v42 = *(char *)(a2 + 1495); if ( v42 < 0 ) v42 = *(_QWORD *)(a2 + 1480); if ( v42 && *(_DWORD *)(a2 + 1520) == *(_DWORD *)(a1 + 788) && (*(_DWORD *)(a1 + 1140) != 2 || sub_1000045BC((_QWORD *)(a1 + 392), (_QWORD *)(a2 + 392))) ) { std::string::operator=((std::string *)(a1 + 1472), (const std::string *)(a2 + 1472)); *(_QWORD *)(a1 + 1520) = *(_QWORD *)(a2 + 1520); std::string::operator=((std::string *)(a1 + 1496), (const std::string *)(a2 + 1496)); *(_BYTE *)(a1 + 769) = *(_BYTE *)(a2 + 769); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source