//
// GJBaseGameLayer::claimMoveAction from 0x474adc to 0x474ba2 (198 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x47f5e0
// > GJBaseGameLayer::processTransformActions @ 0x47fbe6
//
// 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
//
cocos2d::CCPoint *GJBaseGameLayer::claimMoveAction(
cocos2d::CCPoint *__return_ptr retstr,
GJBaseGameLayer *a2,
int a3,
bool a4)
{
GJEffectManager *m_effectManager; // r4
_BOOL4 v6; // r8
std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::size_type M_bucket_count; // r7
std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type v8; // r4
std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_base *i; // r3
std::__detail::_Hash_node_base *v10; // r3
double v11; // d6
std::__detail::_Hash_node_base *M_nxt; // r4
double v13; // d7
std::__detail::_Hash_node_base *v14; // r3
float v15; // s12
float v16; // s14
std::__detail::_Hash_node_base *v17; // t1
m_effectManager = a2->m_effectManager;
v6 = a4;
M_bucket_count = m_effectManager->m_unkMap618._M_h._M_bucket_count;
v8 = m_effectManager->m_unkMap618._M_h._M_buckets[a3 % M_bucket_count];
if ( !v8 )
goto LABEL_17;
for ( i = v8->_M_nxt; (std::__detail::_Hash_node_base *)a3 != i[1]._M_nxt; i = i->_M_nxt )
{
if ( !i->_M_nxt )
goto LABEL_17;
v8 = i;
if ( (unsigned int)i->_M_nxt[1]._M_nxt % M_bucket_count != a3 % M_bucket_count )
goto LABEL_17;
}
if ( v8->_M_nxt && (v10 = v8->_M_nxt[2]._M_nxt) != nullptr && !LOBYTE(v10[51]._M_nxt) && !BYTE1(v10[51]._M_nxt) )
{
LOBYTE(v10[51]._M_nxt) = 1;
if ( v6 )
{
v15 = *(double *)&v10[36]._M_nxt;
v16 = *(double *)&v10[38]._M_nxt;
}
else
{
v11 = *(double *)&v10[14]._M_nxt;
M_nxt = v10[53]._M_nxt;
v13 = *(double *)&v10[16]._M_nxt;
v14 = v10[52]._M_nxt;
v15 = v11;
v16 = v13;
while ( v14 != M_nxt )
{
v17 = v14->_M_nxt;
++v14;
*(_QWORD *)&v17[88]._M_nxt = 0;
*(_QWORD *)&v17[90]._M_nxt = 0;
}
}
}
else
{
LABEL_17:
v16 = 0.0;
v15 = 0.0;
}
cocos2d::CCPoint::CCPoint(retstr, v15, v16);
return retstr;
}