{"type": "func", "start": 5308068, "end": 5308176, "name": "GJMultiplayerManager::onExitLobbyCompleted", "pseudocode": "// \n// GJMultiplayerManager::onExitLobbyCompleted from 0x50fea4 to 0x50ff10 (108 bytes)\n// \n// 1 xrefs:\n// > GJMultiplayerManager::handleIt @ 0x51044a\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\nUploadActionDelegate *__fastcall GJMultiplayerManager::onExitLobbyCompleted(\n        GJMultiplayerManager *a1,\n        int a2,\n        const char **a3,\n        int a4)\n{\n  int v7; // r6\n  int v8; // r7\n  UploadActionDelegate *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  sub_774008(v10);\n  result = a1->m_uploadDelegate;\n  if ( v8 )\n  {\n    if ( result )\n      return (UploadActionDelegate *)((int (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int)))result->uploadActionFinished)(\n                                       result,\n                                       v7,\n                                       58,\n                                       result->uploadActionFinished);\n  }\n  else if ( result )\n  {\n    return (UploadActionDelegate *)((int (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int)))result->uploadActionFailed)(\n                                     result,\n                                     v7,\n                                     58,\n                                     result->uploadActionFailed);\n  }\n  return result;\n}", "assembly": "; \n; GJMultiplayerManager::onExitLobbyCompleted from 0x50fea4 to 0x50ff10 (108 bytes)\n; \n; 1 xrefs:\n; > GJMultiplayerManager::handleIt @ 0x51044a\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, 0x50fea4\nMOV             R5, R2                                                 ; +0x4, 0x50fea8\nLDR             R4, =(__stack_chk_guard_ptr - 0x50FEB6)                ; +0x6, 0x50feaa\nMOV             R7, R1                                                 ; +0x8, 0x50feac\nLDR             R1, [R2]; char *                                       ; +0xa, 0x50feae\nMOV             R8, R0                                                 ; +0xc, 0x50feb0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x50feb2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x50feb4\nLDR             R3, [R4]                                               ; +0x12, 0x50feb6\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x50feb8\nBL              _ZN20GJMultiplayerManager18removeDLFromActiveEPKc; GJMultiplayerManager::removeDLFromActive(char const*) ; +0x16, 0x50feba\nLDR             R0, [R5]; char *                                       ; +0x1a, 0x50febe\nADD             R5, SP, #0x10+var_8                                    ; +0x1c, 0x50fec0\nBLX             atoi                                                   ; +0x1e, 0x50fec2\nLDR             R1, =(a1 - 0x50FECE); \"-1\"                             ; +0x22, 0x50fec6\nADD             R2, SP, #0x10+var_C                                    ; +0x24, 0x50fec8\nADD             R1, PC; \"-1\"                                           ; +0x26, 0x50feca\nMOV             R6, R0                                                 ; +0x28, 0x50fecc\nMOV             R0, R5; int                                            ; +0x2a, 0x50fece\nBL              sub_776584                                             ; +0x2c, 0x50fed0\nMOV             R0, R7                                                 ; +0x30, 0x50fed4\nMOV             R1, R5                                                 ; +0x32, 0x50fed6\nBL              sub_774DBC                                             ; +0x34, 0x50fed8\nMOV             R7, R0                                                 ; +0x38, 0x50fedc\nMOV             R0, R5                                                 ; +0x3a, 0x50fede\nBL              sub_774008                                             ; +0x3c, 0x50fee0\nLDR.W           R0, [R8,#0x11C]                                        ; +0x40, 0x50fee4\nCBNZ            R7, loc_50FEF2                                         ; +0x44, 0x50fee8\nCBZ             R0, loc_50FEFE                                         ; +0x46, 0x50feea\nLDR             R3, [R0]                                               ; +0x48, 0x50feec\nLDR             R3, [R3,#4]                                            ; +0x4a, 0x50feee\nB               loc_50FEF8                                             ; +0x4c, 0x50fef0\nCBZ             R0, loc_50FEFE                                         ; +0x4e, 0x50fef2\nLDR             R3, [R0]                                               ; +0x50, 0x50fef4\nLDR             R3, [R3]                                               ; +0x52, 0x50fef6\nMOV             R1, R6                                                 ; +0x54, 0x50fef8\nMOVS            R2, #0x3A ; ':'                                        ; +0x56, 0x50fefa\nBLX             R3                                                     ; +0x58, 0x50fefc\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x5a, 0x50fefe\nLDR             R3, [R4]                                               ; +0x5c, 0x50ff00\nCMP             R2, R3                                                 ; +0x5e, 0x50ff02\nBEQ             loc_50FF0A                                             ; +0x60, 0x50ff04\nBLX             __stack_chk_fail                                       ; +0x62, 0x50ff06\nADD             SP, SP, #0x10                                          ; +0x66, 0x50ff0a\nPOP.W           {R4-R8,PC}                                             ; +0x68, 0x50ff0c", "xrefs": ["GJMultiplayerManager::handleIt @ 0x51044a"], "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"}