{"type": "func", "start": 5308248, "end": 5308350, "name": "GJMultiplayerManager::onUploadCommentCompleted", "pseudocode": "// \n// GJMultiplayerManager::onUploadCommentCompleted from 0x50ff58 to 0x50ffbe (102 bytes)\n// \n// 1 xrefs:\n// > GJMultiplayerManager::handleIt @ 0x51046a\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\nint __fastcall GJMultiplayerManager::onUploadCommentCompleted(\n        GJMultiplayerManager *a1,\n        int a2,\n        const char **a3,\n        int a4)\n{\n  int v7; // r6\n  int v8; // r8\n  int result; // r0\n  _DWORD v10[2]; // [sp+8h] [bp-8h] BYREF\n\n  v10[0] = a3;\n  v10[1] = a4;\n  GJMultiplayerManager::removeDLFromActive(a1, *a3);\n  v7 = atoi(*a3);\n  sub_776584((int)v10, \"-1\");\n  v8 = sub_774DBC(a2, v10);\n  result = sub_774008(v10);\n  if ( v8 )\n  {\n    result = (int)a1->m_mpDelegate;\n    if ( result )\n      return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 8))(result, v7);\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::onUploadCommentCompleted from 0x50ff58 to 0x50ffbe (102 bytes)\n; \n; 1 xrefs:\n; > GJMultiplayerManager::handleIt @ 0x51046a\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, 0x50ff58\nMOV             R5, R2                                                 ; +0x4, 0x50ff5c\nLDR             R4, =(__stack_chk_guard_ptr - 0x50FF6A)                ; +0x6, 0x50ff5e\nMOV             R8, R1                                                 ; +0x8, 0x50ff60\nLDR             R1, [R2]; char *                                       ; +0xa, 0x50ff62\nMOV             R7, R0                                                 ; +0xc, 0x50ff64\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x50ff66\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x50ff68\nLDR             R3, [R4]                                               ; +0x12, 0x50ff6a\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x50ff6c\nBL              _ZN20GJMultiplayerManager18removeDLFromActiveEPKc; GJMultiplayerManager::removeDLFromActive(char const*) ; +0x16, 0x50ff6e\nLDR             R0, [R5]; char *                                       ; +0x1a, 0x50ff72\nADD             R5, SP, #0x10+var_8                                    ; +0x1c, 0x50ff74\nBLX             atoi                                                   ; +0x1e, 0x50ff76\nLDR             R1, =(a1 - 0x50FF82); \"-1\"                             ; +0x22, 0x50ff7a\nADD             R2, SP, #0x10+var_C                                    ; +0x24, 0x50ff7c\nADD             R1, PC; \"-1\"                                           ; +0x26, 0x50ff7e\nMOV             R6, R0                                                 ; +0x28, 0x50ff80\nMOV             R0, R5; int                                            ; +0x2a, 0x50ff82\nBL              sub_776584                                             ; +0x2c, 0x50ff84\nMOV             R0, R8                                                 ; +0x30, 0x50ff88\nMOV             R1, R5                                                 ; +0x32, 0x50ff8a\nBL              sub_774DBC                                             ; +0x34, 0x50ff8c\nMOV             R8, R0                                                 ; +0x38, 0x50ff90\nMOV             R0, R5                                                 ; +0x3a, 0x50ff92\nBL              sub_774008                                             ; +0x3c, 0x50ff94\nCMP.W           R8, #0                                                 ; +0x40, 0x50ff98\nBEQ             loc_50FFAC                                             ; +0x44, 0x50ff9c\nLDR.W           R0, [R7,#0x118]                                        ; +0x46, 0x50ff9e\nCBZ             R0, loc_50FFAC                                         ; +0x4a, 0x50ffa2\nLDR             R3, [R0]                                               ; +0x4c, 0x50ffa4\nMOV             R1, R6                                                 ; +0x4e, 0x50ffa6\nLDR             R3, [R3,#8]                                            ; +0x50, 0x50ffa8\nBLX             R3                                                     ; +0x52, 0x50ffaa\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x54, 0x50ffac\nLDR             R3, [R4]                                               ; +0x56, 0x50ffae\nCMP             R2, R3                                                 ; +0x58, 0x50ffb0\nBEQ             loc_50FFB8                                             ; +0x5a, 0x50ffb2\nBLX             __stack_chk_fail                                       ; +0x5c, 0x50ffb4\nADD             SP, SP, #0x10                                          ; +0x60, 0x50ffb8\nPOP.W           {R4-R8,PC}                                             ; +0x62, 0x50ffba", "xrefs": ["GJMultiplayerManager::handleIt @ 0x51046a"], "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"}