//
// cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite from 0x1004a3510 to 0x1004a35ca (186 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCEditBox::create @ 0x1004a347c
//
// This function is hookable on this platform (idp: pc, 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:30:53 +0000
//
__int64 __fastcall cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(_QWORD *a1, _QWORD *a2, __int64 a3)
{
__int64 result; // rax
unsigned int v4; // r12d
__int64 v5; // rax
float v6[10]; // [rsp+8h] [rbp-28h] BYREF
result = cocos2d::extension::CCControlButton::initWithBackgroundSprite((__int64)a1, a3);
if ( (_BYTE)result )
{
v4 = result;
v5 = sub_1004A45D0(a1);
a1[72] = v5;
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v5 + 16LL))(v5, a2);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1384LL))(a1, 0);
sub_100278630(v6, a2);
(*(void (__fastcall **)(_QWORD *, float *))(*a1 + 1368LL))(a1, v6);
sub_100278250(v6, 0.0, 0.0);
(*(void (__fastcall **)(_QWORD *, float *))(*a1 + 184LL))(a1, v6);
cocos2d::extension::CCControl::addTargetWithActionForControlEvent(
(__int64)a1,
(__int64)a1,
(__int64)cocos2d::extension::CCEditBox::touchDownAction,
0,
0x20u);
return v4;
}
return result;
}