{"type": "func", "start": 4849824, "end": 4850014, "name": "EditLevelLayer::uploadActionFinished", "pseudocode": "// \n// EditLevelLayer::uploadActionFinished from 0x4a00a0 to 0x4a015e (190 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x4a016c\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::uploadActionFinished(int this, int a2, int a3)\n{\n  char *v3; // r8\n  int v4; // r6\n  int v5; // r2\n  int v6; // r9\n  size_t v7; // r0\n  int v8[2]; // [sp+4h] [bp-20h] BYREF\n  char *v9; // [sp+Ch] [bp-18h]\n  int v10[3]; // [sp+10h] [bp-14h] BYREF\n\n  v4 = this;\n  v5 = *(_DWORD *)(this + 348);\n  if ( v5 && *(_DWORD *)(v5 + 268) - *(_DWORD *)(v5 + 272) == a2 && *(_DWORD *)(this + 380) )\n  {\n    v8[0] = 0;\n    v8[1] = 0;\n    v9 = nullptr;\n    std::string::__init(v8, \"Description updated!\", 0x14u);\n    v10[0] = 0;\n    v10[1] = 0;\n    if ( (v8[0] & 1) == 0 )\n      v3 = (char *)v8 + 1;\n    v10[2] = 0;\n    if ( (v8[0] & 1) != 0 )\n      v3 = v9;\n    v6 = *(_DWORD *)(v4 + 380);\n    v7 = strlen(v3);\n    std::string::__init(v10, v3, v7);\n    UploadActionPopup::showSuccessMessage(v6, v10);\n    std::string::~string((int)v10);\n    *(_DWORD *)(*(_DWORD *)(v4 + 380) + 520) = 0;\n    *(_DWORD *)(v4 + 380) = 0;\n    return std::string::~string((int)v8);\n  }\n  return this;\n}", "assembly": "; \n; EditLevelLayer::uploadActionFinished from 0x4a00a0 to 0x4a015e (190 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x4a016c\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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4A00AA)                ; +0x0, 0x4a00a0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x4a00a2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4a00a6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4a00a8\nSUB             SP, SP, #0x24                                          ; +0xa, 0x4a00aa\nMOV             R6, R0                                                 ; +0xc, 0x4a00ac\nLDR             R2, [R3]                                               ; +0xe, 0x4a00ae\nMOV             R5, R3                                                 ; +0x10, 0x4a00b0\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x12, 0x4a00b2\nLDR.W           R2, [R0,#0x15C]                                        ; +0x14, 0x4a00b4\nCMP             R2, #0                                                 ; +0x18, 0x4a00b8\nBEQ             loc_4A014C                                             ; +0x1a, 0x4a00ba\nLDR.W           R3, [R2,#0x10C]                                        ; +0x1c, 0x4a00bc\nLDR.W           R2, [R2,#0x110]                                        ; +0x20, 0x4a00c0\nSUBS            R3, R3, R2                                             ; +0x24, 0x4a00c4\nCMP             R3, R1                                                 ; +0x26, 0x4a00c6\nBNE             loc_4A014C                                             ; +0x28, 0x4a00c8\nLDR.W           R3, [R0,#0x17C]                                        ; +0x2a, 0x4a00ca\nCMP             R3, #0                                                 ; +0x2e, 0x4a00ce\nBEQ             loc_4A014C                                             ; +0x30, 0x4a00d0\nADD             R7, SP, #0x24+var_20                                   ; +0x32, 0x4a00d2\nLDR             R1, =(aDescriptionUpd - 0x4A00DE); \"Description updated!\" ; +0x34, 0x4a00d4\nMOVS            R2, #0x14                                              ; +0x36, 0x4a00d6\nMOVS            R4, #0                                                 ; +0x38, 0x4a00d8\nADD             R1, PC; \"Description updated!\"                         ; +0x3a, 0x4a00da\nMOV             R0, R7                                                 ; +0x3c, 0x4a00dc\nSTR             R4, [SP,#0x24+var_20]                                  ; +0x3e, 0x4a00de\nSTR             R4, [SP,#0x24+var_1C]                                  ; +0x40, 0x4a00e0\nSTR             R4, [SP,#0x24+var_18]                                  ; +0x42, 0x4a00e2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x44, 0x4a00e4\nLDRB.W          R3, [SP,#0x24+var_20]                                  ; +0x48, 0x4a00e8\nSTR             R4, [SP,#0x24+var_14]                                  ; +0x4c, 0x4a00ec\nLSLS            R3, R3, #0x1F                                          ; +0x4e, 0x4a00ee\nSTR             R4, [SP,#0x24+var_10]                                  ; +0x50, 0x4a00f0\nIT PL                                                                  ; +0x52, 0x4a00f2\nADDPL.W         R8, SP, #0x24+var_20+1                                 ; +0x54, 0x4a00f4\nSTR             R4, [SP,#0x24+var_C]                                   ; +0x58, 0x4a00f8\nIT MI                                                                  ; +0x5a, 0x4a00fa\nLDRMI.W         R8, [SP,#0x24+var_18]                                  ; +0x5c, 0x4a00fc\nADD             R4, SP, #0x24+var_14                                   ; +0x60, 0x4a0100\nLDR.W           R9, [R6,#0x17C]                                        ; +0x62, 0x4a0102\nMOV             R0, R8; char *                                         ; +0x66, 0x4a0106\nBLX             strlen                                                 ; +0x68, 0x4a0108\nMOV             R1, R8                                                 ; +0x6c, 0x4a010c\nMOV             R2, R0                                                 ; +0x6e, 0x4a010e\nMOV             R0, R4                                                 ; +0x70, 0x4a0110\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x72, 0x4a0112\nMOV             R0, R9                                                 ; +0x76, 0x4a0116\nMOV             R1, R4                                                 ; +0x78, 0x4a0118\nBL              _ZN17UploadActionPopup18showSuccessMessageENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; UploadActionPopup::showSuccessMessage(std::string) ; +0x7a, 0x4a011a\nMOV             R0, R4                                                 ; +0x7e, 0x4a011e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x80, 0x4a0120\nLDR.W           R2, [R6,#0x17C]                                        ; +0x84, 0x4a0124\nMOVS            R3, #0                                                 ; +0x88, 0x4a0128\nMOV             R0, R7                                                 ; +0x8a, 0x4a012a\nSTR.W           R3, [R2,#0x208]                                        ; +0x8c, 0x4a012c\nSTR.W           R3, [R6,#0x17C]                                        ; +0x90, 0x4a0130\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x4a0134\nB               loc_4A014C                                             ; +0x98, 0x4a0138\nMOV             R0, R4                                                 ; +0x9a, 0x4a013a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9c, 0x4a013c\nB               loc_4A0142                                             ; +0xa0, 0x4a0140\nMOV             R0, R7                                                 ; +0xa2, 0x4a0142\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa4, 0x4a0144\nBL              __cxa_end_cleanup                                      ; +0xa8, 0x4a0148\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xac, 0x4a014c\nLDR             R3, [R5]                                               ; +0xae, 0x4a014e\nCMP             R2, R3                                                 ; +0xb0, 0x4a0150\nBEQ             loc_4A0158                                             ; +0xb2, 0x4a0152\nBLX             __stack_chk_fail                                       ; +0xb4, 0x4a0154\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb8, 0x4a0158\nPOP.W           {R4-R9,PC}                                             ; +0xba, 0x4a015a", "xrefs": ["`non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x4a016c"], "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"}