//
// sub_140669B70 from 0x140669b70 to 0x140669c98 (296 bytes)
//
// 3 xrefs:
// > sub_14066C28C @ 0x14066c293
// > ??> @ 0x140832c20
// > ??> @ 0x140931f88
//
// 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:35:52 +0000
//
char *__fastcall sub_140669B70(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
*(_QWORD *)Block = &SupportLayer::`vftable';
*((_QWORD *)Block + 40) = &SupportLayer::`vftable';
*((_QWORD *)Block + 41) = &SupportLayer::`vftable';
*((_QWORD *)Block + 42) = &SupportLayer::`vftable';
*((_QWORD *)Block + 43) = &SupportLayer::`vftable';
*((_QWORD *)Block + 44) = &SupportLayer::`vftable';
*((_QWORD *)Block + 51) = &SupportLayer::`vftable';
*((_QWORD *)Block + 54) = &SupportLayer::`vftable';
*((_QWORD *)Block + 76) = &SupportLayer::`vftable';
v4 = Block + 616;
*((_QWORD *)Block + 77) = &SupportLayer::`vftable';
*((_QWORD *)Block + 78) = &SupportLayer::`vftable';
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(char **)(v5 + 1488) == v4 )
*(_QWORD *)(v5 + 1488) = 0;
GJDropDownLayer::dGJDropDownLayer((struct cocos2d::CCObject *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}