//
// GJBaseGameLayer::updatePlayerCollisionBlocks from 0x1001eabc8 to 0x1001eacd4 (268 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x100122114
// > GJBaseGameLayer::updateCollisionBlocks @ 0x1001ead44
//
// 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 __fastcall GJBaseGameLayer::updatePlayerCollisionBlocks(GJBaseGameLayer *a1)
{
char v2; // w8
int v3; // w27
__int64 v4; // x8
GameObject *v5; // x20
__int64 v6; // x8
__int64 v7; // x21
__int64 v8; // [xsp+8h] [xbp-58h] BYREF
v2 = 1;
do
{
v3 = v2 & 1;
if ( (v2 & 1) != 0 )
v4 = 12128;
else
v4 = 12136;
v5 = *(GameObject **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4);
if ( v3 )
v6 = 3272;
else
v6 = 3280;
v7 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v6);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v7 + 1344LL))(&v8, v7);
((void (__fastcall *)(GameObject *, __int64 *))v5->setStartPos)(v5, &v8);
v5->m_startRotationX = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 352LL))(v7);
v5->m_startRotationY = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 352LL))(v7);
v5->m_spriteWidthScale = *(float *)(v7 + 908);
v5->m_spriteHeightScale = *(float *)(v7 + 912);
*(_QWORD *)&v5->m_scaleX = *(_QWORD *)(v7 + 1152);
v5->m_isOrientedBoxDirty = 1;
GameObject::calculateOrientedBox(v5);
GJBaseGameLayer::removeObjectFromSection(a1, v5);
((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->addToSection)(a1, v5);
v2 = 0;
}
while ( v3 );
}