{"type": "func", "start": 4849700, "end": 4849812, "name": "EditLevelLayer::creatorDescriptionChanged", "pseudocode": "// \n// EditLevelLayer::creatorDescriptionChanged from 0x4a0024 to 0x4a0094 (112 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::creatorDescriptionChanged @ 0x4a009c\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::creatorDescriptionChanged(int a1, int a2)\n{\n  int result; // r0\n  int v4; // r7\n  bool v5; // nf\n  size_t v6; // r0\n  int v7[3]; // [sp+0h] [bp-14h] BYREF\n\n  result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 240))(a1, 2);\n  v4 = result;\n  if ( result )\n  {\n    v5 = (*(_BYTE *)a2 & 1) != 0;\n    if ( (*(_BYTE *)a2 & 1) == 0 )\n      ++a2;\n    v7[0] = 0;\n    if ( v5 )\n      a2 = *(_DWORD *)(a2 + 8);\n    v7[1] = 0;\n    v7[2] = 0;\n    v6 = strlen((const char *)a2);\n    std::string::__init(v7, (const void *)a2, v6);\n    CCTextInputNode::setString(v4, (int)v7);\n    return std::string::~string((int)v7);\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::creatorDescriptionChanged from 0x4a0024 to 0x4a0094 (112 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::creatorDescriptionChanged @ 0x4a009c\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            {R4-R7,LR}                                             ; +0x0, 0x4a0024\nSUB             SP, SP, #0x14                                          ; +0x2, 0x4a0026\nLDR             R6, =(__stack_chk_guard_ptr - 0x4A0032)                ; +0x4, 0x4a0028\nMOV             R4, R1                                                 ; +0x6, 0x4a002a\nMOVS            R1, #2                                                 ; +0x8, 0x4a002c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x4a002e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x4a0030\nLDR             R3, [R6]                                               ; +0xe, 0x4a0032\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x10, 0x4a0034\nLDR             R3, [R0]                                               ; +0x12, 0x4a0036\nLDR.W           R3, [R3,#0xF0]                                         ; +0x14, 0x4a0038\nBLX             R3                                                     ; +0x18, 0x4a003c\nMOV             R7, R0                                                 ; +0x1a, 0x4a003e\nCBZ             R0, loc_4A0084                                         ; +0x1c, 0x4a0040\nLDRB            R3, [R4]                                               ; +0x1e, 0x4a0042\nMOV             R5, SP                                                 ; +0x20, 0x4a0044\nLSLS            R3, R3, #0x1F                                          ; +0x22, 0x4a0046\nMOV.W           R3, #0                                                 ; +0x24, 0x4a0048\nIT PL                                                                  ; +0x28, 0x4a004c\nADDPL           R4, #1                                                 ; +0x2a, 0x4a004e\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x2c, 0x4a0050\nIT MI                                                                  ; +0x2e, 0x4a0052\nLDRMI           R4, [R4,#8]                                            ; +0x30, 0x4a0054\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x32, 0x4a0056\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x34, 0x4a0058\nMOV             R0, R4; char *                                         ; +0x36, 0x4a005a\nBLX             strlen                                                 ; +0x38, 0x4a005c\nMOV             R1, R4                                                 ; +0x3c, 0x4a0060\nMOV             R2, R0                                                 ; +0x3e, 0x4a0062\nMOV             R0, SP                                                 ; +0x40, 0x4a0064\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x42, 0x4a0066\nMOV             R0, R7                                                 ; +0x46, 0x4a006a\nMOV             R1, SP                                                 ; +0x48, 0x4a006c\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x4a, 0x4a006e\nMOV             R0, SP                                                 ; +0x4e, 0x4a0072\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x50, 0x4a0074\nB               loc_4A0084                                             ; +0x54, 0x4a0078\nMOV             R0, R5                                                 ; +0x56, 0x4a007a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x58, 0x4a007c\nBL              __cxa_end_cleanup                                      ; +0x5c, 0x4a0080\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x60, 0x4a0084\nLDR             R3, [R6]                                               ; +0x62, 0x4a0086\nCMP             R2, R3                                                 ; +0x64, 0x4a0088\nBEQ             loc_4A0090                                             ; +0x66, 0x4a008a\nBLX             __stack_chk_fail                                       ; +0x68, 0x4a008c\nADD             SP, SP, #0x14                                          ; +0x6c, 0x4a0090\nPOP             {R4-R7,PC}                                             ; +0x6e, 0x4a0092", "xrefs": ["`non-virtual thunk to'EditLevelLayer::creatorDescriptionChanged @ 0x4a009c"], "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"}