//
// ScrollingLayer::init from 0x1007ff660 to 0x1007ff713 (179 bytes)
//
// 0 xrefs:
//
// 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:36 +0000
//
char __fastcall ScrollingLayer::init(__int64 a1, _QWORD *a2, _QWORD *a3, float a4)
{
char result; // al
_QWORD *v7; // rsi
char v8; // r15
_QWORD *v9; // rax
_QWORD *v10; // rax
int v11; // [rsp+Ch] [rbp-24h] BYREF
int v12; // [rsp+10h] [rbp-20h] BYREF
float v13; // [rsp+14h] [rbp-1Ch]
v13 = a4;
v11 = 0;
result = cocos2d::CCLayerColor::initWithColor(a1, (__int64)&v11);
if ( result )
{
*(float *)(a1 + 584) = v13;
v7 = a3;
v8 = result;
sub_100278300((_QWORD *)(a1 + 544), v7);
v12 = 838860800;
v9 = cocos2d::CCLayerColor::create_1((__int64)&v12);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9, 4294967294LL);
v10 = cocos2d::CCLayer::create();
*(_QWORD *)(a1 + 592) = v10;
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v10, 0xFFFFFFFFLL);
sub_100278660((_QWORD *)(a1 + 552), a2);
return v8;
}
return result;
}