//
// sub_10011836C from 0x10011836c to 0x1001184f8 (396 bytes)
//
// 2 xrefs:
// > ParentalGateLayer::init @ 0x100118358
// > ParentalGateLayer::onDone @ 0x100118574
//
// This function is hookable on this platform (idp: arm, 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 10:59:11 +0000
//
__int64 __fastcall sub_10011836C(__int64 a1)
{
int v2; // w21
int v3; // w20
int v4; // w8
int v5; // w22
int v6; // w8
int v7; // w8
__int64 v8; // x0
char *CString; // x0
std::string __str; // [xsp+18h] [xbp-58h] BYREF
v2 = rand();
v3 = rand();
v4 = v2 % 88;
if ( (unsigned __int8)(((-51 * (_BYTE)v4 - 76) << 7) | ((unsigned __int8)(-51 * v4 - 76) >> 1)) <= 0x18u )
{
do
v4 = rand() % 88;
while ( (unsigned __int8)(((-51 * (_BYTE)v4 - 76) << 7) | ((unsigned __int8)(-51 * v4 - 76) >> 1)) < 0x19u );
}
v5 = v4 + 12;
v6 = v3 % 88;
if ( (unsigned __int8)(((-51 * (_BYTE)v6 - 76) << 7) | ((unsigned __int8)(-51 * v6 - 76) >> 1)) <= 0x18u )
{
do
v6 = rand() % 88;
while ( (unsigned __int8)(((-51 * (_BYTE)v6 - 76) << 7) | ((unsigned __int8)(-51 * v6 - 76) >> 1)) < 0x19u );
}
v7 = v6 + 12;
*(_DWORD *)(a1 + 752) = v7 * v5;
v8 = sub_1003065B0("%i x %i = ", v5, v7);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_100009900(&__str, CString);
std::string::operator=((std::string *)(a1 + 696), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
std::string::assign((std::string *)(a1 + 720), "");
return sub_10011DE5C(a1);
}