// // GJBaseGameLayer::refreshCounterLabels from 0x1402355b0 to 0x14023575e (430 bytes) // // 2 xrefs: // > PlayLayer::resetLevel @ 0x1403b98d1 // > @ 0x1406ce04c // // 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 // // Hidden C++ exception states: #wind=2 void GJBaseGameLayer::refreshCounterLabels(GJBaseGameLayer *a1) { std::_List_val>>>::_Nodeptr Myhead; // rdi __int64 *i; // rbx unsigned int v4; // eax _BYTE *v5; // rax size_t v6; // r8 __int64 *v7; // rsi __int64 *j; // r14 __int64 v9; // rbp __int128 *v10; // rdx size_t v11; // r8 void *v12; // rcx __int128 v13; // [rsp+20h] [rbp-298h] BYREF __int64 v14; // [rsp+30h] [rbp-288h] __int64 v15; // [rsp+38h] [rbp-280h] __int128 v16; // [rsp+48h] [rbp-270h] BYREF __int64 v17; // [rsp+58h] [rbp-260h] unsigned __int64 v18; // [rsp+60h] [rbp-258h] _BYTE v19[528]; // [rsp+70h] [rbp-248h] BYREF Myhead = a1->m_labelObjects._List._Mypair._Myval2._Myhead; for ( i = *(__int64 **)Myhead; i != (__int64 *)Myhead; i = (__int64 *)*i ) { v16 = 0; v17 = 0; v18 = 15; LOBYTE(v16) = 0; fmt::BasicWriter::BasicWriter(v19); v4 = GJEffectManager::countForItem(a1->m_effectManager, *((_DWORD *)i + 4)); fmt::BasicWriter::operator<<(v19, v4); v5 = (_BYTE *)fmt::BasicWriter::c_str(v19); v6 = -1; do ++v6; while ( v5[v6] ); sub_14003CCE0((void **)&v16, v5, v6); v7 = (__int64 *)i[3]; for ( j = (__int64 *)i[4]; v7 != j; ++v7 ) { v9 = *v7; v10 = &v16; if ( v18 > 0xF ) v10 = (__int128 *)v16; v13 = 0; v14 = 0; v15 = 0; v11 = -1; do ++v11; while ( *((_BYTE *)v10 + v11) ); sub_14003A930(&v13, v10, v11); LabelGameObject::updateLabel(v9, &v13); } fmt::BasicWriter::~BasicWriter(v19); if ( v18 > 0xF ) { v12 = (void *)v16; if ( v18 + 1 >= 0x1000 ) { v12 = *(void **)(v16 - 8); if ( (unsigned __int64)(v16 - (_QWORD)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } } }