//
// sub_140338630 from 0x140338630 to 0x1403386f5 (197 bytes)
//
// 3 xrefs:
// > sub_14033B084 @ 0x14033b08b
// > ??> @ 0x1405abc08
// > ??> @ 0x1406d52f4
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall sub_140338630(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &OptionsScrollLayer::`vftable';
Block[40] = &OptionsScrollLayer::`vftable';
Block[41] = &OptionsScrollLayer::`vftable';
Block[42] = &OptionsScrollLayer::`vftable';
Block[43] = &OptionsScrollLayer::`vftable';
Block[44] = &OptionsScrollLayer::`vftable';
Block[51] = &OptionsScrollLayer::`vftable';
Block[54] = &OptionsScrollLayer::`vftable';
Block[79] = &OptionsScrollLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[80];
if ( v4 )
cocos2d::CCObject::release(v4);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}