//
// cocos2d::extension::CCControlButton::create from 0x7a7d04 to 0x7a7d8e (138 bytes)
//
// 0 xrefs:
//
// 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 12:00:00 +0000
//
cocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create(
int a1,
int a2,
int a3,
int a4)
{
cocos2d::extension::CCControlButton *v7; // r5
void (__fastcall *v8)(cocos2d::extension::CCControlButton *, int *, int, int); // r10
int v9; // r1
int v10; // r2
int v12; // [sp+0h] [bp-10h] BYREF
int v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = a1;
v13 = a2;
v14 = a3;
v15 = a4;
v7 = (cocos2d::extension::CCControlButton *)operator new(0x1A4u);
cocos2d::extension::CCControlButton::CCControlButton(v7);
v8 = *(void (__fastcall **)(cocos2d::extension::CCControlButton *, int *, int, int))(*(_DWORD *)v7 + 712);
v12 = 0;
v13 = 0;
v14 = 0;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
std::string::__init(&v12, *(const void **)(a1 + 8), *(_DWORD *)(a1 + 4));
}
else
{
v9 = *(_DWORD *)(a1 + 4);
v10 = *(_DWORD *)(a1 + 8);
v12 = *(_DWORD *)a1;
v13 = v9;
v14 = v10;
}
v8(v7, &v12, a2, a3);
std::string::~string((int)&v12);
cocos2d::CCObject::autorelease(v7);
return v7;
}