//
// ControllerInputNode::create from 0xc96aa4 to 0xc96bf0 (332 bytes)
//
// 2 xrefs:
// > KeybindCapturePopup::init @ 0xcf75b4
// > ??> @ 0x8dfa0
//
// 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:05:53 +0000
//
__int64 __fastcall ControllerInputNode::create(
ControllerInputNode *this,
InputCaptureDelegate *a2,
const cocos2d::CCSize *a3)
{
__int64 v5; // x19
cocos2d::CCPoint *v6; // x20
v5 = operator new(0x1B8u);
memset((void *)v5, 0, 0x1B8u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);
v6 = (cocos2d::CCPoint *)(v5 + 408);
*(_QWORD *)(v5 + 320) = 0;
*(_BYTE *)(v5 + 328) = 0;
*(_QWORD *)v5 = &off_14F5D40;
*(_DWORD *)(v5 + 332) = 0;
*(_QWORD *)(v5 + 344) = 0;
*(_QWORD *)(v5 + 352) = 0;
*(_QWORD *)(v5 + 360) = 0;
*(_QWORD *)(v5 + 368) = 0;
*(_QWORD *)(v5 + 376) = 0;
*(_QWORD *)(v5 + 384) = 0;
*(_QWORD *)(v5 + 392) = 0;
*(_QWORD *)(v5 + 400) = 0;
*(float *)(v5 + 336) = 1.0;
do
{
cocos2d::CCPoint::CCPoint(v6);
v6 = (cocos2d::CCPoint *)((char *)v6 + 8);
}
while ( v6 != (cocos2d::CCPoint *)(v5 + 440) );
if ( (unsigned __int8)ControllerInputNode::init((ControllerInputNode *)v5, this, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
return 0;
}
}