//
// ProfilePage::createOfflineNotice from 0x1405519f0 to 0x140551c52 (610 bytes)
//
// 2 xrefs:
// > ProfilePage::init @ 0x1405509be
// > ??> @ 0x14092bdfc
//
// 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:34:08 +0000
//
__int64 __fastcall ProfilePage::createOfflineNotice(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 *v4; // rdi
__int64 v5; // rbx
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // r8
__int64 v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
__int64 v14; // rcx
__int64 v15; // rax
__int64 v16; // rcx
int v17; // eax
cocos2d::CCObject *v18; // rsi
__int64 v19; // rdi
__int64 v20; // rbx
__int64 v21; // rax
__int64 v22; // rax
_BYTE v24[16]; // [rsp+30h] [rbp-38h] BYREF
float v25; // [rsp+70h] [rbp+8h] BYREF
float v26; // [rsp+74h] [rbp+Ch]
char v27; // [rsp+78h] [rbp+10h] BYREF
char v28; // [rsp+80h] [rbp+18h] BYREF
*(_BYTE *)(a1 + 596) = 1;
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v25);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v24, 0.0, 0.0, 80.0, 80.0);
v4 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v3);
v5 = *v4;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v27, 260.0, 110.0);
(*(void (__fastcall **)(__int64 *, __int64))(v5 + 312))(v4, v6);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v4,
0xFFFFFFFFLL);
v7 = *v4;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v25 * 0.5, v26 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v7 + 184))(v4, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (const struct cocos2d::CCPoint *)&unk_14090B4A8);
v11 = cocos2d::CCLabelBMFont::create("Disabled by\nParental Controls", "goldFont.fnt", v10, 1, v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL))(v11);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v11);
v12 = *(_QWORD *)v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, v25 * 0.5, v26 * 0.5);
(*(void (__fastcall **)(__int64, __int64))(v12 + 184))(v11, v13);
v15 = cocos2d::CCMenu::create(v14);
v16 = *(_QWORD *)(a1 + 584);
*(_QWORD *)(a1 + 552) = v15;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v15, 10);
v17 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v18 = CCMenuItemSpriteExtra::create(v17, 0, a1, (__int64)ProfilePage::onClose);
*((_DWORD *)v18 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v18);
v19 = *(_QWORD *)v18;
v20 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v27,
(float)((float)(v25 * 0.5) - 130.0) + 5.0,
(float)((float)(v26 * 0.5) + 55.0) - 5.0);
cocos2d::CCNode::convertToNodeSpace(v20, &v28, v21);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(v19 + 184))(v18, v22);
}