//
// cocos2d::extension::CCEditBox::keyboardWillShow from 0x180011170 to 0x18001129c (300 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800279d8
// > ??> @ 0x18002e69c
// > ??> @ 0x18002e6ac
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a224
// > ??> @ 0x18004a230
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::CCEditBox::keyboardWillShow(
cocos2d::extension::CCEditBox *this,
struct cocos2d::CCIMEKeyboardNotificationInfo *a2)
{
const struct cocos2d::CCSize *v4; // rax
__int64 v5; // rax
float MaxY; // xmm6_4
float MinY; // xmm0_4
__int64 v8; // rcx
float v9[2]; // [rsp+30h] [rbp-68h] BYREF
_BYTE v10[4]; // [rsp+38h] [rbp-60h] BYREF
float v11; // [rsp+3Ch] [rbp-5Ch]
_BYTE v12[16]; // [rsp+48h] [rbp-50h] BYREF
_BYTE v13[24]; // [rsp+58h] [rbp-40h] BYREF
v4 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(char *))(*((_QWORD *)this - 71) + 304LL))((char *)this - 568);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v9, v4);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, v9[0], v9[1]);
v5 = (*(__int64 (__fastcall **)(char *, _BYTE *))(*((_QWORD *)this - 71) + 800LL))((char *)this - 568, v13);
cocos2d::CCRectApplyAffineTransform(v10, v12, v5);
v11 = v11 + -4.0;
if ( cocos2d::CCRect::intersectsRect(
(cocos2d::CCRect *)v10,
(struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16)) )
{
MaxY = cocos2d::CCRect::getMaxY((struct cocos2d::CCIMEKeyboardNotificationInfo *)((char *)a2 + 16));
MinY = cocos2d::CCRect::getMinY((cocos2d::CCRect *)v10);
v8 = *((_QWORD *)this + 1);
*((float *)this + 47) = MaxY - MinY;
if ( v8 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 120LL))(v8);
}
}