//
// AccountRegisterLayer::createTextBackground from 0x100081ed4 to 0x100081f98 (196 bytes)
//
// 5 xrefs:
// > AccountRegisterLayer::init @ 0x1000812d0
// > AccountRegisterLayer::init @ 0x100081400
// > AccountRegisterLayer::init @ 0x100081540
// > AccountRegisterLayer::init @ 0x100081688
// > AccountRegisterLayer::init @ 0x1000817bc
//
// 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 *__fastcall AccountRegisterLayer::createTextBackground(
AccountRegisterLayer *a1,
cocos2d::CCPoint a2,
cocos2d::CCSize a3)
{
__int64 v3; // x1
__int64 v4; // x2
__int64 v5; // x19
__int64 v6; // x20
double v8; // d0
cocos2d::extension::CCScale9Sprite *v9; // x22
float v11; // s1
float v12; // s2
float v13; // s3
__int64 v14; // [xsp+0h] [xbp-40h] BYREF
float v15[4]; // [xsp+10h] [xbp-30h] BYREF
cocos2d::CCRect v16; // 0:kr00_16.16
v5 = v4;
v6 = v3;
sub_100022990(v15, 0.0, 0.0, 40.0, 40.0);
v8 = sub_100022B98(&v14, (__int64)v15);
v16.origin.x = *(float *)&v8;
v16.origin.y = v11;
v16.size.width = v12;
v16.size.height = v13;
v9 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v16);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v9->setContentSize)(v9, v5);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v9,
1);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v9->setOpacity)(v9, 100);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v9->setPosition)(v9, v6);
return v9;
}