//
// cocos2d::extension::CCEditBoxImplAndroid::initWithSize from 0xaaa23c to 0xaaa424 (488 bytes)
//
// 2 xrefs:
// > ??> @ 0x6fc90
// > ??> @ 0x11fac40
//
// 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
//
__int64 __fastcall cocos2d::extension::CCEditBoxImplAndroid::initWithSize(
cocos2d::extension::CCEditBoxImplAndroid *this,
const cocos2d::CCSize *a2)
{
const char *v4; // x2
__int64 v5; // x24
void (__fastcall *v6)(__int64, cocos2d::CCPoint *); // x25
__int64 v7; // x24
void (__fastcall *v8)(__int64, cocos2d::CCPoint *); // x25
const char *v9; // x2
__int64 v10; // x22
void (__fastcall *v11)(__int64, cocos2d::CCPoint *); // x24
__int64 v12; // x22
void (__fastcall *v13)(__int64, cocos2d::CCPoint *); // x24
cocos2d::CCPoint v15; // [xsp+60h] [xbp+60h] BYREF
getFontSizeAccordingHeightJni((int)(float)(a2->height - 12.0));
v5 = cocos2d::CCLabelTTF::create((cocos2d::CCLabelTTF *)&byte_F288A0, &byte_F288A0, v4, a2->height - 12.0);
*((_QWORD *)this + 3) = v5;
v6 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v5 + 280LL);
cocos2d::CCPoint::CCPoint(&v15, 0.0, 0.5);
v6(v5, &v15);
v7 = *((_QWORD *)this + 3);
v8 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint(&v15, 5.0, a2->height * 0.5);
v8(v7, &v15);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 3) + 944LL))(*((_QWORD *)this + 3), (char *)this + 72);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 2) + 440LL))(
*((_QWORD *)this + 2),
*((_QWORD *)this + 3));
v10 = cocos2d::CCLabelTTF::create((cocos2d::CCLabelTTF *)&byte_F288A0, &byte_F288A0, v9, a2->height - 12.0);
*((_QWORD *)this + 4) = v10;
v11 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v10 + 280LL);
cocos2d::CCPoint::CCPoint(&v15, 0.0, 0.5);
v11(v10, &v15);
v12 = *((_QWORD *)this + 4);
v13 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v12 + 184LL);
cocos2d::CCPoint::CCPoint(&v15, 5.0, a2->height * 0.5);
v13(v12, &v15);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 4) + 328LL))(*((_QWORD *)this + 4), 0);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 4) + 944LL))(*((_QWORD *)this + 4), (char *)this + 75);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 2) + 440LL))(
*((_QWORD *)this + 2),
*((_QWORD *)this + 4));
cocos2d::CCSize::operator=((char *)this + 84);
return 1;
}