//
// AccountRegisterLayer::createTextBackground from 0x468190 to 0x468210 (128 bytes)
//
// 5 xrefs:
// > AccountRegisterLayer::init @ 0x4685a0
// > AccountRegisterLayer::init @ 0x468664
// > AccountRegisterLayer::init @ 0x468796
// > AccountRegisterLayer::init @ 0x468872
// > AccountRegisterLayer::init @ 0x468938
//
// 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
//
cocos2d::extension::CCScale9Sprite *AccountRegisterLayer::createTextBackground(
AccountRegisterLayer *a1,
cocos2d::CCPoint a2,
cocos2d::CCSize a3)
{
float x; // r7
float y; // r9
cocos2d::extension::CCScale9Sprite *v6; // r4
float v8; // r2
float v9; // r3
cocos2d::CCRect v10; // [sp+Ch] [bp-28h] BYREF
cocos2d::CCRect v11; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCSize v12; // 0:^0.8
cocos2d::CCRect v13; // 0:kr00_16.16
x = a2.x;
y = a2.y;
cocos2d::CCRect::CCRect(&v10, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect(&v11, &v10);
v13.origin.x = v8;
v13.origin.y = v9;
v13.size = v12;
v6 = (cocos2d::extension::CCScale9Sprite *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02_small.png",
(const char *)&v11,
v13);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v6->setContentSize)(v6, COERCE_FLOAT(LODWORD(y)));
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 1);
v6->setOpacity(v6, 100);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v6->setPosition)(v6, COERCE_FLOAT(LODWORD(x)));
return v6;
}