//
// MoreVideoOptionsLayer::onInfo from 0x1404d1160 to 0x1404d134d (493 bytes)
//
// 2 xrefs:
// > MoreVideoOptionsLayer::addToggle @ 0x1404cfa28
// > ??> @ 0x140929750
//
// 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:33:00 +0000
//
__int64 __fastcall MoreVideoOptionsLayer::onInfo(__int64 a1, __int64 a2)
{
int v3; // eax
cocos2d::CCString *v4; // rax
const char *CString; // rax
size_t v6; // rbx
size_t v7; // r8
cocos2d::CCString *v8; // rax
const char *v9; // rdi
void *v10; // r8
__int64 v11; // rax
cocos2d::CCObject *v12; // rbx
__int128 v14; // [rsp+58h] [rbp-60h] BYREF
__int64 v15; // [rsp+68h] [rbp-50h]
__int64 v16; // [rsp+70h] [rbp-48h]
void *Block[2]; // [rsp+80h] [rbp-38h] BYREF
__m128i si128; // [rsp+90h] [rbp-28h]
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = cocos2d::CCString::createWithFormat("info_%i", v3);
CString = cocos2d::CCString::getCString(v4);
*(_OWORD *)Block = 0;
si128 = 0;
v6 = -1;
v7 = -1;
do
++v7;
while ( CString[v7] );
sub_14003D230(Block, CString, v7);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 680), Block);
v9 = cocos2d::CCString::getCString(v8);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v10 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
v14 = 0;
v15 = 0;
v16 = 0;
do
++v6;
while ( v9[v6] );
sub_14003D230(&v14, v9, v6);
v11 = sub_14003F4F0((__int64)Block, (__int64)&v14);
v12 = FLAlertLayer::create(0, (int)"Info", v11, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216);
sub_14003D310((__int64)&v14);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v12 + 1064LL))(v12);
}