//
// ControllerInputNode::create from 0x765810 to 0x7658d4 (196 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::init @ 0x79ac02
//
// 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:59:07 +0000
//
int *__fastcall ControllerInputNode::create(
ControllerInputNode *this,
InputCaptureDelegate *a2,
const cocos2d::CCSize *a3)
{
int *v5; // r4
cocos2d::CCPoint *v6; // r5
int v7; // r3
int *v8; // r0
v5 = (int *)operator new(0x158u);
memset(v5, 0, 0x158u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);
v5[66] = 0;
*((_BYTE *)v5 + 268) = 0;
v5[68] = 0;
*v5 = (int)&off_CF4C30;
v5[70] = 0;
v5[69] = 1065353216;
v6 = (cocos2d::CCPoint *)(v5 + 78);
v5[71] = 0;
v5[72] = 0;
v5[73] = 0;
memset(v5 + 74, 0, 0x10u);
do
{
cocos2d::CCPoint::CCPoint(v6);
v6 = (cocos2d::CCPoint *)((char *)v6 + 8);
}
while ( v6 != (cocos2d::CCPoint *)(v5 + 86) );
if ( ControllerInputNode::init((ControllerInputNode *)v5, this, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v7 = *v5;
v8 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v7 + 8))(v8);
}
return v5;
}