{"type": "func", "start": 8719372, "end": 8719632, "name": "AccountLoginLayer::createTextInput", "pseudocode": "// \n// AccountLoginLayer::createTextInput from 0x850c0c to 0x850d10 (260 bytes)\n// \n// 3 xrefs:\n// > AccountLoginLayer::init @ 0x851180\n// > AccountLoginLayer::init @ 0x851294\n// > <???> @ 0x9add0\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\n// local variable allocation has failed, the output may be wrong!\nCCTextInputNode *AccountLoginLayer::createTextInput(\n        AccountLoginLayer *a1,\n        cocos2d::CCPoint a2,\n        cocos2d::CCSize a3,\n        const char *a4,\n        int a5)\n{\n  const char *v5; // x3\n  int v6; // w4\n  TextInputDelegate *v8; // x20\n  CCTextInputNode *v9; // x19\n  int v11; // [xsp+38h] [xbp+38h]\n  cocos2d::ccColor3B v12; // [xsp+48h] [xbp+48h]\n\n  v11 = v6;\n  v8 = &a1->TextInputDelegate;\n  v9 = CCTextInputNode::create(**(float **)&a5, *(float *)(*(_QWORD *)&a5 + 4LL) + 10.0, v5, \"Thonburi\");\n  (*((void (__fastcall **)(TextInputDelegate_vtbl *, CCTextInputNode *, __int64))v8[-7].textChanged + 56))(\n    v8[-7].__vftable,\n    v9,\n    20);\n  CCTextInputNode::setMaxLabelScale(v9, 0.8);\n  v9->m_delegate = v8;\n  v9->setTag(v9, v11);\n  v9->setPosition(v9, (const cocos2d::CCPoint *)a4);\n  v9->m_textField->setVisible(v9->m_textField, 0);\n  *(_WORD *)&v12.r = -21896;\n  v12.b = -16;\n  CCTextInputNode::setLabelPlaceholderColor(v9, v12);\n  CCTextInputNode::setLabelPlaceholderScale(v9, 0.5);\n  return v9;\n}", "assembly": "; \n; AccountLoginLayer::createTextInput from 0x850c0c to 0x850d10 (260 bytes)\n; \n; 3 xrefs:\n; > AccountLoginLayer::init @ 0x851180\n; > AccountLoginLayer::init @ 0x851294\n; > <???> @ 0x9add0\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x850c0c\nFMOV            S1, #10.0                                              ; +0x4, 0x850c10\nMOV             X29, SP                                                ; +0x8, 0x850c14\nLDR             S2, [X2,#4]                                            ; +0xc, 0x850c18\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x850c1c\nLDR             S0, [X2]; float                                        ; +0x14, 0x850c20\nMOV             X21, X1                                                ; +0x18, 0x850c24\nFADD            S1, S2, S1; float                                      ; +0x1c, 0x850c28\nADRP            X1, #aThonburi@PAGE; \"Thonburi\"                        ; +0x20, 0x850c2c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x24, 0x850c30\nMOV             X20, X0                                                ; +0x28, 0x850c34\nMOV             X0, X3; this                                           ; +0x2c, 0x850c38\nADRP            X3, #aBigfontFnt@PAGE; \"bigFont.fnt\"                   ; +0x30, 0x850c3c\nADD             X1, X1, #aThonburi@PAGEOFF; \"Thonburi\"                 ; +0x34, 0x850c40\nADD             X3, X3, #aBigfontFnt@PAGEOFF; \"bigFont.fnt\"            ; +0x38, 0x850c44\nMOV             W2, #off_18; char *                                    ; +0x3c, 0x850c48\nSTR             X4, [X29,#0x50+var_18]                                 ; +0x40, 0x850c4c\nADD             X20, X20, #0x278                                       ; +0x44, 0x850c50\nBL              _ZN15CCTextInputNode6createEffPKcS1_iS1_; CCTextInputNode::create(float,float,char const*,char const*,int,char const*) ; +0x48, 0x850c54\nMOV             X19, X0                                                ; +0x4c, 0x850c58\nLDUR            X3, [X20,#-0x38]                                       ; +0x50, 0x850c5c\nMOV             X1, X0                                                 ; +0x54, 0x850c60\nMOV             W2, #0x14                                              ; +0x58, 0x850c64\nMOV             X0, X3                                                 ; +0x5c, 0x850c68\nLDR             X3, [X3]                                               ; +0x60, 0x850c6c\nLDR             X3, [X3,#0x1C0]                                        ; +0x64, 0x850c70\nBLR             X3                                                     ; +0x68, 0x850c74\nLDR             S0, flt_850D10; float                                  ; +0x6c, 0x850c78\nMOV             X0, X19; this                                          ; +0x70, 0x850c7c\nBL              _ZN15CCTextInputNode16setMaxLabelScaleEf; CCTextInputNode::setMaxLabelScale(float) ; +0x74, 0x850c80\nSTR             X20, [X19,#0x200]                                      ; +0x78, 0x850c84\nLDR             X2, [X19]                                              ; +0x7c, 0x850c88\nMOV             X0, X19                                                ; +0x80, 0x850c8c\nLDR             X4, [X29,#0x50+var_18]                                 ; +0x84, 0x850c90\nLDR             X2, [X2,#0x48]                                         ; +0x88, 0x850c94\nMOV             W1, W4                                                 ; +0x8c, 0x850c98\nBLR             X2                                                     ; +0x90, 0x850c9c\nLDR             X2, [X19]                                              ; +0x94, 0x850ca0\nMOV             X0, X19                                                ; +0x98, 0x850ca4\nMOV             X1, X21                                                ; +0x9c, 0x850ca8\nLDR             X2, [X2,#0xB8]                                         ; +0xa0, 0x850cac\nBLR             X2                                                     ; +0xa4, 0x850cb0\nLDR             X2, [X19,#0x1F8]                                       ; +0xa8, 0x850cb4\nMOV             W1, #0                                                 ; +0xac, 0x850cb8\nMOV             X0, X2                                                 ; +0xb0, 0x850cbc\nLDR             X2, [X2]                                               ; +0xb4, 0x850cc0\nLDR             X2, [X2,#0x148]                                        ; +0xb8, 0x850cc4\nBLR             X2                                                     ; +0xbc, 0x850cc8\nMOV             W0, #0x78 ; 'x'                                        ; +0xc0, 0x850ccc\nSTRB            W0, [X29,#0x50+var_8]                                  ; +0xc4, 0x850cd0\nMOV             W0, #0xFFFFFFAA                                        ; +0xc8, 0x850cd4\nSTRB            W0, [X29,#0x50+var_8+1]                                ; +0xcc, 0x850cd8\nMOV             W0, #0xFFFFFFF0                                        ; +0xd0, 0x850cdc\nSTRB            W0, [X29,#0x50+var_8+2]                                ; +0xd4, 0x850ce0\nMOV             X0, X19                                                ; +0xd8, 0x850ce4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xdc, 0x850ce8\nBL              _ZN15CCTextInputNode24setLabelPlaceholderColorEN7cocos2d10_ccColor3BE; CCTextInputNode::setLabelPlaceholderColor(cocos2d::_ccColor3B) ; +0xe0, 0x850cec\nMOV             X0, X19; this                                          ; +0xe4, 0x850cf0\nFMOV            S0, #0.5; float                                        ; +0xe8, 0x850cf4\nBL              _ZN15CCTextInputNode24setLabelPlaceholderScaleEf; CCTextInputNode::setLabelPlaceholderScale(float) ; +0xec, 0x850cf8\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xf0, 0x850cfc\nMOV             X0, X19                                                ; +0xf4, 0x850d00\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xf8, 0x850d04\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xfc, 0x850d08\nRET                                                                    ; +0x100, 0x850d0c", "xrefs": ["AccountLoginLayer::init @ 0x851180", "AccountLoginLayer::init @ 0x851294", "<???> @ 0x9add0"], "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"}