// // GJBaseGameLayer::createPlayerCollisionBlock from 0x14031fb30 to 0x14031fd46 (534 bytes) // // 5 xrefs: // > LevelEditorLayer::init @ 0x1403ee806 // > PlayLayer::setupHasCompleted @ 0x1405059e3 // > @ 0x1408b55b0 // > @ 0x1408b55c0 // > @ 0x14091ed94 // // 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 11:30:22 +0000 // void __fastcall GJBaseGameLayer::createPlayerCollisionBlock(__int64 a1) { int i; // ebp char *v3; // r14 __int64 *v4; // rsi __int64 v5; // rdi const struct cocos2d::CCPoint *v6; // rax cocos2d::CCPoint *v7; // rcx __int64 v8; // rax __int128 v9; // [rsp+20h] [rbp-48h] BYREF __int64 v10; // [rsp+30h] [rbp-38h] __int64 v11; // [rsp+38h] [rbp-30h] char v12; // [rsp+78h] [rbp+10h] BYREF char v13; // [rsp+80h] [rbp+18h] BYREF if ( !*(_QWORD *)(a1 + 12672) ) { for ( i = 0; i < 2; ++i ) { v3 = GameObject::createWithKey(1816); cocos2d::CCObject::retain((cocos2d::CCObject *)v3); (*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 1112LL))(v3); v10 = 0; v11 = 0; v9 = 0; *(_QWORD *)&v9 = sub_14003D460(0x20u); v10 = 30; v11 = 31; strcpy((char *)v9, "edit_eCollisionBlock01_001.png"); GameObject::addColorSprite((__int64)v3, (__int64)&v9); v10 = 0; v11 = 0; v9 = 0; *(_QWORD *)&v9 = sub_14003D460(0x20u); v10 = 30; v11 = 31; strcpy((char *)v9, "edit_eCollisionBlock01_001.png"); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v3 + 1120LL))(v3, &v9); if ( i ) { *(_QWORD *)(a1 + 12680) = v3; *((_DWORD *)v3 + 424) = 10001; v4 = *(__int64 **)(a1 + 12680); v5 = *v4; v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3520) + 200LL))(*(_QWORD *)(a1 + 3520)); v7 = (cocos2d::CCPoint *)&v13; } else { *(_QWORD *)(a1 + 12672) = v3; *((_DWORD *)v3 + 424) = 10000; v4 = *(__int64 **)(a1 + 12672); v5 = *v4; v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512)); v7 = (cocos2d::CCPoint *)&v12; } cocos2d::CCPoint::CCPoint(v7, v6); (*(void (__fastcall **)(__int64 *, __int64))(v5 + 1216))(v4, v8); v3[559] = 1; v3[1311] = 1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1192LL))(a1, v3); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 3544), (struct cocos2d::CCObject *)v3); } } }