//
// cocos2d::CCFloat::create from 0x1800d1640 to 0x1800d169b (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ba3e0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
struct cocos2d::CCFloat *__fastcall cocos2d::CCFloat::create(float a1)
{
cocos2d::CCObject *v1; // rax
cocos2d::CCObject *v2; // rbx
v1 = (cocos2d::CCObject *)operator new(0x40u);
v2 = v1;
if ( v1 )
{
cocos2d::CCObject::CCObject(v1);
v2->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCFloat::`vftable';
*(float *)&v2[1].__vftable = a1;
}
else
{
v2 = nullptr;
}
if ( v2 )
cocos2d::CCObject::autorelease(v2);
return (struct cocos2d::CCFloat *)v2;
}