//
// FLAlertLayer::textInputShouldOffset from 0x3cb6b8 to 0x3cb79e (230 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FLAlertLayer::textInputShouldOffset @ 0x3cb7a8
//
// 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:37 +0000
//
int __fastcall FLAlertLayer::textInputShouldOffset(int this, CCTextInputNode *a2, float a3)
{
int v3; // r4
const cocos2d::CCPoint *v5; // r0
const cocos2d::CCPoint *v6; // r1
float v7; // s16
cocos2d::CCNode *v8; // r8
float v9; // r2
_BYTE v10[4]; // [sp+4h] [bp-24h] BYREF
float v11; // [sp+8h] [bp-20h]
_BYTE v12[4]; // [sp+Ch] [bp-1Ch] BYREF
float v13; // [sp+10h] [bp-18h]
_BYTE v14[8]; // [sp+14h] [bp-14h] BYREF
_BYTE v15[8]; // [sp+1Ch] [bp-Ch] BYREF
v3 = this;
if ( *(_DWORD *)(this + 460) )
{
if ( a2 )
{
if ( *((_BYTE *)a2 + 344) )
{
this = FLAlertLayer::containsNode(this, (int)a2);
if ( this )
{
v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 460) + 96))(*(_DWORD *)(v3 + 460));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v5);
v6 = *(_BYTE *)(v3 + 471) ? (const cocos2d::CCPoint *)(v3 + 472) : (const cocos2d::CCPoint *)v10;
this = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v6);
v7 = (float)(a3 + v11) - v13;
if ( v7 > 0.0 || *(_BYTE *)(v3 + 470) )
{
cocos2d::CCPoint::operator=(v3 + 472, v12);
v8 = *(cocos2d::CCNode **)(v3 + 460);
*(_BYTE *)(v3 + 471) = 1;
*(_BYTE *)(v3 + 470) = 1;
if ( v7 > 0.0 )
v9 = v7;
else
v9 = 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, v9);
cocos2d::CCPoint::operator+(v15, v12, v14);
return sub_3CB370(v8, COERCE_FLOAT(v15));
}
}
}
}
}
return this;
}