//
// ShareLevelLayer::onGuidelines from 0x140631230 to 0x140631386 (342 bytes)
//
// 2 xrefs:
// > ShareLevelLayer::init @ 0x140630fc2
// > ??> @ 0x140930ac4
//
// 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:29 +0000
//
// Hidden C++ exception states: #wind=1
__int64 ShareLevelLayer::onGuidelines()
{
_QWORD *v0; // rax
_OWORD *v1; // rcx
const char *v2; // rdx
__int64 v3; // r8
__int64 v4; // rax
cocos2d::CCObject *v5; // rbx
__int128 v7; // [rsp+50h] [rbp-48h] BYREF
__int64 v8; // [rsp+60h] [rbp-38h]
__int64 v9; // [rsp+68h] [rbp-30h]
_BYTE v10[40]; // [rsp+70h] [rbp-28h] BYREF
v7 = 0;
v0 = sub_14003D460(0x1E0u);
*(_QWORD *)&v7 = v0;
v8 = 464;
v9 = 479;
v1 = v0;
v2 = "Hateful, abusive, or otherwise inappropriate content, whether it is in the level, name, or description may lead t"
"o deletion. The same applies to levels abusing cheats or exploits. Stealing assets from other levels is <"
"co>discouraged and may stop a level from being rated depending on the context, severity, credit, and more. Le"
"vels verified with hacks cannot be rated.\n"
"These guidelines and their enforcement are entirely at RobTop's discretion.";
v3 = 3;
do
{
*v1 = *(_OWORD *)v2;
v1[1] = *((_OWORD *)v2 + 1);
v1[2] = *((_OWORD *)v2 + 2);
v1[3] = *((_OWORD *)v2 + 3);
v1[4] = *((_OWORD *)v2 + 4);
v1[5] = *((_OWORD *)v2 + 5);
v1[6] = *((_OWORD *)v2 + 6);
v1 += 8;
*(v1 - 1) = *((_OWORD *)v2 + 7);
v2 += 128;
--v3;
}
while ( v3 );
*v1 = *(_OWORD *)v2;
v1[1] = *((_OWORD *)v2 + 1);
v1[2] = *((_OWORD *)v2 + 2);
v1[3] = *((_OWORD *)v2 + 3);
v1[4] = *((_OWORD *)v2 + 4);
*((_BYTE *)v0 + 464) = 0;
v4 = sub_14003F4F0((__int64)v10, (__int64)&v7);
v5 = FLAlertLayer::create(0, (int)"Upload Guidelines", v4, (__int64)"OK", 0, 1136525312, 0, 0, 1065353216);
sub_14003D310((__int64)&v7);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5);
}