//
// SetupSmartBlockLayer::init from 0x1405ec330 to 0x1405ed356 (4134 bytes)
//
// 2 xrefs:
// > SetupSmartBlockLayer::create @ 0x1405ec2da
// > ??> @ 0x14092f048
//
// 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 11:35:04 +0000
//
// Hidden C++ exception states: #wind=12
bool __fastcall SetupSmartBlockLayer::init(__int64 a1, cocos2d::CCObject *a2, cocos2d::CCObject *a3)
{
bool result; // al
cocos2d::CCObject *v7; // rcx
__int64 v8; // rcx
_BYTE *v9; // rcx
__int64 v10; // rcx
__int64 v11; // rcx
__int64 v12; // rcx
__int64 v13; // rax
unsigned int i; // ebx
__int64 v15; // rax
__int64 v16; // rax
__int64 *v17; // rdi
__int64 v18; // rbx
__int64 v19; // rax
__int64 v20; // rbx
__int64 v21; // rax
struct cocos2d::CCLabelBMFont *v22; // rdi
__int64 v23; // rbx
__int64 v24; // rax
cocos2d::CCObject *v25; // rbx
__int64 v26; // rax
cocos2d::CCObject *v27; // rbx
cocos2d::CCObject *v28; // r13
__int64 v29; // rax
cocos2d::CCObject *v30; // rbx
cocos2d::CCObject *v31; // r12
__int64 v32; // rax
cocos2d::CCObject *v33; // rbx
cocos2d::CCObject *v34; // r15
__int64 v35; // rax
cocos2d::CCObject *v36; // rbx
cocos2d::CCObject *v37; // rsi
cocos2d::CCObject *v38; // rbx
cocos2d::CCObject *v39; // rdi
cocos2d::CCObject *v40; // rbx
cocos2d::CCObject *v41; // rax
struct cocos2d::CCMenu *v42; // rax
__int64 v43; // rdi
__int64 v44; // rbx
__int64 v45; // rax
_QWORD *v46; // rax
_QWORD *v47; // rcx
const char *v48; // rdx
__int64 v49; // r8
char *v50; // rsi
__int64 v51; // rdi
__int64 v52; // rbx
__int64 v53; // rax
__int64 v54; // rax
__int64 v55; // rax
__int64 v56; // rbx
__int64 v57; // rdi
float *v58; // rax
__int64 v59; // rax
__int64 v60; // rbx
__int64 v61; // rdi
float *v62; // rax
__int64 v63; // rax
__int64 v64; // rbx
__int64 v65; // rdi
float *v66; // rax
cocos2d::CCMenuItem *ToggleButton; // rax
__int64 v68; // rax
__int64 v69; // rbx
__int64 v70; // rdi
float *v71; // rax
cocos2d::CCMenuItem *v72; // rax
__int64 v73; // rax
__int64 v74; // rbx
__int64 v75; // rdi
float *v76; // rax
__int64 v77; // rax
__int64 v78; // rbx
__int64 v79; // rdi
float *v80; // rax
__int64 v81; // rax
__int64 v82; // rbx
__int64 v83; // rdi
float *v84; // rax
struct cocos2d::CCMenuItem *v85; // [rsp+88h] [rbp-80h] BYREF
__int128 *v86; // [rsp+90h] [rbp-78h] BYREF
__int128 v87; // [rsp+98h] [rbp-70h] BYREF
__int64 v88; // [rsp+A8h] [rbp-60h]
__int64 v89; // [rsp+B0h] [rbp-58h]
_BYTE v90[8]; // [rsp+B8h] [rbp-50h] BYREF
_BYTE v91[8]; // [rsp+C0h] [rbp-48h] BYREF
__int128 v92; // [rsp+C8h] [rbp-40h] BYREF
__int64 v93; // [rsp+D8h] [rbp-30h]
__int64 v94; // [rsp+E0h] [rbp-28h]
float v95; // [rsp+170h] [rbp+68h] BYREF
float v96; // [rsp+174h] [rbp+6Ch]
result = FLAlertLayer::init_1(a1, 150);
if ( !result )
return result;
if ( a2 )
{
*(_QWORD *)(a1 + 688) = a2;
v7 = a2;
LABEL_6:
cocos2d::CCObject::retain(v7);
goto LABEL_7;
}
if ( a3 )
{
*(_QWORD *)(a1 + 696) = a3;
v7 = a3;
goto LABEL_6;
}
LABEL_7:
v8 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v85 = (struct cocos2d::CCMenuItem *)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v85);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v8 = *(_QWORD *)&qword_14090BFB0;
}
v9 = *(_BYTE **)(v8 + 1664);
if ( v9 )
{
*(_BYTE *)(a1 + 673) = v9[130];
*(_BYTE *)(a1 + 674) = v9[128];
*(_BYTE *)(a1 + 675) = v9[129];
*(_BYTE *)(a1 + 678) = v9[131];
}
v10 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v85 = (struct cocos2d::CCMenuItem *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v85);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v10 = qword_14090BFD0;
}
*(_BYTE *)(a1 + 676) = GameManager::getGameVariable(v10, "0131");
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v85 = (struct cocos2d::CCMenuItem *)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v85);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
*(_BYTE *)(a1 + 677) = GameManager::getGameVariable(v11, "0132");
v13 = *(_QWORD *)(a1 + 688);
if ( v13 )
{
*(_BYTE *)(a1 + 672) = *(_BYTE *)(v13 + 1360);
}
else
{
*(_BYTE *)(a1 + 672) = 1;
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696)); ++i )
{
if ( !*((_BYTE *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 696), i) + 1360) )
*(_BYTE *)(a1 + 672) = 0;
}
}
*(_BYTE *)(a1 + 596) = 1;
v15 = cocos2d::CCDirector::sharedDirector(v12);
cocos2d::CCDirector::getWinSize(v15, &v95);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v92, 0.0, 0.0, 80.0, 80.0);
v17 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v16);
v18 = *v17;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v85, 300.0, 240.0);
(*(void (__fastcall **)(__int64 *, __int64))(v18 + 312))(v17, v19);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v17,
4294967294LL);
v20 = *v17;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v95 * 0.5, v96 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v20 + 184))(v17, v21);
v22 = cocos2d::CCLabelBMFont::create("Create blocks", "goldFont.fnt");
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v22);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 160LL))(v22);
v23 = *(_QWORD *)v22;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v95 * 0.5, (float)((float)(v96 * 0.5) + 120.0) - 18.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v23 + 184))(v22, v24);
v85 = (struct cocos2d::CCMenuItem *)operator new(0x2C8u);
v25 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v85);
if ( v25 )
{
if ( ButtonSprite::init_1(
(__int64)v25,
(__int64)"Back",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_05.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v25);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 8LL))(v25, 1);
LODWORD(v25) = 0;
}
}
v85 = CCMenuItemSpriteExtra::create((int)v25, 0, a1, (__int64)SetupSmartBlockLayer::onClose);
v86 = (__int128 *)operator new(0x2C8u);
v26 = ButtonSprite::ButtonSprite((__int64)v86);
v27 = (cocos2d::CCObject *)v26;
if ( v26 )
{
if ( ButtonSprite::init_1(
v26,
(__int64)&dword_14072428C,
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v27);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v27 + 8LL))(v27, 1);
LODWORD(v27) = 0;
}
}
v28 = CCMenuItemSpriteExtra::create((int)v27, 0, a1, (__int64)SetupSmartBlockLayer::onCreate);
v86 = (__int128 *)operator new(0x2C8u);
v29 = ButtonSprite::ButtonSprite((__int64)v86);
v30 = (cocos2d::CCObject *)v29;
if ( v29 )
{
if ( ButtonSprite::init_1(
v29,
(__int64)"Template",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_02.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v30);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v30 + 8LL))(v30, 1);
LODWORD(v30) = 0;
}
}
v31 = CCMenuItemSpriteExtra::create((int)v30, 0, a1, (__int64)SetupSmartBlockLayer::onCreateTemplate);
v86 = (__int128 *)operator new(0x2C8u);
v32 = ButtonSprite::ButtonSprite((__int64)v86);
v33 = (cocos2d::CCObject *)v32;
if ( v32 )
{
if ( ButtonSprite::init_1(
v32,
(__int64)"Special",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_02.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v33);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v33 + 8LL))(v33, 1);
LODWORD(v33) = 0;
}
}
v34 = CCMenuItemSpriteExtra::create((int)v33, 0, a1, (__int64)SetupSmartBlockLayer::onSelectPremade);
v86 = (__int128 *)operator new(0x2C8u);
v35 = ButtonSprite::ButtonSprite((__int64)v86);
v36 = (cocos2d::CCObject *)v35;
if ( v35 )
{
if ( ButtonSprite::init_1(
v35,
(__int64)"Browser",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v36);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v36 + 8LL))(v36, 1);
LODWORD(v36) = 0;
}
}
v37 = CCMenuItemSpriteExtra::create((int)v36, 0, a1, (__int64)SetupSmartBlockLayer::onSelectTemplate);
v86 = (__int128 *)operator new(0x2C8u);
v38 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v86);
if ( v38 )
{
if ( ButtonSprite::init_1(
(__int64)v38,
(__int64)"Paste\nTemplate",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v38);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v38 + 8LL))(v38, 1);
LODWORD(v38) = 0;
}
}
v39 = CCMenuItemSpriteExtra::create((int)v38, 0, a1, (__int64)SetupSmartBlockLayer::onPasteTemplate);
v86 = (__int128 *)operator new(0x2C8u);
v40 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v86);
if ( v40 )
{
if ( ButtonSprite::init_1(
(__int64)v40,
(__int64)"Create\nAll",
25,
0,
1056964608,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v40);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v40 + 8LL))(v40, 1);
LODWORD(v40) = 0;
}
}
v41 = CCMenuItemSpriteExtra::create((int)v40, 0, a1, (__int64)SetupSmartBlockLayer::onCreateAll);
v42 = cocos2d::CCMenu::create(v85, v28, v31, v34, v37, v41, v39, 0);
*(_QWORD *)(a1 + 552) = v42;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v42,
10);
cocos2d::CCMenu::alignItemsHorizontally(*(cocos2d::CCMenu **)(a1 + 552));
v43 = **(_QWORD **)(a1 + 552);
v44 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v95 * 0.5, (float)((float)(v96 * 0.5) - 120.0) + 24.0);
(*(void (__fastcall **)(__int64, __int64))(v43 + 184))(v44, v45);
v86 = &v87;
v87 = 0;
v88 = 0;
v89 = 0;
v46 = sub_14003D460(0x210u);
*(_QWORD *)&v87 = v46;
v88 = 517;
v89 = 527;
v47 = v46;
v48 = "Auto-builds structures with given templates.\n"
"Use Browser to start and select templates.\n"
"Click Template with a template made to save it.\n"
"Create structures with these blocks and click Create to paste the selected template.\n"
"Reference Only blocks are used as reference positions.\n"
"Allow Rotation, Flip X, and Flip Y allow rotating the design.\n"
"Dont Delete keeps these blocks when template is pasted.\n"
"The tool is in beta and will be enhanced in future updates.";
v49 = 4;
do
{
*(_OWORD *)v47 = *(_OWORD *)v48;
*((_OWORD *)v47 + 1) = *((_OWORD *)v48 + 1);
*((_OWORD *)v47 + 2) = *((_OWORD *)v48 + 2);
*((_OWORD *)v47 + 3) = *((_OWORD *)v48 + 3);
*((_OWORD *)v47 + 4) = *((_OWORD *)v48 + 4);
*((_OWORD *)v47 + 5) = *((_OWORD *)v48 + 5);
*((_OWORD *)v47 + 6) = *((_OWORD *)v48 + 6);
v47 += 16;
*((_OWORD *)v47 - 1) = *((_OWORD *)v48 + 7);
v48 += 128;
--v49;
}
while ( v49 );
*(_DWORD *)v47 = *(_DWORD *)v48;
*((_BYTE *)v47 + 4) = v48[4];
*((_BYTE *)v46 + 517) = 0;
v92 = 0;
v93 = 4;
v94 = 15;
strcpy((char *)&v92, "Help");
v50 = InfoAlertButton::create((__int64)&v92, (__int64)&v87);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v50);
v51 = *(_QWORD *)v50;
v52 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v86,
(float)((float)(v95 * 0.5) - 150.0) + 18.0,
(float)((float)(v96 * 0.5) + 120.0) - 18.0);
cocos2d::CCNode::convertToNodeSpace(v52, &v85, v53);
(*(void (__fastcall **)(char *, __int64))(v51 + 184))(v50, v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v90, (float)(v95 * 0.5) - 60.0, (float)(v96 * 0.5) + 70.0);
v86 = &v87;
v88 = 14;
v89 = 15;
strcpy((char *)&v87, "Reference Only");
HIBYTE(v87) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -0.0);
cocos2d::CCPoint::operator+(v90, &v85, v55);
v56 = *(_QWORD *)(a1 + 584);
v57 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 672);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v92, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onReferenceOnly,
(unsigned __int8)v50,
v57,
(__int64)&v85,
a1,
v56,
0.60000002,
0.34999999,
0.0,
v58,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v92 = &v87;
v88 = 14;
v89 = 15;
strcpy((char *)&v87, "Allow Rotation");
HIBYTE(v87) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -22.0);
cocos2d::CCPoint::operator+(v90, &v85, v59);
v60 = *(_QWORD *)(a1 + 584);
v61 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 673);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onAllowRotation,
(unsigned __int8)v50,
v61,
(__int64)&v85,
a1,
v60,
0.60000002,
0.34999999,
0.0,
v62,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v92 = &v87;
v88 = 12;
v89 = 15;
strcpy((char *)&v87, "Allow Flip X");
BYTE13(v87) = 0;
HIWORD(v87) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -44.0);
cocos2d::CCPoint::operator+(v90, &v85, v63);
v64 = *(_QWORD *)(a1 + 584);
v65 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 674);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
ToggleButton = GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onAllowFlipping,
(unsigned __int8)v50,
v65,
(__int64)&v85,
a1,
v64,
0.60000002,
0.34999999,
0.0,
v66,
(const char *)&qword_140704F78,
0,
0,
nullptr);
(*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(*(_QWORD *)ToggleButton + 64LL))(ToggleButton, 3);
*(_QWORD *)&v92 = &v87;
v88 = 12;
v89 = 15;
strcpy((char *)&v87, "Allow Flip Y");
BYTE13(v87) = 0;
HIWORD(v87) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -66.0);
cocos2d::CCPoint::operator+(v90, &v85, v68);
v69 = *(_QWORD *)(a1 + 584);
v70 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 675);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
v72 = GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onAllowFlipping,
(unsigned __int8)v50,
v70,
(__int64)&v85,
a1,
v69,
0.60000002,
0.34999999,
0.0,
v71,
(const char *)&qword_140704F78,
0,
0,
nullptr);
(*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(*(_QWORD *)v72 + 64LL))(v72, 4);
*(_QWORD *)&v92 = &v87;
v88 = 14;
v89 = 15;
strcpy((char *)&v87, "Ignore Corners");
HIBYTE(v87) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -88.0);
cocos2d::CCPoint::operator+(v90, &v85, v73);
v74 = *(_QWORD *)(a1 + 584);
v75 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 678);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onIgnoreCorners,
(unsigned __int8)v50,
v75,
(__int64)&v85,
a1,
v74,
0.60000002,
0.34999999,
0.0,
v76,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v92 = &v87;
v87 = 0;
v88 = 0;
v89 = 0;
*(_QWORD *)&v87 = sub_14003D460(0x20u);
v88 = 23;
v89 = 31;
strcpy((char *)v87, "Use nearby as reference");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -110.0);
cocos2d::CCPoint::operator+(v90, &v85, v77);
v78 = *(_QWORD *)(a1 + 584);
v79 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 676);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onNearbyReference,
(unsigned __int8)v50,
v79,
(__int64)&v85,
a1,
v78,
0.60000002,
0.34999999,
0.0,
v80,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v92 = &v87;
v88 = 11;
v89 = 15;
*(_QWORD *)&v87 = 0x6C656420746E6F44LL;
*((_QWORD *)&v87 + 1) = 6648933;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v91, 0.0, -132.0);
cocos2d::CCPoint::operator+(v90, &v85, v81);
v82 = *(_QWORD *)(a1 + 584);
v83 = *(_QWORD *)(a1 + 552);
LOBYTE(v50) = *(_BYTE *)(a1 + 677);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v87,
(__int64)SetupSmartBlockLayer::onDontDelete,
(unsigned __int8)v50,
v83,
(__int64)&v85,
a1,
v82,
0.60000002,
0.34999999,
0.0,
v84,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_DWORD *)(a1 + 640) = -1;
return 1;
}