//
// AccountRegisterLayer::createTextLabel from 0x14008db60 to 0x14008dc6d (269 bytes)
//
// 6 xrefs:
// > AccountRegisterLayer::init @ 0x14008d0ee
// > AccountRegisterLayer::init @ 0x14008d2bd
// > AccountRegisterLayer::init @ 0x14008d53b
// > AccountRegisterLayer::init @ 0x14008d6d3
// > AccountRegisterLayer::init @ 0x14008d8a5
// > ??> @ 0x140912968
//
// 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:25:59 +0000
//
// 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
__int64 v10; // rbx
__int64 v11; // rax
__int64 v12; // rax
_BYTE v14[8]; // [rsp+20h] [rbp-58h] BYREF
_BYTE v15[8]; // [rsp+28h] [rbp-50h] BYREF
const char *v16; // [rsp+30h] [rbp-48h]
v16 = a3;
v8 = a3;
if ( *((_QWORD *)a3 + 3) > 0xFu )
v8 = *(const char **)a3;
v9 = cocos2d::CCLabelBMFont::create(v8, (const char *)&qword_140704F78);
v10 = *(_QWORD *)v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v10 + 288))(v9, v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)-*a4 * 0.5, (float)(a4[1] * 0.5) + 1.0);
cocos2d::CCPoint::operator+(a2, v14, v12);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v14);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 160LL))(v9);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v9);
sub_14003D310((__int64)a3);
return v9;
}