{"type": "func", "start": 9185060, "end": 9185220, "name": "GJAccountSettingsLayer::onFriendRequests", "pseudocode": "// \n// GJAccountSettingsLayer::onFriendRequests from 0x8c2724 to 0x8c27c4 (160 bytes)\n// \n// 5 xrefs:\n// > GJAccountSettingsLayer::init @ 0x8dfb94\n// > <???> @ 0xc2b38\n// > GJAccountSettingsLayer::init @ 0x8dec20\n// > GJAccountSettingsLayer::init @ 0x8decbc\n// > <???> @ 0x122ec08\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 GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_friendRequestSettings; // x0\n  cocos2d::ccArray *data; // x1\n  CCMenuItemToggler **arr; // x20\n  __int64 v6; // x0\n  char *v7; // x21\n  CCMenuItemToggler *v8; // x19\n  const cocos2d::CCObject *v9; // x0\n  bool v10; // w1\n\n  if ( a2 )\n    a1->m_friendStatus = a2->getTag(a2);\n  m_friendRequestSettings = a1->m_friendRequestSettings;\n  if ( m_friendRequestSettings )\n  {\n    data = m_friendRequestSettings->data;\n    if ( data->num )\n    {\n      arr = (CCMenuItemToggler **)data->arr;\n      v6 = 8LL * data->num - 8;\n      v7 = (char *)arr + v6;\n      if ( arr <= (CCMenuItemToggler **)((char *)arr + v6) )\n      {\n        do\n        {\n          v8 = *arr;\n          if ( !*arr )\n            break;\n          v9 = *arr++;\n          v10 = v8->getTag(v9) != a1->m_friendStatus;\n          CCMenuItemToggler::toggle(v8, v10);\n        }\n        while ( v7 >= (char *)arr );\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onFriendRequests from 0x8c2724 to 0x8c27c4 (160 bytes)\n; \n; 5 xrefs:\n; > GJAccountSettingsLayer::init @ 0x8dfb94\n; > <???> @ 0xc2b38\n; > GJAccountSettingsLayer::init @ 0x8dec20\n; > GJAccountSettingsLayer::init @ 0x8decbc\n; > <???> @ 0x122ec08\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\nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x8c2724\nMOV             X29, SP                                                ; +0x4, 0x8c2728\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x8c272c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x8c2730\nMOV             X22, X0                                                ; +0x10, 0x8c2734\nCBZ             X1, loc_8C2750                                         ; +0x14, 0x8c2738\nLDR             X2, [X1]                                               ; +0x18, 0x8c273c\nMOV             X0, X1                                                 ; +0x1c, 0x8c2740\nLDR             X1, [X2,#0x40]                                         ; +0x20, 0x8c2744\nBLR             X1                                                     ; +0x24, 0x8c2748\nSTR             W0, [X22,#0x288]                                       ; +0x28, 0x8c274c\nLDR             X0, [X22,#0x2D0]                                       ; +0x2c, 0x8c2750\nCBZ             X0, loc_8C27B4                                         ; +0x30, 0x8c2754\nLDR             X1, [X0,#0x38]                                         ; +0x34, 0x8c2758\nLDR             W0, [X1]                                               ; +0x38, 0x8c275c\nCBZ             W0, loc_8C27B4                                         ; +0x3c, 0x8c2760\nLDR             X20, [X1,#0x10]                                        ; +0x40, 0x8c2764\nMOV             X2, #0xFFFFFFFFFFFFFFF8                                ; +0x44, 0x8c2768\nADD             X0, X2, W0,UXTW#3                                      ; +0x48, 0x8c276c\nADD             X21, X20, X0                                           ; +0x4c, 0x8c2770\nCMP             X20, X21                                               ; +0x50, 0x8c2774\nB.HI            loc_8C27B4                                             ; +0x54, 0x8c2778\nLDR             X19, [X20]                                             ; +0x58, 0x8c277c\nCBZ             X19, loc_8C27B4                                        ; +0x5c, 0x8c2780\nLDR             X1, [X19]                                              ; +0x60, 0x8c2784\nMOV             X0, X19                                                ; +0x64, 0x8c2788\nADD             X20, X20, #8                                           ; +0x68, 0x8c278c\nLDR             X1, [X1,#0x40]                                         ; +0x6c, 0x8c2790\nBLR             X1                                                     ; +0x70, 0x8c2794\nLDR             W1, [X22,#0x288]                                       ; +0x74, 0x8c2798\nCMP             W0, W1                                                 ; +0x78, 0x8c279c\nMOV             X0, X19; this                                          ; +0x7c, 0x8c27a0\nCSET            W1, NE; bool                                           ; +0x80, 0x8c27a4\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x84, 0x8c27a8\nCMP             X21, X20                                               ; +0x88, 0x8c27ac\nB.CS            loc_8C277C                                             ; +0x8c, 0x8c27b0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x90, 0x8c27b4\nLDP             X21, X22, [SP,#var_s20]                                ; +0x94, 0x8c27b8\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x98, 0x8c27bc\nRET                                                                    ; +0x9c, 0x8c27c0", "xrefs": ["GJAccountSettingsLayer::init @ 0x8dfb94", "<???> @ 0xc2b38", "GJAccountSettingsLayer::init @ 0x8dec20", "GJAccountSettingsLayer::init @ 0x8decbc", "<???> @ 0x122ec08"], "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"}