//
// cocos2d::CCProfilingBeginTimingBlock from 0x7f6244 to 0x7f62b2 (110 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:09 +0000
//
int __fastcall cocos2d::CCProfilingBeginTimingBlock(cocos2d *this, const char *a2, int a3, int a4)
{
int v5; // r0
int v6; // r5
cocos2d::CCProfiler *v7; // r8
size_t v8; // r0
cocos2d::CCProfilingTimer *v9; // r5
int v10; // r2
int v11; // r3
int v13[4]; // [sp+0h] [bp-10h] BYREF
v13[3] = a4;
v5 = cocos2d::CCProfiler::sharedProfiler(this);
memset(v13, 0, 12);
v6 = *(_DWORD *)(v5 + 52);
v7 = (cocos2d::CCProfiler *)v5;
v8 = strlen((const char *)this);
std::string::__init(v13, this, v8);
v9 = (cocos2d::CCProfilingTimer *)cocos2d::CCDictionary::objectForKey(v6, (int)v13);
std::string::~string((int)v13);
if ( !v9 )
v9 = cocos2d::CCProfiler::createAndAddTimerWithName(v7, (const char *)this, v10, v11);
++*((_DWORD *)v9 + 16);
return gettimeofday((struct timeval *)v9 + 12, nullptr);
}