{"type": "func", "start": 4296253356, "end": 4296253488, "name": "GJRequestCell::onViewFriendRequest", "pseudocode": "// \n// GJRequestCell::onViewFriendRequest from 0x100139fac to 0x10013a030 (132 bytes)\n// \n// 1 xrefs:\n// > GJRequestCell::loadFromScore @ 0x10012f198\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 10:59:28 +0000\n// \n\n__int64 __fastcall GJRequestCell::onViewFriendRequest(__int64 result)\n{\n  __int64 v1; // x8\n  __int64 v2; // x19\n  __int64 v3; // x0\n  __int64 v4; // x20\n  char v5; // w8\n  __int64 v6; // x0\n\n  v1 = *(_QWORD *)(result + 552);\n  if ( v1 )\n  {\n    if ( *(int *)(v1 + 376) >= 1 )\n    {\n      v2 = result;\n      v3 = GameLevelManager::sharedState();\n      result = GameLevelManager::friendRequestFromAccountID(v3, *(_DWORD *)(*(_QWORD *)(v2 + 552) + 376LL));\n      if ( result )\n      {\n        v4 = result;\n        if ( (*(_BYTE *)(v2 + 568) & 1) != 0 )\n        {\n          v5 = 1;\n        }\n        else\n        {\n          GJRequestCell::markAsRead(v2);\n          v5 = *(_BYTE *)(v2 + 568);\n        }\n        v6 = FriendRequestPopup::create(v4, v5 & 1);\n        return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRequestCell::onViewFriendRequest from 0x100139fac to 0x10013a030 (132 bytes)\n; \n; 1 xrefs:\n; > GJRequestCell::loadFromScore @ 0x10012f198\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 10:59:28 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100139fac\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100139fb0\nADD             X29, SP, #0x10                                         ; +0x8, 0x100139fb4\nLDR             X8, [X0,#0x228]                                        ; +0xc, 0x100139fb8\nCBZ             X8, loc_100139FF8                                      ; +0x10, 0x100139fbc\nLDR             W8, [X8,#0x178]                                        ; +0x14, 0x100139fc0\nCMP             W8, #1                                                 ; +0x18, 0x100139fc4\nB.LT            loc_100139FF8                                          ; +0x1c, 0x100139fc8\nMOV             X19, X0                                                ; +0x20, 0x100139fcc\nBL              GameLevelManager__sharedState                          ; +0x24, 0x100139fd0\nLDR             X8, [X19,#0x228]                                       ; +0x28, 0x100139fd4\nLDR             W1, [X8,#0x178]                                        ; +0x2c, 0x100139fd8\nBL              GameLevelManager__friendRequestFromAccountID           ; +0x30, 0x100139fdc\nCBZ             X0, loc_100139FF8                                      ; +0x34, 0x100139fe0\nMOV             X20, X0                                                ; +0x38, 0x100139fe4\nLDRB            W8, [X19,#0x238]                                       ; +0x3c, 0x100139fe8\nTBZ             W8, #0, loc_10013A004                                  ; +0x40, 0x100139fec\nMOV             W8, #1                                                 ; +0x44, 0x100139ff0\nB               loc_10013A010                                          ; +0x48, 0x100139ff4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x100139ff8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x100139ffc\nRET                                                                    ; +0x54, 0x10013a000\nMOV             X0, X19                                                ; +0x58, 0x10013a004\nBL              GJRequestCell__markAsRead                              ; +0x5c, 0x10013a008\nLDRB            W8, [X19,#0x238]                                       ; +0x60, 0x10013a00c\nAND             W1, W8, #1                                             ; +0x64, 0x10013a010\nMOV             X0, X20                                                ; +0x68, 0x10013a014\nBL              FriendRequestPopup__create                             ; +0x6c, 0x10013a018\nLDR             X8, [X0]                                               ; +0x70, 0x10013a01c\nLDR             X1, [X8,#0x520]                                        ; +0x74, 0x10013a020\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x78, 0x10013a024\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x7c, 0x10013a028\nBR              X1                                                     ; +0x80, 0x10013a02c", "xrefs": ["GJRequestCell::loadFromScore @ 0x10012f198"], "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"}