//
// GJBaseGameLayer::createPlayerCollisionBlock from 0x1001089e0 to 0x100108c83 (675 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10007bda6
// > LevelEditorLayer::init @ 0x1000aab46
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:21:32 +0000
//
void __fastcall GJBaseGameLayer::createPlayerCollisionBlock(__int64 *a1)
{
__int64 v1; // r14
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // r14
__int64 v5; // rax
__int64 v6; // rax
_BYTE v7[8]; // [rsp+0h] [rbp-60h] BYREF
__int64 v8; // [rsp+8h] [rbp-58h] BYREF
__int64 v9; // [rsp+10h] [rbp-50h]
void *__p; // [rsp+18h] [rbp-48h]
__int64 v11; // [rsp+20h] [rbp-40h] BYREF
__int64 v12; // [rsp+28h] [rbp-38h]
void *v13; // [rsp+30h] [rbp-30h]
if ( !a1[1530] )
{
v1 = GameObject::createWithKey(1816);
cocos2d::CCObject::retain(v1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1264LL))(v1);
__p = operator new(0x20u);
v8 = 33;
v9 = 30;
strcpy((char *)__p, "edit_eCollisionBlock01_001.png");
GameObject::addColorSprite(v1, &v8);
if ( (v8 & 1) != 0 )
operator delete(__p);
v13 = operator new(0x20u);
v11 = 33;
v12 = 30;
strcpy((char *)v13, "edit_eCollisionBlock01_001.png");
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v1 + 1272LL))(v1, &v11);
if ( (v11 & 1) != 0 )
operator delete(v13);
a1[1530] = v1;
*(_DWORD *)(v1 + 1680) = 10000;
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[407] + 192LL))(a1[407]);
sub_1002782D0(v7, v2);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v1 + 1368LL))(v1, v7);
v3 = *a1;
*(_BYTE *)(v1 + 559) = 1;
*(_BYTE *)(v1 + 1303) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(v3 + 1344))(a1, v1);
sub_1007FEBF0(a1[411], v1);
v4 = GameObject::createWithKey(1816);
cocos2d::CCObject::retain(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1264LL))(v4);
__p = operator new(0x20u);
v8 = 33;
v9 = 30;
strcpy((char *)__p, "edit_eCollisionBlock01_001.png");
GameObject::addColorSprite(v4, &v8);
if ( (v8 & 1) != 0 )
operator delete(__p);
v13 = operator new(0x20u);
v11 = 33;
v12 = 30;
strcpy((char *)v13, "edit_eCollisionBlock01_001.png");
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 1272LL))(v4, &v11);
if ( (v11 & 1) != 0 )
operator delete(v13);
a1[1531] = v4;
*(_DWORD *)(v4 + 1680) = 10001;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[408] + 192LL))(a1[408]);
sub_1002782D0(v7, v5);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1368LL))(v4, v7);
v6 = *a1;
*(_BYTE *)(v4 + 559) = 1;
*(_BYTE *)(v4 + 1303) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 1344))(a1, v4);
sub_1007FEBF0(a1[411], v4);
}
}