{"type": "func", "start": 5761432, "end": 5761576, "name": "CustomizeObjectLayer::onClear", "pseudocode": "// \n// CustomizeObjectLayer::onClear from 0x57e998 to 0x57ea28 (144 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::textInputOpened @ 0x57f460\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::onClear(int this, cocos2d::CCObject *a2, int a3, int a4)\n{\n  int v4; // r7\n  _BYTE *v5; // r8\n  int v6; // r8\n  int v7; // [sp+0h] [bp-10h] BYREF\n  cocos2d::CCObject *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  v4 = this;\n  v5 = *(_BYTE **)(this + 532);\n  if ( v5 )\n  {\n    *(_BYTE *)(this + 654) = 1;\n    v7 = 0;\n    v8 = nullptr;\n    v9 = 0;\n    std::string::__init(&v7, &unk_B6B226, 0);\n    TextGameObject::updateTextObject(v5, (unsigned __int8 *)&v7, 0);\n    std::string::~string((int)&v7);\n    v6 = *(_DWORD *)(v4 + 604);\n    v7 = 0;\n    v8 = nullptr;\n    v9 = 0;\n    std::string::__init(&v7, &unk_B6B226, 0);\n    CCTextInputNode::setString(v6, (int)&v7);\n    this = std::string::~string((int)&v7);\n    *(_BYTE *)(v4 + 654) = 0;\n  }\n  return this;\n}", "assembly": "; \n; CustomizeObjectLayer::onClear from 0x57e998 to 0x57ea28 (144 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::textInputOpened @ 0x57f460\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:52:51 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x57e998\nMOV             R7, R0                                                 ; +0x4, 0x57e99c\nLDR             R3, =(__stack_chk_guard_ptr - 0x57E9A8)                ; +0x6, 0x57e99e\nLDR.W           R8, [R0,#0x214]                                        ; +0x8, 0x57e9a0\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x57e9a4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x57e9a6\nLDR             R2, [R3]                                               ; +0x10, 0x57e9a8\nMOV             R6, R3                                                 ; +0x12, 0x57e9aa\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x14, 0x57e9ac\nCMP.W           R8, #0                                                 ; +0x16, 0x57e9ae\nBEQ             loc_57EA16                                             ; +0x1a, 0x57e9b2\nLDR             R1, =(unk_B6B226 - 0x57E9C4)                           ; +0x1c, 0x57e9b4\nMOVS            R5, #0                                                 ; +0x1e, 0x57e9b6\nMOVS            R3, #1                                                 ; +0x20, 0x57e9b8\nMOV             R2, R5                                                 ; +0x22, 0x57e9ba\nSTRB.W          R3, [R0,#0x28E]                                        ; +0x24, 0x57e9bc\nADD             R1, PC; unk_B6B226                                     ; +0x28, 0x57e9c0\nMOV             R0, SP                                                 ; +0x2a, 0x57e9c2\nSTR             R5, [SP,#0x10+var_10]                                  ; +0x2c, 0x57e9c4\nSTR             R5, [SP,#0x10+var_C]                                   ; +0x2e, 0x57e9c6\nMOV             R4, SP                                                 ; +0x30, 0x57e9c8\nSTR             R5, [SP,#0x10+var_8]                                   ; +0x32, 0x57e9ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x34, 0x57e9cc\nMOV             R0, R8                                                 ; +0x38, 0x57e9d0\nMOV             R1, SP                                                 ; +0x3a, 0x57e9d2\nMOV             R2, R5                                                 ; +0x3c, 0x57e9d4\nBL              _ZN14TextGameObject16updateTextObjectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEb; TextGameObject::updateTextObject(std::string,bool) ; +0x3e, 0x57e9d6\nMOV             R0, SP                                                 ; +0x42, 0x57e9da\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x44, 0x57e9dc\nLDR.W           R8, [R7,#0x25C]                                        ; +0x48, 0x57e9e0\nLDR             R1, =(unk_B6B226 - 0x57E9F0)                           ; +0x4c, 0x57e9e4\nMOV             R0, SP                                                 ; +0x4e, 0x57e9e6\nMOV             R2, R5                                                 ; +0x50, 0x57e9e8\nSTR             R5, [SP,#0x10+var_10]                                  ; +0x52, 0x57e9ea\nADD             R1, PC; unk_B6B226                                     ; +0x54, 0x57e9ec\nSTR             R5, [SP,#0x10+var_C]                                   ; +0x56, 0x57e9ee\nSTR             R5, [SP,#0x10+var_8]                                   ; +0x58, 0x57e9f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x5a, 0x57e9f2\nMOV             R0, R8                                                 ; +0x5e, 0x57e9f6\nMOV             R1, SP                                                 ; +0x60, 0x57e9f8\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x62, 0x57e9fa\nMOV             R0, SP                                                 ; +0x66, 0x57e9fe\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x68, 0x57ea00\nSTRB.W          R5, [R7,#0x28E]                                        ; +0x6c, 0x57ea04\nB               loc_57EA16                                             ; +0x70, 0x57ea08\nB               loc_57EA0C                                             ; +0x72, 0x57ea0a\nMOV             R0, R4                                                 ; +0x74, 0x57ea0c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x76, 0x57ea0e\nBL              __cxa_end_cleanup                                      ; +0x7a, 0x57ea12\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x7e, 0x57ea16\nLDR             R3, [R6]                                               ; +0x80, 0x57ea18\nCMP             R2, R3                                                 ; +0x82, 0x57ea1a\nBEQ             loc_57EA22                                             ; +0x84, 0x57ea1c\nBLX             __stack_chk_fail                                       ; +0x86, 0x57ea1e\nADD             SP, SP, #0x10                                          ; +0x8a, 0x57ea22\nPOP.W           {R4-R8,PC}                                             ; +0x8c, 0x57ea24", "xrefs": ["CustomizeObjectLayer::textInputOpened @ 0x57f460"], "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"}