//
// GameToolbox::openRateURL from 0x3cf860 to 0x3cf8c0 (96 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:39 +0000
//
int __fastcall GameToolbox::openRateURL(int a1, unsigned __int8 *a2, int a3, int a4)
{
int v5; // r3
const char *v6; // r1
int v7; // r3
unsigned __int8 *v8; // r2
cocos2d::CCString *v9; // r0
const char *CString; // r6
size_t v11; // r0
int v13; // [sp+0h] [bp-10h] BYREF
unsigned __int8 *v14; // [sp+4h] [bp-Ch]
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = a1;
v14 = a2;
v15 = a3;
v16 = a4;
v5 = *a2;
if ( (*(_BYTE *)a1 & 1) != 0 )
v6 = *(const char **)(a1 + 8);
else
v6 = (const char *)(a1 + 1);
v7 = v5 << 31;
if ( v7 < 0 )
v8 = *((unsigned __int8 **)a2 + 2);
else
v8 = a2 + 1;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"https://www.robtopgames.com/download/%s%s",
v6,
v8,
v7,
v13,
v14,
v15,
v16);
v13 = 0;
v14 = nullptr;
v15 = 0;
CString = (const char *)cocos2d::CCString::getCString(v9);
v11 = strlen(CString);
std::string::__init(&v13, CString, v11);
return std::string::~string((int)&v13);
}