//
// AccountRegisterLayer::createTextBackground from 0x100496f40 to 0x100496ff3 (179 bytes)
//
// 0 xrefs:
//
// 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; // rdx
__int64 v4; // r15
cocos2d::extension::CCScale9Sprite *v5; // r12
unsigned __int64 v7[2]; // [rsp+8h] [rbp-48h] BYREF
__m128 v8[3]; // [rsp+18h] [rbp-38h] BYREF
cocos2d::CCRect v9; // 0:xmm0_8.8,8:xmm1_8.8
v4 = v3;
v9.size = 0;
sub_10028CC00((__int64)v7, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
*(double *)&v9.origin = sub_10028D180(v8, v7);
v5 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v9);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v5->setContentSize)(v5, v4);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v5,
1);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v5->setOpacity)(v5, 100);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v5->setPosition)(v5);
return v5;
}