{"type": "func", "start": 4297956312, "end": 4297956608, "name": "FriendRequestPopup::onBlock", "pseudocode": "// \n// FriendRequestPopup::onBlock from 0x1002d9bd8 to 0x1002d9d00 (296 bytes)\n// \n// 1 xrefs:\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d990c\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 __fastcall FriendRequestPopup::onBlock(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x0\n  const char *v4; // x8\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  char *v7; // x1\n  FLAlertLayer *v8; // x19\n  void *__p[2]; // [xsp+8h] [xbp-58h] BYREF\n  char v10; // [xsp+1Fh] [xbp-41h]\n  void *v11[2]; // [xsp+20h] [xbp-40h] BYREF\n  char v12; // [xsp+37h] [xbp-29h]\n  void *v13[2]; // [xsp+38h] [xbp-28h] BYREF\n  char v14; // [xsp+4Fh] [xbp-11h]\n\n  v3 = GameLevelManager::sharedState();\n  GameLevelManager::tryGetUsername((__int64)v3, a1->m_request->m_accountID, (__int64)v13);\n  if ( v14 >= 0 )\n    v4 = (const char *)v13;\n  else\n    v4 = (const char *)v13[0];\n  v5 = (cocos2d::CCString *)sub_100268F4C(\n                              \"Are you sure you want to block <cg>%s</c>?\\n\"\n                              \"They will no longer be able to:\\n\"\n                              \"-View your <cy>profile</c>.\\n\"\n                              \"-Send you a <cl>friend request</c>.\\n\"\n                              \"-Send you <cp>messages</c>, and all older messages from them will be <cr>deleted</c>.\",\n                              v4);\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  sub_100009900(v11, CString);\n  if ( v12 >= 0 )\n    v7 = (char *)v11;\n  else\n    v7 = (char *)v11[0];\n  sub_100009900(__p, v7);\n  v8 = FLAlertLayer::create(\n         (__int64)&a1->FLAlertLayerProtocol,\n         (__int64)\"Confirm Block\",\n         (__int64)__p,\n         (__int64)\"Back\",\n         (__int64)\"Block\",\n         0,\n         380.0);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  ButtonSprite::updateBGImage(v8->m_button2, \"GJ_button_06.png\");\n  ((void (__fastcall *)(FLAlertLayer *, __int64))v8->setTag)(v8, 1);\n  ((void (__fastcall *)(FLAlertLayer *))v8->show)(v8);\n  if ( v12 < 0 )\n    operator delete(v11[0]);\n  if ( v14 < 0 )\n    operator delete(v13[0]);\n}", "assembly": "; \n; FriendRequestPopup::onBlock from 0x1002d9bd8 to 0x1002d9d00 (296 bytes)\n; \n; 1 xrefs:\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d990c\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x1002d9bd8\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x4, 0x1002d9bdc\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x8, 0x1002d9be0\nADD             X29, SP, #0x60                                         ; +0xc, 0x1002d9be4\nMOV             X19, X0                                                ; +0x10, 0x1002d9be8\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1002d9bec\nLDR             X8, [X19,#0x298]                                       ; +0x18, 0x1002d9bf0\nLDR             W1, [X8,#0x140]                                        ; +0x1c, 0x1002d9bf4\nSUB             X20, X29, #-var_28                                     ; +0x20, 0x1002d9bf8\nSUB             X8, X29, #-var_28                                      ; +0x24, 0x1002d9bfc\nBL              GameLevelManager__tryGetUsername                       ; +0x28, 0x1002d9c00\nLDURSB          W8, [X29,#var_11]                                      ; +0x2c, 0x1002d9c04\nLDUR            X9, [X29,#var_28]                                      ; +0x30, 0x1002d9c08\nCMP             W8, #0                                                 ; +0x34, 0x1002d9c0c\nCSEL            X8, X9, X20, LT                                        ; +0x38, 0x1002d9c10\nSTR             X8, [SP,#0x60+var_60]                                  ; +0x3c, 0x1002d9c14\nADRL            X0, aAreYouSureYouW_17; \"Are you sure you want to block <cg>%s</\"... ; +0x40, 0x1002d9c18\nBL              sub_100268F4C                                          ; +0x48, 0x1002d9c20\nBL              cocos2d__CCString__getCString                          ; +0x4c, 0x1002d9c24\nMOV             X1, X0; __s                                            ; +0x50, 0x1002d9c28\nADD             X20, SP, #0x60+var_40                                  ; +0x54, 0x1002d9c2c\nADD             X0, SP, #0x60+var_40; int                              ; +0x58, 0x1002d9c30\nBL              sub_100009900                                          ; +0x5c, 0x1002d9c34\nLDRSB           W8, [SP,#0x60+var_29]                                  ; +0x60, 0x1002d9c38\nLDR             X9, [SP,#0x60+var_40]                                  ; +0x64, 0x1002d9c3c\nCMP             W8, #0                                                 ; +0x68, 0x1002d9c40\nCSEL            X1, X9, X20, LT; __s                                   ; +0x6c, 0x1002d9c44\nADD             X0, SP, #0x60+__p; int                                 ; +0x70, 0x1002d9c48\nBL              sub_100009900                                          ; +0x74, 0x1002d9c4c\nADRL            X1, aConfirmBlock; \"Confirm Block\"                     ; +0x78, 0x1002d9c50\nMOV             W8, #0x43BE0000                                        ; +0x80, 0x1002d9c58\nADRL            X3, aBack; \"Back\"                                      ; +0x84, 0x1002d9c5c\nFMOV            S0, W8                                                 ; +0x8c, 0x1002d9c64\nADD             X0, X19, #0x288                                        ; +0x90, 0x1002d9c68\nADD             X2, SP, #0x60+__p                                      ; +0x94, 0x1002d9c6c\nFMOV            S1, WZR                                                ; +0x98, 0x1002d9c70\nADRL            X4, aBlock; \"Block\"                                    ; +0x9c, 0x1002d9c74\nFMOV            S2, #1.0                                               ; +0xa4, 0x1002d9c7c\nMOV             W5, #0                                                 ; +0xa8, 0x1002d9c80\nBL              FLAlertLayer__create                                   ; +0xac, 0x1002d9c84\nMOV             X19, X0                                                ; +0xb0, 0x1002d9c88\nLDRSB           W8, [SP,#0x60+var_41]                                  ; +0xb4, 0x1002d9c8c\nTBZ             W8, #0x1F, loc_1002D9C9C                               ; +0xb8, 0x1002d9c90\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0xbc, 0x1002d9c94\nBL              __ZdlPv; operator delete(void *)                       ; +0xc0, 0x1002d9c98\nLDR             X0, [X19,#0x258]                                       ; +0xc4, 0x1002d9c9c\nADRL            X1, aGjButton06Png; \"GJ_button_06.png\"                 ; +0xc8, 0x1002d9ca0\nBL              ButtonSprite__updateBGImage                            ; +0xd0, 0x1002d9ca8\nLDR             X8, [X19]                                              ; +0xd4, 0x1002d9cac\nLDR             X8, [X8,#0x48]                                         ; +0xd8, 0x1002d9cb0\nMOV             X0, X19                                                ; +0xdc, 0x1002d9cb4\nMOV             W1, #1                                                 ; +0xe0, 0x1002d9cb8\nBLR             X8                                                     ; +0xe4, 0x1002d9cbc\nLDR             X8, [X19]                                              ; +0xe8, 0x1002d9cc0\nLDR             X8, [X8,#0x508]                                        ; +0xec, 0x1002d9cc4\nMOV             X0, X19                                                ; +0xf0, 0x1002d9cc8\nBLR             X8                                                     ; +0xf4, 0x1002d9ccc\nLDRSB           W8, [SP,#0x60+var_29]                                  ; +0xf8, 0x1002d9cd0\nTBZ             W8, #0x1F, loc_1002D9CE0                               ; +0xfc, 0x1002d9cd4\nLDR             X0, [SP,#0x60+var_40]; __p                             ; +0x100, 0x1002d9cd8\nBL              __ZdlPv; operator delete(void *)                       ; +0x104, 0x1002d9cdc\nLDURSB          W8, [X29,#var_11]                                      ; +0x108, 0x1002d9ce0\nTBZ             W8, #0x1F, loc_1002D9CF0                               ; +0x10c, 0x1002d9ce4\nLDUR            X0, [X29,#var_28]; __p                                 ; +0x110, 0x1002d9ce8\nBL              __ZdlPv; operator delete(void *)                       ; +0x114, 0x1002d9cec\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0x118, 0x1002d9cf0\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0x11c, 0x1002d9cf4\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x120, 0x1002d9cf8\nRET                                                                    ; +0x124, 0x1002d9cfc", "xrefs": ["FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d990c"], "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"}