{"type": "func", "start": 4298608372, "end": 4298608512, "name": "FriendRequestPopup::uploadActionFailed", "pseudocode": "// \n// FriendRequestPopup::uploadActionFailed from 0x100378ef4 to 0x100378f80 (140 bytes)\n// \n// 2 xrefs:\n// > sub_100378F9C @ 0x100378fa0\n// > <???> @ 0x100934d78\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:03:26 +0000\n// \n\nvoid __fastcall FriendRequestPopup::uploadActionFailed(__int64 a1, int a2)\n{\n  __int64 v2; // x8\n  __int64 v4; // x20\n  int v5; // w0\n  char v6; // w20\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  v2 = *(_QWORD *)(a1 + 696);\n  if ( v2 && (*(_DWORD *)(v2 + 316) == a2 || *(_DWORD *)(v2 + 320) == a2) )\n  {\n    v4 = *(_QWORD *)(a1 + 720);\n    if ( v4 )\n    {\n      sub_100009900(__p, \"Failed. Please try again later.\");\n      v5 = sub_10037785C(v4, (__int64)__p);\n      v6 = v5;\n      if ( v8 < 0 )\n      {\n        operator delete(__p[0]);\n        if ( (v6 & 1) == 0 )\n          return;\n      }\n      else if ( !v5 )\n      {\n        return;\n      }\n      *(_QWORD *)(a1 + 720) = 0;\n    }\n  }\n}", "assembly": "; \n; FriendRequestPopup::uploadActionFailed from 0x100378ef4 to 0x100378f80 (140 bytes)\n; \n; 2 xrefs:\n; > sub_100378F9C @ 0x100378fa0\n; > <???> @ 0x100934d78\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:03:26 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100378ef4\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100378ef8\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100378efc\nADD             X29, SP, #0x30                                         ; +0xc, 0x100378f00\nLDR             X8, [X0,#0x2B8]                                        ; +0x10, 0x100378f04\nCBZ             X8, loc_100378F60                                      ; +0x14, 0x100378f08\nMOV             X19, X0                                                ; +0x18, 0x100378f0c\nLDR             W9, [X8,#0x13C]                                        ; +0x1c, 0x100378f10\nCMP             W9, W1                                                 ; +0x20, 0x100378f14\nB.EQ            loc_100378F28                                          ; +0x24, 0x100378f18\nLDR             W8, [X8,#0x140]                                        ; +0x28, 0x100378f1c\nCMP             W8, W1                                                 ; +0x2c, 0x100378f20\nB.NE            loc_100378F60                                          ; +0x30, 0x100378f24\nLDR             X20, [X19,#0x2D0]                                      ; +0x34, 0x100378f28\nCBZ             X20, loc_100378F60                                     ; +0x38, 0x100378f2c\nADRL            X1, aFailedPleaseTr; \"Failed. Please try again later.\" ; +0x3c, 0x100378f30\nADD             X0, SP, #0x30+__p; int                                 ; +0x44, 0x100378f38\nBL              sub_100009900                                          ; +0x48, 0x100378f3c\nADD             X1, SP, #0x30+__p                                      ; +0x4c, 0x100378f40\nMOV             X0, X20                                                ; +0x50, 0x100378f44\nBL              sub_10037785C                                          ; +0x54, 0x100378f48\nMOV             X20, X0                                                ; +0x58, 0x100378f4c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x5c, 0x100378f50\nTBNZ            W8, #0x1F, loc_100378F70                               ; +0x60, 0x100378f54\nCBZ             W20, loc_100378F60                                     ; +0x64, 0x100378f58\nSTR             XZR, [X19,#0x2D0]                                      ; +0x68, 0x100378f5c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x6c, 0x100378f60\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x70, 0x100378f64\nADD             SP, SP, #0x40 ; '@'                                    ; +0x74, 0x100378f68\nRET                                                                    ; +0x78, 0x100378f6c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x7c, 0x100378f70\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x100378f74\nTBNZ            W20, #0, loc_100378F5C                                 ; +0x84, 0x100378f78\nB               loc_100378F60                                          ; +0x88, 0x100378f7c", "xrefs": ["sub_100378F9C @ 0x100378fa0", "<???> @ 0x100934d78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}