//
// MoreVideoOptionsLayer::layerForPage from 0x52e7f8 to 0x52e8a8 (176 bytes)
//
// 1 xrefs:
// > MoreVideoOptionsLayer::addToggle @ 0x52e96e
//
// 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:52:02 +0000
//
cocos2d::CCObject *__fastcall MoreVideoOptionsLayer::layerForPage(MoreVideoOptionsLayer *this, const char *a2)
{
int v3; // r5
const char *v5; // r9
size_t v6; // r0
cocos2d::CCObject *v7; // r5
cocos2d::CCLayer *v8; // r0
int v9; // r9
const char *v10; // r0
const char *v11; // r7
size_t v12; // r0
int v14; // [sp+0h] [bp-14h] BYREF
int v15; // [sp+4h] [bp-10h]
int v16; // [sp+8h] [bp-Ch]
v3 = *((_DWORD *)this + 133);
v14 = 0;
v15 = 0;
v16 = 0;
v5 = (const char *)MoreVideoOptionsLayer::layerKey(this, a2);
v6 = strlen(v5);
std::string::__init(&v14, v5, v6);
v7 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v3, &v14);
v8 = (cocos2d::CCLayer *)std::string::~string((int)&v14);
if ( !v7 )
{
v7 = (cocos2d::CCObject *)cocos2d::CCLayer::create(v8);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v7);
v9 = *((_DWORD *)this + 133);
v10 = (const char *)MoreVideoOptionsLayer::layerKey(this, a2);
v14 = 0;
v15 = 0;
v16 = 0;
v11 = v10;
v12 = strlen(v10);
std::string::__init(&v14, v11, v12);
cocos2d::CCDictionary::setObject(v9, v7);
std::string::~string((int)&v14);
}
return v7;
}