{"type": "func", "start": 4621004, "end": 4621172, "name": "AccountRegisterLayer::createTextInput", "pseudocode": "// \n// AccountRegisterLayer::createTextInput from 0x4682cc to 0x468374 (168 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::init @ 0x4685fe\n// > AccountRegisterLayer::init @ 0x4686c4\n// > AccountRegisterLayer::init @ 0x4687f8\n// > AccountRegisterLayer::init @ 0x4688d0\n// > AccountRegisterLayer::init @ 0x468996\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\nCCTextInputNode *__fastcall AccountRegisterLayer::createTextInput(\n        TextInputDelegate *a1,\n        const cocos2d::CCPoint *a2,\n        float *a3,\n        const char **a4,\n        int a5)\n{\n  TextInputDelegate *v6; // r5\n  CCTextInputNode *v7; // r4\n  CCTextInputNode_vtbl *v8; // r3\n  cocos2d::ccColor3B v12; // [sp+Ch] [bp-4h]\n\n  v6 = a1 + 124;\n  v7 = CCTextInputNode::create(*a3 - 20.0, a3[1] + 10.0, *a4, \"Thonburi\");\n  (*((void (__fastcall **)(TextInputDelegate_vtbl *, CCTextInputNode *, int, _DWORD, int *, const char *, float *, const char **))v6[-10].textChanged\n   + 56))(\n    v6[-10].__vftable,\n    v7,\n    20,\n    *((_DWORD *)v6[-10].textChanged + 56),\n    &dword_18,\n    \"bigFont.fnt\",\n    a3,\n    a4);\n  CCTextInputNode::setMaxLabelScale(v7, 0.8);\n  v8 = v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v7->m_delegate = v6;\n  v8->setTag(v7, a5);\n  v7->setPosition(v7, a2);\n  v7->m_textField->setVisible(v7->m_textField, 0);\n  *(_WORD *)&v12.r = -21896;\n  v12.b = -16;\n  CCTextInputNode::setLabelPlaceholderColor(v7, v12);\n  CCTextInputNode::setLabelPlaceholderScale(v7, 0.5);\n  return v7;\n}", "assembly": "; \n; AccountRegisterLayer::createTextInput from 0x4682cc to 0x468374 (168 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::init @ 0x4685fe\n; > AccountRegisterLayer::init @ 0x4686c4\n; > AccountRegisterLayer::init @ 0x4687f8\n; > AccountRegisterLayer::init @ 0x4688d0\n; > AccountRegisterLayer::init @ 0x468996\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\nVMOV.F32        S15, #20.0                                             ; +0x0, 0x4682cc\nVLDR            S13, [R2]                                              ; +0x4, 0x4682d0\nPUSH            {R0-R6,LR}                                             ; +0x8, 0x4682d4\nMOV             R5, R0                                                 ; +0xa, 0x4682d6\nVLDR            S14, [R2,#4]                                           ; +0xc, 0x4682d8\nMOVS            R2, #dword_18                                          ; +0x10, 0x4682dc\nSTR             R2, [SP,#0x10+var_10]; char *                          ; +0x12, 0x4682de\nMOV             R6, R1                                                 ; +0x14, 0x4682e0\nLDR             R2, =(aBigfontFnt - 0x4682EC); \"bigFont.fnt\"           ; +0x16, 0x4682e2\nADD.W           R5, R5, #0x1F0                                         ; +0x18, 0x4682e4\nADD             R2, PC; \"bigFont.fnt\"                                  ; +0x1c, 0x4682e8\nSTR             R2, [SP,#0x10+var_C]; char *                           ; +0x1e, 0x4682ea\nLDR             R2, [R3]; float                                        ; +0x20, 0x4682ec\nVSUB.F32        S15, S13, S15                                          ; +0x22, 0x4682ee\nLDR             R3, =(aThonburi - 0x4682F8); \"Thonburi\"                ; +0x26, 0x4682f2\nADD             R3, PC; \"Thonburi\"                                     ; +0x28, 0x4682f4\nVMOV            R0, S15; this                                          ; +0x2a, 0x4682f6\nVMOV.F32        S15, #10.0                                             ; +0x2e, 0x4682fa\nVADD.F32        S15, S14, S15                                          ; +0x32, 0x4682fe\nVMOV            R1, S15; float                                         ; +0x36, 0x468302\nBL              _ZN15CCTextInputNode6createEffPKcS1_iS1_; CCTextInputNode::create(float,float,char const*,char const*,int,char const*) ; +0x3a, 0x468306\nMOVS            R2, #0x14                                              ; +0x3e, 0x46830a\nMOV             R4, R0                                                 ; +0x40, 0x46830c\nLDR.W           R0, [R5,#-0x28]                                        ; +0x42, 0x46830e\nMOV             R1, R4                                                 ; +0x46, 0x468312\nLDR             R3, [R0]                                               ; +0x48, 0x468314\nLDR.W           R3, [R3,#0xE0]                                         ; +0x4a, 0x468316\nBLX             R3                                                     ; +0x4e, 0x46831a\nMOV             R0, R4; this                                           ; +0x50, 0x46831c\nLDR             R1, flt_468374; float                                  ; +0x52, 0x46831e\nBL              _ZN15CCTextInputNode16setMaxLabelScaleEf; CCTextInputNode::setMaxLabelScale(float) ; +0x54, 0x468320\nLDR             R3, [R4]                                               ; +0x58, 0x468324\nSTR.W           R5, [R4,#0x180]                                        ; +0x5a, 0x468326\nMOV             R0, R4                                                 ; +0x5e, 0x46832a\nLDR             R1, [SP,#0x10+arg_0]                                   ; +0x60, 0x46832c\nLDR             R3, [R3,#0x24]                                         ; +0x62, 0x46832e\nBLX             R3                                                     ; +0x64, 0x468330\nLDR             R3, [R4]                                               ; +0x66, 0x468332\nMOV             R0, R4                                                 ; +0x68, 0x468334\nMOV             R1, R6                                                 ; +0x6a, 0x468336\nLDR             R3, [R3,#0x5C]                                         ; +0x6c, 0x468338\nBLX             R3                                                     ; +0x6e, 0x46833a\nLDR.W           R0, [R4,#0x17C]                                        ; +0x70, 0x46833c\nMOVS            R1, #0                                                 ; +0x74, 0x468340\nLDR             R3, [R0]                                               ; +0x76, 0x468342\nLDR.W           R3, [R3,#0xA4]                                         ; +0x78, 0x468344\nBLX             R3                                                     ; +0x7c, 0x468348\nMOVS            R3, #0x78 ; 'x'                                        ; +0x7e, 0x46834a\nSTRB.W          R3, [SP,#0x10+var_4]                                   ; +0x80, 0x46834c\nMOVS            R3, #0xAA                                              ; +0x84, 0x468350\nSTRB.W          R3, [SP,#0x10+var_4+1]                                 ; +0x86, 0x468352\nMOVS            R3, #0xF0                                              ; +0x8a, 0x468356\nSTRB.W          R3, [SP,#0x10+var_4+2]                                 ; +0x8c, 0x468358\nMOV             R0, R4                                                 ; +0x90, 0x46835c\nLDR             R1, [SP,#0x10+var_4]                                   ; +0x92, 0x46835e\nBL              _ZN15CCTextInputNode24setLabelPlaceholderColorEN7cocos2d10_ccColor3BE; CCTextInputNode::setLabelPlaceholderColor(cocos2d::_ccColor3B) ; +0x94, 0x468360\nMOV             R0, R4; this                                           ; +0x98, 0x468364\nMOV.W           R1, #0x3F000000; float                                 ; +0x9a, 0x468366\nBL              _ZN15CCTextInputNode24setLabelPlaceholderScaleEf; CCTextInputNode::setLabelPlaceholderScale(float) ; +0x9e, 0x46836a\nMOV             R0, R4                                                 ; +0xa2, 0x46836e\nADD             SP, SP, #0x10                                          ; +0xa4, 0x468370\nPOP             {R4-R6,PC}                                             ; +0xa6, 0x468372", "xrefs": ["AccountRegisterLayer::init @ 0x4685fe", "AccountRegisterLayer::init @ 0x4686c4", "AccountRegisterLayer::init @ 0x4687f8", "AccountRegisterLayer::init @ 0x4688d0", "AccountRegisterLayer::init @ 0x468996"], "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"}