//
// sub_140303170 from 0x140303170 to 0x140303227 (183 bytes)
//
// 3 xrefs:
// > sub_14030BD44 @ 0x14030bd4b
// > ??> @ 0x140589208
// > ??> @ 0x1406d4430
//
// 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_140303170(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &SelectListIconLayer::`vftable';
Block[40] = &SelectListIconLayer::`vftable';
Block[41] = &SelectListIconLayer::`vftable';
Block[42] = &SelectListIconLayer::`vftable';
Block[43] = &SelectListIconLayer::`vftable';
Block[44] = &SelectListIconLayer::`vftable';
Block[51] = &SelectListIconLayer::`vftable';
Block[54] = &SelectListIconLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[79];
if ( v4 )
cocos2d::CCObject::release(v4);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}