{"type": "func", "start": 4073924, "end": 4074308, "name": "CCTextInputNode::init", "pseudocode": "// \n// CCTextInputNode::init from 0x3e29c4 to 0x3e2b44 (384 bytes)\n// \n// 1 xrefs:\n// > CCTextInputNode::create @ 0x3e2cb6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:02 +0000\n// \n\nint __fastcall CCTextInputNode::init(\n        CCTextInputNode *this,\n        float a2,\n        float a3,\n        char *a4,\n        const char *a5,\n        int a6,\n        const char *a7)\n{\n  int v11; // r8\n  float v12; // r3\n  int v13; // r0\n  int v14; // r2\n  const char *v15; // r2\n  int v16; // r0\n  int v17; // r2\n  size_t v18; // r0\n  int v19; // r0\n  int v20; // r3\n  void (__fastcall *v22)(CCTextInputNode *, _BYTE *); // [sp+4h] [bp-20h]\n  _BYTE v23[8]; // [sp+8h] [bp-1Ch] BYREF\n  int v24[3]; // [sp+10h] [bp-14h] BYREF\n\n  v11 = cocos2d::CCLayer::init(this);\n  if ( v11 )\n  {\n    (*(void (__fastcall **)(CCTextInputNode *, int))(*(_DWORD *)this + 500))(this, 1);\n    (*(void (__fastcall **)(CCTextInputNode *, int))(*(_DWORD *)this + 552))(this, 1);\n    *((_BYTE *)this + 432) = 0;\n    std::string::assign((int *)this + 82, a4);\n    v13 = cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(\n            (cocos2d::CCTextFieldTTF *)a4,\n            a5,\n            COERCE_CONST_CHAR_((float)a6),\n            v12);\n    v14 = *(_DWORD *)this;\n    *((_DWORD *)this + 104) = v13;\n    (*(void (__fastcall **)(CCTextInputNode *, int))(v14 + 228))(this, v13);\n    *(_DWORD *)(*((_DWORD *)this + 104) + 584) = (char *)this + 320;\n    v22 = *(void (__fastcall **)(CCTextInputNode *, _BYTE *))(*(_DWORD *)this + 160);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v23, a2, a3);\n    v22(this, v23);\n    *((_DWORD *)this + 99) = 1065353216;\n    *((_DWORD *)this + 100) = 0;\n    *((float *)this + 98) = a2;\n    *((_WORD *)this + 202) = -1;\n    *(_WORD *)((char *)this + 407) = -1;\n    *((_BYTE *)this + 406) = -1;\n    *((_BYTE *)this + 409) = -1;\n    std::string::assign((int *)this + 89, \" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\");\n    if ( a7 )\n    {\n      v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)a4, a7, v15);\n      v17 = *(_DWORD *)this;\n      *((_DWORD *)this + 107) = v16;\n      (*(void (__fastcall **)(CCTextInputNode *, int))(v17 + 228))(this, v16);\n      (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 104) + 172))(*((_DWORD *)this + 104), 0);\n      memset(v24, 0, sizeof(v24));\n      v18 = strlen(a7);\n      std::string::__init(v24, a7, v18);\n      CCTextInputNode::updateDefaultFontValues((int)this, (unsigned __int8 *)v24);\n      std::string::~string((int)v24);\n    }\n    v19 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)\"|\", \"chatFont.fnt\", v15);\n    v20 = *(_DWORD *)this;\n    *((_DWORD *)this + 103) = v19;\n    (*(void (__fastcall **)(CCTextInputNode *, int, int))(v20 + 232))(this, v19, 10);\n    (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 512))(*((_DWORD *)this + 103), 150);\n    (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 103) + 172))(*((_DWORD *)this + 103), 0);\n  }\n  return v11;\n}", "assembly": "; \n; CCTextInputNode::init from 0x3e29c4 to 0x3e2b44 (384 bytes)\n; \n; 1 xrefs:\n; > CCTextInputNode::create @ 0x3e2cb6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:02 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x3e29c4\nMOV             R7, R3                                                 ; +0x4, 0x3e29c8\nLDR             R5, =(__stack_chk_guard_ptr - 0x3E29D6)                ; +0x6, 0x3e29ca\nSUB             SP, SP, #0x24                                          ; +0x8, 0x3e29cc\nMOV             R4, R0                                                 ; +0xa, 0x3e29ce\nMOV             R9, R1                                                 ; +0xc, 0x3e29d0\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3e29d2\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x3e29d4\nMOV             R10, R2                                                ; +0x12, 0x3e29d6\nLDR.W           R11, [SP,#0x24+arg_0]                                  ; +0x14, 0x3e29d8\nLDR             R3, [R5]                                               ; +0x18, 0x3e29dc\nLDR             R6, [SP,#0x24+arg_8]                                   ; +0x1a, 0x3e29de\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1c, 0x3e29e0\nBL              _ZN7cocos2d7CCLayer4initEv; cocos2d::CCLayer::init(void) ; +0x1e, 0x3e29e2\nSTR             R5, [SP,#0x24+var_24]                                  ; +0x22, 0x3e29e6\nMOV             R8, R0                                                 ; +0x24, 0x3e29e8\nCMP             R0, #0                                                 ; +0x26, 0x3e29ea\nBEQ.W           loc_3E2B24                                             ; +0x28, 0x3e29ec\nLDR             R3, [R4]                                               ; +0x2c, 0x3e29f0\nMOV             R0, R4                                                 ; +0x2e, 0x3e29f2\nMOVS            R1, #1                                                 ; +0x30, 0x3e29f4\nMOVS            R5, #0                                                 ; +0x32, 0x3e29f6\nLDR.W           R3, [R3,#0x1F4]                                        ; +0x34, 0x3e29f8\nBLX             R3                                                     ; +0x38, 0x3e29fc\nLDR             R3, [R4]                                               ; +0x3a, 0x3e29fe\nMOV             R0, R4                                                 ; +0x3c, 0x3e2a00\nMOVS            R1, #1                                                 ; +0x3e, 0x3e2a02\nLDR.W           R3, [R3,#0x228]                                        ; +0x40, 0x3e2a04\nBLX             R3                                                     ; +0x44, 0x3e2a08\nMOV             R1, R7; char *                                         ; +0x46, 0x3e2a0a\nSTRB.W          R5, [R4,#0x1B0]                                        ; +0x48, 0x3e2a0c\nADD.W           R0, R4, #0x148; int                                    ; +0x4c, 0x3e2a10\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x50, 0x3e2a14\nVLDR            S15, [SP,#0x24+arg_4]                                  ; +0x54, 0x3e2a18\nMOV             R1, R11; char *                                        ; +0x58, 0x3e2a1c\nMOV             R0, R7; this                                           ; +0x5a, 0x3e2a1e\nADD.W           R11, SP, #0x24+var_1C                                  ; +0x5c, 0x3e2a20\nVCVT.F32.S32    S15, S15                                               ; +0x60, 0x3e2a24\nVMOV            R2, S15; char *                                        ; +0x64, 0x3e2a28\nBL              _ZN7cocos2d14CCTextFieldTTF24textFieldWithPlaceHolderEPKcS2_f; cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(char const*,char const*,float) ; +0x68, 0x3e2a2c\nLDR             R2, [R4]                                               ; +0x6c, 0x3e2a30\nMOV             R1, R0                                                 ; +0x6e, 0x3e2a32\nSTR.W           R0, [R4,#0x1A0]                                        ; +0x70, 0x3e2a34\nMOV             R0, R4                                                 ; +0x74, 0x3e2a38\nLDR.W           R2, [R2,#0xE4]                                         ; +0x76, 0x3e2a3a\nBLX             R2                                                     ; +0x7a, 0x3e2a3e\nLDR.W           R2, [R4,#0x1A0]                                        ; +0x7c, 0x3e2a40\nADD.W           R1, R4, #0x140                                         ; +0x80, 0x3e2a44\nMOV             R0, R11; this                                          ; +0x84, 0x3e2a48\nSTR.W           R1, [R2,#0x248]                                        ; +0x86, 0x3e2a4a\nMOV             R1, R9; float                                          ; +0x8a, 0x3e2a4e\nLDR             R2, [R4]                                               ; +0x8c, 0x3e2a50\nLDR.W           R3, [R2,#0xA0]                                         ; +0x8e, 0x3e2a52\nMOV             R2, R10; float                                         ; +0x92, 0x3e2a56\nSTR             R3, [SP,#0x24+var_20]                                  ; +0x94, 0x3e2a58\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x96, 0x3e2a5a\nMOV             R0, R4                                                 ; +0x9a, 0x3e2a5e\nMOV             R1, R11                                                ; +0x9c, 0x3e2a60\nLDR             R3, [SP,#0x24+var_20]                                  ; +0x9e, 0x3e2a62\nBLX             R3                                                     ; +0xa0, 0x3e2a64\nMOV.W           R2, #0x3F800000                                        ; +0xa2, 0x3e2a66\nSTR.W           R2, [R4,#0x18C]                                        ; +0xa6, 0x3e2a6a\nMOVS            R2, #0                                                 ; +0xaa, 0x3e2a6e\nSTR.W           R2, [R4,#0x190]                                        ; +0xac, 0x3e2a70\nADD.W           R0, R4, #0x164; int                                    ; +0xb0, 0x3e2a74\nLDR             R2, =(word_BEAFBC - 0x3E2A82)                          ; +0xb4, 0x3e2a78\nSTR.W           R9, [R4,#0x188]                                        ; +0xb6, 0x3e2a7a\nADD             R2, PC; word_BEAFBC                                    ; +0xba, 0x3e2a7e\nLDRH            R1, [R2]                                               ; +0xbc, 0x3e2a80\nLDRB            R2, [R2,#(byte_BEAFBE - 0xBEAFBC)]                     ; +0xbe, 0x3e2a82\nSTRH.W          R1, [R4,#0x194]                                        ; +0xc0, 0x3e2a84\nSTRH.W          R1, [R4,#0x197]                                        ; +0xc4, 0x3e2a88\nLDR             R1, =(aAbcdefghijklmn - 0x3E2A9A); \" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL\"... ; +0xc8, 0x3e2a8c\nSTRB.W          R2, [R4,#0x196]                                        ; +0xca, 0x3e2a8e\nSTRB.W          R2, [R4,#0x199]                                        ; +0xce, 0x3e2a92\nADD             R1, PC; \" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL\"...   ; +0xd2, 0x3e2a96\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xd4, 0x3e2a98\nCBZ             R6, loc_3E2AEA                                         ; +0xd8, 0x3e2a9c\nMOV             R0, R7; this                                           ; +0xda, 0x3e2a9e\nMOV             R1, R6; char *                                         ; +0xdc, 0x3e2aa0\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xde, 0x3e2aa2\nLDR             R2, [R4]                                               ; +0xe2, 0x3e2aa6\nADD             R7, SP, #0x24+var_14                                   ; +0xe4, 0x3e2aa8\nMOV             R1, R0                                                 ; +0xe6, 0x3e2aaa\nSTR.W           R0, [R4,#0x1AC]                                        ; +0xe8, 0x3e2aac\nMOV             R0, R4                                                 ; +0xec, 0x3e2ab0\nLDR.W           R2, [R2,#0xE4]                                         ; +0xee, 0x3e2ab2\nBLX             R2                                                     ; +0xf2, 0x3e2ab6\nLDR.W           R0, [R4,#0x1A0]                                        ; +0xf4, 0x3e2ab8\nMOV             R1, R5                                                 ; +0xf8, 0x3e2abc\nLDR             R2, [R0]                                               ; +0xfa, 0x3e2abe\nLDR.W           R2, [R2,#0xAC]                                         ; +0xfc, 0x3e2ac0\nBLX             R2                                                     ; +0x100, 0x3e2ac4\nMOV             R0, R6; char *                                         ; +0x102, 0x3e2ac6\nSTR             R5, [SP,#0x24+var_14]                                  ; +0x104, 0x3e2ac8\nSTR             R5, [SP,#0x24+var_10]                                  ; +0x106, 0x3e2aca\nSTR             R5, [SP,#0x24+var_C]                                   ; +0x108, 0x3e2acc\nBLX             strlen                                                 ; +0x10a, 0x3e2ace\nMOV             R1, R6                                                 ; +0x10e, 0x3e2ad2\nMOV             R2, R0                                                 ; +0x110, 0x3e2ad4\nMOV             R0, R7                                                 ; +0x112, 0x3e2ad6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x114, 0x3e2ad8\nMOV             R0, R4                                                 ; +0x118, 0x3e2adc\nMOV             R1, R7                                                 ; +0x11a, 0x3e2ade\nBL              _ZN15CCTextInputNode23updateDefaultFontValuesENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateDefaultFontValues(std::string) ; +0x11c, 0x3e2ae0\nMOV             R0, R7                                                 ; +0x120, 0x3e2ae4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x122, 0x3e2ae6\nLDR             R0, =(asc_B7AF5E - 0x3E2AF2); \"|\"                      ; +0x126, 0x3e2aea\nLDR             R1, =(aChatfontFnt - 0x3E2AF4); \"chatFont.fnt\"         ; +0x128, 0x3e2aec\nADD             R0, PC; \"|\"                                            ; +0x12a, 0x3e2aee\nADD             R1, PC; \"chatFont.fnt\"                                 ; +0x12c, 0x3e2af0\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x12e, 0x3e2af2\nLDR             R3, [R4]                                               ; +0x132, 0x3e2af6\nMOVS            R2, #0xA                                               ; +0x134, 0x3e2af8\nMOV             R1, R0                                                 ; +0x136, 0x3e2afa\nSTR.W           R0, [R4,#0x19C]                                        ; +0x138, 0x3e2afc\nMOV             R0, R4                                                 ; +0x13c, 0x3e2b00\nLDR.W           R3, [R3,#0xE8]                                         ; +0x13e, 0x3e2b02\nBLX             R3                                                     ; +0x142, 0x3e2b06\nLDR.W           R0, [R4,#0x19C]                                        ; +0x144, 0x3e2b08\nMOVS            R1, #0x96                                              ; +0x148, 0x3e2b0c\nLDR             R3, [R0]                                               ; +0x14a, 0x3e2b0e\nLDR.W           R3, [R3,#0x200]                                        ; +0x14c, 0x3e2b10\nBLX             R3                                                     ; +0x150, 0x3e2b14\nLDR.W           R0, [R4,#0x19C]                                        ; +0x152, 0x3e2b16\nMOVS            R1, #0                                                 ; +0x156, 0x3e2b1a\nLDR             R3, [R0]                                               ; +0x158, 0x3e2b1c\nLDR.W           R3, [R3,#0xAC]                                         ; +0x15a, 0x3e2b1e\nBLX             R3                                                     ; +0x15e, 0x3e2b22\nLDR             R3, [SP,#0x24+var_24]                                  ; +0x160, 0x3e2b24\nMOV             R0, R8                                                 ; +0x162, 0x3e2b26\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x164, 0x3e2b28\nLDR             R3, [R3]                                               ; +0x166, 0x3e2b2a\nCMP             R2, R3                                                 ; +0x168, 0x3e2b2c\nBEQ             loc_3E2B3E                                             ; +0x16a, 0x3e2b2e\nBLX             __stack_chk_fail                                       ; +0x16c, 0x3e2b30\nMOV             R0, R7                                                 ; +0x170, 0x3e2b34\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x172, 0x3e2b36\nBL              __cxa_end_cleanup                                      ; +0x176, 0x3e2b3a\nADD             SP, SP, #0x24 ; '$'                                    ; +0x17a, 0x3e2b3e\nPOP.W           {R4-R11,PC}                                            ; +0x17c, 0x3e2b40", "xrefs": ["CCTextInputNode::create @ 0x3e2cb6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}