//
// ScrollableContentLayer::create from 0x3f6268 to 0x3f63f8 (400 bytes)
//
// 16 xrefs:
// > CCTextInputNode::enableTextScroll @ 0x3e3304
// > KeybindingsLayer::init @ 0x58a902
// > SetGroupIDLayer::init @ 0x63da28
// > NewsPopup::init @ 0x6c34da
// > ScrollViewPopup::initPopup @ 0x6c9db8
// > PagedListPopup::createScrollView @ 0x72eadc
// > SFXFolderPickerPopup::init @ 0x730958
// > ThreadViewPopup::init @ 0x75c7e0
// > DeathHistogram::init @ 0x766c2e
// > DeathTrackerPopup::init @ 0x776252
// > DropdownListPopup::init @ 0x778284
// > EditorSFXActionConfigLayer::init @ 0x77c7be
// > EditorSoundConfigInfoLayer::init @ 0x787802
// > EditorSoundsLayer::init @ 0x78ac6e
// > EditorWindowPopup::initWindow @ 0x78ca56
// > IDNameBrowserPopup::init @ 0x792a62
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:17 +0000
//
int *__fastcall ScrollableContentLayer::create(const cocos2d::CCSize *a1, int a2, int a3, int a4)
{
int *v5; // r4
int v6; // r2
int v7; // r3
int v8; // r3
int *v9; // r0
_DWORD v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0] = a2;
v11[1] = a3;
v11[2] = a4;
v5 = (int *)operator new(0x1F8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v5);
*v5 = (int)&off_C8C048;
v5[66] = (int)&off_C8C298;
v5[67] = (int)&off_C8C2D0;
v5[68] = (int)&off_C8C2DC;
v5[69] = (int)&off_C8C2EC;
v5[70] = (int)&off_C8C300;
v5[79] = (int)&off_C8C318;
v5[80] = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 81));
v5[83] = 0;
v5[84] = 0;
v5[85] = -1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 86));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 88));
v5[92] = 0;
*((_QWORD *)v5 + 45) = 0;
v5[93] = 0;
*((_BYTE *)v5 + 384) = -1;
*((_BYTE *)v5 + 385) = -1;
*((_BYTE *)v5 + 386) = -1;
*((_BYTE *)v5 + 376) = 0;
*((_BYTE *)v5 + 377) = 0;
v5[95] = 0;
*((_BYTE *)v5 + 387) = 125;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 97), 0.0, 0.0);
*((_BYTE *)v5 + 396) = 0;
*((_BYTE *)v5 + 412) = 0;
v5[105] = 0;
v5[106] = 0;
v5[108] = 0;
v5[109] = 0;
v5[110] = 0;
*((_BYTE *)v5 + 444) = 0;
v5[112] = 0;
v5[116] = 0;
v5[117] = 0;
v5[118] = 0;
v5[120] = 0;
v5[121] = 0;
*((_BYTE *)v5 + 496) = 0;
v5[104] = (int)(v5 + 105);
v5[100] = 0;
v5[107] = (int)(v5 + 108);
v5[101] = 0;
v5[119] = (int)(v5 + 120);
v5[102] = 0;
v5[113] = 0;
v5[114] = 0;
v5[115] = 0;
v5[122] = -1;
v5[123] = -1;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11, a1);
if ( ScrollableContentLayer::init((cocos2d::CCLayer *)v5, (int)v11, v6, v7) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v8 = *v5;
v9 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v8 + 8))(v9);
}
return v5;
}