//
// cocos2d::CCProfilingEndTimingBlock from 0x7f60c8 to 0x7f6172 (170 bytes)
//
// 0 xrefs:
//
// 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 12:01:08 +0000
//
__int64 __fastcall cocos2d::CCProfilingEndTimingBlock(cocos2d *this, const char *a2)
{
cocos2d::CCProfiler *v3; // r0
int v4; // r0
int v5; // r7
size_t v6; // r0
int v7; // r4
int v8; // r5
int v9; // r2
unsigned int v10; // s15
__int64 v11; // r0
__int64 result; // r0
int v13; // r3
int v14; // r3
struct timeval v15; // [sp+0h] [bp-1Ch] BYREF
int v16[3]; // [sp+8h] [bp-14h] BYREF
v3 = (cocos2d::CCProfiler *)gettimeofday(&v15, nullptr);
v4 = cocos2d::CCProfiler::sharedProfiler(v3);
memset(v16, 0, sizeof(v16));
v5 = *(_DWORD *)(v4 + 52);
v6 = strlen((const char *)this);
std::string::__init(v16, this, v6);
v7 = cocos2d::CCDictionary::objectForKey(v5, (int)v16);
std::string::~string((int)v16);
v8 = v15.tv_usec - *(_DWORD *)(v7 + 100) + 1000000 * (v15.tv_sec - *(_DWORD *)(v7 + 96));
v9 = *(_DWORD *)(v7 + 64);
v10 = v8 + *(_DWORD *)(v7 + 68);
v11 = *(_QWORD *)(v7 + 80) + v8;
*(_QWORD *)(v7 + 80) = v11;
*(_DWORD *)(v7 + 68) = (int)vcvts_n_f32_s32(v10, 1u);
result = v11 / v9;
v13 = *(_DWORD *)(v7 + 92);
if ( v13 < v8 )
*(_DWORD *)(v7 + 92) = v8;
else
*(_DWORD *)(v7 + 92) = v13;
v14 = *(_DWORD *)(v7 + 88);
if ( v14 > v8 )
*(_DWORD *)(v7 + 88) = v8;
else
*(_DWORD *)(v7 + 88) = v14;
*(_DWORD *)(v7 + 72) = result;
return result;
}