{"type": "func", "start": 3891372, "end": 3891518, "name": "EditLevelLayer::uploadActionFinished", "pseudocode": "// \n// EditLevelLayer::uploadActionFinished from 0x3b60ac to 0x3b613e (146 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x3b614c\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::uploadActionFinished(EditLevelLayer *a1, int a2, int a3)\n{\n  GJGameLevel *m_level; // r2\n  UploadActionPopup *m_descriptionPopup; // r8\n  char *v6; // [sp+4h] [bp-Ch] BYREF\n  int v7; // [sp+8h] [bp-8h] BYREF\n\n  v6 = (char *)a2;\n  v7 = a3;\n  m_level = a1->m_level;\n  if ( m_level && m_level->m_levelID.random - m_level->m_levelID.seed == a2 )\n  {\n    if ( a1->m_descriptionPopup )\n    {\n      sub_776584((int)&v6, \"Description updated!\");\n      m_descriptionPopup = a1->m_descriptionPopup;\n      sub_776584((int)&v7, v6);\n      UploadActionPopup::showSuccessMessage(m_descriptionPopup, (std::string)&v7);\n      sub_774008(&v7);\n      a1->m_descriptionPopup->m_delegate = nullptr;\n      a1->m_descriptionPopup = nullptr;\n      sub_774008(&v6);\n    }\n  }\n}", "assembly": "; \n; EditLevelLayer::uploadActionFinished from 0x3b60ac to 0x3b613e (146 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x3b614c\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\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x3b60ac\nMOV             R6, R0                                                 ; +0x4, 0x3b60b0\nLDR             R3, =(__stack_chk_guard_ptr - 0x3B60B8)                ; +0x6, 0x3b60b2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3b60b4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x3b60b6\nLDR             R2, [R3]                                               ; +0xc, 0x3b60b8\nMOV             R5, R3                                                 ; +0xe, 0x3b60ba\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x10, 0x3b60bc\nLDR.W           R2, [R0,#0x154]                                        ; +0x12, 0x3b60be\nCBZ             R2, loc_3B612C                                         ; +0x16, 0x3b60c2\nLDR.W           R3, [R2,#0x10C]                                        ; +0x18, 0x3b60c4\nLDR.W           R2, [R2,#0x110]                                        ; +0x1c, 0x3b60c8\nSUBS            R3, R3, R2                                             ; +0x20, 0x3b60cc\nCMP             R3, R1                                                 ; +0x22, 0x3b60ce\nBNE             loc_3B612C                                             ; +0x24, 0x3b60d0\nLDR.W           R3, [R0,#0x16C]                                        ; +0x26, 0x3b60d2\nCBZ             R3, loc_3B612C                                         ; +0x2a, 0x3b60d6\nADD             R4, SP, #0x10+var_8                                    ; +0x2c, 0x3b60d8\nADD             R7, SP, #0x10+var_C                                    ; +0x2e, 0x3b60da\nLDR             R1, =(aDescriptionUpd - 0x3B60E6); \"Description updated!\" ; +0x30, 0x3b60dc\nMOV             R2, R4                                                 ; +0x32, 0x3b60de\nMOV             R0, R7; int                                            ; +0x34, 0x3b60e0\nADD             R1, PC; \"Description updated!\"                         ; +0x36, 0x3b60e2\nBL              sub_776584                                             ; +0x38, 0x3b60e4\nMOV             R0, R4; int                                            ; +0x3c, 0x3b60e8\nLDR             R1, [SP,#0x10+var_C]; char *                           ; +0x3e, 0x3b60ea\nMOV             R2, SP                                                 ; +0x40, 0x3b60ec\nLDR.W           R8, [R6,#0x16C]                                        ; +0x42, 0x3b60ee\nBL              sub_776584                                             ; +0x46, 0x3b60f2\nMOV             R0, R8                                                 ; +0x4a, 0x3b60f6\nMOV             R1, R4                                                 ; +0x4c, 0x3b60f8\nBL              _ZN17UploadActionPopup18showSuccessMessageESs; UploadActionPopup::showSuccessMessage(std::string) ; +0x4e, 0x3b60fa\nMOV             R0, R4                                                 ; +0x52, 0x3b60fe\nBL              sub_774008                                             ; +0x54, 0x3b6100\nLDR.W           R2, [R6,#0x16C]                                        ; +0x58, 0x3b6104\nMOVS            R3, #0                                                 ; +0x5c, 0x3b6108\nMOV             R0, R7                                                 ; +0x5e, 0x3b610a\nSTR.W           R3, [R2,#0x1F0]                                        ; +0x60, 0x3b610c\nSTR.W           R3, [R6,#0x16C]                                        ; +0x64, 0x3b6110\nBL              sub_774008                                             ; +0x68, 0x3b6114\nB               loc_3B612C                                             ; +0x6c, 0x3b6118\nMOV             R0, R4                                                 ; +0x6e, 0x3b611a\nBL              sub_774008                                             ; +0x70, 0x3b611c\nB               loc_3B6122                                             ; +0x74, 0x3b6120\nMOV             R0, R7                                                 ; +0x76, 0x3b6122\nBL              sub_774008                                             ; +0x78, 0x3b6124\nBL              __cxa_end_cleanup                                      ; +0x7c, 0x3b6128\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x80, 0x3b612c\nLDR             R3, [R5]                                               ; +0x82, 0x3b612e\nCMP             R2, R3                                                 ; +0x84, 0x3b6130\nBEQ             loc_3B6138                                             ; +0x86, 0x3b6132\nBLX             __stack_chk_fail                                       ; +0x88, 0x3b6134\nADD             SP, SP, #0x10                                          ; +0x8c, 0x3b6138\nPOP.W           {R4-R8,PC}                                             ; +0x8e, 0x3b613a", "xrefs": ["`non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x3b614c"], "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"}