//
// ShareListLayer::init from 0x140309b20 to 0x14030acb5 (4501 bytes)
//
// 2 xrefs:
// > LevelListLayer::onShare @ 0x14030804d
// > ??> @ 0x1406d4640
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=8
bool ShareListLayer::init(ShareListLayer *a1, GJLevelList *a2)
{
bool result; // al
__int64 v5; // rcx
__int64 v6; // rax
cocos2d::CCTouchDispatcher *v7; // rax
_BOOL8 v8; // rdx
_BOOL8 v9; // rdx
__int64 v10; // rcx
cocos2d::CCDirector *v11; // rax
cocos2d::CCLayer *v12; // rax
struct cocos2d::CCRect *v13; // rax
struct cocos2d::extension::CCScale9Sprite *v14; // rdi
cocos2d::extension::CCScale9Sprite_vtbl *v15; // rbx
const cocos2d::CCSize *v16; // rax
size_t v17; // r14
float v18; // xmm0_4
cocos2d::extension::CCScale9Sprite_vtbl *v19; // rbx
const cocos2d::CCPoint *v20; // rax
const char *p_Buf2; // rcx
struct cocos2d::CCLabelBMFont *v22; // rsi
float v23; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v24; // rbx
const cocos2d::CCPoint *v25; // rax
const struct cocos2d::CCPoint *v26; // rax
char *v27; // rdi
float v28; // xmm0_4
__int64 v29; // rax
float v30; // xmm0_4
struct cocos2d::CCRect *v31; // rax
struct cocos2d::extension::CCScale9Sprite *v32; // rbx
void **v33; // rcx
void **v34; // rdi
unsigned __int64 v35; // rsi
size_t v36; // rbx
size_t v37; // r8
void **v38; // rdx
size_t v39; // r8
size_t v40; // r12
unsigned __int64 i; // rax
void **v42; // rsi
void **v43; // rcx
unsigned __int64 v44; // rdx
unsigned __int64 v45; // r15
_BYTE *v46; // rbx
float v48; // xmm6_4
unsigned __int64 v49; // rbx
char *v50; // r9
void **v51; // rax
size_t v52; // r8
const struct cocos2d::CCPoint *v53; // rax
char *v54; // rbx
float v55; // xmm0_4
double v56; // xmm0_8
__int64 v57; // rcx
cocos2d::CCMenu *v58; // rax
__int64 v59; // rcx
cocos2d::CCArray *v60; // rsi
const char *v61; // rdi
ButtonSprite *v62; // rax
CCMenuItemSpriteExtra *v63; // rbx
ButtonSprite *v64; // rax
CCMenuItemSpriteExtra *v65; // rbx
struct cocos2d::CCPoint v66; // rax
struct cocos2d::CCSprite *v67; // rax
CCMenuItemSpriteExtra *v68; // rdi
float v69; // xmm0_4
CCMenuItemSpriteExtra_vtbl *v70; // rbx
struct cocos2d::CCPoint v71; // rax
double v72; // xmm0_8
float *v73; // rax
float *v74; // rbx
struct cocos2d::CCPoint v75; // rax
CCMenuItemToggler *ToggleButton; // rax
char *v77; // rdi
float v78; // xmm0_4
__int64 v79; // rbx
struct cocos2d::CCPoint v80; // rax
__int64 v81; // rcx
cocos2d::CCArray *v82; // rsi
double v83; // xmm0_8
float *v84; // rax
float *v85; // rbx
struct cocos2d::CCPoint v86; // rax
CCMenuItemToggler *v87; // rax
_WORD *v88; // rax
char *v89; // rdi
float v90; // xmm0_4
__int64 v91; // rbx
struct cocos2d::CCPoint v92; // rax
unsigned int m_difficulty; // edx
cocos2d::CCString *v94; // rax
const char *CString; // rax
void **v96; // rcx
struct cocos2d::CCSprite *v97; // rsi
float v98; // xmm0_4
cocos2d::CCSprite_vtbl *v99; // rbx
const cocos2d::CCPoint *v100; // rax
cocos2d::CCString *v101; // rax
const char *v102; // rax
struct cocos2d::CCLabelBMFont *v103; // rdi
float v104; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v105; // rbx
__int64 v106; // rax
float v107; // xmm0_4
__int64 v108; // rax
void *v109; // rcx
void *v110; // rcx
void *v111; // rcx
__int128 *v112; // [rsp+88h] [rbp-80h] BYREF
float v113; // [rsp+90h] [rbp-78h]
__int128 v114; // [rsp+98h] [rbp-70h] BYREF
__int64 v115; // [rsp+A8h] [rbp-60h]
__int64 v116; // [rsp+B0h] [rbp-58h]
cocos2d::CCRect v117; // [rsp+B8h] [rbp-50h] BYREF
struct cocos2d::CCPoint v118; // [rsp+C8h] [rbp-40h] BYREF
cocos2d::CCPoint v119; // [rsp+D0h] [rbp-38h] BYREF
cocos2d::CCSize v120; // [rsp+D8h] [rbp-30h] BYREF
cocos2d::CCRect v121; // [rsp+E0h] [rbp-28h] BYREF
__int128 Buf2; // [rsp+F0h] [rbp-18h] BYREF
__int64 v123; // [rsp+100h] [rbp-8h]
unsigned __int64 v124; // [rsp+108h] [rbp+0h]
void *v125[2]; // [rsp+110h] [rbp+8h] BYREF
__int64 v126; // [rsp+120h] [rbp+18h]
unsigned __int64 v127; // [rsp+128h] [rbp+20h]
void *Block[2]; // [rsp+130h] [rbp+28h] BYREF
__int64 v129; // [rsp+140h] [rbp+38h]
unsigned __int64 v130; // [rsp+148h] [rbp+40h]
void *v131[2]; // [rsp+150h] [rbp+48h] BYREF
size_t v132; // [rsp+160h] [rbp+58h]
unsigned __int64 v133; // [rsp+168h] [rbp+60h]
void *Buf1[2]; // [rsp+170h] [rbp+68h] BYREF
size_t v135; // [rsp+180h] [rbp+78h]
unsigned __int64 v136; // [rsp+188h] [rbp+80h]
__int128 v137; // [rsp+190h] [rbp+88h] BYREF
__int64 v138; // [rsp+1A0h] [rbp+98h]
__int64 v139; // [rsp+1A8h] [rbp+A0h]
LODWORD(v112) = -1778384896;
result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v112);
if ( !result )
return result;
if ( !a1->m_forcePrioRegistered )
{
a1->m_forcePrioRegistered = 1;
v6 = cocos2d::CCDirector::sharedDirector(v5);
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);
cocos2d::CCTouchDispatcher::registerForcePrio(v7, a1, 2);
}
a1->m_list = a2;
cocos2d::CCObject::retain(a2);
LOBYTE(v8) = 1;
a1->setTouchEnabled(a1, v8);
LOBYTE(v9) = 1;
a1->setKeypadEnabled(a1, v9);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::getWinSize(v11);
v12 = (cocos2d::CCLayer *)cocos2d::CCLayer::create();
a1->m_mainLayer = v12;
a1->addChild_1(a1, v12);
cocos2d::CCRect::CCRect(&v117, 0.0, 0.0, 80.0, 80.0);
v14 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v13);
v15 = v14->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v112, 420.0, 300.0);
v15->setContentSize(v14, v16);
v17 = -1;
v18 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v14,
0xFFFFFFFFLL);
v19 = v14->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v18, v113 * 0.5);
v19->setPosition_0(v14, v20);
sub_14003BDB0((__int64)&Buf2, (__int64)&a1->m_list->m_listName);
p_Buf2 = (const char *)&Buf2;
if ( v124 > 0xF )
p_Buf2 = (const char *)Buf2;
v22 = cocos2d::CCLabelBMFont::create(p_Buf2, "goldFont.fnt");
sub_14003A830((__int64)&Buf2);
v23 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
v22);
v24 = v22->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v23, v113 * 0.5);
v24->setPosition_0(v22, v25);
v112 = &v114;
v114 = 0;
v115 = 0;
v116 = 15;
*(_QWORD *)&v114 = sub_14003AA10(0x40u);
v115 = 53;
v116 = 63;
strcpy((char *)v114, "You cannot change the name once it is shared.");
cocos2d::CCPoint::CCPoint(1.9429953e-19, 0.5);
v27 = TextArea::create((__int64)&v114, "chatFont.fnt", 1.0, 400.0, v26, 1101004800, 0);
v28 = ((float (__fastcall *)(cocos2d::CCLayer *, char *))a1->m_mainLayer->addChild_1)(a1->m_mainLayer, v27);
cocos2d::CCPoint::CCPoint(v28, 0.0);
v29 = (__int64)v22->getPosition_0(v22);
cocos2d::CCPoint::operator+(v29, &v112);
(*(void (__fastcall **)(char *, __int128 **))(*(_QWORD *)v27 + 184LL))(v27, &v112);
v30 = (*(float (__fastcall **)(char *))(*(_QWORD *)v27 + 160LL))(v27);
cocos2d::CCPoint::CCPoint(v30, v113 * 0.5);
cocos2d::CCRect::CCRect(&v121, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCRect::CCRect(&v117, &v121);
v32 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v31);
cocos2d::CCSize::CCSize(&v120, 380.0, 80.0);
v32->setContentSize(v32, &v120);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v32, -1);
v32->setPosition_0(v32, &v119);
LOWORD(v112) = 16514;
BYTE2(v112) = 33;
v32->setColor(&v32->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v112);
*(_OWORD *)v125 = 0;
v126 = 0;
v127 = 15;
v125[0] = sub_14003AA10(0x20u);
v126 = 25;
v127 = 31;
strcpy((char *)v125[0], "(No description provided)");
GJLevelList::getUnpackedDescription((__int64)a1->m_list, (__int64)Buf1);
Buf2 = 0;
v123 = 0;
v124 = 15;
LOBYTE(Buf2) = 0;
v33 = Buf1;
v34 = (void **)Buf1[0];
v35 = v136;
if ( v136 > 0xF )
v33 = (void **)Buf1[0];
v36 = v135;
v37 = v135;
if ( v135 )
v37 = 0;
if ( memcmp(v33, &Buf2, v37) || v36 )
{
v38 = Buf1;
if ( v35 > 0xF )
v38 = v34;
v39 = -1;
do
++v39;
while ( *((_BYTE *)v38 + v39) );
sub_14003CCE0(v125, v38, v39);
}
v137 = 0;
v138 = 1;
v139 = 15;
LOWORD(v137) = 160;
*(_OWORD *)v131 = 0;
v40 = 0;
v132 = 0;
v133 = 15;
LOBYTE(v131[0]) = 0;
for ( i = 0; ; i = v132 + v49 )
{
v42 = v125;
v43 = (void **)v125[0];
v44 = v127;
if ( v127 > 0xF )
v42 = (void **)v125[0];
v45 = v126;
if ( !v126 )
break;
if ( i > v126 - 1 )
goto LABEL_29;
v46 = memchr((char *)v42 + i, -96, v126 - i);
if ( !v46 )
goto LABEL_28;
while ( *v46 == 0xA0 ? 0 : *v46 < 0xA0u ? -1 : 1 )
{
v46 = memchr(v46 + 1, -96, (char *)v42 + v45 - (v46 + 1));
if ( !v46 )
goto LABEL_28;
}
v49 = v46 - (_BYTE *)v42;
if ( v49 == -1 )
{
LABEL_28:
v44 = v127;
LABEL_29:
v43 = (void **)v125[0];
break;
}
v50 = (char *)v131;
if ( v133 > 0xF )
v50 = (char *)v131[0];
sub_140041FF0(v125, v49, 1u, v50, v40);
v40 = v132;
}
v48 = 1.0;
if ( v45 >= 0x12C )
{
LODWORD(v45) = 300;
LABEL_38:
v48 = (float)((float)((float)(180 - (int)v45) / 300.0) * 0.2) + 0.80000001;
goto LABEL_39;
}
if ( (int)v45 > 70 )
goto LABEL_38;
LABEL_39:
v117.origin = (cocos2d::CCPoint)&Buf2;
v51 = v125;
if ( v44 > 0xF )
v51 = v43;
Buf2 = 0;
v123 = 0;
v124 = 0;
v52 = -1;
do
++v52;
while ( *((_BYTE *)v51 + v52) );
sub_14003A930(&Buf2, v51, v52);
cocos2d::CCPoint::CCPoint(0.0, 0.5);
v54 = TextArea::create((__int64)&Buf2, "chatFont.fnt", 1.0, 320.0 / v48, v53, 1101004800, 1);
v55 = ((float (__fastcall *)(cocos2d::CCLayer *, char *))a1->m_mainLayer->addChild_1)(a1->m_mainLayer, v54);
cocos2d::CCPoint::CCPoint(v55, 0.0);
cocos2d::CCPoint::operator+(&v119, &v112);
v56 = (*(double (__fastcall **)(char *, __int128 **))(*(_QWORD *)v54 + 184LL))(v54, &v112);
(*(void (__fastcall **)(char *))(*(_QWORD *)v54 + 160LL))(v54);
a1->m_joystickConnected = -1;
v58 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v57);
a1->m_buttonMenu = v58;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v58, 10);
v60 = (cocos2d::CCArray *)cocos2d::CCArray::create(v59);
v61 = "GJ_button_01.png";
v62 = ButtonSprite::create_1("Cancel", 0, 0, 1.0, 0, "goldFont.fnt", "GJ_button_01.png", 0.0);
v63 = CCMenuItemSpriteExtra::create(v62, nullptr, a1, (cocos2d::SEL_MenuHandler *)AudioAssetsBrowser::onClose);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v63);
cocos2d::CCArray::addObject(v60, v63);
if ( a1->m_list->m_uploaded )
v61 = "GJ_button_04.png";
v64 = ButtonSprite::create_1("Share List", 0, 0, 1.0, 0, "goldFont.fnt", v61, 0.0);
v65 = CCMenuItemSpriteExtra::create(v64, nullptr, a1, (cocos2d::SEL_MenuHandler *)ShareListLayer::onShare);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v65);
cocos2d::CCArray::addObject(v60, v65);
cocos2d::CCPoint::CCPoint(*(float *)&v56, v113 * 0.5);
v66 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v118);
GameToolbox::alignItemsHorisontally(v60, 15.0, v66, 0);
v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v68 = CCMenuItemSpriteExtra::create(v67, nullptr, a1, (cocos2d::SEL_MenuHandler *)ShareListLayer::onInfo);
HIDWORD(v68->m_pfnSelector.adj) = 0x40000000;
v69 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(
a1->m_buttonMenu,
v68);
v70 = v68->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v69, (float)((float)(v113 * 0.5) - 210.0) + 20.0);
v71 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v118);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v70->setPosition_0)(v68, v71);
v117.origin = (cocos2d::CCPoint)&v114;
v115 = 8;
v116 = 15;
v114 = 0x64657473696C6E55uLL;
LOBYTE(v68) = a1->m_list->m_unlisted;
v72 = cocos2d::CCPoint::CCPoint(0.0, 8.0);
v74 = v73;
cocos2d::CCPoint::CCPoint(*(float *)&v72, (float)(v113 * 0.5) - 120.0);
ToggleButton = GameToolbox::createToggleButton(
(const char *)&v114,
(cocos2d::SEL_MenuHandler *)ShareListLayer::onUnlisted,
(bool)v68,
a1->m_buttonMenu,
v75,
a1,
a1->m_mainLayer,
0.80000001,
0.40000001,
0.0,
v74,
(const char *)&qword_14052A4D8,
0,
0,
nullptr);
ToggleButton->setTag(ToggleButton, 0);
v117.origin = (cocos2d::CCPoint)&v114;
v114 = 0;
v115 = 0;
v116 = 15;
*(_QWORD *)&v114 = sub_14003AA10(0xB0u);
v115 = 162;
v116 = 175;
strcpy(
(char *)v114,
"Makes it so that your list can only be found by searching for the exact ID. It will not be visible o"
"n your profile, from search, or anywhere else.");
Buf2 = 0;
v123 = 4;
v124 = 15;
strcpy((char *)&Buf2, "Info");
v77 = InfoAlertButton::create((__int64)&Buf2, (__int64)&v114);
v78 = ((float (__fastcall *)(cocos2d::CCMenu *, char *))a1->m_buttonMenu->addChild_1)(a1->m_buttonMenu, v77);
v79 = *(_QWORD *)v77;
cocos2d::CCPoint::CCPoint(v78, (float)((float)(v113 * 0.5) - 120.0) - 30.0);
v80 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v118);
(*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v79 + 184))(v77, v80);
v82 = (cocos2d::CCArray *)cocos2d::CCArray::create(v81);
v117.origin = (cocos2d::CCPoint)&v114;
v115 = 12;
v116 = 15;
strcpy((char *)&v114, "Friends Only");
BYTE13(v114) = 0;
HIWORD(v114) = 0;
LOBYTE(v77) = a1->m_list->m_friendsOnly;
v83 = cocos2d::CCPoint::CCPoint(6.890121e22, 8.0);
v85 = v84;
cocos2d::CCPoint::CCPoint(*(float *)&v83, (float)(v113 * 0.5) + 40.0);
v87 = GameToolbox::createToggleButton(
(const char *)&v114,
(cocos2d::SEL_MenuHandler *)ShareListLayer::onUnlisted,
(bool)v77,
a1->m_buttonMenu,
v86,
a1,
a1->m_mainLayer,
0.80000001,
0.40000001,
0.0,
v85,
(const char *)&qword_14052A4D8,
0,
0,
v82);
a1->m_friendsOnlyToggler = v87;
v87->setTag(v87, 1);
a1->m_friendsOnlyLabel = (cocos2d::CCLabelBMFont *)cocos2d::CCArray::objectAtIndex(v82, 1u);
v117.origin = (cocos2d::CCPoint)&v114;
v114 = 0;
v115 = 0;
v116 = 15;
v88 = sub_14003AA10(0xC0u);
*(_QWORD *)&v114 = v88;
v115 = 179;
v116 = 191;
qmemcpy(
v88,
"Makes it so that your list can only be found by friends who search for the exact ID. It will not"
" be visible on your profile, from search, or anywhere else",
178);
v88[89] = *(unsigned __int8 *)(0x140000000LL + 5802882);
Buf2 = 0;
v123 = 4;
v124 = 15;
strcpy((char *)&Buf2, "Info");
v89 = InfoAlertButton::create((__int64)&Buf2, (__int64)&v114);
v90 = ((float (__fastcall *)(cocos2d::CCMenu *, char *))a1->m_buttonMenu->addChild_1)(a1->m_buttonMenu, v89);
v91 = *(_QWORD *)v89;
cocos2d::CCPoint::CCPoint(v90, (float)((float)(v113 * 0.5) + 40.0) - 30.0);
v92 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v118);
(*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v91 + 184))(v89, v92);
ShareListLayer::updateUnlistedF(a1);
m_difficulty = a1->m_list->m_difficulty;
if ( m_difficulty )
{
if ( m_difficulty > 0xA )
{
m_difficulty = 0;
}
else if ( m_difficulty == 6 || m_difficulty == 7 )
{
++m_difficulty;
}
else if ( m_difficulty == 8 )
{
m_difficulty = 6;
}
v94 = cocos2d::CCString::createWithFormat("diffIcon_%02d_btn_001.png", m_difficulty);
CString = cocos2d::CCString::getCString(v94);
*(_OWORD *)Block = 0;
v129 = 0;
v130 = 0;
do
++v17;
while ( CString[v17] );
sub_14003A930(Block, CString, v17);
}
else
{
*(_OWORD *)Block = 0;
v129 = 0;
v130 = 15;
Block[0] = sub_14003AA10(0x20u);
v129 = 25;
v130 = 31;
strcpy((char *)Block[0], "diffIcon_auto_btn_001.png");
}
v96 = Block;
if ( v130 > 0xF )
v96 = (void **)Block[0];
v97 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v96);
v98 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v97,
1);
v99 = v97->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v98, (float)(v113 * 0.5) - 50.0);
v99->setPosition_0(v97, v100);
v101 = cocos2d::CCString::createWithFormat(
"%i Levels",
a1->m_list->m_levels._Mypair._Myval2._Mylast - a1->m_list->m_levels._Mypair._Myval2._Myfirst);
v102 = cocos2d::CCString::getCString(v101);
v103 = cocos2d::CCLabelBMFont::create(v102, "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v103->setScale_0)(v103);
v104 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v103,
1);
v105 = v103->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v104, 0.0);
v107 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64))v105->setAnchorPoint)(v103, v106);
cocos2d::CCPoint::CCPoint(v107, 30.0);
v108 = (__int64)v97->getPosition_0(v97);
cocos2d::CCPoint::operator+(v108, &v112);
v103->setPosition_0(v103, (const cocos2d::CCPoint *)&v112);
if ( v130 > 0xF )
{
v109 = Block[0];
if ( v130 + 1 >= 0x1000 )
{
v109 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v109 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v109);
}
v129 = 0;
v130 = 15;
LOBYTE(Block[0]) = 0;
if ( v133 > 0xF )
{
v110 = v131[0];
if ( v133 + 1 >= 0x1000 )
{
v110 = *((void **)v131[0] - 1);
if ( (unsigned __int64)((char *)v131[0] - (char *)v110 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v110);
}
sub_14003A830((__int64)&v137);
sub_14003A830((__int64)Buf1);
if ( v127 > 0xF )
{
v111 = v125[0];
if ( v127 + 1 >= 0x1000 )
{
v111 = *((void **)v125[0] - 1);
if ( (unsigned __int64)((char *)v125[0] - (char *)v111 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v111);
}
return 1;
}