{"type": "func", "start": 4050656, "end": 4050730, "name": "CCTextInputNode::canCopyText", "pseudocode": "// \n// CCTextInputNode::canCopyText from 0x3dcee0 to 0x3dcf2a (74 bytes)\n// \n// 2 xrefs:\n// > CCTextInputMenu::init @ 0x3dbbbc\n// > CCTextInputNode::copyText @ 0x3dcf7e\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:46:48 +0000\n// \n\nbool __fastcall CCTextInputNode::canCopyText(CCTextInputNode *this, int a2, int a3, int a4)\n{\n  int v4; // r4\n  _BOOL4 v5; // r4\n  CCTextInputNode *v7; // [sp+0h] [bp-10h] BYREF\n  int v8; // [sp+4h] [bp-Ch]\n  int v9; // [sp+8h] [bp-8h]\n  int v10; // [sp+Ch] [bp-4h]\n\n  v7 = this;\n  v8 = a2;\n  v9 = a3;\n  v10 = a4;\n  if ( *((_BYTE *)this + 433) )\n    return 0;\n  CCTextInputNode::getString((CCTextInputNode *)&v7, (int)this);\n  if ( ((unsigned __int8)v7 & 1) != 0 )\n    v4 = v8;\n  else\n    v4 = (int)(unsigned __int8)v7 >> 1;\n  v5 = v4 != 0;\n  std::string::~string((int)&v7);\n  return v5;\n}", "assembly": "; \n; CCTextInputNode::canCopyText from 0x3dcee0 to 0x3dcf2a (74 bytes)\n; \n; 2 xrefs:\n; > CCTextInputMenu::init @ 0x3dbbbc\n; > CCTextInputNode::copyText @ 0x3dcf7e\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:46:48 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x3dcee0\nMOV             R1, R0                                                 ; +0x2, 0x3dcee2\nLDR             R3, =(__stack_chk_guard_ptr - 0x3DCEEA)                ; +0x4, 0x3dcee4\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3dcee6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3dcee8\nLDR             R2, [R3]                                               ; +0xa, 0x3dceea\nMOV             R5, R3                                                 ; +0xc, 0x3dceec\nSTR             R2, [SP,#0x10+var_4]                                   ; +0xe, 0x3dceee\nLDRB.W          R2, [R0,#0x1B1]                                        ; +0x10, 0x3dcef0\nCBNZ            R2, loc_3DCF16                                         ; +0x14, 0x3dcef4\nMOV             R0, SP; this                                           ; +0x16, 0x3dcef6\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x18, 0x3dcef8\nLDRB.W          R4, [SP,#0x10+var_10]                                  ; +0x1c, 0x3dcefc\nMOV             R0, SP                                                 ; +0x20, 0x3dcf00\nLSLS            R3, R4, #0x1F                                          ; +0x22, 0x3dcf02\nITE PL                                                                 ; +0x24, 0x3dcf04\nASRPL           R4, R4, #1                                             ; +0x26, 0x3dcf06\nLDRMI           R4, [SP,#0x10+var_C]                                   ; +0x28, 0x3dcf08\nADDS            R4, #0                                                 ; +0x2a, 0x3dcf0a\nIT NE                                                                  ; +0x2c, 0x3dcf0c\nMOVNE           R4, #1                                                 ; +0x2e, 0x3dcf0e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x30, 0x3dcf10\nB               loc_3DCF18                                             ; +0x34, 0x3dcf14\nMOVS            R4, #0                                                 ; +0x36, 0x3dcf16\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x38, 0x3dcf18\nMOV             R0, R4                                                 ; +0x3a, 0x3dcf1a\nLDR             R3, [R5]                                               ; +0x3c, 0x3dcf1c\nCMP             R2, R3                                                 ; +0x3e, 0x3dcf1e\nBEQ             loc_3DCF26                                             ; +0x40, 0x3dcf20\nBLX             __stack_chk_fail                                       ; +0x42, 0x3dcf22\nADD             SP, SP, #0x10                                          ; +0x46, 0x3dcf26\nPOP             {R4-R6,PC}                                             ; +0x48, 0x3dcf28", "xrefs": ["CCTextInputMenu::init @ 0x3dbbbc", "CCTextInputNode::copyText @ 0x3dcf7e"], "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"}