{"type": "func", "start": 3891536, "end": 3891650, "name": "EditLevelLayer::uploadActionFailed", "pseudocode": "// \n// EditLevelLayer::uploadActionFailed from 0x3b6150 to 0x3b61c2 (114 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x3b61d0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditLevelLayer::uploadActionFailed(EditLevelLayer *a1, int a2, int a3)\n{\n  GJGameLevel *m_level; // r2\n  UploadActionPopup *m_descriptionPopup; // r7\n  _BYTE v6[4]; // [sp+8h] [bp-Ch] BYREF\n\n  m_level = a1->m_level;\n  if ( m_level && m_level->m_levelID.random - m_level->m_levelID.seed == a2 )\n  {\n    m_descriptionPopup = a1->m_descriptionPopup;\n    if ( m_descriptionPopup )\n    {\n      sub_776584((int)v6, \"Failed. Please try again later.\");\n      UploadActionPopup::showFailMessage(m_descriptionPopup, (std::string)v6);\n      sub_774008(v6);\n      a1->m_descriptionPopup->m_delegate = nullptr;\n      a1->m_descriptionPopup = nullptr;\n    }\n  }\n}", "assembly": "; \n; EditLevelLayer::uploadActionFailed from 0x3b6150 to 0x3b61c2 (114 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x3b61d0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, =(__stack_chk_guard_ptr - 0x3B6158)                ; +0x0, 0x3b6150\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3b6152\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3b6154\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3b6156\nSUB             SP, SP, #0x14                                          ; +0x8, 0x3b6158\nMOV             R6, R0                                                 ; +0xa, 0x3b615a\nLDR             R2, [R3]                                               ; +0xc, 0x3b615c\nMOV             R5, R3                                                 ; +0xe, 0x3b615e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x3b6160\nLDR.W           R2, [R0,#0x154]                                        ; +0x12, 0x3b6162\nCBZ             R2, loc_3B61B2                                         ; +0x16, 0x3b6166\nLDR.W           R3, [R2,#0x10C]                                        ; +0x18, 0x3b6168\nLDR.W           R2, [R2,#0x110]                                        ; +0x1c, 0x3b616c\nSUBS            R3, R3, R2                                             ; +0x20, 0x3b6170\nCMP             R3, R1                                                 ; +0x22, 0x3b6172\nBNE             loc_3B61B2                                             ; +0x24, 0x3b6174\nLDR.W           R7, [R0,#0x16C]                                        ; +0x26, 0x3b6176\nCBZ             R7, loc_3B61B2                                         ; +0x2a, 0x3b617a\nADD             R4, SP, #0x14+var_C                                    ; +0x2c, 0x3b617c\nLDR             R1, =(aFailedPleaseTr - 0x3B6186); \"Failed. Please try again later.\" ; +0x2e, 0x3b617e\nADD             R2, SP, #0x14+var_10                                   ; +0x30, 0x3b6180\nADD             R1, PC; \"Failed. Please try again later.\"              ; +0x32, 0x3b6182\nMOV             R0, R4; int                                            ; +0x34, 0x3b6184\nBL              sub_776584                                             ; +0x36, 0x3b6186\nMOV             R0, R7                                                 ; +0x3a, 0x3b618a\nMOV             R1, R4                                                 ; +0x3c, 0x3b618c\nBL              _ZN17UploadActionPopup15showFailMessageESs; UploadActionPopup::showFailMessage(std::string) ; +0x3e, 0x3b618e\nMOV             R0, R4                                                 ; +0x42, 0x3b6192\nBL              sub_774008                                             ; +0x44, 0x3b6194\nLDR.W           R2, [R6,#0x16C]                                        ; +0x48, 0x3b6198\nMOVS            R3, #0                                                 ; +0x4c, 0x3b619c\nSTR.W           R3, [R2,#0x1F0]                                        ; +0x4e, 0x3b619e\nSTR.W           R3, [R6,#0x16C]                                        ; +0x52, 0x3b61a2\nB               loc_3B61B2                                             ; +0x56, 0x3b61a6\nMOV             R0, R4                                                 ; +0x58, 0x3b61a8\nBL              sub_774008                                             ; +0x5a, 0x3b61aa\nBL              __cxa_end_cleanup                                      ; +0x5e, 0x3b61ae\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x62, 0x3b61b2\nLDR             R3, [R5]                                               ; +0x64, 0x3b61b4\nCMP             R2, R3                                                 ; +0x66, 0x3b61b6\nBEQ             loc_3B61BE                                             ; +0x68, 0x3b61b8\nBLX             __stack_chk_fail                                       ; +0x6a, 0x3b61ba\nADD             SP, SP, #0x14                                          ; +0x6e, 0x3b61be\nPOP             {R4-R7,PC}                                             ; +0x70, 0x3b61c0", "xrefs": ["`non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x3b61d0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}