//
// sub_140371A60 from 0x140371a60 to 0x140371b17 (183 bytes)
//
// 3 xrefs:
// > sub_14037C794 @ 0x14037c79b
// > ??> @ 0x1405c5a70
// > ??> @ 0x1406d5a80
//
// 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
//
_QWORD *__fastcall sub_140371A60(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &VideoOptionsLayer::`vftable';
Block[40] = &VideoOptionsLayer::`vftable';
Block[41] = &VideoOptionsLayer::`vftable';
Block[42] = &VideoOptionsLayer::`vftable';
Block[43] = &VideoOptionsLayer::`vftable';
Block[44] = &VideoOptionsLayer::`vftable';
Block[51] = &VideoOptionsLayer::`vftable';
Block[54] = &VideoOptionsLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[85];
if ( v4 )
cocos2d::CCObject::release(v4);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}