// // GJBaseGameLayer::updateTimerLabels from 0x88fd88 to 0x8901f4 (1132 bytes) // // 2 xrefs: // > GJBaseGameLayer::update @ 0x89e488 // > @ 0x90498 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJBaseGameLayer::updateTimerLabels(GJBaseGameLayer *a1) { std::__detail::_Hash_node_base *i; // x27 double v2; // d0 double v3; // d1 float v4; // s2 unsigned int v5; // w20 signed int v6; // w19 size_t v7; // x21 size_t v8; // x20 size_t v9; // x21 size_t v10; // x20 size_t v11; // x19 __int64 *M_nxt; // x25 __int64 *j; // x19 __int64 v14; // x21 void *v15; // x0 unsigned int *v16; // x1 int v17; // w2 void *v18; // x0 void *v19; // x0 size_t v20; // x20 size_t v21; // x19 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 double v27; // [xsp+A0h] [xbp+A0h] __int64 v28; // [xsp+D0h] [xbp+D0h] BYREF __int64 v29; // [xsp+D8h] [xbp+D8h] BYREF __int64 v30; // [xsp+E0h] [xbp+E0h] BYREF size_t v31; // [xsp+E8h] [xbp+E8h] BYREF unsigned __int64 v32; // [xsp+F0h] [xbp+F0h] char *v33; // [xsp+F8h] [xbp+F8h] _BYTE v34[504]; // [xsp+100h] [xbp+100h] BYREF for ( i = a1->m_timeLabelObjects._M_h._M_before_begin._M_nxt; i; i = i->_M_nxt ) { v2 = GJEffectManager::timeForItem(a1->m_effectManager, (int)i[1]._M_nxt); v3 = fabs(v2); v4 = v3; v5 = vcvtms_s32_f32(v4); *(float *)&v3 = (v3 - (double)(int)v5) * 100.0; v6 = llroundf(*(float *)&v3); if ( v6 == 100 ) { ++v5; v6 = 0; } v27 = v2; GameToolbox::intToString(&v28, (GameToolbox *)v5); v31 = 0; v33 = v34; v32 = 500; if ( v27 < 0.0 ) { v34[0] = 45; v31 = 1; } fmt::BasicWriter::FormatInt,char>>(&v31, v5); v7 = v31; v8 = v31 + 1; if ( v31 + 1 > v32 ) fmt::internal::Array::grow(&v31, v31 + 1); v31 = v8; v33[v7] = 46; if ( v6 ) { if ( v6 <= 9 ) { v9 = v31; v10 = v31 + 1; if ( v31 + 1 > v32 ) fmt::internal::Array::grow(&v31, v31 + 1); v31 = v10; v33[v9] = aAssertionFaile_0[72]; } fmt::BasicWriter::FormatInt,char>>(&v31, v6); } else { v20 = v31; v21 = v31 + 2; if ( v31 + 2 > v32 ) fmt::internal::Array::grow(&v31, v31 + 2); v31 = v21; *(_WORD *)&v33[v20] = *(_WORD *)"00"; } v11 = v31; if ( v32 < v31 + 1 ) fmt::internal::Array::grow(&v31, v31 + 1); v33[v11] = 0; sub_D153B8((int)&v29, v33); M_nxt = (__int64 *)i[3]._M_nxt; for ( j = (__int64 *)i[2]._M_nxt; M_nxt != j; ++j ) { while ( 1 ) { v14 = *j; sub_D18D28(&v30); LabelGameObject::queueUpdateLabel(v14, (__int64)&v30); v15 = (void *)(v30 - 24); if ( (__int64 *)(v30 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v30 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v30 - 8); *(_DWORD *)(v30 - 8) = v17 - 1; } if ( v17 <= 0 ) break; } if ( M_nxt == ++j ) goto LABEL_25; } operator delete(v15); } LABEL_25: v18 = (void *)(v29 - 24); if ( (__int64 *)(v29 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v29 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v29 - 8); *(_DWORD *)(v29 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v18); } if ( v33 != v34 && v33 ) operator delete[](v33); v19 = (void *)(v28 - 24); if ( (__int64 *)(v28 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v28 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v28 - 8); *(_DWORD *)(v28 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v19); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source