//
// CCTextInputMenu::create from 0x6b7404 to 0x6b7530 (300 bytes)
//
// 2 xrefs:
// > CCTextInputNode::openEditMenu @ 0x6b8ab0
// > ??> @ 0xee1c8
//
// 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 12:50:53 +0000
//
__int64 *__fastcall CCTextInputMenu::create(CCTextInputNode *a1, const cocos2d::CCPoint *a2)
{
__int64 *v4; // x19
__int64 v5; // x1
__int64 *v6; // x0
float v8; // [xsp+40h] [xbp+40h] BYREF
v4 = (__int64 *)operator new(0x1B0u);
memset(v4, 0, 0x1B0u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4);
v4[51] = 0;
*v4 = (__int64)&off_141F440;
v4[40] = (__int64)off_141F8D8;
v4[41] = (__int64)&off_141F948;
v4[42] = (__int64)off_141F960;
v4[43] = (__int64)off_141F980;
v4[44] = (__int64)off_141F9A8;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v4 + 52));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, a2);
if ( (unsigned __int8)CCTextInputMenu::init((cocos2d::CCLayer *)v4, a1, &v8) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
v5 = *v4;
v6 = v4;
v4 = nullptr;
(*(void (__fastcall **)(__int64 *))(v5 + 16))(v6);
}
return v4;
}