//
// cocos2d::extension::CCControlButton::create from 0x10033f300 to 0x10033f45d (349 bytes)
//
// 0 xrefs:
//
// 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:28:43 +0000
//
char *__fastcall cocos2d::extension::CCControlButton::create(__int128 *a1, __int64 a2, float a3)
{
char *v3; // rbx
__int128 v5; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
float v7; // [rsp+24h] [rbp-1Ch]
v7 = a3;
v3 = (char *)operator new(0x238u);
cocos2d::extension::CCControl::CCControl((__int64)v3);
*(_QWORD *)v3 = off_100B1DA78;
*((_QWORD *)v3 + 40) = off_100B1E0A0;
*((_QWORD *)v3 + 41) = &off_100B1E110;
*((_QWORD *)v3 + 42) = off_100B1E128;
*((_QWORD *)v3 + 43) = off_100B1E148;
*((_QWORD *)v3 + 44) = off_100B1E170;
*((_QWORD *)v3 + 51) = off_100B1E1A0;
*((_QWORD *)v3 + 59) = 0;
*((_DWORD *)v3 + 120) = 0xFFFFFF;
*(_OWORD *)(v3 + 488) = 0;
sub_100278600((_QWORD *)v3 + 63);
v3[512] = 0;
sub_1002782A0(v3 + 516);
*((_WORD *)v3 + 262) = 0;
*((_OWORD *)v3 + 33) = 0;
*((_OWORD *)v3 + 34) = 0;
*((_QWORD *)v3 + 70) = 0x800000002LL;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&v5, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
__p = *((void **)a1 + 2);
v5 = *a1;
}
(*(void (__fastcall **)(char *, __int128 *, __int64, float))(*(_QWORD *)v3 + 1424LL))(v3, &v5, a2, v7);
if ( (v5 & 1) != 0 )
operator delete(__p);
cocos2d::CCObject::autorelease(v3);
return v3;
}