//
// GameToolbox::createNotifyToggles from 0x14006dc10 to 0x14006e28c (1660 bytes)
//
// 3 xrefs:
// > ShareListLayer::init @ 0x140432b38
// > ShareLevelLayer::setupStars @ 0x140631805
// > ??> @ 0x1409116c0
//
// 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:25:48 +0000
//
struct cocos2d::CCLabelBMFont **__fastcall GameToolbox::createNotifyToggles(
struct cocos2d::CCLabelBMFont **a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
float *a7,
float a8,
float a9)
{
int v9; // ebp
__int64 v12; // r12
__int64 v13; // r15
struct cocos2d::CCLabelBMFont *v14; // rax
struct cocos2d::CCLabelBMFont *v15; // rbx
float v16; // xmm6_4
double v17; // xmm0_8
struct cocos2d::CCLabelBMFont *v18; // rbx
float v19; // xmm9_4
struct cocos2d::CCSprite *v20; // rax
struct cocos2d::CCSprite *v21; // rdi
__int64 v22; // rbx
struct cocos2d::CCLabelBMFont *v23; // rbx
float v24; // xmm6_4
double v25; // xmm0_8
float *v26; // r14
float v27; // xmm8_4
struct cocos2d::CCLabelBMFont *v28; // rdi
float v29; // xmm6_4
__int64 v30; // rbx
float v31; // xmm7_4
__int64 v32; // rax
__int64 v33; // rax
struct cocos2d::CCLabelBMFont *v34; // rdi
__int64 v35; // rbx
__int64 v36; // rax
__int64 v37; // rax
float v38; // xmm13_4
int v39; // eax
__int64 v40; // rax
struct cocos2d::CCSprite *v41; // rdi
struct cocos2d::CCSprite *v42; // rbx
__int64 v43; // r9
cocos2d::CCMenuItem *v44; // r12
__int64 v45; // rbx
__int64 v46; // rax
const char *v47; // rcx
struct cocos2d::CCSprite *v48; // r14
__int64 v49; // rbx
__int64 v50; // rbx
__int64 v51; // rax
float *v52; // rax
__int64 v53; // rbx
float v54; // xmm9_4
__int64 v55; // rax
__int64 v56; // rax
const char *v57; // rcx
struct cocos2d::CCLabelBMFont *v58; // r15
float v59; // xmm6_4
double v60; // xmm0_8
float v61; // xmm8_4
float v62; // xmm8_4
float *v63; // rax
__int64 v64; // rbx
float v65; // xmm6_4
float v66; // xmm9_4
float v67; // xmm0_4
int v68; // eax
__int64 v69; // rax
__int64 v70; // rax
char v72[8]; // [rsp+20h] [rbp-118h] BYREF
char v73[8]; // [rsp+28h] [rbp-110h] BYREF
char v74[8]; // [rsp+30h] [rbp-108h] BYREF
char v75[8]; // [rsp+38h] [rbp-100h] BYREF
char v76[8]; // [rsp+40h] [rbp-F8h] BYREF
char v77[8]; // [rsp+48h] [rbp-F0h] BYREF
float v78; // [rsp+140h] [rbp+8h] BYREF
float v79; // [rsp+144h] [rbp+Ch]
char v80; // [rsp+148h] [rbp+10h] BYREF
__int64 v81; // [rsp+150h] [rbp+18h]
__int64 v82; // [rsp+158h] [rbp+20h]
v82 = a4;
v81 = a3;
v9 = 0;
v12 = a4;
v13 = a3;
*a1 = nullptr;
a1[1] = nullptr;
a1[2] = nullptr;
a1[3] = nullptr;
a1[4] = nullptr;
a1[5] = nullptr;
a1[6] = nullptr;
a1[7] = nullptr;
v14 = cocos2d::CCLabelBMFont::create("Notify", "goldFont.fnt");
*a1 = v14;
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v14 + 160LL))(v14);
v15 = *a1;
v16 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)*a1 + 320LL))(*a1);
v17 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v15 + 168LL))(v15);
v18 = *a1;
v19 = *(float *)&v17 * v16;
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)*a1 + 320LL))(*a1);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 168LL))(v18);
v20 = cocos2d::CCSprite::createWithSpriteFrameName("notification_icon_001.png");
a1[1] = v20;
v21 = v20;
v22 = *(_QWORD *)v20;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v20 + 320LL))(v20);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v22 + 160))(v21);
v23 = a1[1];
v24 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 320LL))(v23);
v25 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 168LL))(v23);
v26 = a7;
v27 = *(float *)&v25 * v24;
v28 = a1[1];
v29 = a9;
v30 = *(_QWORD *)v28;
v31 = (float)(*a7 + 15.0) - (float)((float)((float)(v27 + 4.0) + v19) * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)(v27 * 0.5) + v31, a9 - 1.0);
cocos2d::CCNode::convertToNodeSpace(a2, &v80, v32);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v30 + 184))(v28, v33);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 456LL))(a2, a1[1], 2);
v34 = *a1;
v35 = *(_QWORD *)*a1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)((float)(v27 + v31) + 4.0) + (float)(v19 * 0.5), v29);
cocos2d::CCNode::convertToNodeSpace(a2, &v80, v36);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v35 + 184))(v34, v37);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 456LL))(a2, *a1, 2);
v38 = a8;
do
{
while ( 1 )
{
v39 = 0;
if ( v9 == 1 )
v39 = 10;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 0.0, (float)(-5.0 - (float)((float)v9 * v38)) - (float)v39);
cocos2d::CCPoint::operator+(v26, &v78, v40);
v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png");
v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 160LL))(v41);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v42 + 160LL))(v42);
v43 = a6;
if ( !v9 )
v43 = a5;
v44 = CCMenuItemToggler::create((int)v42, (int)v41, v12, v43);
(*(void (__fastcall **)(__int64, cocos2d::CCMenuItem *))(*(_QWORD *)v13 + 464LL))(v13, v44);
v45 = *(_QWORD *)v44;
cocos2d::CCNode::convertToNodeSpace(v13, v72, &v78);
(*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(v45 + 184))(v44, v46);
*(_DWORD *)(*((_QWORD *)v44 + 47) + 372LL) = 1068708659;
*(_DWORD *)(*((_QWORD *)v44 + 48) + 372LL) = 1068708659;
CCMenuItemToggler::toggle((__int64)v44, *((unsigned __int8 *)v44 + 392));
v47 = "GJ_followIcon_001.png";
if ( !v9 )
v47 = "GJ_sFriendsIcon_001.png";
v48 = cocos2d::CCSprite::createWithSpriteFrameName(v47);
v49 = *(_QWORD *)v48;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v48 + 320LL))(v48);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v49 + 160))(v48);
v50 = *(_QWORD *)v48;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v50 + 288))(v48, v51);
v52 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 320LL))(v41);
v53 = *(_QWORD *)v48;
v54 = (float)((float)((float)(*v52 * 0.5) * 0.69999999) + v78) + 6.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v54, v79);
cocos2d::CCNode::convertToNodeSpace(a2, v75, v55);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v53 + 184))(v48, v56);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a2 + 456LL))(a2, v48, 2);
v57 = "Followers";
if ( !v9 )
v57 = "Friends";
v58 = cocos2d::CCLabelBMFont::create(v57, (const char *)&qword_140704F78);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v58 + 160LL))(v58);
v59 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v58 + 320LL))(v58) + 4);
v60 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v58 + 168LL))(v58);
v61 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 320LL))(v41) + 4);
v62 = (float)((float)((float)((float)(v61 * 0.69999999) + (float)(*(float *)&v60 * v59)) * 0.5) + v79) + 4.0;
v63 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v48 + 320LL))(v48);
v64 = *(_QWORD *)v58;
v65 = *v63;
*(float *)&v60 = (*(float (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v48 + 168LL))(v48);
v66 = v54 + v78;
v67 = *(float *)&v60 * v65;
v68 = 5;
if ( !v9 )
v68 = 7;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, (float)((float)(v66 + v67) * 0.5) - (float)v68, v62);
cocos2d::CCNode::convertToNodeSpace(a2, v77, v69);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v64 + 184))(v58, v70);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 456LL))(a2, v58, 2);
if ( v9 )
break;
a1[2] = v44;
v9 = 1;
v12 = v82;
a1[4] = v48;
v26 = a7;
a1[6] = v58;
v13 = v81;
}
++v9;
a1[3] = v44;
v12 = v82;
a1[5] = v48;
v26 = a7;
a1[7] = v58;
v13 = v81;
}
while ( v9 < 2 );
return a1;
}