//
// GraphicsReloadLayer::init from 0x1007a4ff0 to 0x1007a50b2 (194 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GraphicsReloadLayer::init(
GraphicsReloadLayer *a1,
cocos2d::TextureQuality a2,
cocos2d::CCSize a3,
bool a4,
bool a5,
bool a6,
bool a7)
{
_BOOL8 v9; // r13
bool result; // al
_QWORD *v11; // rsi
bool v12; // r13
cocos2d::CCDelayTime *v13; // r14
cocos2d::CCCallFunc *v14; // rax
cocos2d::CCSequence *v15; // rax
unsigned __int8 v17; // [rsp+3Ch] [rbp+10h]
v9 = a4;
result = cocos2d::CCLayer::init(a1);
if ( result )
{
a1->m_quality = a2;
v11 = (_QWORD *)v9;
v12 = result;
sub_10028CFF0(&a1->m_resolution, v11);
*(_DWORD *)&a1->m_fullscreen = _mm_cvtsi128_si32(
_mm_insert_epi8(
_mm_insert_epi8(_mm_insert_epi8(_mm_cvtsi32_si128(a5), a6, 1), a7, 2),
v17,
3));
v13 = cocos2d::CCDelayTime::create(0.1);
v14 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GraphicsReloadLayer::performReload);
v15 = sub_1003B5760(v13, v14, 0);
cocos2d::CCNode::runAction(a1, v15);
return v12;
}
return result;
}