{"type": "func", "start": 4297943600, "end": 4297943748, "name": "GJAccountSettingsLayer::onFriendRequests", "pseudocode": "// \n// GJAccountSettingsLayer::onFriendRequests from 0x1002d6a30 to 0x1002d6ac4 (148 bytes)\n// \n// 3 xrefs:\n// > GJAccountSettingsLayer::init @ 0x1002d6610\n// > GJAccountSettingsLayer::init @ 0x1002d5c04\n// > GJAccountSettingsLayer::init @ 0x1002d5c98\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 GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_friendRequestSettings; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  CCMenuItemToggler **arr; // x21\n  unsigned __int64 v7; // x22\n  CCMenuItemToggler *v8; // x20\n  bool v9; // w1\n\n  if ( a2 )\n    a1->m_friendStatus = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  m_friendRequestSettings = a1->m_friendRequestSettings;\n  if ( m_friendRequestSettings )\n  {\n    data = m_friendRequestSettings->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (CCMenuItemToggler **)data->arr;\n      v7 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        v8 = *arr;\n        if ( !*arr )\n          break;\n        v9 = ((unsigned int (__fastcall *)(CCMenuItemToggler *))v8->getTag)(*arr) != a1->m_friendStatus;\n        CCMenuItemToggler::toggle(v8, v9);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v7 );\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onFriendRequests from 0x1002d6a30 to 0x1002d6ac4 (148 bytes)\n; \n; 3 xrefs:\n; > GJAccountSettingsLayer::init @ 0x1002d6610\n; > GJAccountSettingsLayer::init @ 0x1002d5c04\n; > GJAccountSettingsLayer::init @ 0x1002d5c98\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002d6a30\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d6a34\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d6a38\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d6a3c\nMOV             X19, X0                                                ; +0x10, 0x1002d6a40\nCBZ             X1, loc_1002D6A5C                                      ; +0x14, 0x1002d6a44\nLDR             X8, [X1]                                               ; +0x18, 0x1002d6a48\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1002d6a4c\nMOV             X0, X1                                                 ; +0x20, 0x1002d6a50\nBLR             X8                                                     ; +0x24, 0x1002d6a54\nSTR             W0, [X19,#0x288]                                       ; +0x28, 0x1002d6a58\nLDR             X8, [X19,#0x2B8]                                       ; +0x2c, 0x1002d6a5c\nCBZ             X8, loc_1002D6AB4                                      ; +0x30, 0x1002d6a60\nLDR             X9, [X8,#0x38]                                         ; +0x34, 0x1002d6a64\nLDR             W8, [X9]                                               ; +0x38, 0x1002d6a68\nCBZ             W8, loc_1002D6AB4                                      ; +0x3c, 0x1002d6a6c\nLDR             X21, [X9,#0x10]                                        ; +0x40, 0x1002d6a70\nADD             X8, X21, X8,LSL#3                                      ; +0x44, 0x1002d6a74\nSUB             X22, X8, #8                                            ; +0x48, 0x1002d6a78\nLDR             X20, [X21]                                             ; +0x4c, 0x1002d6a7c\nCBZ             X20, loc_1002D6AB4                                     ; +0x50, 0x1002d6a80\nLDR             X8, [X20]                                              ; +0x54, 0x1002d6a84\nLDR             X8, [X8,#0x40]                                         ; +0x58, 0x1002d6a88\nMOV             X0, X20                                                ; +0x5c, 0x1002d6a8c\nBLR             X8                                                     ; +0x60, 0x1002d6a90\nLDR             W8, [X19,#0x288]                                       ; +0x64, 0x1002d6a94\nCMP             W0, W8                                                 ; +0x68, 0x1002d6a98\nCSET            W1, NE                                                 ; +0x6c, 0x1002d6a9c\nMOV             X0, X20                                                ; +0x70, 0x1002d6aa0\nBL              CCMenuItemToggler__toggle                              ; +0x74, 0x1002d6aa4\nADD             X21, X21, #8                                           ; +0x78, 0x1002d6aa8\nCMP             X21, X22                                               ; +0x7c, 0x1002d6aac\nB.LS            loc_1002D6A7C                                          ; +0x80, 0x1002d6ab0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1002d6ab4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1002d6ab8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1002d6abc\nRET                                                                    ; +0x90, 0x1002d6ac0", "xrefs": ["GJAccountSettingsLayer::init @ 0x1002d6610", "GJAccountSettingsLayer::init @ 0x1002d5c04", "GJAccountSettingsLayer::init @ 0x1002d5c98"], "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"}