{"type": "func", "start": 4848840, "end": 4848962, "name": "EditLevelLayer::uploadActionFailed", "pseudocode": "// \n// EditLevelLayer::uploadActionFailed from 0x49fcc8 to 0x49fd42 (122 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x49fd50\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::uploadActionFailed(int this, int a2, int a3)\n{\n  int v3; // r6\n  int v4; // r2\n  int v5; // r7\n  int v6[3]; // [sp+0h] [bp-14h] BYREF\n\n  v3 = this;\n  v4 = *(_DWORD *)(this + 348);\n  if ( v4 && *(_DWORD *)(v4 + 268) - *(_DWORD *)(v4 + 272) == a2 )\n  {\n    v5 = *(_DWORD *)(this + 380);\n    if ( v5 )\n    {\n      memset(v6, 0, sizeof(v6));\n      std::string::__init(v6, \"Failed. Please try again later.\", 0x1Fu);\n      UploadActionPopup::showFailMessage(v5, v6);\n      this = std::string::~string((int)v6);\n      *(_DWORD *)(*(_DWORD *)(v3 + 380) + 520) = 0;\n      *(_DWORD *)(v3 + 380) = 0;\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditLevelLayer::uploadActionFailed from 0x49fcc8 to 0x49fd42 (122 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x49fd50\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 - 0x49FCD0)                ; +0x0, 0x49fcc8\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x49fcca\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x49fccc\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x49fcce\nSUB             SP, SP, #0x14                                          ; +0x8, 0x49fcd0\nMOV             R6, R0                                                 ; +0xa, 0x49fcd2\nLDR             R2, [R3]                                               ; +0xc, 0x49fcd4\nMOV             R5, R3                                                 ; +0xe, 0x49fcd6\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x49fcd8\nLDR.W           R2, [R0,#0x15C]                                        ; +0x12, 0x49fcda\nCBZ             R2, loc_49FD32                                         ; +0x16, 0x49fcde\nLDR.W           R3, [R2,#0x10C]                                        ; +0x18, 0x49fce0\nLDR.W           R2, [R2,#0x110]                                        ; +0x1c, 0x49fce4\nSUBS            R3, R3, R2                                             ; +0x20, 0x49fce8\nCMP             R3, R1                                                 ; +0x22, 0x49fcea\nBNE             loc_49FD32                                             ; +0x24, 0x49fcec\nLDR.W           R7, [R0,#0x17C]                                        ; +0x26, 0x49fcee\nCBZ             R7, loc_49FD32                                         ; +0x2a, 0x49fcf2\nLDR             R1, =(aFailedPleaseTr - 0x49FD00); \"Failed. Please try again later.\" ; +0x2c, 0x49fcf4\nMOV             R0, SP                                                 ; +0x2e, 0x49fcf6\nMOVS            R2, #0x1F                                              ; +0x30, 0x49fcf8\nMOVS            R3, #0                                                 ; +0x32, 0x49fcfa\nADD             R1, PC; \"Failed. Please try again later.\"              ; +0x34, 0x49fcfc\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x36, 0x49fcfe\nSTR             R3, [SP,#0x14+var_10]                                  ; +0x38, 0x49fd00\nMOV             R4, SP                                                 ; +0x3a, 0x49fd02\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x3c, 0x49fd04\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3e, 0x49fd06\nMOV             R0, R7                                                 ; +0x42, 0x49fd0a\nMOV             R1, SP                                                 ; +0x44, 0x49fd0c\nBL              _ZN17UploadActionPopup15showFailMessageENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; UploadActionPopup::showFailMessage(std::string) ; +0x46, 0x49fd0e\nMOV             R0, SP                                                 ; +0x4a, 0x49fd12\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4c, 0x49fd14\nLDR.W           R2, [R6,#0x17C]                                        ; +0x50, 0x49fd18\nMOVS            R3, #0                                                 ; +0x54, 0x49fd1c\nSTR.W           R3, [R2,#0x208]                                        ; +0x56, 0x49fd1e\nSTR.W           R3, [R6,#0x17C]                                        ; +0x5a, 0x49fd22\nB               loc_49FD32                                             ; +0x5e, 0x49fd26\nMOV             R0, R4                                                 ; +0x60, 0x49fd28\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x49fd2a\nBL              __cxa_end_cleanup                                      ; +0x66, 0x49fd2e\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x6a, 0x49fd32\nLDR             R3, [R5]                                               ; +0x6c, 0x49fd34\nCMP             R2, R3                                                 ; +0x6e, 0x49fd36\nBEQ             loc_49FD3E                                             ; +0x70, 0x49fd38\nBLX             __stack_chk_fail                                       ; +0x72, 0x49fd3a\nADD             SP, SP, #0x14                                          ; +0x76, 0x49fd3e\nPOP             {R4-R7,PC}                                             ; +0x78, 0x49fd40", "xrefs": ["`non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x49fd50"], "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"}