{"type": "func", "start": 4050736, "end": 4050796, "name": "CCTextInputNode::canClearText", "pseudocode": "// \n// CCTextInputNode::canClearText from 0x3dcf30 to 0x3dcf6c (60 bytes)\n// \n// 1 xrefs:\n// > CCTextInputMenu::init @ 0x3dbc2c\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\nint __fastcall CCTextInputNode::canClearText(CCTextInputNode *this, int a2, int a3, int a4)\n{\n  int v4; // r5\n  int result; // r0\n  CCTextInputNode *v6; // [sp+0h] [bp-10h] BYREF\n  int v7; // [sp+4h] [bp-Ch]\n  int v8; // [sp+8h] [bp-8h]\n  int v9; // [sp+Ch] [bp-4h]\n\n  v6 = this;\n  v7 = a2;\n  v8 = a3;\n  v9 = a4;\n  CCTextInputNode::getString((CCTextInputNode *)&v6, (int)this);\n  if ( ((unsigned __int8)v6 & 1) != 0 )\n    v4 = v7;\n  else\n    v4 = (int)(unsigned __int8)v6 >> 1;\n  std::string::~string((int)&v6);\n  result = v4;\n  if ( v4 )\n    return 1;\n  return result;\n}", "assembly": "; \n; CCTextInputNode::canClearText from 0x3dcf30 to 0x3dcf6c (60 bytes)\n; \n; 1 xrefs:\n; > CCTextInputMenu::init @ 0x3dbc2c\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, 0x3dcf30\nMOV             R1, R0                                                 ; +0x2, 0x3dcf32\nLDR             R4, =(__stack_chk_guard_ptr - 0x3DCF3C)                ; +0x4, 0x3dcf34\nMOV             R0, SP; this                                           ; +0x6, 0x3dcf36\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3dcf38\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xa, 0x3dcf3a\nLDR             R3, [R4]                                               ; +0xc, 0x3dcf3c\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x3dcf3e\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x10, 0x3dcf40\nLDRB.W          R5, [SP,#0x10+var_10]                                  ; +0x14, 0x3dcf44\nMOV             R0, SP                                                 ; +0x18, 0x3dcf48\nLSLS            R3, R5, #0x1F                                          ; +0x1a, 0x3dcf4a\nITE PL                                                                 ; +0x1c, 0x3dcf4c\nASRPL           R5, R5, #1                                             ; +0x1e, 0x3dcf4e\nLDRMI           R5, [SP,#0x10+var_C]                                   ; +0x20, 0x3dcf50\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x22, 0x3dcf52\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x26, 0x3dcf56\nMOVS            R0, R5                                                 ; +0x28, 0x3dcf58\nLDR             R3, [R4]                                               ; +0x2a, 0x3dcf5a\nIT NE                                                                  ; +0x2c, 0x3dcf5c\nMOVNE           R0, #1                                                 ; +0x2e, 0x3dcf5e\nCMP             R2, R3                                                 ; +0x30, 0x3dcf60\nBEQ             loc_3DCF68                                             ; +0x32, 0x3dcf62\nBLX             __stack_chk_fail                                       ; +0x34, 0x3dcf64\nADD             SP, SP, #0x10                                          ; +0x38, 0x3dcf68\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x3dcf6a", "xrefs": ["CCTextInputMenu::init @ 0x3dbc2c"], "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"}