{"type": "func", "start": 4848980, "end": 4849148, "name": "EditLevelLayer::textInputOpened", "pseudocode": "// \n// EditLevelLayer::textInputOpened from 0x49fd54 to 0x49fdfc (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x49fe0c\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:49:49 +0000\n// \n\nint __fastcall EditLevelLayer::textInputOpened(EditLevelLayer *this, CCTextInputNode *a2)\n{\n  _BOOL4 v3; // r8\n  unsigned __int8 v5[12]; // [sp+0h] [bp-28h] BYREF\n  int v6[3]; // [sp+Ch] [bp-1Ch] BYREF\n  int v7[3]; // [sp+18h] [bp-10h] BYREF\n\n  CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);\n  if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 1 )\n  {\n    memset(v6, 0, sizeof(v6));\n    std::string::__init(v6, &unk_B6B226, 0);\n    v3 = sub_49F398(v5, (unsigned __int8 *)v6);\n    std::string::~string((int)v6);\n    if ( v3 )\n    {\n      memset(v7, 0, sizeof(v7));\n      std::string::__init(v7, \" \", 1u);\n      CCTextInputNode::updateLabel((float *)a2, (int)v7);\n      std::string::~string((int)v7);\n    }\n  }\n  else\n  {\n    (*(void (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);\n  }\n  return std::string::~string((int)v5);\n}", "assembly": "; \n; EditLevelLayer::textInputOpened from 0x49fd54 to 0x49fdfc (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x49fe0c\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:49:49 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x49fd54\nSUB             SP, SP, #0x28                                          ; +0x4, 0x49fd58\nLDR             R5, =(__stack_chk_guard_ptr - 0x49FD66)                ; +0x6, 0x49fd5a\nMOV             R7, R1                                                 ; +0x8, 0x49fd5c\nMOV             R0, SP; this                                           ; +0xa, 0x49fd5e\nMOV             R6, SP                                                 ; +0xc, 0x49fd60\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x49fd62\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x49fd64\nLDR             R3, [R5]                                               ; +0x12, 0x49fd66\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x14, 0x49fd68\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x16, 0x49fd6a\nLDR             R3, [R7]                                               ; +0x1a, 0x49fd6e\nMOV             R0, R7                                                 ; +0x1c, 0x49fd70\nLDR             R3, [R3,#0x20]                                         ; +0x1e, 0x49fd72\nBLX             R3                                                     ; +0x20, 0x49fd74\nCMP             R0, #1                                                 ; +0x22, 0x49fd76\nBNE             loc_49FDCA                                             ; +0x24, 0x49fd78\nADD             R4, SP, #0x28+var_1C                                   ; +0x26, 0x49fd7a\nLDR             R1, =(unk_B6B226 - 0x49FD88)                           ; +0x28, 0x49fd7c\nMOVS            R2, #0                                                 ; +0x2a, 0x49fd7e\nSTR             R2, [SP,#0x28+var_1C]                                  ; +0x2c, 0x49fd80\nMOV             R0, R4                                                 ; +0x2e, 0x49fd82\nADD             R1, PC; unk_B6B226                                     ; +0x30, 0x49fd84\nSTR             R2, [SP,#0x28+var_18]                                  ; +0x32, 0x49fd86\nSTR             R2, [SP,#0x28+var_14]                                  ; +0x34, 0x49fd88\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x36, 0x49fd8a\nMOV             R0, SP                                                 ; +0x3a, 0x49fd8e\nMOV             R1, R4                                                 ; +0x3c, 0x49fd90\nBL              sub_49F398                                             ; +0x3e, 0x49fd92\nMOV             R8, R0                                                 ; +0x42, 0x49fd96\nMOV             R0, R4                                                 ; +0x44, 0x49fd98\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x49fd9a\nCMP.W           R8, #0                                                 ; +0x4a, 0x49fd9e\nBEQ             loc_49FDD2                                             ; +0x4e, 0x49fda2\nADD             R4, SP, #0x28+var_10                                   ; +0x50, 0x49fda4\nLDR             R1, =(asc_B7533B - 0x49FDB2); \" \"                      ; +0x52, 0x49fda6\nMOVS            R2, #1                                                 ; +0x54, 0x49fda8\nMOVS            R3, #0                                                 ; +0x56, 0x49fdaa\nMOV             R0, R4                                                 ; +0x58, 0x49fdac\nADD             R1, PC; \" \"                                            ; +0x5a, 0x49fdae\nSTR             R3, [SP,#0x28+var_10]                                  ; +0x5c, 0x49fdb0\nSTR             R3, [SP,#0x28+var_C]                                   ; +0x5e, 0x49fdb2\nSTR             R3, [SP,#0x28+var_8]                                   ; +0x60, 0x49fdb4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x62, 0x49fdb6\nMOV             R0, R7                                                 ; +0x66, 0x49fdba\nMOV             R1, R4                                                 ; +0x68, 0x49fdbc\nBL              _ZN15CCTextInputNode11updateLabelENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::updateLabel(std::string) ; +0x6a, 0x49fdbe\nMOV             R0, R4                                                 ; +0x6e, 0x49fdc2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x70, 0x49fdc4\nB               loc_49FDD2                                             ; +0x74, 0x49fdc8\nLDR             R3, [R7]                                               ; +0x76, 0x49fdca\nMOV             R0, R7                                                 ; +0x78, 0x49fdcc\nLDR             R3, [R3,#0x20]                                         ; +0x7a, 0x49fdce\nBLX             R3                                                     ; +0x7c, 0x49fdd0\nMOV             R0, R6                                                 ; +0x7e, 0x49fdd2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x80, 0x49fdd4\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x84, 0x49fdd8\nLDR             R3, [R5]                                               ; +0x86, 0x49fdda\nCMP             R2, R3                                                 ; +0x88, 0x49fddc\nBEQ             loc_49FDF6                                             ; +0x8a, 0x49fdde\nBLX             __stack_chk_fail                                       ; +0x8c, 0x49fde0\nMOV             R0, R4                                                 ; +0x90, 0x49fde4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x92, 0x49fde6\nB               loc_49FDEC                                             ; +0x96, 0x49fdea\nMOV             R0, R6                                                 ; +0x98, 0x49fdec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9a, 0x49fdee\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x49fdf2\nADD             SP, SP, #0x28 ; '('                                    ; +0xa2, 0x49fdf6\nPOP.W           {R4-R8,PC}                                             ; +0xa4, 0x49fdf8", "xrefs": ["`non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x49fe0c"], "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"}