//
// OptionsScrollLayer::textChanged from 0xb874d8 to 0xb87648 (368 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'OptionsScrollLayer::textChanged @ 0xb8764c
// > ??> @ 0x868a8
// > ??> @ 0x14d5400
//
// 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 13:02:31 +0000
//
__int64 __fastcall OptionsScrollLayer::textChanged(OptionsScrollLayer *this, CCTextInputNode *a2)
{
CCTextInputNode *v3; // x0
int v5; // w4
size_t v6; // x2
unsigned __int8 v7; // w0
__int64 *v8; // x22
int v9; // w5
__int64 v10; // x1
char *v11; // x1
size_t v12; // x2
unsigned __int8 *v13; // x0
unsigned __int8 *v14; // x1
unsigned __int8 *v15; // x4
unsigned __int8 *v16; // x2
int v17; // t1
__int64 v18; // [xsp+30h] [xbp+30h] BYREF
size_t v19; // [xsp+38h] [xbp+38h]
void *v20; // [xsp+40h] [xbp+40h]
v3 = *((CCTextInputNode **)this + 87);
if ( v3 != a2 )
return _stack_chk_guard;
CCTextInputNode::getString(v3, &v18);
v5 = v18 & 1;
v6 = (unsigned __int8)v18 >> 1;
if ( v5 )
v6 = v19;
v7 = *((_BYTE *)this + 720);
v8 = (__int64 *)((char *)this + 720);
v9 = v7 & 1;
v10 = v7 >> 1;
if ( (v7 & 1) != 0 )
v10 = *((_QWORD *)this + 91);
if ( v6 != v10 )
{
if ( v8 == &v18 )
goto LABEL_12;
if ( v5 )
goto LABEL_10;
LABEL_25:
v12 = (unsigned __int8)v18 >> 1;
v11 = (char *)&v18 + 1;
goto LABEL_11;
}
v13 = (unsigned __int8 *)&v18 + 1;
if ( v5 )
v13 = (unsigned __int8 *)v20;
v14 = (unsigned __int8 *)this + 721;
if ( v9 )
v14 = *((unsigned __int8 **)this + 92);
if ( v5 )
{
if ( !v6 || !memcmp(v13, v14, v6) )
goto LABEL_13;
if ( v8 != &v18 )
{
LABEL_10:
v11 = (char *)v20;
v12 = v19;
LABEL_11:
std::string::assign((__int64 *)this + 90, v11, v12);
goto LABEL_12;
}
goto LABEL_12;
}
if ( !v6 )
return _stack_chk_guard;
if ( *v13 != *v14 )
{
LABEL_24:
if ( v8 != &v18 )
goto LABEL_25;
LABEL_12:
OptionsScrollLayer::setupList(this, *((cocos2d::CCArray **)this + 84));
if ( (v18 & 1) == 0 )
return _stack_chk_guard;
LABEL_13:
operator delete(v20);
return _stack_chk_guard;
}
v15 = v13 + 1;
v16 = &v13[v6];
while ( 1 )
{
++v14;
if ( v15 == v16 )
return _stack_chk_guard;
v17 = *v15++;
if ( *v14 != v17 )
goto LABEL_24;
}
}