//
// GJScaleControl::create from 0xbcf410 to 0xbcf540 (304 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x7ceeb8
// > ??> @ 0x7d860
//
// This function is hookable on this platform (idp: arm, 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 13:03:36 +0000
//
__int64 __fastcall GJScaleControl::create(GJScaleControl *this)
{
__int64 v1; // x19
v1 = operator new(0x268u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_DWORD *)(v1 + 436) = 0;
*(_DWORD *)(v1 + 432) = -1;
*(_DWORD *)(v1 + 440) = 0;
*(_DWORD *)(v1 + 448) = 0;
*(_DWORD *)(v1 + 452) = 0;
*(_QWORD *)v1 = &off_14E1EF0;
*(_QWORD *)(v1 + 320) = off_14E2380;
*(float *)(v1 + 584) = 2.0;
*(_QWORD *)(v1 + 328) = &off_14E23F0;
*(_QWORD *)(v1 + 336) = off_14E2408;
*(_QWORD *)(v1 + 344) = off_14E2428;
*(_QWORD *)(v1 + 352) = off_14E2450;
*(float *)(v1 + 588) = 0.5;
*(_QWORD *)(v1 + 408) = 0;
*(_QWORD *)(v1 + 416) = 0;
*(_QWORD *)(v1 + 424) = 0;
*(_BYTE *)(v1 + 456) = 0;
*(_WORD *)(v1 + 458) = 0;
*(_QWORD *)(v1 + 488) = 0;
*(_QWORD *)(v1 + 496) = 0;
*(_QWORD *)(v1 + 504) = 0;
*(_QWORD *)(v1 + 512) = 0;
*(_QWORD *)(v1 + 520) = 0;
*(_QWORD *)(v1 + 528) = 0;
*(_QWORD *)(v1 + 536) = 0;
*(_QWORD *)(v1 + 544) = 0;
*(_QWORD *)(v1 + 552) = 0;
*(_QWORD *)(v1 + 560) = 0;
*(_QWORD *)(v1 + 568) = 0;
*(_QWORD *)(v1 + 576) = 0;
*(_DWORD *)(v1 + 592) = 0;
*(_QWORD *)(v1 + 600) = 0;
*(_BYTE *)(v1 + 608) = 0;
if ( (unsigned __int8)GJScaleControl::init((GJScaleControl *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}