//
// GraphicsReloadLayer::create from 0x100888070 to 0x1008881ce (350 bytes)
//
// 1 xrefs:
// > GraphicsReloadLayer::scene @ 0x100888047
//
// 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 12:36:59 +0000
//
_WORD *__fastcall GraphicsReloadLayer::create(int a1, _QWORD *a2, int a3, unsigned __int8 a4, int a5, int a6)
{
_WORD *v7; // rbx
_OWORD *v8; // r14
__int64 v9; // rax
__int64 v10; // rax
__int64 v12; // [rsp+4h] [rbp-3Ch] BYREF
int v13; // [rsp+Ch] [rbp-34h]
int v14; // [rsp+10h] [rbp-30h]
int v15; // [rsp+14h] [rbp-2Ch]
v13 = a6;
v14 = a5;
v15 = a3;
v7 = operator new(0x1A8u);
cocos2d::CCLayer::CCLayer((__int64)v7);
*(_QWORD *)v7 = off_100BA6148;
*((_QWORD *)v7 + 40) = off_100BA65D8;
*((_QWORD *)v7 + 41) = &off_100BA6648;
*((_QWORD *)v7 + 42) = off_100BA6660;
*((_QWORD *)v7 + 43) = off_100BA6680;
*((_QWORD *)v7 + 44) = off_100BA66A8;
sub_100278600((_QWORD *)v7 + 51);
sub_100278630(&v12, a2);
if ( cocos2d::CCLayer::init(v7) )
{
*((_DWORD *)v7 + 101) = a1;
sub_100278660((_QWORD *)v7 + 51, &v12);
*((_DWORD *)v7 + 104) = _mm_cvtsi128_si32(
_mm_insert_epi8(
_mm_insert_epi8(
_mm_insert_epi8(_mm_cvtsi32_si128((unsigned __int8)v15), a4, 1),
(unsigned __int8)v14,
2),
(unsigned __int8)v13,
3));
v8 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu);
v9 = cocos2d::CCCallFunc::create(v7, GraphicsReloadLayer::performReload, 0);
v10 = sub_10039EB60((__int64)v8, v9, 0);
cocos2d::CCNode::runAction((__int64)v7, v10);
cocos2d::CCObject::autorelease((__int64)v7);
}
else
{
(*(void (__fastcall **)(_WORD *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}