//
// sub_1405608A0 from 0x1405608a0 to 0x1405609ac (268 bytes)
//
// 3 xrefs:
// > sub_1405617F0 @ 0x1405617f7
// > ??> @ 0x1407daad0
// > ??> @ 0x14092c420
//
// 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:34:14 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall sub_1405608A0(char *Block, char a2)
{
char *v4; // rdi
__int64 v5; // rax
void *v6; // rax
*(_QWORD *)Block = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 40) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 41) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 42) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 43) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 44) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 51) = &RetryLevelLayer::`vftable';
*((_QWORD *)Block + 54) = &RetryLevelLayer::`vftable';
v4 = Block + 608;
*((_QWORD *)Block + 76) = &RetryLevelLayer::`vftable';
v5 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v5 = qword_14090BFD0;
}
if ( *(char **)(v5 + 1288) == v4 )
*(_QWORD *)(v5 + 1288) = 0;
GJDropDownLayer::dGJDropDownLayer((struct cocos2d::CCObject *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}