{"type": "func", "start": 4620828, "end": 4620992, "name": "AccountRegisterLayer::createTextLabel", "pseudocode": "// \n// AccountRegisterLayer::createTextLabel from 0x46821c to 0x4682c0 (164 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x4685c8\n// > AccountRegisterLayer::init @ 0x46868e\n// > AccountRegisterLayer::init @ 0x4687c2\n// > AccountRegisterLayer::init @ 0x46889a\n// > AccountRegisterLayer::init @ 0x468960\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCLabelBMFont *__fastcall AccountRegisterLayer::createTextLabel(int a1, int a2, int a3, float *a4)\n{\n  cocos2d::CCLabelBMFont *v7; // r4\n  void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF\n\n  v7 = cocos2d::CCLabelBMFont::create();\n  setAnchorPoint = v7->setAnchorPoint;\n  cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);\n  setAnchorPoint(v7, &v12);\n  setPosition = v7->setPosition;\n  cocos2d::CCPoint::CCPoint(&v11, -(float)(*a4 * 0.5), (float)(a4[1] * 0.5) + 1.0);\n  cocos2d::CCPoint::operator+(&v12, a2, &v11);\n  setPosition(v7, &v12);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v7->setScale)(v7, 1053609165);\n  (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 456) + 220))(*(_DWORD *)(a1 + 456), v7);\n  return v7;\n}", "assembly": "; \n; AccountRegisterLayer::createTextLabel from 0x46821c to 0x4682c0 (164 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x4685c8\n; > AccountRegisterLayer::init @ 0x46868e\n; > AccountRegisterLayer::init @ 0x4687c2\n; > AccountRegisterLayer::init @ 0x46889a\n; > AccountRegisterLayer::init @ 0x468960\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x46821c\nMOV             R7, R3                                                 ; +0x4, 0x468220\nLDR             R5, =(__stack_chk_guard_ptr - 0x46822E)                ; +0x6, 0x468222\nMOV             R10, R1                                                ; +0x8, 0x468224\nLDR             R1, =(aBigfontFnt - 0x468234); \"bigFont.fnt\"           ; +0xa, 0x468226\nSUB             SP, SP, #0x18                                          ; +0xc, 0x468228\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46822a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x46822c\nMOV             R8, R0                                                 ; +0x12, 0x46822e\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x14, 0x468230\nLDR             R0, [R2]; this                                         ; +0x16, 0x468232\nLDR             R3, [R5]                                               ; +0x18, 0x468234\nADD             R6, SP, #0x18+var_C                                    ; +0x1a, 0x468236\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1c, 0x468238\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x1e, 0x46823a\nMOVS            R1, #0; float                                          ; +0x22, 0x46823e\nMOV             R2, R1; float                                          ; +0x24, 0x468240\nLDR             R3, [R0]                                               ; +0x26, 0x468242\nMOV             R4, R0                                                 ; +0x28, 0x468244\nMOV             R0, R6; this                                           ; +0x2a, 0x468246\nLDR.W           R9, [R3,#0x8C]                                         ; +0x2c, 0x468248\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x30, 0x46824c\nMOV             R0, R4                                                 ; +0x34, 0x468250\nMOV             R1, R6                                                 ; +0x36, 0x468252\nBLX             R9                                                     ; +0x38, 0x468254\nVMOV.F32        S15, #0.5                                              ; +0x3a, 0x468256\nVLDR            S14, [R7]                                              ; +0x3e, 0x46825a\nLDR             R3, [R4]                                               ; +0x42, 0x46825e\nVLDR            S13, [R7,#4]                                           ; +0x44, 0x468260\nADD             R7, SP, #0x18+var_14                                   ; +0x48, 0x468264\nLDR.W           R9, [R3,#0x5C]                                         ; +0x4a, 0x468266\nMOV             R0, R7; this                                           ; +0x4e, 0x46826a\nVNMUL.F32       S14, S14, S15                                          ; +0x50, 0x46826c\nVMOV            R1, S14; float                                         ; +0x54, 0x468270\nVMOV.F32        S14, #1.0                                              ; +0x58, 0x468274\nVMLA.F32        S14, S13, S15                                          ; +0x5c, 0x468278\nVMOV            R2, S14; float                                         ; +0x60, 0x46827c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x64, 0x468280\nMOV             R2, R7                                                 ; +0x68, 0x468284\nMOV             R0, R6                                                 ; +0x6a, 0x468286\nMOV             R1, R10                                                ; +0x6c, 0x468288\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x6e, 0x46828a\nMOV             R0, R4                                                 ; +0x72, 0x46828e\nMOV             R1, R6                                                 ; +0x74, 0x468290\nBLX             R9                                                     ; +0x76, 0x468292\nLDR             R3, [R4]                                               ; +0x78, 0x468294\nMOV             R0, R4                                                 ; +0x7a, 0x468296\nLDR             R1, =0x3ECCCCCD                                        ; +0x7c, 0x468298\nLDR             R3, [R3,#0x50]                                         ; +0x7e, 0x46829a\nBLX             R3                                                     ; +0x80, 0x46829c\nLDR.W           R0, [R8,#0x1C8]                                        ; +0x82, 0x46829e\nMOV             R1, R4                                                 ; +0x86, 0x4682a2\nLDR             R3, [R0]                                               ; +0x88, 0x4682a4\nLDR.W           R3, [R3,#0xDC]                                         ; +0x8a, 0x4682a6\nBLX             R3                                                     ; +0x8e, 0x4682aa\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x90, 0x4682ac\nLDR             R3, [R5]                                               ; +0x92, 0x4682ae\nMOV             R0, R4                                                 ; +0x94, 0x4682b0\nCMP             R2, R3                                                 ; +0x96, 0x4682b2\nBEQ             loc_4682BA                                             ; +0x98, 0x4682b4\nBLX             __stack_chk_fail                                       ; +0x9a, 0x4682b6\nADD             SP, SP, #0x18                                          ; +0x9e, 0x4682ba\nPOP.W           {R4-R10,PC}                                            ; +0xa0, 0x4682bc", "xrefs": ["AccountRegisterLayer::init @ 0x4685c8", "AccountRegisterLayer::init @ 0x46868e", "AccountRegisterLayer::init @ 0x4687c2", "AccountRegisterLayer::init @ 0x46889a", "AccountRegisterLayer::init @ 0x468960"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}