//
// AccountRegisterLayer::createTextLabel from 0x140079a90 to 0x140079b9d (269 bytes)
//
// 7 xrefs:
// > AccountRegisterLayer::init @ 0x140078eb9
// > AccountRegisterLayer::init @ 0x1400790e2
// > AccountRegisterLayer::init @ 0x140079338
// > AccountRegisterLayer::init @ 0x14007958b
// > AccountRegisterLayer::init @ 0x1400797b4
// > ??> @ 0x1406c66d8
// > ??> @ 0x1406c66e4
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLabelBMFont *__fastcall AccountRegisterLayer::createTextLabel(
__int64 a1,
__int64 a2,
const char *a3,
float *a4)
{
const char *v8; // rcx
struct cocos2d::CCLabelBMFont *v9; // rdi
cocos2d::CCLabelBMFont_vtbl *v10; // rbx
const cocos2d::CCPoint *v11; // rax
cocos2d::CCPoint v13; // [rsp+20h] [rbp-58h] BYREF
cocos2d::CCPoint v14[2]; // [rsp+28h] [rbp-50h] BYREF
v14[1] = (cocos2d::CCPoint)a3;
v8 = a3;
if ( *((_QWORD *)a3 + 3) > 0xFu )
v8 = *(const char **)a3;
v9 = cocos2d::CCLabelBMFont::create(v8, (const char *)&qword_14052A4D8);
v10 = v9->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v13, 0.0, 0.0);
v10->setAnchorPoint(v9, v11);
cocos2d::CCPoint::CCPoint(v14, (float)-*a4 * 0.5, (float)(a4[1] * 0.5) + 1.0);
cocos2d::CCPoint::operator+(a2, &v13);
v9->setPosition_0(v9, &v13);
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v9->setScale_0)(v9);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 448LL))(
*(_QWORD *)(a1 + 576),
v9);
sub_14003A830((__int64)a3);
return v9;
}