//
// cocos2d::CCDouble::create from 0x1800d5c80 to 0x1800d5cdb (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c47d0
//
// 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 11:22:32 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCDouble *__fastcall cocos2d::CCDouble::create(double a1)
{
cocos2d::CCObject *v1; // rax
double *v2; // rbx
v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);
v2 = (double *)v1;
if ( v1 )
{
cocos2d::CCObject::CCObject(v1);
*(_QWORD *)v2 = &cocos2d::CCDouble::`vftable';
v2[7] = a1;
}
else
{
v2 = nullptr;
}
if ( v2 )
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (struct cocos2d::CCDouble *)v2;
}